<feed xmlns='http://www.w3.org/2005/Atom'>
<title>picow/src/game.c, branch main</title>
<subtitle>Launcher for the PICO-8 Wasm Runtime</subtitle>
<id>http://src.lordello.net/picow/atom/src/game.c?h=main</id>
<link rel='self' href='http://src.lordello.net/picow/atom/src/game.c?h=main'/>
<link rel='alternate' type='text/html' href='http://src.lordello.net/picow/'/>
<updated>2026-10-29T10:31:08Z</updated>
<entry>
<title>Implement Cart Shutdown</title>
<updated>2026-10-29T10:31:08Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2026-10-29T10:31:08Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/picow/commit/?id=f9950fce6f7b7a3743920f0d787fb1857aa05769'/>
<id>urn:sha1:f9950fce6f7b7a3743920f0d787fb1857aa05769</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Support the Shutdown Option</title>
<updated>2026-10-28T23:45:24Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2026-10-28T23:45:24Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/picow/commit/?id=ec6ed6404cdc29fc204eb93fdeb5025deb42f49d'/>
<id>urn:sha1:ec6ed6404cdc29fc204eb93fdeb5025deb42f49d</id>
<content type='text'>
It looks like the `SHUTDOWN` menu option shows up when the `-run`
CLI argument is passed, so pass it. There is a catch though, in
that PICO-8 does not properly report shutdown requests in those
cases, so read Wasm memory directly to detect the shutdown request.
</content>
</entry>
<entry>
<title>Implement Remaining Syscalls</title>
<updated>2026-10-28T21:44:04Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2026-10-28T21:44:04Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/picow/commit/?id=5db0d1702e9ba8b64d71967bbd651cb38b649cd7'/>
<id>urn:sha1:5db0d1702e9ba8b64d71967bbd651cb38b649cd7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Refactor Embedded Cart Loading</title>
<updated>2026-10-27T15:30:52Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2026-10-27T15:25:33Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/picow/commit/?id=a7bf69b22a9b7559e40031b9d1ad16385e029511'/>
<id>urn:sha1:a7bf69b22a9b7559e40031b9d1ad16385e029511</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Multicart Loading with BBS</title>
<updated>2026-10-27T14:26:20Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2026-10-27T14:26:20Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/picow/commit/?id=8dda4698251ac7c724005a158d9c11e90a44c7e9'/>
<id>urn:sha1:8dda4698251ac7c724005a158d9c11e90a44c7e9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Implement Audio Device and Remaining ASM Consts</title>
<updated>2026-10-26T07:42:53Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2026-10-26T07:32:08Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/picow/commit/?id=4957ca8373273721017fc8106b52d5bc6b2a0180'/>
<id>urn:sha1:4957ca8373273721017fc8106b52d5bc6b2a0180</id>
<content type='text'>
We abstract over SDL's audio subsystem and implement an audio
device that fits into PICO-8's model. We fixed the implementation
for the PICO-8 window focus and key buffer and can now actually
boot into PICO-8 games with working sounds and controls!

There are a few issues that remain:

1. There is no "exit" option in the pause menu, I think it thinks
   that we are on the BBS, and maybe there is someway to fix this?
2. The clipboard textarea is not implemented at all; we should
   keep a text buffer in `pw_input` and interact with SDL's
   clipboard system
3. Multicart's don't always work; in particular Undune II tries
   to download from the BBS, I would like to shim this somehow
   to support both `LOAD("FOO.P8")` and `LOAD("#FOO")` forms
   transparently.
</content>
</entry>
<entry>
<title>Improve Gamepad Handling</title>
<updated>2026-10-24T08:48:45Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2026-10-24T08:48:45Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/picow/commit/?id=02da08e9d84371c558da6347210c00e3966f2dc5'/>
<id>urn:sha1:02da08e9d84371c558da6347210c00e3966f2dc5</id>
<content type='text'>
There were a few cases where we would have stale input information
becaues the `pw_input` only receives events while the game is
running. This fixes that by:

- Reseting the player count on game start
- Clearing button states for disconnected players
- Improve handling of the POOM player 2 support in case a second
  player connects
</content>
</entry>
<entry>
<title>Various Small Bug Fixes</title>
<updated>2026-10-23T21:03:39Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2026-10-23T20:07:14Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/picow/commit/?id=1c4eada99c6f98eae40c676d261c8d4fc1de6079'/>
<id>urn:sha1:1c4eada99c6f98eae40c676d261c8d4fc1de6079</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Implement IO Syscalls</title>
<updated>2026-10-23T15:00:13Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2026-10-23T15:00:13Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/picow/commit/?id=99fa88f971f23a3422f370d6f05b277c102ee9c3'/>
<id>urn:sha1:99fa88f971f23a3422f370d6f05b277c102ee9c3</id>
<content type='text'>
Now that we implemented our file-system, we can implement IO-related
syscalls and ASM constants and get further into the boot.

For now, we just use an in-memory userdat storage, but eventually,
I want to persist this to disk.

We can now boot to the point where we try to `invoke_vii`, which,
AFAIU, is the whole setjmp/longjmp machinery that I have to figure
out.
</content>
</entry>
<entry>
<title>More ASM Constants</title>
<updated>2026-10-21T05:32:59Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2026-10-21T05:32:59Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/picow/commit/?id=131675bb507d96bea1b0ad20e0022d53171fad2a'/>
<id>urn:sha1:131675bb507d96bea1b0ad20e0022d53171fad2a</id>
<content type='text'>
We also implement some additional mouse functionality for pointer
locking and for reading the mouse wheel (although, that is currently
not hooked up over the ASM constants quite yet).
</content>
</entry>
</feed>
