Skip to content

Kirisaki00/2-D-RPG-Game-Using-Unity-Engine-

Repository files navigation

🎮 2D RPG Game (Unity)

🎮 Experience fluid combat, advanced movement mechanics, and dynamic enemy interactions in a fully modular state-driven system.


🎥 Gameplay Demo

👉 Click here to watch the demo

🧠 Core Architecture

This project is built using a custom State Machine Architecture, allowing clean, scalable, and maintainable gameplay systems.

⚙️ Base Systems

  • StateMachine.cs → Handles all state transitions
  • Entity.cs → Base class for all characters
  • EntityState.cs → Core logic for states

🧍 Player System

🎮 Player States

  • Idle, Move, Jump, Fall
  • Air State
  • Dash
  • Wall Slide
  • Wall Jump
  • Attack State
  • Jump Attack State
  • Grounded State
  • Death State

⚔️ Combat System

  • Combo-based attack chaining
  • Animation-triggered hit detection
  • Air combat support
  • Smooth transition between attack states

👾 Enemy System

🤖 Enemy Features

  • Modular enemy state system
  • Attack behavior
  • Health system
  • Death animations

🧩 Core Scripts

  • Enemy.cs
  • EnemyState.cs
  • Enemy_Health.cs

🧬 Entity System

Reusable components for all characters:

  • Entity_Combat.cs
  • Entity_Health.cs
  • Entity_AnimationTrigger.cs
  • Entity_VFX.cs

🌍 Environment & World

🗺️ Map System

  • Grid-based pixel map design
  • Clean tile-based structure

🌄 Parallax System

  • ParallaxBackground.cs
  • ParallaxLayer.cs

Adds depth and visual immersion to the game.


🎬 Animation System

  • Fully integrated Unity Animator
  • Animation events drive gameplay logic
  • Smooth blending between all states

⚡ Features Overview

  • ✔️ 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

📂 Project Structure

Assets/
├── Scripts/
│   ├── Core/
│   ├── Player/
│   ├── Enemy/
│   ├── Entity/
│   ├── Environment/
│
├── Animations/
├── Prefabs/
├── Scenes/

⚙️ Setup Instructions

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

🧠 What This Project Demonstrates

  • State Machine Design Pattern
  • Scalable Game Architecture
  • Combat System Implementation
  • Animation Event Integration
  • Modular Unity Development

🚀 Future Improvements

  • Boss AI & advanced enemy behaviors
  • Inventory & skill system
  • Sound effects & background music
  • Save/Load system

🤝 Contributing

Feel free to fork and improve the project!


✨ Author

Anupam Singh 💻 Game Developer | AI/ML Enthusiast


“Good code runs. Great code scales.” 🚀

About

A modular 2D RPG built with Unity, combining fluid combat, advanced movement mechanics, and a scalable state-driven architecture to create dynamic gameplay and intelligent enemy interactions.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages