🎮 Experience fluid combat, advanced movement mechanics, and dynamic enemy interactions in a fully modular state-driven system.
👉 Click here to watch the demo
This project is built using a custom State Machine Architecture, allowing clean, scalable, and maintainable gameplay systems.
StateMachine.cs→ Handles all state transitionsEntity.cs→ Base class for all charactersEntityState.cs→ Core logic for states
- Idle, Move, Jump, Fall
- Air State
- Dash
- Wall Slide
- Wall Jump
- Attack State
- Jump Attack State
- Grounded State
- Death State
- Combo-based attack chaining
- Animation-triggered hit detection
- Air combat support
- Smooth transition between attack states
- Modular enemy state system
- Attack behavior
- Health system
- Death animations
Enemy.csEnemyState.csEnemy_Health.cs
Reusable components for all characters:
Entity_Combat.csEntity_Health.csEntity_AnimationTrigger.csEntity_VFX.cs
- Grid-based pixel map design
- Clean tile-based structure
ParallaxBackground.csParallaxLayer.cs
Adds depth and visual immersion to the game.
- Fully integrated Unity Animator
- Animation events drive gameplay logic
- Smooth blending between all states
- ✔️ Advanced Player Movement (Dash, Wall Jump, Slide)
- ✔️ Combo-based Combat System
- ✔️ Enemy AI with attack & death
- ✔️ Modular State Machine Architecture
- ✔️ Parallax Background System
- ✔️ Grid-based Level Design
Assets/
├── Scripts/
│ ├── Core/
│ ├── Player/
│ ├── Enemy/
│ ├── Entity/
│ ├── Environment/
│
├── Animations/
├── Prefabs/
├── Scenes/
git clone https://github.com/Kirisaki00/2-D-RPG-Game-Using-Unity-Engine-.git- Open project in Unity Hub
- Load the main scene
- Press
▶️ Play
- State Machine Design Pattern
- Scalable Game Architecture
- Combat System Implementation
- Animation Event Integration
- Modular Unity Development
- Boss AI & advanced enemy behaviors
- Inventory & skill system
- Sound effects & background music
- Save/Load system
Feel free to fork and improve the project!
Anupam Singh 💻 Game Developer | AI/ML Enthusiast
“Good code runs. Great code scales.” 🚀