/space-shooter-game

Primary LanguageJavaScriptMIT LicenseMIT

Space Shooter Game

Welcome to the Space Shooter Game! This is a simple browser-based game where you control a spaceship to shoot down enemy ships and avoid obstacles in space.

How to Play

  1. Controls:

    • Use the arrow keys (←, ↑, →, ↓) to move the spaceship.
    • Press the left key from mouse to shoot bullets.
  2. Objective:

    • Destroy as many enemy ships as possible without getting hit by them or colliding with obstacles.
    • Collect power-ups and bonuses to enhance your firepower and score.
  3. Game Over:

    • The game ends when your spaceship collides with an enemy ship or an obstacle.
    • Your final score will be displayed on the screen.

Getting Started

To run the game locally on your machine, follow these steps:

  1. Clone the repository to your local machine: git clone https://github.com/Bappy4u/space-shooter-game.git

  2. Navigate to the project directory:

    cd space-shooter-game
    
  3. Install dependencies:

    npm install
    
  4. Start the game:

    npm run start
    
  5. Now you'll see in the terminal that a live server is running for this project.

Features

  • Simple and intuitive gameplay.
  • Smooth spaceship controls using arrow keys.
  • Responsive design for various screen sizes.
  • Score tracking and display.
  • Random generation of enemy ships and obstacles for replayability.
  • Sound effects and visual feedback for actions.

Contributing

Contributions are welcome! If you have any ideas for improvements or new features, feel free to submit a pull request.

Credits

This project was created by Najmul H. Bappy.

License

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