Skip to content

sorucoder/tic80

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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))

About

The Go binding for TIC-80 WASM Cartridges

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages