Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 359 Bytes

README.md

File metadata and controls

15 lines (12 loc) · 359 Bytes

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)}