Covid-19 Fighter is a 2D side-scroller game developed in Unity where players control a robot fighting against COVID-19 viruses. The game features a robot character that can move, jump, shoot, and interact with various game elements.
- Move: Use the horizontal arrow keys or A/D keys to move the robot left or right.
- Jump: Press the Space key to make the robot jump.
- Shoot: Press the left mouse button or the Fire1 button to shoot projectiles at the enemies.
- Power-ups: Collect batteries to temporarily increase the robot's movement speed.
- Upgrades: The robot can gain permanent upgrades via the in-game shop.
- Health: The robot has a health bar that decreases when hit by enemies. If the health reaches zero, the game ends.
The game includes several scripts that control different aspects of the gameplay. Here are some examples:
- RobotPlayer.cs: This script manages the player's movement, shooting, health, and interactions with the game environment. It handles inputs from the player and updates the robot's position, animations, and shooting behavior.
- HealthBar.cs: This script displays and updates the robot's health bar UI.
- Shot.cs: This script controls the behavior of the robot's projectiles, including movement and collision detection.
To play the game, simply download the available build from the 'Builds' folder and run the compiled executable.
You can customize various aspects of the game to suit your preferences by downloading and compiling the project following these steps:
- Install Unity on your computer if you haven't already.
- Clone or download the game project from the repository.
- Open the project in Unity.
- Set up the game scene, including the robot character, enemies, and other game elements.
- Build and run the game in Unity's Play mode or export it to your preferred platform.
- Enemy Behavior: Adjust the enemy movement, attack patterns, and health values to provide different levels of challenge.
- Graphics and Assets: Replace the default robot character, enemy sprites, background, and other assets with your own artwork.
- Level Design: Create new levels or modify existing ones by adding platforms, obstacles, power-ups, and enemy placements.
The game is built using the Unity game engine. Make sure you have Unity installed on your machine to work with the project.
Contributions to the game project are welcome. If you have any ideas, bug fixes, or improvements, feel free to open an issue or submit a pull request on the GitHub repository.
This game is released under the MIT License.