Coder Social home page Coder Social logo

55dante41 / webgame-traffichell Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 524 KB

A fight for survival in the hell of traffic! Traffic offenders are sent here to pay for their crimes after their death :P

Home Page: http://devmaestro.github.io/games/survive/index.html

CSS 0.53% HTML 1.29% JavaScript 98.18%

webgame-traffichell's Introduction

#Traffic Hell Arcade game built for Udacity Front-End developer ND

###The Directory structure:

  • css (directory to hold all stylesheets)
  • fonts (directory to hold all font resources)
  • images (directory to hold all image resources)
  • js (directory to hold all scripts)
  • index.html (main game file)
  • readme.md (readme)

###How to start the game:

  • Download and install the latest version of python (https://www.python.org/downloads/)
  • Open cli and navigate to the game dir
  • Run the command: "python -m SimpleHTTPServer 8000" if you have python 2.x installed
  • Run the command: "python -m http.server 8000" if you have python 3.x installed
  • Go to http://localhost:8000 in your browser to start the game
  • Alternatively, the game can be started and played by simply opening 'index.html' in the main directory with a browser (eg. Google Chrome, Mozilla Firefox).

###How to play the game: The main aim of the player is to survive in the traffic with highest possible score. Hitting any of the natural traffic (bugs) or artificial traffic (cars) resets the game. The player can gain score by collecting gems. Gems spawn randomly all over the place and different colored gems have different value, so it depends on the speed and luck of the player.

There is a safe zone on the bottom, where no traffic is present and no gems are spawned. This is the best spot to land if you need to rest ;P

####Controls:

  • UP arrow moves the player up
  • LEFT arrow moves the player left
  • RIGHT arrow moves the player right
  • DOWN arrow moves the player down

The game is hosted at "http://devmaestro.github.io/games/survive/index.html" for anyone to play.

###To be implemented soon:

  • Leaderboard
  • Improved graphics and visuals
  • More bigger canvas
  • Some modifications to game logic

webgame-traffichell's People

Watchers

 avatar

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.