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.
- VIDEO — 1-BIT (2 colors), 2-BIT (4), 4-BIT (16), 8-BIT (256).
- AUDIO — sample depth of the synth: 16, 8, 4, 2, or 1 bit.
- SCREEN — presets include 64×64, 128×128, 160×90, 256×256, and 320×180. CUSTOM size lets you pick any size from 1×1 to 512×512.
- PALETTES — banks of colors. The first bank starts as the 16-color set below. LOAD PALETTE applies a built-in set: PICO-8 16, PICO-8 32, Game Boy, 1-bit, CGA, Sweetie-16, and a longer list taken from Lospec (Resurrect 64, Apollo, Endesga 32 and 64, CC-29, SLSO8, Pear36, Oil 6, Duel, AAP-64, Lost Century, and others). You can also load a palette file, or load your own PNG and take the palette out of that image.
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.
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:
| Code | What you see |
|---|---|
1:1:4:1:1 | Everything. GAME and SOUND stacked, PAINT and DATA stacked, CODE on the right. |
1:1:4:1:1 2X | The same arrangement. CODE is drawn at twice the density, so twice as much text fits. |
1:0:1:0:1 | GAME, DATA, CODE. |
1:0:1:0:1 2X | The same arrangement, with the denser CODE. |
0:1:1:1:1 | No game preview. PAINT, CODE, SOUND, DATA. |
0:1:1:1:1 2X | The same arrangement, with the denser CODE. |
0:1:4:1:2 | Studio. Wide CODE, a taller DATA strip, PAINT and SOUND. |
0:1:4:1:2 2X | The same arrangement, with the denser CODE. |
0:0:4:0:4 | CODE and DATA only, both large. |
0:0:4:0:4 2X | The same arrangement, with the denser CODE. |
0:1:4:1:0 | PAINT, SOUND, and a wide CODE. |
0:1:4:1:0 2X | The same arrangement, with the denser CODE. |
0:4:0:0:0 | PAINT 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:
- Preview — idle color, continuous, or auto reload when you edit.
- Play in a new window — the game opens beside the editor.
- Display — preview as RGB888 or RGB565.
- GAME 64 — a 64×64 screen is either centered 1:1 in the cell, or scaled 2× to fill it.
- Shaders — CRT and filters on the game, separate from the filters on the editor.
- Color — background of the panel.
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.
| Key | Tool |
|---|---|
| B | Pencil |
| M | Rectangle select |
| Q | Lasso |
| S | Stamp |
| G | Bucket |
| I | Eyedropper |
| V | Move |
| L / Shift+L | Line / curve |
| U / Shift+U | Hollow rectangle / hollow ellipse |
| F / Shift+F | Filled rectangle / filled ellipse |
| D | Dither |
| [ ] | Smaller / larger brush |
| Ctrl+Z / Ctrl+Y | Undo / redo. Ctrl+Shift+Z also redoes. |
| Ctrl+C / Ctrl+X / Ctrl+V | Copy, cut, paste |
| Ctrl+A | Select 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:
- Palette — which bank is drawn, plus load and save.
- Preview — RGB888 or RGB565.
- Brush cursor — the pointer while you paint.
- Pixel snap — how the brush snaps to pixels.
- Big brush — a large brush snaps from its top-left, or from its whole footprint.
- Onion skin — a ghost of other frames, and which direction that ghost faces.
- Map zoom — true pixels, or a free zoom.
- Colors — the paint UI colors.
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.
| Key | Action |
|---|---|
| Arrows | Move the caret. Shift extends the selection. |
| Ctrl+Left / Right | By word. |
| Home / End, Ctrl+Home / End | Start or end of the line, or of the tab. |
| Tab | Insert two spaces. In the completion list, accept the name. |
| Enter | New line, indented like the previous one. Accepts a completion. |
| Ctrl+C / X / V | Copy, cut, paste. |
| Ctrl+Z / Ctrl+Y | Undo / redo. |
| Ctrl+A | Select the tab. |
| Ctrl+D | Duplicate the line or the selection downward. |
| Ctrl+/ | Comment or uncomment with --. |
| Ctrl+F | Find. F3 jumps to the next hit. Escape closes the bar. |
| Ctrl+G | Go to a line number. |
| Escape | Closes 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:
- Search — Ctrl+F in the active tab, or across every tab.
- Text high — crop glyphs to 5 px, or show the full glyph.
- String size — font size of string literals.
- Comment font — 3×5, or the Fusion font of the current UI language.
- Complete ( — whether completion types the parenthesis.
- Code hints — on or off.
- Hints language — the menu language, or English.
- Caret space — extra offset on empty lines.
- Gutter — line numbers.
- Color — background, comments, tabs, numbers, operators, keywords, strings, engine functions, your functions, variables, brackets, caret, selection, error line, warning.
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:
- 0 triangle
- 1 tilted saw
- 2 saw
- 3 square
- 4 pulse — a narrow pulse
- 5 organ
- 6 noise
- 7 phaser
- 8 PWM — a square whose width moves
- 9 pulse 25%
- 10 sine
- 11 metallic noise
- 12 FM bell
- 13 pluck
- 14 supersaw
- 15 PWM (C64)
Effects on a single note:
- 0 none
- 1 slide — pitch and volume glide to the next note across this step
- 2 vibrato — pitch wobbles
- 3 drop — pitch falls to silence, the usual kick
- 4 fade in
- 5 fade out
- 6 arpeggio — walks this note and the next three, one every 8 ticks. At TIC 8 or below, every 4 ticks.
- 7 fast arpeggio — the same four notes, every 4 ticks, or every 2 when TIC is 8 or below.
The pattern header, above the notes:
- TIC — ticks per step, from 1 to 255. 15 is 120 beats per minute. Type the number, or step it by one.
- LOOP IN / OUT — with OUT above 0, the pattern loops from IN to OUT. Leave OUT at 0 and the title becomes LEN: IN is how many notes play, and 0 means the whole pattern.
- NOISE — the whole pattern becomes noise.
- CRUSH — a buzzy variant of each wave.
- DTUNE — 0 off, 1 a light chorus, 2 a strong chorus.
- RVERB — reverb: 0 off, 1 short, 2 long.
- DAMPN — a low-pass filter: 0 off, 1 light, 2 strong.
- LEVEL — volume of the whole pattern, 0 to 7.
- SWING — shuffle. Odd steps wait a little longer, even steps a little less.
- STEPS — how many steps the pattern uses: 32, 24, 16, or 12.
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
| Key | Action |
|---|---|
| Piano keys | Write a note on the step selected with the mouse. |
| Up / Down | Change the value under the cursor. |
| Space | Play the open SFX, or the open song from the first row. Start/stop or restart, from SFX EDITOR settings. |
| Ctrl+Z / Ctrl+Y | Undo / redo. |
| Ctrl+C / Ctrl+X / Ctrl+V | Copy, 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:
- bool — one bit.
- 2 — two bits.
- 4 — four bits.
- 8 — a byte.
- 16 — 16 bits, for ids and larger numbers.
- spr — a sprite id.
- str — text, drawn with the system font.
- str8 and str10 — the same text, drawn taller.
- f16 and f32 — a half-precision float and a full float.
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:
- Wheel — scroll columns, or scroll rows.
- Colors — the grid, the header, and the selection.
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.
| Kind | File | What moves |
|---|---|---|
| Sprites | .png | The open sprite. |
| Map | .p37map | The open map. |
| SFX | .p37sfx | The open pattern. |
| Music | .p37mus | The open song. Pattern numbers stay as they are. Export the SFX separately if you need those sounds. |
| Data | .p37dat | The open table. |
| Code | .lua | Every tab. |
Settings
The root list:
| Page | What it stores |
|---|---|
| PROFILES | Save and load every setting. New, rename, overwrite, delete. Copy or paste the profile as text. |
| Menu | Window, keys, menu colors, optional background. |
| GAME PANEL | Preview and the play window. |
| CODE EDITOR | Highlight and hints. |
| PAINT EDITOR | Brush, palette, map view. |
| SFX EDITOR | Synth and note entry. |
| DATA EDITOR | Wheel direction and colors. |
| LANGUAGE | Menu and hint language. |
| LICENCES | Licence texts, including the Fusion Pixel font and SDL3. |
GLOBAL:
- LAYOUT — panel arrangement, above.
- VOLUME — master level, 0 to 10.
- KEY BINDINGS — keys for each of 8 players. Press a key to capture it. Directions, A B X Y L R, select.
- Present — skip idle frames, or draw every frame.
- Fullscreen — borderless.
- Refresh — window FPS. Left and right step 60, 90, 120, and max. Enter types a number up to 1000. 0 means no cap.
- Vsync — wait for the display between frames.
- Scale — integer window multiplier.
- Shaders — CRT and filters on the editor, not on the game.
- Color — menu text and highlight.
- Background — an optional PNG, cropped to 128, behind the menu. Clear removes it.
- Editor cursor — pointer shape.
- Mouse — floating pointer, or snapped to pixels.
- UI speed — how fast a held direction repeats through a list.
- Explorer — file lists start at the computer root, or at the folder of the exe.
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.
| Button | Role | Default key |
|---|---|---|
| 0 | Left | Left arrow |
| 1 | Right | Right arrow |
| 2 | Up | Up arrow |
| 3 | Down | Down arrow |
| 4 | A, confirm | V |
| 5 | B, back | C |
| 6 | X | X |
| 7 | Y | Z |
| 8 | R | F |
| 9 | L | A |
| 10 | Select | S |
| 11 | Start | D |
Build
Pick a platform: Windows, Linux, Mac, Android, iOS, or Web.
- Name — file name of the build.
- Author — on Windows and Linux. This is the folder name for saves.
- Steam app id — on Windows and Linux. Empty means no Steamworks. A filled id maps
achieve(0)…achieve(15)to Steam achievements ACH_0…ACH_15. - Id — bundle identifier where the platform asks for one.
- Hide code — on desktop and mobile overlays. It slows
peekof the cart. It is not a lock. - Fullscreen — the exported player starts fullscreen.
- Shaders — up to three layers baked into the player.
- Download .p37 — Web only. Shows a download entry in the pause menu.
- Icon — a tile from a sprite sheet: sheet, size, x, y. Or a PNG cover you crop.
- Export — pick the folder. The menu reports BUILD SAVED or BUILD FAILED.
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.
- Catalog — browse games. Filters cover genre (up to three), screen size, cartridge size, and whether the upload includes a
.pix37project. - Favorites — games you marked.
- Upload — needs a Developer licence. You send a
.p37, and you may attach the.pix37project. A.p37is packed bytecode. It is hard to read, and it can be obfuscated on purpose. A.pix37is the project file you actually work in: the source, the pictures, and the sound, in a form another person can open and learn from. Sending it lets other creators study the game instead of a compressed cartridge. Title, author, genres, cover, icon, and achievement names go with it. The RAM number sent up is the peak the cart reached. - Comments and achievements — on the game page. Unlocking an achievement while you are signed in is stored on that account as well as on the machine.
- Ranking — developers, sorted by stars or by hearts. Each row shows both counts. Open a name to see that author's games, ordered by hearts.
- Players — accounts ordered by achievements unlocked.