v/examples/snek
Benjamin Stigsen 546c388b02
gg: renaming drawing functions (#12913)
2021-12-23 13:31:25 +02:00
..
README.md
index.html
snek.js.v
snek.v gg: renaming drawing functions (#12913) 2021-12-23 13:31:25 +02:00

README.md

snek

Snake game implemented using gg module.

Compiling & running

Compiling to binary

v -prod examples/snek/snek.v
./examples/snek/snek # run snek game!

Compiling to JS

v -b js_browser examples/snek/snek.js.v

And then open examples/snek/index.html in your favourite browser.