Game was developed in Phaser 3 and JavaScript
Head over to this link and press play to start.
Objectives of the game: Simply survive the enemy hoard and rack up the highest score you can.
Controls: Use W A S D on your keyboard to move your hitman. Press spacebar to fire your weapon and destroy those creatures.
Before starting the game, you will be prompted to enter your name (just so you can brag to your friends when you get the highest score) and you won't need to enter it again as it will be saved on your browser.
-
Phaser 3
-
Bootstrap 4
-
Webpack
-
Clone repo
git clone https://github.com/mrnadaara/shooter-game.git
-
Go to repo directory and install npm modules
cd shooter-game && npm install
-
Bundle the app by running
npm run build
-
You can start a dev webpack server by running
npm run start
This app currently has unit tests for the Leaderboard API. The test will determine promise resolve and rejects based on input provided.
Following functions were tested:
- getScores()
- updateScores()
- Add health bars
- Add Boss battle
- Levels