// GAMES

Get Rid of the Virus

A survival game where the player avoids viruses coming from different directions.

ROLEDeveloper
TEAMSolo project
CONTEXTPersonal project
CREATED2020
PythonPygame
Get Rid of the Virus gameplay

Overview

Get Rid of the Virus is a small Pygame survival game inspired by The Incredibles.

You play as Jack-Jack and try to survive as long as possible while avoiding viruses coming from different directions. The longer you survive, the faster they get.

Technical approach

The game focuses on:

  • Player movement and controls
  • Random virus spawning
  • Collision detection
  • Increasing difficulty
  • Score tracking
  • Background music and sound effects

The virus can appear from the top, bottom, left, or right. Its speed increases as the player’s score increases.

Requirements

How to run

  1. Clone or download the repository.
  2. Install the required Pygame version.
  3. Run the game with: python3 getRidOfVirus.py

Lessons learned

This was a fun little project for getting into game development with Python and Pygame. I got to play around with things like movement, collision detection, random spawning of threats, and adjusting the difficulty as the score increases.

I also made the background music myself in GarageBand, which was probably the most fun part. It’s a simple game, but I had fun coding it and making the audio for it.