3

PICO-8

 3 years ago
source link: https://iiviigames.github.io/pico8-api/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Pico-8 API Cheatsheet



icon.png

Version 0.2.2
Added P8SCII tab, Secret Palette.

Commandline Arguments
--  Run Pico-8 from Terminal
pico-8 [switches] cart.p8

-splore                       -- boot in splore mode
-width                  n     -- set the window width
-height                 n     -- set the window height
-windowed               n     -- set windowed mode off (0) or on (1)
-volume                 n     -- set all audio volume [0..256]
-sound                  n     -- set only sfx volume [0..256]
-music                  n     -- set only music volume [0..256]
-joystick               n     -- joystick controls starts at player n (0..7)
-pixel_perfect          n     -- 1 for unfiltered screen stretching at integer scales
-preblit_scale          n     -- scale the display by n before blitting to screen
-draw_rect              xywh  -- absolute window coordinates and size to draw the p8 screen
-run                    cart  -- load and run a cartridge
-x                      cart  -- execute a PICO-8 cart headless and then quit (experimental!)
-export                 args  -- run EXPORT command in headless mode and exit
-p                      args  -- pass a parameter string to the specified cartridge
-home_path              path  -- set the path to store config.txt and other user data files
-root_path              path  -- set the path to store cartridge files
-desktop                path  -- set a location for screenshots and gifs to be saved
-gif_scale              n     -- scale of gif captures. default: 2 (256x256 pixels)
-gif_len                n     -- set the maximum gif length in seconds (1..120)
-gui_theme              n     -- use 1 for a grey, higher contrast editor color scheme (0: blue)
-timeout                n     -- how many seconds to wait for splore downloads timeout (d: 30)
-software_blit          n     -- use software blitting mode off (0) or on (1)
-screenshot_scale       n     -- scale of screenshots.  default: 3 (368x368 pixels)
-foreground_sleep_ms    n     -- how many milliseconds to sleep between frames.
-background_sleep_ms    n     -- how many milliseconds to sleep between frames in bg
-accept_future          n     -- use (1) to allow loading cartridges made w/ newer P8 versions
-global_api             n     -- use (1) to leave api functions in global scope (debugging)

PICO-8 Specs

- display: 128x128, fixed 16 colour palette
- input: 6 buttons
- cartridge size: 32k
- sound: 4 channel, 64 definable chip blerps
- code: lua, max 8192 tokens of code
- sprites: single bank of 128 8x8 sprites + 128 shared
- map: 128x32 8-bit cels + 128x32 shared

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK