Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 1.43 KB

README.md

File metadata and controls

44 lines (29 loc) · 1.43 KB

Stick Hero Game

This repository contains the source code for a Stick Hero game implemented in JavaFX.

Description

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.

Installation

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

Usage

  • 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.

Features

  • 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.

Screenshots

Homescreen Gameplay Game Over

License

This project is licensed under the MIT License - see the LICENSE file for details.