Demolish buildings in a cosmic city, power up through destruction, unleash devastating special attacks, and destroy the Planet Core before time runs out!
Cosmic Demolition is a fast-paced action game built with Unity where players rampage through a futuristic space city, demolishing buildings with explosive destruction effects. As you destroy buildings, your power builds up — once fully charged, you transform and unlock a devastating special attack. The ultimate goal: reach a score of 1,000,000, break through the Planet Core's barrier, and obliterate it before time runs out.
This project was developed alongside my mentoring work at Life Is Tech, Inc. in Tokyo, where I guided high school students through game development using Unity and C#. It demonstrates core game development concepts including physics-based destruction, particle systems, power-up mechanics, and game state management.
👉 Play instantly in your browser on unityroom!
No download or installation required — just click and play!
| Details | |
|---|---|
| 🏆 Ultimate Goal | Destroy the Planet Core |
| ✅ Win Condition | Reach a score of 1,000,000 within the time limit while maintaining your energy, then destroy the Planet Core |
| ❌ Fail Condition | Time runs out OR energy is depleted |
| Action | Input |
|---|---|
| Move | W A S D |
| Look Around | Mouse |
| Normal Attack | Left Click |
| Special Attack | Right Click (unlocked at 5,000 score) |
| Fly / Descend | Space |
- Destructible by all attacks
- Some facilities drop energy recovery items upon destruction
- Can only be destroyed by Special Attack
- Yield high scores — worth the effort!
- Destroying these drains your energy
- Some are visually indistinguishable from normal buildings — proceed with caution!
- Becomes attackable only after reaching a score of 1,000,000+
- Destroy it to complete the mission!
- Destroy buildings → Power gauge fills up
- Gauge fully charged → Character powers up and transforms
- Special Attack unlocked → Use Right Click to unleash it on reinforced buildings
- Resource management is key: collect energy recovery items while avoiding traps
| Cosmic City | Building Auras |
|---|---|
![]() |
![]() |
| Destruction Effects | Power-Up Transformation | Special Attack |
|---|---|---|
![]() |
![]() |
![]() |
- Spectacular particle effects on every building destroyed
- Screen-shaking impact feedback for an immersive experience
- Debris and explosion effects that feel incredibly satisfying
- Energy management: Recovery items vs. energy-draining traps
- Risk vs. reward: High-scoring red aura buildings require special attacks
- Time pressure: Must reach 1,000,000 before the clock runs out
| Technology | Purpose |
|---|---|
| Unity | Game engine |
| C# | Game logic, physics, and scripting |
| Particle System | Destruction effects and visual feedback |
| Unity Physics | Building destruction and debris mechanics |
- Destruction System — Handles building damage, breakage physics, and debris spawning with satisfying visual feedback
- Aura System — Assigns visual indicators to buildings, determines destructibility rules, and calculates score multipliers
- Power-Up System — Tracks destruction power accumulation, triggers character transformation, and unlocks special attack
- Energy Manager — Manages player energy, handles recovery item pickups, and processes energy-drain trap effects
- Score Manager — Calculates points per destruction, tracks progress toward the 1,000,000 target, and controls Planet Core barrier state
- Clone the repository:
git clone https://github.com/yoshi-4/unity-game-demo.git





