Skip to content

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

Notifications You must be signed in to change notification settings

shubham22490/Stick-Hero-Game-clone-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published