I think it would be neat to replace the sound code by an instantiation of an Amiga Paula chip and the necessary glue-logic, thinking about how would this game engine be actually implemented if it were real hardware.
As a second step, it would be nice to draft the actual logic circuit for such glue-logic or, alternatively, use a Z80 (or similar CPU/MCU) to control the sound system.
I think it would be neat to replace the sound code by an instantiation of an Amiga Paula chip and the necessary glue-logic, thinking about how would this game engine be actually implemented if it were real hardware.
As a second step, it would be nice to draft the actual logic circuit for such glue-logic or, alternatively, use a Z80 (or similar CPU/MCU) to control the sound system.