This game was created using PhaserJS
(check it out), nodejs
, express
and mongoDB
.
nodejs >= v6.9
get it here.- Run
npm install
in the root directory. - For functioning leaderboard you need mongoDB to be installed get the community version here.
- Add mongod and mongo to the PATH if you want to run the shell from anywhere or else you will have to navigate to the bin directory every time to run the mongo shell.
- change the
environment
variable inapp.js
fromproduction
todevelopment
. - open the terminal (not necessarily in the root directory) and run
mongod
to start the mongo server. - open another instance of the terminal in the root directory and execute
node app.js
to start the express server. - open your browser and type
localhost:3004
in the address bar to run the game. You can also change the port by changing the value of theport
variable inapp.js
and restarting the express server.
A pirate ventures on a voyage to find the greatest treasure in the world. But, in order to achieve that goal, he needs to fight many other pirates who have the pieces of the map that leads to the greatest treasure.
- The main objective is to shoot down a particular number(varies for each level) of enemy pirate ships before you run out of life or ammo.
- The score will be based on how quickly a level is completed, the amount of ammo used and accuracy of the cannon shots.
- As the battle nears its end a map will spawn on the location of the last ship that was shot down.
- Collecting the map will take you to the next level.
- There are 4 levels with the 4th one being the BOSS level.
-
Press W or ā” to steer the ship forward.
-
Press A or ā to rotate the helm(steering) of the ship towards the left.
-
Press D or ā¢ to rotate the helm(steering) of the ship towards the right.
-
Move the mouse around to change the direction of the cannon.
-
Left click the mouse to fire a cannonball.