Skip to content

Latest commit

 

History

History

_examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

wasm4go examples

This directory contains examples of using wasm4go. Some are small and useless, some are almost real games.

Available examples:

  • hello: the same code example as wasm-4 CLI generates by default.
  • buttons: displays on the screen the button you press.
  • snake: re-implementation of the Snake tutorial from thw official WASM-4 documentation.
  • tests: integration tests for the project.

Running locally

  1. Install the latest dev version of TinyGo.
  2. Install WASM-4 CLI
  3. Install task
  4. Optional: install WABT.
  5. Run task run -- ./snake to run the snake demo.