Welcome to Geometry Dash, an exciting Java game developed using the Swing library. In this thrilling adventure, you control a nimble cube, navigating through a challenging terrain filled with spikes, all while striving to achieve the highest score.
- Ensure that Java is installed on your machine.
- Download and install IntelliJ IDEA or VSCode to run this game seamlessly.
-
Navigate to the project folder:
cd GeometryDash -
Run the game:
javac src/Main.java java src.Main
- Jump: Press the Spacebar or click to make the cube jump.
- Avoid Spikes: Navigate through the game, avoiding spikes to stay alive.
- Reset Game: Press R to reset the game.
- Graphics: Customize the game visuals by replacing images in the
imagesfolder. - Scripts: Explore and modify game mechanics in the
srcfolder. - Audio: Adjust volume levels and sounds in the
soundsfolder.
Explore the key files in the src folder:
- Main.java: The main class to run the game.
- GeometryDash.java: The main class representing the Geometry Dash game.
- Cube.java: Class representing the player's cube.
- Actor.java: Class for in-game actors, such as spikes.
- ZRect.java: Class for a simple rectangle used in the Cube class.
- Sound.java: Class representing in-game sounds.
