PAC-EDWARDS Varun Mehta - Mike Pierorazio - Jeffrey Cropsey
Project Overview • Design a two player PacMan style arcade game • Use the DE2 VGA for game visualization • Use the DE2 I/O to Implement NES Controller Interface
System Overview Pre-programmed RAM Controller RAM Sprites Player Locations Dots on Board Player Scores CPU Top Level Entity VGA Controller Currently Pressed Buttons NES Controller NES Controller Controller NES Controller
Display in-depth
Video (The Goal)
Video (Starting)
What We Needed For Video • Good-looking mazes • Player scores • Dot + Big Macs • Player graphics
Mazes • Shape of maze defined in hardware • 16x16 tiles • Graphics chosen for tiles dynamically • Inquire about neighboring tiles • 6 sprites used for all maze graphics
Scores • Custom font • Read scores from memory • Display outside of maze area
Dots • Dots stored in memory • 16x16 tiles • Read status of dots from memory • Draw dot if appropriate • Special graphics for Big Macs • Similar to player sprites
Players • Sprites stored in memory • 16x16 sprites, 4 bits per pixel • Color table to get pixel’s color • Read locations of players from memory • Can be at any arbitrary (x,y)
That’s More Like It!
NES Control In-Depth
NES Pin-out and signaling
Game logic Loop • Internal copy of maze / dot array • Main Loop • Player 1 then Player 2 • Checks if player “eats” dot • Moves Player
fin
Recommend
More recommend