-
-
Notifications
You must be signed in to change notification settings - Fork 498
Console
Command | Description | Usage |
---|---|---|
help |
Show current version, welcome message, specs, 80K RAM layout, 16K VRAM layout, list of available commands, api commands, keys, buttons and their corresponding codes, startup options, terms, license | help [<text> | version | welcome | spec | ram | vram | commands | api | keys | buttons | startup | terms | license] |
exit / quit
|
Exit the application |
exit / quit
|
edit |
Switches to the code editor | edit |
new |
Creates a new Hello World cartridge | new < lua | ruby | js | moon | fennel | scheme | squirrel | wren | wasm | janet | python > |
load |
Load cartridge from the local filesystem (there's no need to type the .tic extension). You can also load just the data (sprites, map etc) from another cart | load <cart> [sprites | map | cover | code | sfx | music | palette] |
save |
Save cartridge to the local filesystem, use .lua .rb .js .moon .fnl .nut .wren .wasmp cart extension to save it in text format [PRO version]. Use .png to save it in a png cartridge.
|
save <cart> |
run |
Run current project | run |
resume |
Resume last loaded project | resume |
eval / =
|
run code |
eval / =
|
dir / ls
|
Show list of local files |
dir / ls
|
cd |
Change directory | cd |
mkdir |
Make directory | mkdir |
folder |
Open working directory in OS (Windows, Linux, Mac OS) | folder |
add |
Show file open dialog to add file to TIC [browser version] | add |
del |
Delete from the filesystem | del <file> |
get |
Show file save dialog to download file [browser version] | get <file> |
export |
Export cart to HTML or as a native build, export sprites or cover as image, or export sfx and music to wav files (0.80). Use alone=1 to export the game without the editors [PRO version]
|
export [html | native | sprites | cover | map | sfx | music] |
import |
Import code/images from an external file. | import [code | map | screen | sprites | tiles] |
cls / clear
|
Clear screen |
cls / clear
|
demo |
Install demo carts | demo |
config |
Show config.tic file editor when used without parameter, use reset param to reset current configuration, use default to edit default cart template | config [reset | default] |
surf |
Open carts browser | surf |
menu |
Show game menu where you can setup keyboard/gamepad buttons mapping (0.80) |
For those operating systems that support it, tab completion and command history is available in the console.
Example of eval
usage.
To log the results use trace.
Note that you need to run a cart first to launch the virtual machine, otherwise you'll get an empty string whatever you do.
> eval trace("Hello World")
Hello World
> eval t=8
> eval trace(t%3)
2
While importing images, colors are merged to the closest color of the palette.
For example, with default palette, this image:
becomes:
Note that if the palette is all black (like default bank1) the imported image will be all black.
TIC-80 tiny computer https://tic80.com | Twitter | Telegram | Terms
Built-in Editors
Console
Platform
RAM & VRAM | Display | Palette | Bits per Pixel (BPP) |
.tic
Format | Supported Languages
Other
Tutorials | Code Snippets | Libraries | External Tools | FFT
API
- BDR (0.90)
- BOOT (1.0)
- MENU
- OVR (deprecated)
- SCN (deprecated)
- TIC
- btn & btnp
- circ & circb
- clip
- cls
- elli & ellib (0.90)
- exit
- fget & fset (0.80)
- font
- key & keyp
- line
- map
- memcpy & memset
- mget & mset
- mouse
- music
- peek, peek4
- peek1, peek2 (1.0)
- pix
- pmem
- poke, poke4
- poke1, poke2 (1.0)
- rect & rectb
- reset
- sfx
- spr
- sync
- ttri (1.0)
- time
- trace
- tri & trib (0.90)
- tstamp (0.80)
- vbank (1.0)