2D Java Rogue-like rpg dungeon crawler game. (Screenshots below)
I implemented many features that LibGDX already supports out of curiosity.educational purposes. I would not recommend doing this in a final product.
- Procedurally generated levels
- 2D fragment based lighting
- Simple Game AI
- Pathfinding
- Targeting/Attacking/Etc.
- 100% custom GUI/Interface
- Custom windows and window management
- Custom widgets
- Custom event handling
- Experience/Leveling system
- Gain attribute points to improve your character by defeating dungeon monsters.
- Inventory management system
- Fast-paced gameplay
- Loot!
- Items/Loot can be found throughout the dungeon or by defeating dungeon monsters.
- Record keeping system
- Keeps track of various in-game stats (time played/attribute points spent/damage dealt/damage taken and many more)
- Allows for developers to quickly and easily add new stats to record with just two short lines of code.
- Custom asset/resource manager
- Ensures duplicate resources aren't loaded into memory.
- Ensures resources are disposed of correctly.
- Custom Animations system
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
-
Clone DungeonCrawler2 repo
-
Import DungeonCrawler2 into Eclipse as a Gradle project
- Import
- Gradle
- Existing Gradle Project
- Gradle
- Welcome Window
- No actions, hit next
- Import Gradle Project
- Selected the project root directory
- ex. C:\Users<user>\Documents\GitHub\DungeonCrawler2
- Hit next
- Selected the project root directory
- Import Options Window
- No actions, hit next
- Import Preview
- If the preview loaded correctly, finish and move on.
- else:
- Error #1
- Gradle user home directory: Unknown - Gradle distribution: Gradle wrapper from target build - Gradle version: Unknown - Java home directory: Unknown - Error: Could not fetch model of type 'BuildEnvironment' using Gradle distribution '/htts://services.gradle.org/distributions/gradle-6.1-rc-1-bin.zip' - Caused by: java.lang.IllegalArgumentException: Value 'C:\Program Files\Java\jdk-12.0.1' given for org.gradle.java.home Gradle property is invalid (Java home supplied is invalid)
- Solution:
- Navigate to .../DungeonCrawler2/gradle.properties
- change org.gradle.java.home to your java jdk home/version
- Ex: "org.gradle.java.home=C:\Program Files\Java\jdk-12.0.1
- Run gradlew.bat (not sure this is necessary)
- Delete the project from eclipse
- NOTE: Do NOT delete project from disk, only from eclipse.
- Reimport the project
- There's probably an easier way to refresh the gradle project but I don't know what it is.
- Error #1
- Import
-
Set DungeonCrawler2 to use the assets folder
- Right-click "DungeonCrawler2-desktop" (in Eclipse project explorer)
- Run As
- Run Configurations
- Arguments (tab)
- Under "Working directory:"
- Change from "Default" to "Other"
- "Workspace..." (button)
- Select "DungeonCrawler2 > core > assets"
- "OK" (button)
-
Starting the game
- Launch DungeonCrawler2-desktop > src > ecu.se.desktop > DesktopLauncher.java as Java Application
- LibGdx - The graphical framework
- Jason Cole
This project is licensed under the MIT License - see the LICENSE.md file for details