Fandom

Pico-8 Wiki

Configuration

162pages on
this wiki
Add New Page
Comments0 Share

You can configure several aspects of how Pico-8 runs by editing a file called config.txt. The location of this file depends on which operating system you use.

  • Windows: C:/Users/Yourname/AppData/Roaming/pico-8/config.txt
  • Mac OS X: /Users/Yourname/Library/Application Support/pico-8/config.txt
  • Linux: ~/.lexaloffle/pico-8/config.txt

The file includes comments about the various options. If a line begins with // then it is treated as a comment line.

Note: Pico-8 overwrites the config.txt file each time you exit the app. If you open Pico-8, edit the config file, then exit (or restart) Pico-8, you will lose your changes. Close Pico-8 before editing config.txt.

For information on configuring game controllers, see Controllers.

See also RunningPico8.

Video settings Edit

video_mode width height bitdepth
Sets the width, height, and bit depth. For Pico-8, width and height adjust the window size (when not in full screen mode) and the Pico-8 display is a square of the smaller dimension, centered. Bit depth is ignored.
show_fps n
If n is 1, displays the current frame rate in the corner of the screen. The default is 0 (no display).

Window settings Edit

windowed n
If n is 1, Pico-8 starts up in windowed mode. Set to 0 to start up in full screen mode.
window_position x y
The initial position of the window, or -1 -1 to use the window manager default.
frameless n
If n is 1, try to use a window with no frame.
fullscreen_method n
0 = "safe", 1 = borderless desktop-sized window, 2 = OS full screen

System settings Edit

frame_sleep_ms n
An amount of time to sleep each frame, in milliseconds.
sessions n
The number of times Pico-8 has been run. Pico-8 updates this value automatically.
rmb_key n
The scan code for a key that you can hold down while left-clicking the mouse to simulate right clicking. Good for laptops with one-button trackpads, like MacBooks. 224 is left Control, 226 is left Alt, 0 is none.

Audio settings Edit

sound_volume n
The sound effects volume, 0 to 256.
music_volume n
The music volume, 0 to 256.
mix_buffer_size n
The memory size of the audio mixing buffer. 1024 or 2048.

Other settings Edit

version n
The version of Pico-8 that is installed. Pico-8 manages this value.
root_path path
The filesystem path of the Pico-8 cartridge folder. This is the location of the files you can access from the command prompt.
cdata_path path
The filesystem path of where Pico-8 stores persistent cartridge data.
joystick_index n
"Specify which player index joystick control begins at (0..7)"
button_keys p1_0 p1_1 p1_2 p1_3 p1_4 p1_5 p2_0 p2_1 p2_2 p2_3 p2_4 p2_5
Scan codes for the player 1 and player 2 controller keys on the keyboard. 0 uses the built-in default. The keyconfig command updates this line.
live_notes n
If n is 1, the sound editor's frequency mode plays the note as it is being adjusted. The default is 0 (no sound).
aspect n
Sets the aspect ratio of the display. 420 is 1:1 (square, the default), 560 is 4:3, 525 is 5:4. Wider aspect ratios stretch the pixels. You may need to adjust video_mode.
cursor_snap n
If n is 1, the keyboard-driven cursor snaps to the closest pixel or map cel. (TK: how to move the cursor with the keyboard?)
gif_len n
Set the maximum movie recording length to n seconds. If not set, the default is 8 seconds. Pico-8 is always recording so that you can save a video at any time, so larger values of n use more memory. (Press F8 to clear the video recording buffer. Press F9 to save the previous n seconds of video to a file as an animated GIF.)

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.