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.
Full Demo: https://www.youtube.com/watch?v=Kv7HDWRfsds&ab_channel=AshleyL
Go to CPUlator Nios II System Simulator: https://cpulator.01xz.net/?sys=nios-de1soc
Change the language in the dropdown menu from Nios II to C
Disable (uncheck) all Debugging Checks warnings in the Settings (on the left menu)
Download BasketBlitz.c and open it in through the File dropdown
Press Compile and Load (or press F5), then click Continue (or press F3) to start the program
View the game graphics through the VGA pixel buffer and use the PS/2 keyboard for controls (on the right menu)
Left Arrow
Key: Increase launch angleRight Arrow
Key: Decrease launch angleUp Arrow
Key: Increase shooting powerDown Arrow
Key: Decrease shooting powerW
Key: Move basketball upA
Key: Move basketball leftS
Key: Move basketball downD
Key: Move basketball rightSpacebar
: Shoot basketball!
- Score as many points as possible to win against your opponent!
- Utilize the backboard to your advantage for rebound shots (tip).
Ashley Leal | Zuha Mujib |
---|---|
@ashleyleal | @zuhamujib |