/shooter-game

A shooter game developed in JavaScript

Primary LanguageJavaScript

Cagarweyne Shooter Game

Survive the hoard of druids and zombies in Hitman: Battle of the Unknown

Game was developed in Phaser 3 and JavaScript

alt text

Get Started

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.

For Developers only

Libraries used

  • Phaser 3

  • Bootstrap 4

  • Webpack

  1. Clone repo git clone https://github.com/mrnadaara/shooter-game.git

  2. Go to repo directory and install npm modules cd shooter-game && npm install

  3. Bundle the app by running npm run build

  4. You can start a dev webpack server by running npm run start

Testing

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()

Future releases

  1. Add health bars
  2. Add Boss battle
  3. Levels

Contributor

Sharmarke Ahmed