pong game - PowerPoint PPT Presentation

1 / 9
About This Presentation
Title:

pong game

Description:

4 'HOT SPOT' PIXEL, ONE IN THE MIDDLE OF EACH SIDE OF THE BALL. ... The original setup used Pluto fpga board with 25MHz internal crystal and a ... – PowerPoint PPT presentation

Number of Views:3232
Avg rating:3.0/5.0
Slides: 10
Provided by: mohsin47
Category:
Tags: game | pong | setup

less

Transcript and Presenter's Notes

Title: pong game


1
PONG GAME
Owais Ibrahim Akram Mohsin Murad
2
InTRODUCTION
PONG GAME
  • ONE OF THE BASIC ATTARI GAMES.
  • THE PONG GAME CONSISTS OF A BALL RANDOMLY
    BOUNCING ON THE SCREEN.
  • A PADDLE AT THE BASE ENABLES THE USER TO MAKE
    THE BALL BOUNCE BACK UP.

3
requirements
PONG GAME
  • MULTISYNC VGA MONITOR SUPPORTING 640X480
    RESOLUTION.
  • XILINX SPARTAN-3 FPGA KIT.
  • TWO ONBOARD PUSH BUTTONS TO CONTROL PADDLE
    MOVEMENT.
  • 50MHZ OSCILLATOR.

vga_h_sync , vga_v_sync , vga_R , vga_G , vga_B
PUSH BUTTONS quadA , quadB
4
dRIVING The Vga monitor
PONG GAME
  • A VGA MONITOR
  • REQUIRES 5 SIGNALS TO
  • DISPLAY A PICTURE
  • R,G B (THE RED, GREEN AND BLUE SIGNALS).
  • HS VS (THE HORIZONTAL AND VERTICAL
    SYNCRONIZATION).

5
MODULES USED
PONG GAME
  • GENERATING R,G B SIGNALS.
  • CLOCK DIVIDER.
  • VIDEO GENERATOR
  • DRAWING THE PADDLE
  • DRAWING THE BALL

6
DRAWING THE PADDLE
PONG GAME
  • TWO ONBOARD PUSH BUTTONS FOR MOVING THE PADDLE
    LEFT OR RIGHT.
  • 50HZ CLOCK REQUIRED FOR SCANNING THE PUSH
    BUTTONS.
  • 6 CLOCK DIVIDER MODULES EACH DIVIDING THE
    CLOCK BY 10 (50MHZ/1000000HZ50HZ).
  • IF quadA IS PRESSED THEN
  • PaddlePosition PaddlePosition 1
  • IF quadB IS PRESSED THEN
  • PaddlePosition PaddlePosition 1
  • PaddlePosition PaddlePosition /- 25
    FOR FASTER MOVEMENT.

7
DRAWING THE BALL
PONG GAME
  • 16X16 PIXELS SQUARE.
  • RANDOM COLLISIONS.
  • 4 HOT SPOT PIXEL, ONE IN THE MIDDLE OF EACH
    SIDE OF THE BALL.
  • IF THE BALL DRAWS ITS HOTSPOT AT THE SAME
    TIME THE PADDLE OR BORDER DRAWS ITSELF, WE SAY
    THERE IS A COLLISION ON THAT SIDE.

8
pROBLEMS eNCOUNTERED
PONG GAME
  • THE ORIGINAL CODE USED NON PS/2 MOUSE FOR
    PADDLE MOVEMENT.
  • CD4093 IC WASNT AVAILABLE.
  • THE PADDLE WAS UNCONTROLLABLE WHEN WE USED
    TWO PUSH BUTTONS AND 50MHZ CLOCK.
  • RESTRICTED MOVEMENT OF PADDLE.

The original setup used Pluto fpga board with
25MHz internal crystal and a modified mouse to
control the paddle movement
9
THANK YOU
Write a Comment
User Comments (0)
About PowerShow.com