Skip to content

gbo999/Covid-Time

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Covid-Time 🦠

Gameplay Screenshot

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.

🎮 Game Overview

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

🚀 Features

Core Gameplay

  • 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

Technical Features

  • 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

🛠️ Setup Instructions

Prerequisites

  • Unity 2019.3.10f1 or later
  • Git LFS (for large binary files)

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/Corona-Time.git
    cd Corona-Time
  2. Download large files with Git LFS:

    git lfs pull
  3. Open the project in Unity:

    • Launch Unity Hub
    • Click "Add" and select the CoronaUnity2 folder
    • Open the project
  4. Open the main scene:

    • Navigate to Assets/Scenes/
    • Open corona-6-5.unity or main.unity

Build Settings

  • Platform: Mobile (Android/iOS) or PC
  • Graphics API: OpenGL ES 3.0 (Mobile) / DirectX 11 (PC)
  • Scripting Backend: IL2CPP

🎯 How to Play

Controls

  • 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

Objectives

  1. Survive: Keep your health above 0
  2. Get Masked: Visit pharmacies to get protective masks
  3. Avoid Infection: Stay away from virus particles
  4. Help Others: Understand the importance of mask-wearing

Game Mechanics

  • 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

📁 Project Structure

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

🔧 Key Scripts

Core Gameplay Scripts

  • PlayerController.cs: Handles player movement, mask collection, and collision detection
  • CoughParticle.cs: Manages virus particle emission and spread
  • health.cs: Player health system and damage handling
  • maskCollide.cs: Mask collision detection and activation
  • CoronaController.cs: Infected character AI behavior

Utility Scripts

  • CameraController.cs: Camera follow and positioning
  • healthbar.cs: Health bar UI management
  • particleLauncher.cs: Particle system control
  • shooting.cs: Projectile system (if implemented)

🎨 Assets and Dependencies

Third-Party Assets

  • A Pathfinding Project*: Advanced AI navigation
  • Joystick Pack: Mobile touch controls
  • Spine Runtime: 2D skeletal animation support

Custom Assets

  • Tilemaps: 2D environment tiles
  • Sprites: Character and UI graphics
  • Particle Effects: Cough and virus particles
  • Audio: Sound effects and music (if any)

🐛 Known Issues

Compilation Issues

The project has been updated to resolve A* Pathfinding Project compilation errors:

  • Fixed ASTAR_NO_ZIP define for custom zip implementation
  • Updated GraphSerializationContext property names
  • Resolved namespace and assembly reference issues

Performance Considerations

  • Particle systems may impact performance on lower-end devices
  • A* pathfinding calculations can be CPU-intensive with many AI agents

🤝 Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

  • Unity Technologies: Game engine and development tools
  • Aron Granberg: A* Pathfinding Project
  • Spine: 2D skeletal animation runtime
  • Joystick Pack: Mobile control system

📞 Support

If you encounter any issues or have questions:

  1. Check the Issues page for existing problems
  2. Create a new issue with detailed information
  3. 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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages