-
-
Notifications
You must be signed in to change notification settings - Fork 492
import
import [ binary | tiles | sprites | map | code | screen] <file> [bank=0 x=0 y=0 w=0 h=0 vbank=0]
Required:
-
<file>
input file name.
Options (choose 1):
-
binary
import binary segment into the cartridge, which is what WASM cartridges run. -
tiles | sprites
to import an image as tiles or sprites at positionx, y
. -
map
to import an image as map at positionx, y
(map coordinates). -
code
to import a text file as code. -
screen
to import an image as cover image.
Fully optional:
-
bank
Choose the bank to witch you want to import. -
x y
position where to import in tiles, sprites or map. -
w h
width and height you want to import from the image for tiles, sprites or map. -
vbank
Choose the VRAM bank to witch you want to import.
Import code/images from an external file (not a cart).
Use load
to import code/sprites/music/… from another cart.
Put your file to import in the TIC-80/
folder and not the folder where your exe file is. Find the TIC-80
folder by typing folder
in the console.
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)