mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
gg: add text rendering, keyboard event handling for JS and other fixes (#12932)
This commit is contained in:
17
examples/snek/README.md
Normal file
17
examples/snek/README.md
Normal file
@ -0,0 +1,17 @@
|
||||
# snek
|
||||
|
||||
Snake game implemented using `gg` module.
|
||||
|
||||
# Compiling & running
|
||||
|
||||
## Compiling to binary
|
||||
```sh
|
||||
v -prod examples/snek/snek.v
|
||||
./examples/snek/snek # run snek game!
|
||||
```
|
||||
|
||||
## Compiling to JS
|
||||
```sh
|
||||
v -b js_browser examples/snek/snek.js.v
|
||||
```
|
||||
And then open `examples/snek/index.html` in your favourite browser.
|
Reference in New Issue
Block a user