A Unity-based 2D game that simulates the spread of COVID-19 and the importance of wearing masks during the pandemic. Players control a character who must navigate through a world where coronavirus particles spread, and wearing a mask becomes crucial for survival.
Covid-Time is an educational game that demonstrates the real-world impact of mask-wearing during the COVID-19 pandemic. Players experience:
- Virus Spread Simulation: Watch how coronavirus particles spread through cough particles
- Mask Protection: Experience the difference between wearing and not wearing a mask
- Health Management: Manage your character's health as they encounter virus particles
- Educational Value: Learn about the importance of protective measures
- 2D Top-Down Movement: Smooth character movement using joystick controls
- Health System: Real-time health tracking with visual health bar
- Mask Mechanics: Collect masks from pharmacies to protect against virus particles
- Virus Particles: Dynamic cough particle system that spreads the virus
- AI Pathfinding: Infected characters use A* pathfinding to chase the player
- Unity 2019.3.10f1: Built with Unity's 2D system
- A Pathfinding*: Advanced AI navigation using the A* Pathfinding Project
- Particle Systems: Realistic cough particle effects
- Mobile Controls: Touch-friendly joystick controls
- Spine Animation: 2D skeletal animation support
- Unity 2019.3.10f1 or later
- Git LFS (for large binary files)
-
Clone the repository:
git clone https://github.com/yourusername/Corona-Time.git cd Corona-Time -
Download large files with Git LFS:
git lfs pull
-
Open the project in Unity:
- Launch Unity Hub
- Click "Add" and select the
CoronaUnity2folder - Open the project
-
Open the main scene:
- Navigate to
Assets/Scenes/ - Open
corona-6-5.unityormain.unity
- Navigate to
- Platform: Mobile (Android/iOS) or PC
- Graphics API: OpenGL ES 3.0 (Mobile) / DirectX 11 (PC)
- Scripting Backend: IL2CPP
- Movement: Use the left joystick to move your character
- Mask Collection: Visit pharmacies to collect masks
- Avoidance: Stay away from virus particles and infected characters
- Survive: Keep your health above 0
- Get Masked: Visit pharmacies to get protective masks
- Avoid Infection: Stay away from virus particles
- Help Others: Understand the importance of mask-wearing
- Health System: Your health decreases when touching virus particles
- Mask Protection: Wearing a mask reduces virus particle spread
- Virus Spread: Cough particles spread the virus to nearby characters
- AI Behavior: Infected characters will chase you using pathfinding
Corona-Time/
├── CoronaUnity2/ # Main Unity project
│ ├── Assets/
│ │ ├── Scripts/ # Core game scripts
│ │ │ ├── PlayerController.cs
│ │ │ ├── CoronaController.cs
│ │ │ └── CameraController.cs
│ │ ├── Scenes/ # Game scenes
│ │ │ ├── main.unity
│ │ │ └── corona-6-5.unity
│ │ ├── Art/ # Graphics and materials
│ │ ├── Prefabs/ # Reusable game objects
│ │ ├── Tiles/ # Tilemap assets
│ │ ├── Joystick Pack/ # Mobile controls
│ │ └── AstarPathfindingProject/ # AI pathfinding
│ ├── ProjectSettings/ # Unity project settings
│ └── Packages/ # Unity packages
├── LICENSE # MIT License
└── README.md # This file
PlayerController.cs: Handles player movement, mask collection, and collision detectionCoughParticle.cs: Manages virus particle emission and spreadhealth.cs: Player health system and damage handlingmaskCollide.cs: Mask collision detection and activationCoronaController.cs: Infected character AI behavior
CameraController.cs: Camera follow and positioninghealthbar.cs: Health bar UI managementparticleLauncher.cs: Particle system controlshooting.cs: Projectile system (if implemented)
- A Pathfinding Project*: Advanced AI navigation
- Joystick Pack: Mobile touch controls
- Spine Runtime: 2D skeletal animation support
- Tilemaps: 2D environment tiles
- Sprites: Character and UI graphics
- Particle Effects: Cough and virus particles
- Audio: Sound effects and music (if any)
The project has been updated to resolve A* Pathfinding Project compilation errors:
- Fixed
ASTAR_NO_ZIPdefine for custom zip implementation - Updated
GraphSerializationContextproperty names - Resolved namespace and assembly reference issues
- Particle systems may impact performance on lower-end devices
- A* pathfinding calculations can be CPU-intensive with many AI agents
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Unity Technologies: Game engine and development tools
- Aron Granberg: A* Pathfinding Project
- Spine: 2D skeletal animation runtime
- Joystick Pack: Mobile control system
If you encounter any issues or have questions:
- Check the Issues page for existing problems
- Create a new issue with detailed information
- Include Unity version and platform information
Note: This game was created for educational purposes to raise awareness about COVID-19 safety measures. It is not intended as medical advice.
