Basic 2d game made in java 24, using a free tutorial.
Java 24 gradle-8.14
Run command
./gradlew run
When the game window opens, use the W, A, S and D keys to move the white rectangle.
To remove all picked-up items from the map, press the P key to clear the player's inventory.
Run the following commands to build the project and generate the .exe
./gradlew clean build
./gradlew launch4j
The generated executable will be located at:
LGK2Dgame/build/home/georgel/IdeaProjects/LGK2Dgame/build/exe/LGK2DGame.exe
For convenience, I've also included a pre-built .exe
.exe , feel free to build it yourself using the commands above.