Space-Invader-Game-JavaFX

Space Shooter Game in JavaFX

Table of Contents

Overview

Space Shooter is a simple, lightweight but engaging JavaFX-based game where players navigate a spaceship, avoiding enemies and obstacles while trying to achieve the highest score possible. The game incorporates features such as enemy spawn logic, collision detection, power-ups, and a scoring system, showcasing the capabilities of JavaFX in creating interactive 2D games.

User Interface

Start Screen

Space Shooter Game Start Screen

Gameplay

Space Shooter Game Interface

Instructions

Space Shooter Game Instructions

Losing Screen

Space Shooter Game Losing Screen

Features

Prerequisites

Setup and Installation

  1. JavaFX SDK: Download the JavaFX SDK from OpenJFX and extract it to a known directory.
  2. Maven Configuration: Ensure Maven is installed on your system and correctly configured. Alternatively, you can use an IDE like IntelliJ IDEA or Eclipse that supports Maven projects.
  3. Clone the Repository:
     git clone https://github.com/hoangsonww/Space-Invader-Game-JavaFX.git
     cd Space-Invader-Game
    
  4. Update pom.xml: Modify the javafx-sdk.path property in the pom.xml file to point to the JavaFX SDK’s location on your system. This is necessary for Maven to build the project correctly.
  5. Build the Project:
     mvn clean install
    
  6. Run the Application:
     mvn javafx:run
    

    If you’re using an IDE like IntelliJ IDEA, you can run the SpaceShooter.java file directly to start the game.

Necessary Configuration

Ensure JavaFX is correctly set up in your development environment:

How to Play

Contributing

Contributions to the Space Shooter game are welcome! Please fork the repository, make your changes, and submit a pull request with your improvements.

License

This project is licensed under the Creative Commons License. See the LICENSE file for more information.

Author


Created with ❤️ by Son Nguyen in 2024.