aboutsummaryrefslogtreecommitdiff
path: root/doc
AgeCommit message (Collapse)Author
2026-10-27Multicart Loading with BBSNicholas Rodrigues Lordello
2026-10-26Update Journal EntryNicholas Rodrigues Lordello
2026-10-12Fix Byte Order for Surface PixelsNicholas Rodrigues Lordello
I went down a deep rabbithole to understand the pixel order, and it turns out that the Emscripten library code is setting the wrong `format` value for what it actually uses, which threw me off. We now set the correct pixel format tag, and handle pixel byte ordering correctly on the host. Some other minor fixes.
2026-10-09Factor Out Controller LogicNicholas Rodrigues Lordello
Start factoring out controller logic, note that we need to manage controllers at the app-level and not the scene level, as the different scenes need gamepad events (for controlling cart selection and passing to the game respectively). There are some hacks to work around how the new abstraction does not exactly fit the previous model, we will fix that up once we wire up the rest of input handling: PICO-8 needs keyboard and mouse events only from the host, and they need to be in SDL 1.3 format (the Emscripten SDL builtin that PICO-8 uses).
2026-06-21Remove Boot CartNicholas Rodrigues Lordello
Instead of a boot cart (which would just be really complicated to properly implement), just implement a basic game selector in SDL directly. We can just implement a very basic cart selection interface that cycles through all carts in the cart directory (supporting `.p8`, `.p8.png` and `.p8.rom` formats).
2025-04-24Some More NotesNicholas Rodrigues Lordello
And small build system changes.
2025-04-20Fibonacci Test PassesNicholas Rodrigues Lordello
We can now run the fibonacci program, including a native function import. This is a great first step, and now we need to start implementing PICO-8 library functions (basically, `emcc` library, but one that is both more stubbed and supports the `setjmp` and `longjmp` which does not appear to be the case for the included implementation in WAMR). But before, a small build system refactoring detour to make building WAMR and PICO-w easier for both SDL platforms and Vita platform. Additionally, the platform stubs that we use in the WAMR test might need to change a bit, in order to allow PICO-w SDL and Vita platforms to implement certain details differently.
2025-04-15Minor FixesNicholas Rodrigues Lordello
- `argv` size specifier - WASM -> Wasm
2025-04-14PNG Cart SupportNicholas Rodrigues Lordello
We now support loading cart roms from .p8.png file :tada:!
2025-04-12Extra PICO-8 Data PodNicholas Rodrigues Lordello
Add a tool for extracting the PICO-8 data.pod file that is exported with the cart. This includes (on inspecting the binary) the boot sequence cart among some other things. It is written as a quick and dirty C program (since we will have to practice our C anyway).
2025-04-08Instantiate PICO-8 WASM ModuleNicholas Rodrigues Lordello
We create the PICO-8 WASM module instance with a stubbed imports object, but it gets instantiated! Added a couple more findings to the journal.
2025-04-08Started a dev-journal recording findingsNicholas Rodrigues Lordello