Game (examples/MissileCommand):
- Trails rewritten as an analytic flight path (pos is a pure function of
distance travelled): paint and erase replay the exact same pixels, so
blinking trails leave zero residue. Smart bombs wiggle (S-curves) with
deterministic paths; erase band widened to a symmetric 7px so the ±1px
Bresenham slope jitter between paint/erase endpoints can never leak
paint ink (verified zero strays across dense frame captures).
- 2600 look: bright steady missile head dot with a flashing trail
(shared blink phase), trails vanish on death/impact; AA rockets stay
moving dots.
- Arcade rules: bomber planes (100x mult) and satellites (250x mult)
cross the sky dropping bombs; max 3 city kills per wave; bonus cities
at every 10k kept in reserve and deployed between waves; battery
silos rebuilt and replenished at each wave start (they no longer stay
dead across levels); center battery fires fast rockets, sides slow.
- Wave-start attack alarm (four falling tones, once); volume U/V/M with
OSD; sound task zeroes the I2S DMA ring when the queue drains so a
finished sound's tail no longer loops forever.
Emulator:
- --wave N flag to skip straight to a wave for quick testing
- --dump-interval N rolling frame captures (seq%05d.bmp)
- shim: uxQueueMessagesWaiting added
- Enemy missile trails now drawn 3px thick via drawThickLine() with a
bright head dot (white) that flashes against the trail color every
couple of frames, like the Atari 2600
- eraseBombTrail() uses a thicker erase band than the draw (5px, 7px for
wigging smart bombs) plus a 2px tip circle, so no trail residue is
left behind when a missile dies or impacts
for some reason with my version of platformio, the call to
Wire.begin((uint8_t)I2C_DEV_ADDR, SDA, SCL);
will resolve to controller setup instead of peripheral setup, and wrong
parameters for it:
entry 0x403cc710
[ 44][I][esp32-hal-i2c.c:75] i2cInit(): Initialising I2C Master: sda=85 scl=2 freq=10
[ 44][E][esp32-hal-i2c.c:88] i2cInit(): i2c_param_config failed
Starting keyboard work!
to call the correct overloaded function for peripheral setup, add 0 to
the call for the default frequency. with this, peripheral setup works
and the keyboard can communicate with the t-deck esp32s3 successfully:
entry 0x403cc710
[ 44][I][esp32-hal-i2c-slave.c:234] i2cSlaveInit(): Initialising I2C Slave: sda=2 scl=10 freq=100000, addr=0x55
[ 44][D][esp32-hal-i2c-slave.c:486] i2c_slave_set_frequency(): Fifo thresholds: rx_fifo_full = 28, tx_fifo_empty = 4
Starting keyboard work!