PicoMiteVGA PETSCII ROBOTS release candidates


Author Message
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4301
Posted: 04:22pm 26 Jan 2025      

Hi @Volhout,

I've just observed that the music-toggle is incorrectly implemented, see lines 259-266 of robots602.bas:
Case "toggle-music"
    k$="" ' Do we need this ?
    Play stop:music=1-music
    If music Then
      select_music(3) 'only sfx
    Else
      select_music(map_nr mod 3) 'any of 3 songs
    EndIf


So initially the music is playing and music=1 (line 116).

Then the player presses M to "toggle-music", this will set music=0 which will keep the music playing because the clauses of the IF statement are swapped.

Best wishes,

Tom