github.com/sorucoder/tic80@v1.3.0/README.md (about) 1 # tic80 2 3 This is the Go package for the WASM binding for TIC-80. 4 5 ## General Usage 6 7 This package follows the native [TIC-80 API](https://github.com/nesbox/TIC-80/wiki/API) as closely as possible, including optional arguments. 8 For functions that have optional arguments, you can either use the defaults by passing `nil`, like so: 9 10 ```go 11 tic80.Print("HELLO WORLD FROM GO!", 65, 84, nil) 12 ``` 13 14 Or, you can pass an instance of the corresponding `tic80.<APIName>Options`, chaining its methods to configure it, like so: 15 16 ```go 17 tic80.Spr(1+t%60/30*2, x, y, tic80.NewSpriteOptions().AddTransparentColor(14).SetScale(3).SetSize(2, 2)) 18 ```