https://github.com/alphadose/run_johnny
An endless runner game built on phaser and nodejs
https://github.com/alphadose/run_johnny
expressjs nodejs phaserjs postgresql sequelizejs
Last synced: 4 months ago
JSON representation
An endless runner game built on phaser and nodejs
- Host: GitHub
- URL: https://github.com/alphadose/run_johnny
- Owner: alphadose
- Created: 2017-08-18T21:13:15.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-09T12:46:28.000Z (about 8 years ago)
- Last Synced: 2025-01-31T05:33:37.977Z (about 1 year ago)
- Topics: expressjs, nodejs, phaserjs, postgresql, sequelizejs
- Language: JavaScript
- Homepage: http://runjohnny.herokuapp.com/
- Size: 9.31 MB
- Stars: 15
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Run Johnny [](https://travis-ci.org/alphadose/Run_Johnny)
> Run Johnny is an endless runner game built on phaser and nodejs
### Brief overview of the game :-
* In this game you have to evade spikes which will approach you at a random velocity.
* You have to use the directional keys to evade those spikes.
* The spikes might collide with each other making the already randomized velocities even more random.
* The velocity might vary from time to time because of the acceleration setting so the spikes might approach you too quickly or too slowly.
* Acceleration can even change midway.
* Aside from the spikes there are asteroids.
* Asteroids won't kill you but they will hamper your gameplay by blocking your jumps, colliding with you , changing your velocity etc.
* Asteroids are a double-edged sword. They will ruin your gameplay but at the same time they can also aid you.
* You can junp on an asteroid and evade the spikes.
* Your score is determined by how long you can last in the game.
### How to run locally :-
1. Clone this repository.
```
git clone https://github.com/alphadose/Run_Johnny.git
```
2. Go to the root directory of the game.
```
cd
```
3. Install the necessary dependencies.
```
npm install
```
4. Create a config.json file from the sample.config.json and fill in the environment variables as per your database credentials.
```
cp sample.config.json config.json
```
5. Start the game.
```
node server.js
```
6. You can now play the game at http://localhost:5000