| Age | Commit message (Collapse) | Author |
|
|
|
|
|
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.
|
|
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).
|
|
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).
|
|
And small build system changes.
|
|
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.
|
|
- `argv` size specifier
- WASM -> Wasm
|
|
We now support loading cart roms from .p8.png file :tada:!
|
|
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).
|
|
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.
|
|
|