Categorygithub.com/sorucoder/tic80
repositorypackage
1.3.0
Repository: https://github.com/sorucoder/tic80.git
Documentation: pkg.go.dev

# README

tic80

This is the Go package for the WASM binding for TIC-80.

General Usage

This package follows the native TIC-80 API as closely as possible, including optional arguments. For functions that have optional arguments, you can either use the defaults by passing nil, like so:

tic80.Print("HELLO WORLD FROM GO!", 65, 84, nil)

Or, you can pass an instance of the corresponding tic80.<APIName>Options, chaining its methods to configure it, like so:

tic80.Spr(1+t%60/30*2, x, y, tic80.NewSpriteOptions().AddTransparentColor(14).SetScale(3).SetSize(2, 2))