Upload
others
View
0
Download
0
Embed Size (px)
Citation preview
PAC-EDWARDSVarun 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
NES Controller
NES ControllerNES Controller Controller
VGA ControllerCPU
RAM Controller RAM
Top Level Entity
Currently Pressed Buttons
Player LocationsDots on BoardPlayer Scores
Pre-programmed Sprites
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 ControlIn-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