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.
- 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).
- 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
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
- Encapsulation: Each game object manages its own state and logic.
- Inheritance: Enemy types extend from a base
Enemyclass. - Polymorphism: Game handles enemies and items using shared interfaces or base classes.
- Abstraction: Modular design of combat, health, and item systems.
- Language: C#
- Engine: Unity
- IDE: Visual Studio
- Version Control: Git
| 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 |
- Move using arrow keys or WASD
- Dash with Space
- Attack with your equipped weapon
- Switch weapons with keys 1–3
- Collect items and survive waves of enemies!
https://www.youtube.com/playlist?list=PLGAdiPHW4pkn1NOUXo3k11GhYlnXGieTf