![]() ![]() Poke(0x5f2c, 7) - mirror top-left quarter Poke(0x5f2c, 1) - horizontal stretch, 64x128 Memory::Graphics Modes poke(0x5f2c, 0) - standard, 128x128 Stat(39) - relative y movement in host desktop pixels Stat(38) - relative x movement in host desktop pixels Stat(31) - string name of the keypress when stat(30) is true Stat(30) - a boolean value representing if a keypress has occurred Stat(34) - read button bitmask 1 = primary, 2 = secondary, 4 = middle Stat(30) - read keyboard had input (bool) repeats every 4 frames after key held for 15 frames Plock = plock and 0x04 or 0 - plock…enable pointer lock On = on and 0x01 or 0 - on ……enables mouseī2b = b2b and 0x02 or 0 - b2b……mouse btns->btn(❎□️◆) Poke(0x5f2d, flags) - flags are the following:Ġx2 - mouse buttons trigger btn(4).btn(6)Ġx4 - pointer lock (use stat 38.39 to read movements) lua ram (1MB) Memory::Keyboard/Mouse Mode - enable keyboard and mouse experimental mode Serial(channel, address, length) - write val in ram address Memory::Ram Layout 0x0 - gfxĠx5e00 - persistent cart data (256 bytes)Ġ圆000 - screen (8k) Memory::Types 1. Memory Functions - The two following functions load from filename, and work with multi-cart exportĬstore(dest_addr, src_addr, len, ) Draws a textured line between two points, sampling the map for data ![]() Sspr(sx, sy, sw, sh, dx, dy,, , ) - draw texture from spritesheet Sset(x, y, ) - set spritesheet pixel colour ![]() Sget(x, y) - get spritesheet pixel colour Rectfill(x0, y0, x1, y1, ) - draw filled rectangle Palt(col, t) - set transparency for colour to t (bool) Pal(c0, c1, ) - swaps col 0 to col 1 p = 0 = draw palette p = 1 = screen palette Ovalfill(x0, y0, x1, y1, ) - draws a colored ellipse Oval(x0, y0, x1, y1, ) - draws an ellipse inside of a bounding rectangle Graphics Manipulation camera() - set camera positionĬircfill(x, y, r, ) - draw filled circleĬlip() - set screen clipping regionĬls() - clear screen col = clear colorĬursor(x, y) - set cursor and CR/LF margin positionįget(n, ) - get values of sprite flagsįillp(mask) - set fill pattern for circ, circfill, rect, rectfill, pset, and lineįlip() - flip screen back buffer (30fps)įset(n,, v) - set values of sprite flags sprites: single bank of 128 8x8 sprites + 128 shared sound: 4 channel, 64 definable chip blerps PICO-8 Specs - display: 128x128, fixed 16 colour palette # when enabled, any carts marked mature will not be downloaded. Configuration # sets the volume, minimum of 8, max of 256. In 0.2.3, Pico-8 granted us more configuration options with the new config function, allowing for interactive customization while Pico-8 is running. show_fps n - displays fps counter (1) on, (0) off global_api n - use (1) to leave api functions in global scope (debugging) accept_future n - use (1) to allow loading cartridges made w/ newer P8 versions background_sleep_ms n - how many milliseconds to sleep between frames in bg foreground_sleep_ms n - how many milliseconds to sleep between frames. screenshot_scale n - scale of screenshots. HALF LIFE BLUE SHIFT PAUSE SCREEN TEXTURE SOFTWAREsoftware_blit n - use software blitting mode off (0) or on (1) timeout n - how many seconds to wait for splore downloads timeout (d: 30) gui_theme n - use 1 for a grey, higher contrast editor color scheme (0: blue) gif_len n - set the maximum gif length in seconds (1.120) desktop path - set a location for screenshots and gifs to be saved root_path path - set the path to store cartridge files home_path path - set the path to store config.txt and other user data files p args - pass a parameter string to the specified cartridge export args - run EXPORT command in headless mode and exit x cart - execute a PICO-8 cart headless and then quit (experimental!) draw_rect xywh - absolute window coordinates and size to draw the p8 screen ![]() preblit_scale n - scale the display by n before blitting to screen pixel_perfect n - 1 for unfiltered screen stretching at integer scales joystick n - joystick controls starts at player n (0.7) frameless n - run pico-8 in borderless window mode w/ (1) normally w/ (0) windowed n - set windowed mode off (0) or on (1) Commandline Arguments - Run Pico-8 from Terminal ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |