Editor

PIX37 DEV is the editor. You draw, write, and hear the game here, then export a cartridge or a standalone build. It can also play a cartridge, and it can open PIX37.PARTY to download cartridges and use the catalog. PIX37 DEV EDUCATIONAL is the same editor, and it is free. It has no builds, no cartridge export, and no access to PIX37.PARTY. PIX37 Console is the player. It plays .p37 cartridges, and you open PIX37.PARTY to download cartridges and browse the catalog.

Projects and cartridges

A .pix37 file is the project: source tabs, sprite sheets, maps, sound, and data tables. A .p37 file is the cartridge the player runs: tightly packed bytecode.

Saves and achievements sit in the author folder next to the app data. On Windows that looks like C:\\Users\\Ada\\AppData\\Roaming\\PIX37\\Mira\\Pong.p37s for a save, and C:\\Users\\Ada\\AppData\\Roaming\\PIX37\\Mira\\Pong.ach for achievements. On Linux the same files are ~/.local/share/PIX37/Mira/Pong.p37s and ~/.local/share/PIX37/Mira/Pong.ach. Ada is the account on the computer. Mira is the author name, and that name is the folder. Pong is the save slot, which defaults to the game title. save writes the .p37s. The first unlocked achievement writes the .ach. If the files are already there, the runner reads them when the cartridge starts.

Dev menu

Escape opens the dev menu. Escape while a game is running returns to the editor. Confirm with Enter or the A button (V by default). Back is the B button (C by default).

With no project loaded the menu is: CREATE PROJECT, LOAD PROJECT, BUILD, LOAD CARTRIDGE, CONNECT TO PIX37.PARTY, SETTINGS.

With a project loaded it is: SAVE PROJECT, LOAD PROJECT, CREATE PROJECT, ASSETS, BUILD, LOAD CARTRIDGE, CONNECT TO PIX37.PARTY, SETTINGS.

Ctrl+S saves the open project. Ctrl+R runs it.

Create a project

CREATE PROJECT asks for the cartridge before you start making the project.

012 345 678 91011 121314 15 default palette — black, navy, purple, green, brown, gray, silver, white, red, orange, yellow, lime, blue, indigo, pink, peach

Color indexes used by cls, pset, spr, and the rest. You can repaint any index in the palette editor.

The five panels

The editor is GAME, PAINT, CODE, SOUND, and DATA, in that order. The map lives inside PAINT. SFX and songs live inside SOUND. Click a panel to work there. When CODE has focus, SOUND and DATA ignore letter keys so typing does not also play the piano.

GAME PAINT CODE SOUND DATA

Full layout, written 1:1:4:1:1. Each number is how much of the row that panel takes: GAME, PAINT, CODE, SOUND, DATA. A small screen sits centered in a 128×128 cell. A screen bigger than 128 px widens the GAME column.

SETTINGS → GLOBAL → LAYOUT cycles the arrangements:

CodeWhat you see
1:1:4:1:1Everything. GAME and SOUND stacked, PAINT and DATA stacked, CODE on the right.
1:1:4:1:1 2XThe same arrangement. CODE is drawn at twice the density, so twice as much text fits.
1:0:1:0:1GAME, DATA, CODE.
1:0:1:0:1 2XThe same arrangement, with the denser CODE.
0:1:1:1:1No game preview. PAINT, CODE, SOUND, DATA.
0:1:1:1:1 2XThe same arrangement, with the denser CODE.
0:1:4:1:2Studio. Wide CODE, a taller DATA strip, PAINT and SOUND.
0:1:4:1:2 2XThe same arrangement, with the denser CODE.
0:0:4:0:4CODE and DATA only, both large.
0:0:4:0:4 2XThe same arrangement, with the denser CODE.
0:1:4:1:0PAINT, SOUND, and a wide CODE.
0:1:4:1:0 2XThe same arrangement, with the denser CODE.
0:4:0:0:0PAINT only, 256×256, one pixel of the sheet to one pixel of the canvas.

A 2X row keeps the same panels. The CODE panel is drawn at twice the resolution and scaled back into the same cell, so the text, tabs, and gutter are half as tall and twice as much source fits on screen.

GAME

The preview of the running cart. Click the GAME panel, or press Ctrl+R, to run that preview. SETTINGS → GAME PANEL is where the panel is configured:

PAINT

Sprite sheets and, on the map side of the same panel, tile maps. Sheets can be larger than the screen. Sprite preview sizes are 8, 16, 32, 64, and 128 (128 only when the sheet is at least 128 px). Scroll the mouse wheel over the sprite preview to zoom it. Brush sizes are 1, 2, 3, and 4.

KeyTool
BPencil
MRectangle select
QLasso
SStamp
GBucket
IEyedropper
VMove
L / Shift+LLine / curve
U / Shift+UHollow rectangle / hollow ellipse
F / Shift+FFilled rectangle / filled ellipse
DDither
[ ]Smaller / larger brush
Ctrl+Z / Ctrl+YUndo / redo. Ctrl+Shift+Z also redoes.
Ctrl+C / Ctrl+X / Ctrl+VCopy, cut, paste
Ctrl+ASelect the canvas

The map uses the same idea, with fewer tools: B pencil, M rectangle select, S stamp, V move, and Ctrl+Z, Ctrl+Y, Ctrl+C, Ctrl+V. Hold Alt to zoom the map texture. Brush size on the map stays with the paint tools.

Each sprite has eight flag bits. Paint sets them on the sprite; fget and fset read them in the game.

SETTINGS → PAINT EDITOR is where that panel is configured:

CODE

Tabs are separate files inside the project. Click a tab name to rename it; Enter confirms. Several tabs that each define _init, _update, or _draw are stitched together in tab order: the first tab runs first, the last tab runs last. Code that is not inside a hook becomes part of _init. A cart with no hooks at all is treated as one _draw.

KeyAction
ArrowsMove the caret. Shift extends the selection.
Ctrl+Left / RightBy word.
Home / End, Ctrl+Home / EndStart or end of the line, or of the tab.
TabInsert two spaces. In the completion list, accept the name.
EnterNew line, indented like the previous one. Accepts a completion.
Ctrl+C / X / VCopy, cut, paste.
Ctrl+Z / Ctrl+YUndo / redo.
Ctrl+ASelect the tab.
Ctrl+DDuplicate the line or the selection downward.
Ctrl+/Comment or uncomment with --.
Ctrl+FFind. F3 jumps to the next hit. Escape closes the bar.
Ctrl+GGo to a line number.
EscapeCloses find, go-to, or the hint list first. A second Escape leaves the editor for the dev menu.

Hints pop up while you type a function name. Enter or Tab inserts the name, and a ( if COMPLETE ( is on in settings. SETTINGS → CODE EDITOR:

SOUND

The panel has two tabs. SFX is one pattern: a short run of notes. SOUND is a song: it places those patterns on eight channels. TIC is how many ticks one step waits. The clock is 120 ticks a second, and one step is a sixteenth note, so 15 ticks is 120 beats per minute. A higher TIC is a slower pattern. Two patterns stay in step when one TIC divides the other: 15 and 30 do, 15 and 8 do not.

The piano plays when a note is selected with the mouse. White keys are Z X C V B N M (C D E F G A B). Black keys are S D G H J (C# D# F# G# A#). Hover any value and type a number, or hover it and scroll the wheel. Pitch numbers in code run from 0 (C-0) to 63 (D#5).

On one pattern, LOOP and LEN are the same two numbers. OUT above 0 loops from IN through OUT, and the title reads LOOP. OUT at 0 and IN above 0 is LEN: that many notes play from the start, then the pattern ends, and the title reads LEN. Both at 0 plays every step.

How much of the synth you can edit depends on the bit depth chosen for the cartridge. SETTINGS → SFX EDITOR sets that depth, whether a note auto-advances (off, note chain, or field chain), whether Space restarts playback or toggles start and stop, and the editor colors.

16-bit

Each step has a note, a volume, a wave, and an effect. Volume is 0 to 7. 0 is silent.

Waves:

Effects on a single note:

The pattern header, above the notes:

8-bit

A step has a note and a wave. The four waves are square, triangle, saw, and noise. The header has TIC, LOOP IN / OUT, FX, and LEVEL. TIC is one of 1, 2, 3, 4, 5, 6, 8, 10, 12, 15, 16, 20, 24, 30, 40, 60. FX is one effect for the whole pattern: 0 none, 1 vibrato, 2 arpeggio, 3 fade out. LEVEL is 0 to 3.

4-bit

A step is only a note. The header has TIC, LOOP (on or off), WAVE (the same four waves), and OCT (which octave the notes sit in). TIC is one of 4, 6, 8, 10, 12, 15, 20, 30.

2-bit

A step is empty, a drum, a hit, or crush. The header has TIC and BASE. TIC is 8, 15, 16, or 30. BASE sets how high the drum and the hit sit.

1-bit

A step is a note. TIC is 8, 15, 16, or 30, the same four speeds as 2-bit.

Songs

The SOUND tab is the open song. Eight columns are the channels. A cell is a pattern id. 255, drawn empty, means that channel is silent on that row. The X column is a command: continue, stop, loop start, or loop end. Stop ends the song after the row. Loop end jumps back to the last loop start.

A row ends when the left-most pattern with LOOP OUT at 0 finishes. Patterns further right do not make that row longer: a longer one is cut, a shorter one starts again at its first step until the row ends. A pattern with LOOP OUT above 0 loops between LOOP IN and LOOP OUT and does not end the row. If every pattern on the row loops, the row stays there.

Shortcuts

KeyAction
Piano keysWrite a note on the step selected with the mouse.
Up / DownChange the value under the cursor.
SpacePlay the open SFX, or the open song from the first row. Start/stop or restart, from SFX EDITOR settings.
Ctrl+Z / Ctrl+YUndo / redo.
Ctrl+C / Ctrl+X / Ctrl+VCopy, cut, paste the selection.

DATA

Named tables. Each table is rows and columns. From code, dget, dset, dstr, drows, and dcols use these tables. Row and column numbers in code start at 0.

Column types, cycled on the header:

With the pointer on a column header, Ctrl+scroll changes that column's type. A plain scroll moves across columns or down rows, whichever SETTINGS → DATA EDITOR selects. Ctrl swaps that direction, which is why Ctrl+scroll on a header changes the type when the wheel is set to columns.

Arrow keys move. Enter edits a cell. SETTINGS → DATA EDITOR:

Assets

ASSETS imports and exports the piece that is open, not the whole project. Sprites use the sprite open in PAINT, on the sheet that is open. The map is the map that is open. SFX is the pattern that is open. Music is the song that is open. Data is the table that is open. Code is the exception: every tab is written, and every tab is read back.

KindFileWhat moves
Sprites.pngThe open sprite.
Map.p37mapThe open map.
SFX.p37sfxThe open pattern.
Music.p37musThe open song. Pattern numbers stay as they are. Export the SFX separately if you need those sounds.
Data.p37datThe open table.
Code.luaEvery tab.

Settings

The root list:

PageWhat it stores
PROFILESSave and load every setting. New, rename, overwrite, delete. Copy or paste the profile as text.
MenuWindow, keys, menu colors, optional background.
GAME PANELPreview and the play window.
CODE EDITORHighlight and hints.
PAINT EDITORBrush, palette, map view.
SFX EDITORSynth and note entry.
DATA EDITORWheel direction and colors.
LANGUAGEMenu and hint language.
LICENCESLicence texts, including the Fusion Pixel font and SDL3.

GLOBAL:

UP LT DN RT 0 1 2 3 Z X V C Y X A B A F L R S D select start defaults — change them in SETTINGS, KEY BINDINGS, per player

Default keyboard. A is confirm in menus. B is back. In a game these are buttons 4 and 5. Select (S) is button 10, not a menu shortcut.

ButtonRoleDefault key
0LeftLeft arrow
1RightRight arrow
2UpUp arrow
3DownDown arrow
4A, confirmV
5B, backC
6XX
7YZ
8RF
9LA
10SelectS
11StartD

Build

Pick a platform: Windows, Linux, Mac, Android, iOS, or Web.

Make a build with the internet on. The splash may ask the server, anonymously, whether this build's hash is known. That check is there for two reasons. It protects me, the author of PIX37, from copies of the tool that were not mine to give away. It also protects the person who made the game. Taking someone else's game and listing it as your own is becoming common on the phone market, such as Play (Android) or iOS. The game still starts. If the machine is offline, the intro says the game is not connected. That line is also a hint to the player that the copy may not have come from a legal source. It is a small check, so that if your game was stolen and sold without your consent by someone else, you can make that case on a store such as Play (Android), Steam, or itch.io. The server stores the time that hash was first registered, next to the hash, and does not change it later. The earlier time is the original build. A hash registered after that is a later copy.

I want this check to protect the people who make games. The engine already does a lot of the work for them, and this is one of those things. I understand that it can be controversial. If the community decides it is better to drop this micro-DRM, I will.

An old cartridge from a previous editor can refuse to boot after the language changes. Open the .pix37 project in this editor and export a new .p37.

Connect to PIX37.PARTY

CONNECT TO PIX37.PARTY is inside the app. There is no login page in the browser. You sign in with a Steam session ticket or with itch.io, using the pad and the mouse. The service shows a display name, 2 to 16 characters, unique. The licence key and the Steam id are not shown to other players.

After the terms of the service, the hub is Favorites, Catalog, Ranking, Players, and your profile.

A Developer licence is the editor. You make the game, you upload it, and you leave stars. A Gamer licence is the player. Hearts are from people playing on a runner.