| name | port-to-tic80 |
| description | Port a web game to TIC-80 (Lua) for Miyoo Mini Plus |
| user_invocable | true |
| args | <game-name> |
Port a web game from web/<game>/index.html to TIC-80 Lua at tic80/<game>/<game>.lua.
Use a game-builder agent to:
- Read the web version at
web/$ARGUMENTS/index.html thoroughly
- Read an existing TIC-80 port (e.g.,
tic80/micro/micro.lua) for patterns
- Write
tic80/$ARGUMENTS/$ARGUMENTS.lua with the complete game
- Build the .tic cartridge and optionally deploy
TIC-80 Constraints
- Resolution: 240×136, 16 colors (Sweetie 16 palette)
- Code limit: 65536 chars
- Tile/sprite size: 8×8
TIC-80 API quick reference
function TIC() end
function BOOT() end
cls(color)
rect(x,y,w,h,color)
rectb(x,y,w,h,color)
circ(x,y,r,color)
circb(x,y,r,color)
line(x1,y1,x2,y2,color)
pix(x,y,color)
print(text,x,y,color,fixed,scale)
btn(0-7)
btnp(0-7)
Scale factors (800×600 web → 240×136 TIC-80)
- Tile: 20px → 8px (0.4×)
- Player: 16px → 6px
- Speed/gravity: multiply by ~0.4
- Map width: 32 cols → 30 cols
After porting
Build and deploy with /deploy-tic80 $ARGUMENTS --run