This project consisted of building a shooter game that you can play on the browser using Phaser 3 library (JavaScript).
You are a space ship which is in the middle of a universe war and you have one objective: to destroy as many enemies as you can. You will have to cross the universe with the help of your laser shooter, avoiding being hit by the enemies or their lasers. This is an endless war so you have the opportunity to fight as long as you keep yourself alive.
- HTML5
- Phaser 3
- Vanilla JavaScript
Instructions
The player can:
- Move to the right, left, upwards, and downwards across the game's screen using arrow keys.
- Shoot enemies by pressing the Space key. The enemies can:
- Shoot player
The player's score will increase every time he destroys an enemy. The game is over when the player is shoot or touched by an enemy.
Pre-requisites
- Having NodeJS installed on your machine.
In case you use Git
-
Open terminal
-
Run the following commands:
git clone https://github.com/AlduLonghi/shooter-game.git
cd shooter-game
npm install
- Open index.html using a web server.
In case you don't use a control version system
-
Go to the repository
-
Press the green button that says "Code".
-
Press "Download zip".
-
Once downloaded, extract the files.
-
Right click on the folder, press "Open in terminal".
-
Run:
npm install
- Open index.html using a web server.
-
Open terminal
-
Run:
npm run test
👤 Aldana
-
Github: @AlduLonghi
-
Twitter: @AbrilLonghi
-
Linkedin: Aldana Abril Longhi
- To contribute to this project:
- Fork this repository & clone locally.
- Create an upstream remote and sync your local copy.
- Create a new branch.
- Push your code to your origin repository.
- Create a new Pull Request .
Give a ⭐️ if you like this project!
- Microverse curriculum.