Skip to content

Commit

Permalink
fix glitch level after bosses & cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
SBDWolf committed Sep 19, 2023
1 parent 5096166 commit 8b4de44
Showing 1 changed file with 7 additions and 17 deletions.
24 changes: 7 additions & 17 deletions dkl2-practice.asm
Expand Up @@ -158,6 +158,7 @@ IF FRAMECOUNTER == 1
ld [timer_level_minutes], a
ENDC
call set_characters_bank_2
;call set_level_id_bank_2
ld a, b
jr $7199

Expand All @@ -172,6 +173,11 @@ SECTION "change_star_barrel_flag_detection", ROM0[$0229]
ld a, [star_barrel_flag]
and a

SECTION "suppress_level_change_after_bosses", ROM0[$035f]
nop
nop
nop



IF FRAMECOUNTER == 1
Expand Down Expand Up @@ -653,23 +659,6 @@ ENDC

jp $0199

; experimental
start_level_with_characters::
call wait_for_vblank
ld hl, LCDC
res 7, [hl]

call set_characters

IF FRAMECOUNTER == 1
call copy_alnum
ENDC

pop hl

jp $0199



IF FRAMECOUNTER == 1
copy_alnum::
Expand Down Expand Up @@ -1306,3 +1295,4 @@ set_characters_bank_2::
inc a
ldh [CHAR_BOTH_FLAG], a
ret

0 comments on commit 8b4de44

Please sign in to comment.