Skip to content

Latest commit

 

History

History
67 lines (50 loc) · 2.22 KB

README.md

File metadata and controls

67 lines (50 loc) · 2.22 KB

Stick Hero Game

Stick Hero is a simple JavaFX game where the player controls a character who extends a stick to cross platforms and avoid obstacles. The game features dynamic stick extension, character movement and cherry collection.

Table of Contents

Prerequisites

To run the Stick Hero Game, you need the following:

  • Java Development Kit (JDK) installed on your machine.
  • JavaFX library (included in JavaFX SDK or can be added as a separate library).

Installation

  1. Clone or download the Stick Hero Game repository to your local machine.
  2. Ensure that you have the required Java Development Kit (JDK) installed.
  3. Open the project in your preferred Java Integrated Development Environment (IDE).
  4. Set up the JavaFX library in your IDE (if not included).
  5. Run the HelloController class to start the game.

How to Play

  1. Launch the game by running the application.
  2. Use the SPACEBAR to extend the stick.
  3. Release the SPACEBAR to drop the stick.
  4. Press the DOWN ARROW to move the character upside down.
  5. Collect cherries to increase your score.
  6. Cross the gap between platforms by extending the stick.
  7. Avoid obstacles and aim for the highest score.

Game Controls

  • SPACEBAR: Extend the stick.
  • DOWN ARROW: Move the character upside down.
  • UP ARROW: Move the character back up.

Features

  • A How to Play screen with game instructions.
  • Dynamic stick extension controlled by the player.
  • Character movement and obstacle avoidance.
  • Obstacle generation with random widths and gaps.
  • Real-time scoring system.
  • Cherry collection for score bonuses.
  • Character can move upside down.

Game Rules

  • The player must extend the stick to cross the gap between platforms.
  • The stick must be long enough to reach the next platform.
  • If the character falls down, press spacebar to go to the end.
  • Colliding with obstacles ends the game.
  • Collecting cherries increases the player's score.
  • The character can move upside down for added challenge.

Credits

  • Vikranth Udandarao
  • Anushka Korlapati