https://github.com/yangshun/nutty-ninjas-x
https://github.com/yangshun/nutty-ninjas-x
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/yangshun/nutty-ninjas-x
- Owner: yangshun
- License: mit
- Created: 2015-02-09T07:46:35.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-05-06T20:52:47.000Z (over 10 years ago)
- Last Synced: 2025-05-05T22:09:29.470Z (5 months ago)
- Language: JavaScript
- Size: 12 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Nutty Ninjas X
======### Introduction
The secrets of a ninja's teleportation skills have finally been revealed! Ninjas create a pair of inter-spatial portals which allow objects to travel through them. Nutty Ninjas X is a sequel to the hit game Nutty Ninjas, and it makes use of this portal mechanics to add a new twist to the original game. In this fast-paced sequel, ninjas battle against each other in a test of wits and reaction skills by eliminating as many opponents as they can while trying to stay alive.
### Installation
To set up, please do the following:
Install the node packages:
```
$ npm install
```Install bower dependencies. [Bower](http://bower.io/) is a package manager for front-end JavaScript libraries/frameworks. Bower packages will be installed in `public/bower_components`.
```
$ npm install -g bower
$ bower install
```Run the node server.
```
$ node index.js
```### Playing the Game
##### Starting the Game

1. Go to `http://localhost:3000/` in a browser to view the game. Preferably Chrome browser.
2. Click on **Play Game** to view the lobby screen.##### Lobby

In the lobby screen, existing rooms running the games are shown. Players can either create their own room via the **Create Room** button or click the **Join Game** button to join an existing game.

Players have to fill in a **Player Name** and select a **Ninja colour** before they can start playing.
##### Game
**Controls**
Use the buttons W, A, S, D to move the player around. E is used to toggle between Shuriken mode and Portal mode.
Click on anywhere in the screen to fire the shuriken/portal projectile in that direction. Portals will spawn on the location that is being clicked.
**Portals**
Portals have the ability to teleport objects. Both players and shurikens can be teleported between portals. Each player can only have a pair of portals existing in the game at any one time. Subsequent portals fired will replace existing created portals. If there is only one portal existing in the game, then the portal does not teleport objects.