GithubHelp home page GithubHelp logo

temuraru / snake Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dimircea/snake

0.0 2.0 0.0 780 KB

Implementation of the classic Snake game using CreateJS Suite library and HTML5 + CSS3 technologies

CSS 3.13% HTML 3.98% JavaScript 92.89%

snake's Introduction

Snake Game

Implementation of the classic Snake Game using CreateJS Suite API and HTML5 + CSS3 technologies

How to play:

  • initially the snake is on "stay" position
  • use arrow keys of W, S, A, D to start moving the snake
  • once the snake starts moving, you can't stop it - will continue to move in the current direction
  • don't touch the walls or the obstacles, otherwise you will die
  • don't touch snake body, otherwise you will die
  • eating fruits gives points and increase the snake size with 1 unit
  • collecting fruits from corners means your chances to die are very high
  • each fruit type will give a different number of points
  • the level advance based on the condition: score >= ((level * (level + 1)) / 2) * 40
  • when the level increases, then the snake speed increases too
  • restart the game by pressing F5 anytime (during play time or when you die and want to play again)

Have fun!

TODOs:

  • save highest score;
  • add restart without reloading the page (no F5 reload...)
  • add mute sound feature to be able to play in the middle of the night without disturbing your neighbors!
  • improve graphics, sounds & design

Do you want to contribute ? Just send me a mail to dimircea{at]gmail.com

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.