A small arcade game inspired by Snake, built with Unity and C#.
NuoiHair is a small arcade game inspired by the classic Snake gameplay.
Control a character with magical hair, collect food to increase hair length, avoid dangerous obstacles, and reach the target length to win the game.
While the gameplay is simple, this project focuses on building clean and maintainable game architecture using common Unity development patterns.
Note: This project is a recreation of an existing game concept found online and was developed for educational purposes. The primary goal was to practice gameplay programming, State Machine architecture, Event-Driven communication, and Object Pooling techniques in Unity.
This project was recreated as a learning exercise based on a tutorial/gameplay example by [Làm Game Dạo].
Original Tutorial:
The purpose of this project was to practice Unity development concepts such as State Machines, Event-Driven Architecture, and Object Pooling while recreating the core gameplay mechanics.
- Unity Engine
- C#
- State Machine
- Action Events
- Object Pooling
| Key | Action |
|---|---|
| W A S D | Move |
| K | Boost Speed |
- Collect food to grow your hair.
- Avoid obstacles.
- Reach the target hair length.
- Use Boost strategically because it consumes hair length.
- Hair Growth System
- Boost Mechanic
- Food Collection
- Obstacle Avoidance
- Win / Lose Conditions
- Dynamic Hair Length UI
- Object Pooling System
Built with a focus on clean, modular, and scalable architecture.
| Pattern | Purpose |
|---|---|
| 🎭 State Machine | Handles Player and Game States |
| ⚡ Action Events | Event-driven communication between systems |
| ♻️ Object Pooling | Reuses Food and Obstacle objects efficiently |
- 🎮 Player State Management
- 🏆 Game State Management
- ⚡ Event-Driven Architecture
- ♻️ Optimized Object Spawning
- 🧩 Modular & Easy To Extend