Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/avindra/snake
:snake: minimal JavaScript snake (renders to 2d canvas)
https://github.com/avindra/snake
2d-canvas canvas game javascript snake typescript webaudio
Last synced: about 5 hours ago
JSON representation
:snake: minimal JavaScript snake (renders to 2d canvas)
- Host: GitHub
- URL: https://github.com/avindra/snake
- Owner: avindra
- Created: 2016-02-18T13:21:25.000Z (over 8 years ago)
- Default Branch: src
- Last Pushed: 2021-02-15T19:49:52.000Z (over 3 years ago)
- Last Synced: 2023-02-28T19:45:50.674Z (over 1 year ago)
- Topics: 2d-canvas, canvas, game, javascript, snake, typescript, webaudio
- Language: TypeScript
- Homepage: https://dra.vin/#/snake
- Size: 97.7 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Snake [![Build Status](https://github.com/avindra/snake/workflows/ci/badge.svg)](https://github.com/avindra/snake/actions)
It is an implementation of the game of snake using reference JavaScript, and `` for graphical output. The codebase uses Typescript (mostly for a handful of `interface` descriptions.)
There is experimental sound: unplug your headphones to rip beeps over your speakers.
[Click to play 🐍!](https://avindra.github.io/snake)
## Development
A [`Makefile`](./Makefile) is included for convenience.
`esbuild` is used to build/bundle.
`deno` is used for unit testing.
* run `make build` to build/bundle
* run `make dev` to get a watch/recompile workflow (requires Python 3 for http server)
* run [`deno test src`](https://deno.land/manual/testing#assertions) to run unit tests
- Unit tests are co-located into src/