state machine: every actor now has its own state machine memory area
authorLukas Krickl <lukas@krickl.dev>
Sun, 23 Feb 2025 11:16:14 +0000 (12:16 +0100)
committerLukas Krickl <lukas@krickl.dev>
Sun, 23 Feb 2025 11:16:14 +0000 (12:16 +0100)
commit8c92857d74af1bc1fff78540551e75ba166f0a70
treef74918f96894edee3bfeaa153d2b51f323956bfc
parentf29c8b2d9e59b6668952151925884417650bceff
state machine: every actor now has its own state machine memory area

Each actor gets 3 bytes. the sm load ptr macro now loads the correct
offset.
When a turn is ended the sm offset is advanced by sm_size. If the actor
table is reset to 0, sm offset is also reset.
src/actor.s
src/macros.inc
src/player.s
src/state.s
src/wram.s