Skip to content

LunguGeorgeProgramator/LGK2Dgame

Repository files navigation

LGK2Dgame

Basic 2d game made in java 24, using a free tutorial.

Packages

Java 24 gradle-8.14

How to run

Run command

./gradlew run

When the game window opens, use the W, A, S, and D keys to move the playable character.

To remove all picked-up items from the map, use main menu button "Start New Game" to clear the player's inventory.

00 12 11 15 14 13

How to build a windows exe ?

Run the following commands to build the project and generate the .exe

./gradlew clean build
./gradlew run
./gradlew shadowJar
./gradlew launch4j

The generated executable will be located at:

LGK2Dgame/build/home/georgel/IdeaProjects/LGK2Dgame/build/exe/LGK2DGame.exe
LGK2Dgame/build/home/georgel/IdeaProjects/LGK2Dgame/build/libs/LGK2DGame-1.0-SNAPSHOT.jar

For non-Windows users, please use the following JAR commands:

 java -jar build/libs/LGK2DGame.jar
 java -jar LGK2DGame.jar

For convenience, I've also included a pre-built .exe

⚠️ If you prefer not to run the included .exe , feel free to build it yourself using the commands above.

About

Basic 2d game made in java 24, using a free tutorial.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages