Skip to content

Latest commit

 

History

History
55 lines (37 loc) · 2.71 KB

README.md

File metadata and controls

55 lines (37 loc) · 2.71 KB

BasketBlitz

BasketBlitz is a two-player basketball game written in C for the DE1-SoC board designed to offer players an immersive experience of competing against each other in a timed basketball shooting contest. This game utilizes the PS2 keyboard with interrupts for controls, as well as the hardware timer with interrupts to handle game time. Double buffering is utilized to dynamically show graphics on the VGA.

ezgif com-video-to-gif-converter

Full Demo: https://www.youtube.com/watch?v=Kv7HDWRfsds&ab_channel=AshleyL

Setup

Go to CPUlator Nios II System Simulator: https://cpulator.01xz.net/?sys=nios-de1soc

image

Change the language in the dropdown menu from Nios II to C

image

Disable (uncheck) all Debugging Checks warnings in the Settings (on the left menu)

image

Download BasketBlitz.c and open it in through the File dropdown

image

Press Compile and Load (or press F5), then click Continue (or press F3) to start the program

image image

View the game graphics through the VGA pixel buffer and use the PS/2 keyboard for controls (on the right menu)

image

How to Play

Controls

  • Left Arrow Key: Increase launch angle
  • Right Arrow Key: Decrease launch angle
  • Up Arrow Key: Increase shooting power
  • Down Arrow Key: Decrease shooting power
  • W Key: Move basketball up
  • A Key: Move basketball left
  • S Key: Move basketball down
  • D Key: Move basketball right
  • Spacebar: Shoot basketball!

Gameplay

  • Score as many points as possible to win against your opponent!
  • Utilize the backboard to your advantage for rebound shots (tip).

Team

Ashley Leal Zuha Mujib
image image
@ashleyleal @zuhamujib