Does anybody know the exact purpose of any special-use flags in video games? And when would these flags really be needed?
For example, the 'DeathMusicLoaded' flag in Super Mario Bros., Super Mario Bros. 2 (Japan) and All Night Nippon Super Mario Bros. is one such example:~Ben (SMB2J-2Q)
For example, the 'DeathMusicLoaded' flag in Super Mario Bros., Super Mario Bros. 2 (Japan) and All Night Nippon Super Mario Bros. is one such example:
Code:
HoleDie: inx ;set flag in X for player death ldy GameEngineSubroutine ;check for other specific routines running cpy #$0b beq ChkHoleX ;if so, branch ahead ldy DeathMusicLoaded ;check value here bne HoleBottom ;if already set, branch to next part iny sty EventMusicQueue ;otherwise increment to play death music sty DeathMusicLoaded ;and set value here
Statistics: Posted by SMB2J-2Q — Thu Aug 15, 2024 3:51 am — Replies 5 — Views 270