Skip to content
Vadim Grigoruk edited this page Nov 22, 2026 · 6 revisions

save <cart> Save cartridge to the local filesystem.

Parameters

Required:

  • <cart> output cart name. .tic extension will be added if no extension is used.
    • Use .png file extension to save as a png cart.
    • Use any scripting language extension (.lua, .py, .rb, .js, .moon, .yue, .fnl, .nut, .wren, .janet, .scm, .ms, .fth, .gravity, .wasmp) to save it as a text project for an external editor [PRO version]. See supported languages for the full list.

Description

Save cartridge to the local filesystem.
Hotkey: CTRL+S

Text / project carts

A text cart is a source file with the code at the top and the binary resources appended as tagged comment sections: TILES, SPRITES, MAP, WAVES, SFX, PATTERNS, TRACKS, FLAGS, SCREEN, PALETTE and LANG. Edit the code above the sections; TIC-80 reads the rest back when the file is loaded. The compiled BINARY of a WASM cart is not part of the text project.

To load a project, use load — a .lua/.py/… file is recognized as a project, not only as plain code. See external editor for the workflow.

Related commands

Use load command to load saved cartridge.

Use export command to export cartridge as native build, HTML or to export part of the data.

Save as png cart

Save as a png cartridge for easy sharing.
You can drag this cart to tic80.exe as an example:

motion

The cart data are stored in the chunk of the png file therefore you can create your own image too like https://github.com/nesbox/TIC-80/discussions/2549.

Home
Tips for newcomers

Built-in Editors

Code | Sprites | Maps | SFX | Music

Console

All commands

save | export | load | import | menu | config | surf | shelf | demo | eval 

Platform

RAM | VRAM | Display | Palette | Bits per Pixel (BPP) | .tic Format | Supported Languages

Other

Tutorials | Code Snippets | Libraries | External Tools | FFT


API

All API functions

Callbacks

TIC | BOOT | MENU | BDR

  • SCN (deprecated)
  • OVR (deprecated)

Input

btn | btnp | btnr | key | keyp | keyr | mouse

Drawing

circ | circb | clip | cls | elli | ellib | font | line | map | paint | pix | print | rect | rectb | rrect | rrectb | spr | tri | trib | ttri | fill patterns

Sound

music | sfx | FFT | VQT

Memory

memcpy | memset | mget | mset | peek | poke | pmem | sync | vbank

System

exit | reset | time | tstamp | trace

Clone this wiki locally