This repository contains the source code for a Stick Hero game implemented in JavaFX.
The Stick Hero game is a simple game where the player controls a stick figure to cross gaps between two pillars. The player needs to accurately estimate the length of the gap and extend the stick accordingly to bridge the gap.
To run the game, make sure you have Java installed on your system. Clone the repository, then compile and run the Game.java
file.
git clone https://github.com/yourusername/your-repository.git
cd your-repository/src/com/game/ap_project
javac *.java
java Game
- Press the spacebar to extend the stick.
- Release the spacebar to stop extending the stick.
- Use arrow keys to flip the stick figure horizontally.
- Navigate through the gaps between the pillars to earn points.
- The game ends if the stick is not long enough to bridge the gap or if the stick figure falls.
- Dynamic gameplay with accurate stick length estimation.
- Sound effects for stick extension, stick falling, and game ending.
- Score tracking and high score display.
- Revive option to continue the game with collected cherries.
This project is licensed under the MIT License - see the LICENSE file for details.