Skip to content

Two-player basketball game written in C and Assembly for the DE1-SoC board (Nios II processor)

Notifications You must be signed in to change notification settings

ashleyleal/BasketBlitz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Two-player basketball game written in C and Assembly for the DE1-SoC board (Nios II processor)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages