3 ms·
(Thanks for vouching! I emailed the mods about my account. I think I tripped a filter with a clumsy submission start...) About the sprites: loading them from P
by FabianCarbonara 3mo ago
(Thanks for vouching! I emailed the mods about my account. I think I tripped a filter with a clumsy submission start...)
About the sprites: loading them from Python at runtime actually works. Stage's Bank objects are plain Python bytes (2048 bytes = 16 tiles at 16x16, 4bpp) plus a palette; on first use, _snesstage.bank() converts them to SNES bitplane format and DMAs them into one of 8 VRAM slots.
On extension modules in general: MicroPython has compiled-in C "user modules" (that's what _snesfb/_snesstage are) and dynamically loadable native .mpy modules. But this needs per-architecture relocation support, and the 65816 isn't among the supported targets.