1
0
mirror of https://github.com/UzixLS/pacemuzx.git synced 2025-07-18 23:01:36 +03:00

Restored blue/white maze flash

Using a blue or white maze will automatically flash blue/white at the end of each level, if colour is enabled.  Other cases continue to toggle the bright bit.
This commit is contained in:
Simon Owen
2012-01-07 15:40:03 +00:00
parent 887cff980d
commit c3e6fff09f

View File

@ -445,16 +445,23 @@ flash_maze: ld a,(&4440) ; attribute of maze top-right
jr nz,maze_blue ; if not, draw as normal
xor %01000000 ; toggle bright
ld b,a
ld b,a ; save
IF colour
patch_and: and %00000111 ; keep basic colour
cp 7 ; white?
jr nz,not_white
ld b,&41 ; change to bright blue
not_white: cp 1 ; blue?
jr nz,not_blue
ld b,&07 ; change to white
not_blue:
ENDIF
ld a,&40 ; blank tile
ld (&420d),a ; clear left of ghost box door
ld (&41ed),a ; clear right of ghost box door
ld a,b
maze_blue:
; attribute to set now in A
call page_screen
attr_scr_lp: ld hl,&5800+5