No description
  • Pascal 76.4%
  • PowerShell 9.5%
  • Liquid 9.5%
  • Python 2.3%
  • Batchfile 1.1%
  • Other 1.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-27 22:53:37 +01:00
.gitea/workflows zig 0.17.0 2026-11-27 22:14:53 +01:00
assets ui: unified chrome on a shared kit (all views, atlas, clipboard, wizards) 2026-11-26 01:38:35 +01:00
docs docs: README rewrite with screenshots; store page for 5.4.1 2026-11-27 17:11:24 +01:00
installer build: retire tools/build.sh, build.ps1 and web.ps1 for zig build 2026-11-27 00:28:42 +01:00
release sketchpad: floating session-only pixel canvas (View > Sketchpad, P) 2026-11-27 17:06:34 +01:00
shopify docs: README rewrite with screenshots; store page for 5.4.1 2026-11-27 17:11:24 +01:00
src restore performance on linux wayland 2026-11-27 22:53:37 +01:00
test release 5.4.1: fix data-loss, Windows path and UI blockers 2026-11-27 16:47:22 +01:00
tools build: retire tools/build.sh, build.ps1 and web.ps1 for zig build 2026-11-27 00:28:42 +01:00
webbuild help: keyboard shortcuts sheet (F1); release cleanup pass 2026-11-27 16:56:22 +01:00
.gitattributes build: one unified entry point per OS (build.sh / build.ps1) 2026-11-26 02:18:46 +01:00
.gitignore build: native zig build (editor, test, selftest, fuzz, filc, shareware, run, clean) 2026-11-27 00:15:55 +01:00
AGENTS.md zig 0.17.0 2026-11-27 22:14:53 +01:00
bg.pal ui: Export/Cancel buttons + contextual title in the save browser 2026-11-22 15:59:27 +01:00
build.zig zig 0.17.0 2026-11-27 22:14:53 +01:00
EULA.md help: keyboard shortcuts sheet (F1); release cleanup pass 2026-11-27 16:56:22 +01:00
font.p1xfont windows 2026-11-26 01:02:52 +01:00
logo.txt ui: Cyfrowy Nomada block-art logo in the About window 2026-11-22 19:36:01 +01:00
project-koro-v4.p1x data: update sample project.p1x, add project-koro-v4.p1x 2026-11-26 21:24:16 +01:00
project.p1x data: update sample project.p1x, add project-koro-v4.p1x 2026-11-26 21:24:16 +01:00
README.md zig 0.17.0 2026-11-27 22:14:53 +01:00
THIRD_PARTY_NOTICES.md release 5.4.1: fix data-loss, Windows path and UI blockers 2026-11-27 16:47:22 +01:00

P1Xel Editor

A Game Boy / Game Boy Color pixel editor in C11 + raylib: tiles, sprites, fonts, screens, full-screen art windows and the asset registry of a game, in one window. Windows and Linux, plus a browser (shareware) build.

Screen view: the Koro title screen on a 32x32 map

Features

  • Tiles, Sprites, Font Edit (F2–F4): draw, fill, line and select on 8×8 / 16×16 canvases or a W×H painter block, in 8 BG + 8 OBJ palettes.
  • Font (F5): map glyphs to characters, share them as .p1xfont packs.
  • Screen (F6): 20×18 or 32×32 maps with per-cell palettes and flips, up to 40 sprites, meta-tiles and meta-sprites.
  • Screens (F7): a gallery of every screen; sketch screens stay out of the export.
  • Art Windows (F8): full-screen art on banked tiles with automatic, flip-aware tiling and a live tile budget.
  • Registry (F9): named tiles, meta-tiles, sprites and meta-sprites for your engine (catalog.toml).
  • Sketchpad (P): a floating 8×8 / 16×16 / 32×32 scratch canvas above every view. It is never saved.
  • Keyboard Shortcuts (F1): every key and mouse gesture in one sheet.
  • Simple mode: a Paint-style editor for a single PNG / BMP image.
  • Real-size 3D handheld preview, CGB / DMG / DMG-reversed palettes, game data export for asm projects, image export, ROM / 2bpp / BMP import, tablet pen pressure, undo / redo, 10 s autosave with crash recovery.
Tiles Sprites
Tiles (F2) Sprites (F3)
Screens Art Windows
Screens (F7) Art Windows (F8)
Registry Sketchpad
Registry (F9) Sketchpad (P)
Keyboard shortcuts Real-size preview
Keyboard Shortcuts (F1) Real-size preview
Simple mode
Simple mode

Screenshots are real renders of project-koro-v4.p1x (./p1xel --shot <dir> project-koro-v4.p1x renders every view).

Build

One entry point on every OS: zig build (zig 0.17.0). raylib 6.2 is fetched at a pinned commit and linked statically, so only zig + git are needed (Windows: winget install zig.zig; Linux: zig + the X11/GL headers listed in build.zig).

zig build                    editor + format tests + headless selftest
zig build editor             ./p1xel (Windows: p1xel.exe)
zig build test               .p1x format tests (raylib-free)
zig build selftest           headless gate (no window)
zig build fuzz -Dseconds=60  loader / saver mutation fuzzer
zig build filc               Fil-C memory-safe run of the format core
zig build shareware          ./p1xel-shareware
zig build html5              browser shareware build -> HTML5/editor/
zig build release            gates + every package -> release/
zig build run

Layout

src/p1x.h, p1x_load.c, p1x_save.c   .p1x format (docs/P1XFORMAT.md is the referee)
src/p1x_dup.c, rom_ops.c            undo copies, ROM move / copy / clear
src/main.c                          window shell, --selftest, --shot
src/theme.h, ui_kit.c               colour tokens and the shared widget kit
src/ui_rom.c, ui_clip.c             shared tile atlas, selection + clipboard
src/ui_pixedit.c                    Tiles / Sprites / Font Edit
src/ui_font.c, ui_screen.c          Font map, Screen designer
src/ui_screenmgr.c, ui_artwin.c     Screens gallery, Art Windows
src/ui_registry.c, ui_sketch.c      Registry, floating Sketchpad
src/ui_menu.c, ui_keys.c            menus + dialogs, shortcut sheet
src/ui_simple.c                     Simple (Paint) mode
src/engine_export.c, io_extra.c     game data export, imports, bitmap export
test/p1x_test.c, test/p1x_fuzz.c    format gate and fuzzer

Conventions, gates and release steps for contributors are in AGENTS.md; the user guide that ships with the editor is release/README.md.