Repository navigation
WASM
TIC-80 supports compiled languages via our WASM binary support. Compile a .wasm file using an external compiler toolchain and then import
that binary (up to to 256KB) into your TIC-80 cartridge. Many modern
languages support compiling to WASM.
- The built-in editor content is not used to edit your code.
- editor comments must use the Lua style, e.g.
-- this is a comment... - a
-- script: wasmmagic comment is required to use thewasmruntime - ...no code you type in the editor will ever be executed
- editor comments must use the Lua style, e.g.
- the compiled code is stored in up to four 64KB
BINARYchunks, 256KB in total- binary
.wasmfiles up to 256KB may be imported
- binary
- 256KB addressable memory (four 64KB WASM pages)
Copying one of the built-in project templates we provide is the best way to get started. These templates include both a tiny sample project and library bindings for the TIC-80 API.
- C
- C++
- D
- Go
- NeLua (help wanted)
- Nim
- Odin (help wanted)
- Rust
- other? (help wanted)
- Zig
If you're familiar with one of the languages above and would like to contribute an official library binding for TIC-80, we'd love your help! Just comment on #1784 or open a new GitHub issue.
TIC-80 tiny computer https://tic80.com | Twitter | Telegram | Terms
Built-in Editors
Console
save | export | load | import | menu | config | surf | shelf | demo | eval
Platform
RAM | VRAM | Display | Palette | Bits per Pixel (BPP) |
.ticFormat | Supported Languages
Other
Tutorials | Code Snippets | Libraries | External Tools | FFT
API
Callbacks
Input
Drawing
circ | circb | clip | cls | elli | ellib | font | line | map | paint | pix | print | rect | rectb | rrect | rrectb | spr | tri | trib | ttri | fill patterns
- textri (deprecated)
Sound
Memory
memcpy | memset | mget | mset | peek | poke | pmem | sync | vbank
System