PAC-EDWARDS Varun Mehta - Mike Pierorazio - Jeffrey Cropsey Project - - PowerPoint PPT Presentation

pac edwards
SMART_READER_LITE
LIVE PREVIEW

PAC-EDWARDS Varun Mehta - Mike Pierorazio - Jeffrey Cropsey Project - - PowerPoint PPT Presentation

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


slide-1
SLIDE 1

PAC-EDWARDS

Varun Mehta - Mike Pierorazio - Jeffrey Cropsey

slide-2
SLIDE 2

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

slide-3
SLIDE 3

System Overview

NES Controller NES Controller NES Controller Controller VGA Controller CPU RAM Controller RAM Top Level Entity Currently Pressed Buttons Player Locations Dots on Board Player Scores Pre-programmed Sprites

slide-4
SLIDE 4

Display in-depth

slide-5
SLIDE 5

Video (The Goal)

slide-6
SLIDE 6

Video (Starting)

slide-7
SLIDE 7

What We Needed For Video

  • Good-looking mazes
  • Player scores
  • Dot + Big Macs
  • Player graphics
slide-8
SLIDE 8

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
slide-9
SLIDE 9

Scores

  • Custom font
  • Read scores from memory
  • Display outside of maze area
slide-10
SLIDE 10

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
slide-11
SLIDE 11

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)
slide-12
SLIDE 12

That’s More Like It!

slide-13
SLIDE 13

NES Control In-Depth

slide-14
SLIDE 14

NES Pin-out and signaling

slide-15
SLIDE 15

Game logic Loop

  • Internal copy of maze / dot array
  • Main Loop
  • Player 1 then Player 2
  • Checks if player “eats” dot
  • Moves Player
slide-16
SLIDE 16

fin