-
-
Notifications
You must be signed in to change notification settings - Fork 494
External Editor
There are two methods by which you can run code from an external Lua file:
- add
dofile('game.lua')
as the first line of the built-in editor and placegame.lua
in the correct location:
- For Windows, the file should be in the same folder as your your executable.
- For Unix/Linux it should be in the directory from which you started the
tic
binary. - For Android you need to specify the full path to your Lua file. For example,
dofile('/sdcard/game.lua')
.
- use
tic cart.tic -code game.lua
command line parameters to inject your code to the cartridge
Note: dofile() is deprecated in 0.80 development versions - you can save your game as a lua file directly if you wish to use an external editor, for example:
save mygame.lua
The saved file will include your code and, at the end, all resources saved within XML-style tags. Care should be taken to avoid manually editing this data unless this is what is required. TIC will automatically re-load any changes into its code editor.
-
Visual Studio Code
- Visual Studio Code extension for TIC-80 made by @Gi972
- VSCode Extension for TIC-80 Pro Users made by @Trifectuh, forked from Gi972's extension above.
- API user snippets for Visual Studio Code made by @Viza74
- Visual Studio Code settings for TIC-80 game developers - settings, user snippets, docs. Made by @AlRado
-
Sublime Text
- Sublime Text 3 package - Syntax highlighting and auto-complete TIC-80 functions in Sublime Text. By @AlRado
-
Atom
- TIC-80 package for Atom Editor with tools to edit/run games, terminal that duplicates TIC's console output, some handy snippets and autocomplete feature for TIC's API. By @ViChyavIn
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)