// GAMES
Get Rid of the Virus
A survival game where the player avoids viruses coming from different directions.

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
-
Python 3.x (https://www.python.org/downloads/)
-
Pygame 2 (required)
pip install pygame==2.0.0.dev2
How to run
- Clone or download the repository.
- Install the required Pygame version.
- 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.