networked air hockey video game - columbia university
TRANSCRIPT
![Page 1: Networked Air Hockey Video Game - Columbia University](https://reader031.vdocument.in/reader031/viewer/2022021308/6207b664dbfd920fd33e454c/html5/thumbnails/1.jpg)
Ai m e e S a n c h e z – a m s 2 3 0 0An k i t a N a ya k – a a n 2 1 2 0
K a p i l Ve r m a – k v 2 2 0 8V i n a y S h a r m a – v s 2 3 3 0
Networked Air Hockey Video Game
![Page 2: Networked Air Hockey Video Game - Columbia University](https://reader031.vdocument.in/reader031/viewer/2022021308/6207b664dbfd920fd33e454c/html5/thumbnails/2.jpg)
OVERVIEW
Game Play Two players Paddle control using mouse First player to 8 points wins!
Players on separate terminals Communication through Ethernet directly connected network
![Page 3: Networked Air Hockey Video Game - Columbia University](https://reader031.vdocument.in/reader031/viewer/2022021308/6207b664dbfd920fd33e454c/html5/thumbnails/3.jpg)
OBJECTIVES
Build the game from scratch that features:
Fully integrated system (hardware and software)
Clean, intuitive design
Fun game play
![Page 4: Networked Air Hockey Video Game - Columbia University](https://reader031.vdocument.in/reader031/viewer/2022021308/6207b664dbfd920fd33e454c/html5/thumbnails/4.jpg)
DESIGN ARCHITECTURE
Altera Cyclone II FPGA
NIOS processor CPU SRAM
Peripherals VGA Mouse Ethernet
![Page 5: Networked Air Hockey Video Game - Columbia University](https://reader031.vdocument.in/reader031/viewer/2022021308/6207b664dbfd920fd33e454c/html5/thumbnails/5.jpg)
BLOCK DIAGRAM
Avalon Bus
NIOS Processor
VGA SRAM Mouse
![Page 6: Networked Air Hockey Video Game - Columbia University](https://reader031.vdocument.in/reader031/viewer/2022021308/6207b664dbfd920fd33e454c/html5/thumbnails/6.jpg)
VIDEO DISPLAY
![Page 7: Networked Air Hockey Video Game - Columbia University](https://reader031.vdocument.in/reader031/viewer/2022021308/6207b664dbfd920fd33e454c/html5/thumbnails/7.jpg)
CIRCLE GENERATION ALGO
Drawing circles require computing the square of the x,y coordinates as well as the radius
Multiplication is toxic! It is possible to generate circles using only lookups
and addition: Created array which contains pre-computed squares Lookup into the array to get the square based on the index Use these values as constant for computing the equation of a
square
![Page 8: Networked Air Hockey Video Game - Columbia University](https://reader031.vdocument.in/reader031/viewer/2022021308/6207b664dbfd920fd33e454c/html5/thumbnails/8.jpg)
NETWORKING!
Point to point ethernet connection established between the players.
Master – Slave configuration. IP packets transmitted. Paddle coordinates from slave to master and vice
versa transmitted over the ethernet. Puck coordinates transmitted only from master to
slave.
![Page 9: Networked Air Hockey Video Game - Columbia University](https://reader031.vdocument.in/reader031/viewer/2022021308/6207b664dbfd920fd33e454c/html5/thumbnails/9.jpg)
PS2 MOUSE INTERFACE
3 byte serial transmission from the PS2 mouse. Data captured continuously from the data register Used Altera alt_up_ps2_port.c functions to capture the
mouse data Created ps2_mouse.c file from scratch! to handle the
directions and positions of the paddles.
![Page 10: Networked Air Hockey Video Game - Columbia University](https://reader031.vdocument.in/reader031/viewer/2022021308/6207b664dbfd920fd33e454c/html5/thumbnails/10.jpg)
SCORE KEEPING
Bit maps created for PLAYER: 1 ,2.
Bit maps created for score from 0 -8.
Every time a goal is scored by a player, the appropriate bit map location is chosen based on the new score and displayed on the VGA.
Scores are also transmitted over the ethernet to the other player’s display.
![Page 11: Networked Air Hockey Video Game - Columbia University](https://reader031.vdocument.in/reader031/viewer/2022021308/6207b664dbfd920fd33e454c/html5/thumbnails/11.jpg)
Physics simulation
![Page 12: Networked Air Hockey Video Game - Columbia University](https://reader031.vdocument.in/reader031/viewer/2022021308/6207b664dbfd920fd33e454c/html5/thumbnails/12.jpg)
PROJECT EXPERIENCE
Worked in parallel
Lots of collaboration
Learned to work in distracting environment
![Page 13: Networked Air Hockey Video Game - Columbia University](https://reader031.vdocument.in/reader031/viewer/2022021308/6207b664dbfd920fd33e454c/html5/thumbnails/13.jpg)
SUMMARY
Lessons Learned Important to understand the details of each component Make use each member’s individual strengths Always leave space for adjustments or additions