1ae7190fd3a28bca1e79822ca975d6008b84cf2d
Decay Protocol
A fast-paced survival arcade game where the floor crumbles beneath your feet. Made with Unity 6 & C#
🕹️ High Concept
You are a rogue process in a dying mainframe. Every step you take corrupts the memory grid, causing the floor to disintegrate into the void.
- Never stand still: Idleness is death.
- Watch your step: You create the holes you must navigate.
- Survive the purge: Hunter processes and cleaning drones are trying to delete you.
🎮 Controls
- WASD / Arrow Keys: Move
- Space: Jump / Air recovery (Includes Coyote Time)
- R: Restart (After death)
✨ Key Features
- Procedural Decay: A "Swiss Cheese" map mechanic where every tile touched falls after 0.5s.
- Dynamic Difficulty: Tile decay speed and Enemy spawn rates increase as your score climbs.
- Combo System: Chain "Data Orb" collections within 2 seconds to multiply your score.
- Power-Up System:
- 🟡 Speed Boost: Move faster.
- 🟢 Hover: Immunity to gravity/holes for a short time.
- ⚪ Light-Footed: Walk without breaking tiles.
- 🔵 Time Slow: Slows down world time (Matrix style).
- Audio-Reactive Visuals: The neon grid pulses in sync with the BPM of the soundtrack.
🛠️ Technical Architecture
This project was built using a Clean Architecture (Ports & Adapters) approach to separate game logic from the Unity Engine API, ensuring testability and cleaner code.
- Core Domain:
GameSessionmanages the state, scoring, and rules purely in C# (no MonoBehaviours). - View Adapters:
TileViewAdapterandPlayerControllerhandle the visual representation and physics. - Pooling System: Custom
TilePoolto handle the high-frequency creation and destruction of grid tiles without GC spikes. - Input System: Built on the new Unity Input System package.
- Juice: Heavy use of
LeanTweenfor UI bounce, camera shake, and emission pulsing.
🔧 Installation
- Clone this repository.
- Open with Unity 6.
- Open scene:
Assets/Scenes/Game.unity. - Press Play.
📜 Credits
- Code & Design: [Your Name/Handle]
- Assets: Primitive shapes & Unity URP
- Tweening: LeanTween
Description
Languages
C#
79.5%
ShaderLab
11.6%
GLSL
3.4%
HLSL
3.1%
Mathematica
2.4%
