0% found this document useful (0 votes)
423 views1 page

Pico 8 Cheatsheet

This document provides a summary of commands, functions, and other elements in PICO-8, including: - Basic commands like help, save, load, run, and splore - Special callbacks like _init(), _update(), and _draw() - Variables, types, operators, and control structures like if/else and loops - Drawing primitives like rect, circ, line, and text - Sprites, colors, sound, and music functions - Pixel and map functions - Common shortcuts and version information
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
423 views1 page

Pico 8 Cheatsheet

This document provides a summary of commands, functions, and other elements in PICO-8, including: - Basic commands like help, save, load, run, and splore - Special callbacks like _init(), _update(), and _draw() - Variables, types, operators, and control structures like if/else and loops - Drawing primitives like rect, circ, line, and text - Sprites, colors, sound, and music functions - Pixel and map functions - Common shortcuts and version information
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

PICO-8 

Cheatsheet
Commandline Special callbacks Controls
HELP  _init() _update() _draw()
SAVE GAME.P8 
LOAD GAME.P8 
Sprites
RUN  spr(n, x, y, [w, h], 
SPLORE    [flip_x], [flip_y]) 
sspr(sx, sy, sw, sh, 
Variables & Types   dx, dy, [dw, dh], 
A=nil    [flip_x], [flip_y])
X=23 
local S="TEXT" 
Colors
T={name="Joe", age="32"} 

Operators Player 1:

+ - * / ^ % 
  ⬅ ⬆⬇  ➡   
Y,X/C,V/N,M
Player 2:
< > <= >= ~= ==    ASDF, LSHIFT, A
#list  "A".."B"  btn([i, [p]]) 
and or not  btnp([i, [p]]) 
Functions Sound
FUNCTION ADD(a,b)  sfx(n, [chan, offset]) 
 RETURN A+B  music([n, [fade, mask]])
END
Tracker
If-Statement
IF (X  < 33) THEN  instrument effect
 PRINT("HALLO") 
else 
Pixel
tone
 print("hey") 
END pset(x, y, [c])  octave volume
pget(x,y)
Loops 0 none 
Shapes 1 slide
--UP 
rect(x0,y0,x1,y1, [col])  2 vibrato 
FOR I = 1,10 DO 
rectfill(x0,y0,x1,y1,[c])  3 drop (drum) 
 PRINT(I) 
circ(x, y, r, [c])  4 fade in 
END 
circfill(x, y, r, [c])  5 fade out 
 
line(x0, y0, x1, y1, [c]) 6 fast arpeggio 
--DOWN 
7 slow arpeggio
FOR A=10,0,-2 DO  Screen
 PRINT(A)  Math
cls() 
END  abs(x),atan2(dx, dy), 
camera([x, y]) 
  cos(x),sin(x), 
clip([x, y, w, h])
--ARRAY  flr(x),max(x,y),min(x,y), 
FOR S IN ALL(SHIPS) DO  rnd(x),sgn(x),sqrt(x)
 PRINT(S.NAME) 
END 
Shortcuts
  Common:
--Table   Save: CTRL+S
FOR K,V IN PAIRS(M) DO   Change Mode: ESC
 PRINT("K:"..K..",V:"..V)   Restart cart: CTRL+R
END Editor
 Undo:CTRL+Z
Tables  Redo:CTRL+Y
t={a="x",b=1}   Search:CTRL+F
add(t, v)   Search-Next:CTRL+G
del(t, v) 
t={1,2,3,4} 
Map  Next Function:Alt+ ⬆ ⬇ 
mget(x, y)  Pico-8 Cheatsheet. Version
print(t[1]) --1-based!!  mset(x, y, v)  2.1(en). Collected by
map(map_x, map_y,  @ztiromoritz. Font: Joseph White.
  screen_x, screen_y,  TTF by RhythmLynx. Inspired by
  width, height, [layer]) @neko250/pico-8 api and
@obone/picozine-3.

You might also like