avindra / snake

:snake: minimal JavaScript snake (renders to 2d canvas)

Home Page:https://dra.vin/#/snake

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Snake Build Status

It is an implementation of the game of snake using reference JavaScript, and <canvas> 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 🐍!

Development

A 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 to run unit tests
    • Unit tests are co-located into src/

About

:snake: minimal JavaScript snake (renders to 2d canvas)

https://dra.vin/#/snake


Languages

Language:TypeScript 82.3%Language:JavaScript 11.0%Language:HTML 2.5%Language:Shell 2.5%Language:Makefile 1.7%