Description This project is a 2D sandbox game built with Java, Gradle, LWJGL, ImGui, JBox2d, and GSON. It offers an immersive and interactive gaming experience where players can explore, build, and interact with a dynamic world.
- Exploration: Discover a vast and procedurally generated world filled with unique landscapes, biomes, and caves.
- Building: Create and design your own structures, houses, and buildings using a variety of materials.
To clone and build the project locally, follow these instructions:
-
Ensure you have Java Development Kit (JDK) installed on your system. If not, download and install the latest version of JDK appropriate for your operating system.
-
Install Git, if not already installed, and set it up with your preferred Git client.
-
Open a terminal or command prompt and navigate to the directory where you want to clone the project.
-
Clone the repository by running the following command:
git clone https://github.com/azhan3/Java-Game.git
-
Once the cloning is complete, navigate tot he project directory:
cd root-directory
-
Build the project using Gradle
./gradlew build
-
Run the game:
./gradlew run
This will launch the game, and you can now start playing!
Action | Key |
---|---|
Movement | Use the arrow keys or WASD keys to move the character |
Jump | Press the spacebar or W key to make the character jump |
Break Blocks | Use the left mouse button to break blocks |
Place Block | Select a block from your inventory and right-click to place it in the world |
This project is licensed under the MIT License.
- LWJGL - Lightweight Java Game Library.
- ImGui - Immediate mode GUI library.
- JBox2D - Java physics engine.
- GSON - Java library for JSON serialization and deserialization.