Skip to content

About

Top-down 2D RPG built in Unity with C# — Object-Oriented Programming group project, Universiti Teknologi PETRONAS (2025)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

🗡️ 2D RPG Game – OOP Semester Project (May 2025)

A top-down 2D role-playing game (RPG) developed in Unity with C# as part of our Object-Oriented Programming course. This project demonstrates key OOP principles through engaging gameplay involving exploration, combat, and item collection.

🎮 Game Overview

  • Explore a hand-crafted pixel world.
  • Battle various enemy types with unique behaviors.
  • Collect coins, potions, and power-ups.
  • Survive using health and stamina systems.
  • Customize your experience with multiple weapons (sword, bow, magic).

✨ Features

  • 2-directional player movement with dash ability
  • Enemies with AI states (roam, attack, cooldown)
  • Destructible environment (bushes, barrels, etc)
  • Weapon system (sword, bow & magic laser)
  • Cooldown and switching mechanics
  • Health & Stamina UI
  • Custom cursor
  • Drop/pickup system (coins, hearts, stamina globes)
  • Multiple enemy types (ghosts, bullet-attackers, grape enemy)
  • Scene transitions and 2D lighting
  • Player death and respawn logic

📚 Acknowledgements

This project was inspired and guided by the excellent Unity 2D RPG tutorial series by darkswear on YouTube: https://youtube.com/playlist?list=PL6bqhqO0Ba776ksb3F9P_xmUMT9WvmfFT&si=MBKfWkkTK2ZdHaH5

🧠 Object-Oriented Programming Concepts

  • Encapsulation: Each game object manages its own state and logic.
  • Inheritance: Enemy types extend from a base Enemy class.
  • Polymorphism: Game handles enemies and items using shared interfaces or base classes.
  • Abstraction: Modular design of combat, health, and item systems.

🛠️ Tools & Technologies

  • Language: C#
  • Engine: Unity
  • IDE: Visual Studio
  • Version Control: Git

👥 Team Members & Contributions

Name ID Role
Mohamad Hamie Azwar Bin Hamid 24008760 Core gameplay systems, combat mechanics, enemy AI, camera setup
Nurul Amira Alisha Binti Mohd Azli 24008803 Environment interaction, scene transitions, 2D lighting, UI
Vyshnavee A/P Ramakrishnan 24007751 Weapon systems (bow, laser), animation integration
Muhammad Fahim Amzar Bin Faris Fahmi 24007889 Health system, enemy bullets, ghost enemies, interface consistency
Safiyy Aiman Danish Bin Abdul Rahaman 24001119 Coins, health UI, enemy knockback & oscillation
Ahmad Mujahid Bin Mohamad Rizza 24007876 Item drop system, stamina system, death/respawn logic, economy manager

📌 How to Play

  1. Move using arrow keys or WASD
  2. Dash with Space
  3. Attack with your equipped weapon
  4. Switch weapons with keys 1–3
  5. Collect items and survive waves of enemies!

Video Demo

https://www.youtube.com/playlist?list=PLGAdiPHW4pkn1NOUXo3k11GhYlnXGieTf

About

Top-down 2D RPG built in Unity with C# — Object-Oriented Programming group project, Universiti Teknologi PETRONAS (2025)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages