Inspiration

During the COVID-19 pandemic, it is extremely important for people to put safety first. To keep people's attention on staying safe during quarantine, we thought that we should create a fun video game promoting safety. The game inspiration came from a mix of space invaders and asteroids.

How we built it

All of the code for the game was done using Python and the Pygames library. Our graphical assets were sourced from freepik.com and other sources documented in the at the bottom. Most of the functions were sourced from the pygame library. The collision calculations for the button hitboxes were done by a simple width and height division method. The collision between the viruses and white blood cell was done by calculating the distance between midpoints of our images.

Challenges we ran into

  • Coding of the hitbox for the white blood cell and viruses
  • Creating multiple virus displays.
  • Creating multiple viruses on screen
  • Hit boxes for menus
  • Drawing text to the screen using custom font

Accomplishments that we are proud of

A fully functional game that was created on time! We also think that the main menu and all other menus came out nicely. The overall game play is exactly how we imagined it. The game is very fun and pretty addicting.

What we learned

We learnt how to develop games using the Pygames library. We also learnt how to do collision detection using the distance formula. We learnt how to make hitboxes for menu buttons as well as draw text and the buttons themselves.

What's next for Covid-19 Defence

Game Play

  • A level system as well as a scoreboard for high scores. Also, we would add more in-depth game play by adding red blood cells. These are friendly cells which the player can also kill, but will subtract from the score.
  • Adding particles and animations when a virus is destroyed.

GUI

  • Adding a hovering effect/animation for when the mouse hovers over one of the menu options
  • Running the game on a website where anyone can play anywhere any time!
  • Adding sound on/off menu button
  • Making an IOS application for the game

Features

  • Virus Collision
  • Global High Score
  • Main Menu
  • Game over screen
  • Sound effects
  • Help screen
  • Score Counter
  • Lives Counter

None of the code was written before the hackathon start time!

Built With

+ 19 more
Share this project:

Updates