Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/serkanyersen/snake
Basic Snake Game in TypeScript
https://github.com/serkanyersen/snake
demo education example fun game snake snake-game typescript
Last synced: 3 months ago
JSON representation
Basic Snake Game in TypeScript
- Host: GitHub
- URL: https://github.com/serkanyersen/snake
- Owner: serkanyersen
- Created: 2016-07-13T00:13:28.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T06:09:23.000Z (about 2 years ago)
- Last Synced: 2024-04-08T17:12:40.799Z (10 months ago)
- Topics: demo, education, example, fun, game, snake, snake-game, typescript
- Language: TypeScript
- Homepage: https://serkanyersen.github.io/snake/
- Size: 1.65 MB
- Stars: 29
- Watchers: 3
- Forks: 6
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Basic Snake Game written in TypeScript
Just for fun. It's written in vanilla js, no libraries used. Also it uses HTML elements to render the game instead of canvas.![Example](demo.gif)
[Demo](https://serkanyersen.github.io/snake/)
## Controls
- User arrow keys to move around
- `G` = Show Grid
- `C` = No Clip Mode, go through self and walls
- `J` = Slow down the snake
- `K` = Speed up the snake
- `SPACE` = Pause, Resume game
- `RETURN` = start the game
- `1 - 4` = Change levels
- `0` remove level## Development
- Checkout the project and CD into it
- run `npm install` to get all dependencies
- run `npm run build` to build the app
- run `npm run dev` to get the game running on your browser