Skip to content

This is a never-ending game. User faces different alien ships at random times. User uses laser (Space) to shoot and explode enemy ships. Every different enemy ship shot adds a differnet point to the user's score. When the user's ship is shot by an enemy laser, or an enemy ship touches the user's ship, the game ends. The user can restart the game…

Notifications You must be signed in to change notification settings

verissimohenry/Shooter-game

Repository files navigation

Shooter-game

Javascript-Capstone Project: Build a Shooter Game

Shooter-game

Capstone project in the Microverse JavaScript Curriculum

Implementation of a Space Shooter Game built with the Phaser 3 framework

About The Project

The main goal of this project is to build a platform game. Phaser and Javascript are the main technologies used to develop this project.

Live version of the project: Live version

Project Link: Javascript-Capstone

The game

This is a never-ending game. The user faces different alien ships at random times. The user uses a laser (Space) to shoot and explode enemy ships. Every different enemy ship shot adds a different point to the user's score. When the user's ship is shot by an enemy laser, or an enemy ship touches the user's ship, the game ends. The user can restart the game. Also, users' high scores are stored in an API, and users can display the highest ten scores in the scoreboard scene.

Game design

The game uses one laser sprite, one user ship, four enemy ships, and two backgrounds. Two backgrounds are displayed on each other to create a more interesting background and higher contrast. The user ship is black and white to have high contrast with the background. The enemy ships have fantastic designs, and they are relatively more colored to create confusion with the dark background with low contrast. There is background music, and explosion sounds in the game.

Screenshort

Screenshot

Screenshot

Screenshot

Screenshot

User Ship

Screenshot

Enemy ships

  • Chaser Ship

Screenshot

  • Carrier Ship

Screenshot

  • Gun Ship

Screenshot

  • Hollow Ship

Screenshot

Laser

Screenshot

Explosion Sprite

Screenshot

How to Play

  • Input your name on the first page and click the submit button, There is a menu on the next page which are Play, Options, Credits and Scoreboard. You can disable the sound in the options menu. Click on the play menu to start your game. You can move around the screen using W, S, D, and A keys and use the Space Bar to shoot whenever you see an enemy.

Get a local copy

npm required - get npm

Installation

You can play the game on live version, or install it locally using the following steps:

Clone the repository by running this command in your terminal

$ [email protected]:verissimohenry/Shooter-game.git

Navigate into the newly created folder

$ cd phaser-js-game

Get the dependencies needed for the game

$ npm install

Start the server

$ npm start

Visit this link to see the game in your browser

http://localhost:8080/

Run Jest tests

$ npm run test

Technologies used

Author

👤 Verissimo Henry

Contributing

Contributions, issues and feature requests are welcome!

Show your Support

Give a ⭐️ if you like this project!

Acknowledgments

About

This is a never-ending game. User faces different alien ships at random times. User uses laser (Space) to shoot and explode enemy ships. Every different enemy ship shot adds a differnet point to the user's score. When the user's ship is shot by an enemy laser, or an enemy ship touches the user's ship, the game ends. The user can restart the game…

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages