Skip to content

A space shooter game built with phaser 3. The player has to shoot down as many enemy ships as possible to score high. However, he must avoid being shot by enemy lasers or colliding with an enemy ship.

License

Notifications You must be signed in to change notification settings

Byabasaija/The-shooter

Repository files navigation

Shooter Ship

microverse

Description

A certain planet has been invaded by aliens. The invasion has been detected and a giant shooter ship has been sent to space to shoot the alien ships down before they cross the space to reach the plannet. Alien ships can shoot down the player's shooter ship and also can explode with it. Shooter ship therefore has to avoid being hit by any alien ship and must make sure he shoots as many alien ships as possible.

Visual representation

Screenshot

Live Demo Link

Play Live

Gameplay

To play the game follow the instruction below: Start To start playing, Enter your name for your score to be recorded and click the button PLAY

Movement instruction:

  • Player can use the left (←) arrow key to move left.
  • Player can use the right (→) arrow key to move right.
  • Player can use the up (↑) arrow key to move up.
  • Player can use the down (↓) arrow key to move down.

Battle instruction

  • Player can use the space bar to shoot down enemy ships.

  • If a player ship collides with enemy ship, both ships get destroyed and game is over

  • If enemy ship's laser shoots at players's ship it explodes and game is over

  • The player has to shoot as many enemy ships as he can to earn more points.

  • Payer can use the restart button to restart the gameplay

Leaderboard

  • To view the leaderboard, the player should click on the leaderboard image displayed when the game is over.

To get the game running on your local machine

Clone or fork the source code into your local machine

git clone https://github.com/Byabasaija/The-shooter.git

cd into the cloned directory using

cd directory-name/

Open the directory in your favorite code editor e.g if your using Vs code

code .

To install dependencies run

npm install

To open the game in your browser run

npm start

Running tests

In the root directory, run

npm run test

Built With

  • HTML
  • CSS
  • Linter
  • JS
  • Webpack
  • VScode
  • Phaser

Acknowledgements

I used Sprites from

Author

Pascal Byabasaija

🤝 Contributions

Contributions, issues and feature requests are welcome!

Feel free to check the issues page.

Show your Support

Give a ⭐ if you like this project!

About

A space shooter game built with phaser 3. The player has to shoot down as many enemy ships as possible to score high. However, he must avoid being shot by enemy lasers or colliding with an enemy ship.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published