https://github.com/n1ghtf1re/snake
Simple snake realization on js
https://github.com/n1ghtf1re/snake
js js-game js-games js-snake snake snake-game
Last synced: 7 months ago
JSON representation
Simple snake realization on js
- Host: GitHub
- URL: https://github.com/n1ghtf1re/snake
- Owner: N1ghtF1re
- Created: 2018-07-28T06:36:28.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-08-07T16:34:18.000Z (about 2 years ago)
- Last Synced: 2025-02-19T05:45:45.204Z (8 months ago)
- Topics: js, js-game, js-games, js-snake, snake, snake-game
- Language: JavaScript
- Size: 12.7 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```javascript
gameField = new Field(field)
onkeydown = function (e) {gameField.onKeyDown(e)}
```