Giter Site home page Giter Site logo

alphadose / run_johnny Goto Github PK

View Code? Open in Web Editor NEW
15.0 2.0 3.0 9.54 MB

An endless runner game built on phaser and nodejs

Home Page: http://runjohnny.herokuapp.com/

JavaScript 63.35% HTML 22.76% CSS 13.90%
nodejs phaserjs expressjs sequelizejs postgresql

run_johnny's Introduction

Run Johnny Build Status

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 <path_to_directory>
    
  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

run_johnny's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

run_johnny's Issues

infinite score

There is a bug i discovered while playing this game.
If "developers tools" is opened or just the if current window is minimized ,
the canvas rendering is stopped and so as the audio (which i think is normal ), But the Variable "SCORE" seems keep on incrementing it's value (which i think is the issue) , so if we do this for a long we can definitely call it as INFINITE SCORE!

I have attached a GIF f file related to the issue.
ezgif com-video-to-gif

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.