N1ghtF1re / snake

Simple snake realization on js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Snake

About game

Simple snake realization on js

Connecting the Game

  • Connect the style from the style/snake.css folder.
  • Connect the js-script from the js/snake.js folder.
  • Place on the page a div-block with id = field
  • Initialize the game field
gameField = new Field(field) 
onkeydown = function (e) {gameField.onKeyDown(e)}

About

Simple snake realization on js


Languages

Language:JavaScript 83.8%Language:CSS 10.9%Language:HTML 5.3%