Skip to content
This repository was archived by the owner on Sep 21, 2025. It is now read-only.

Commit e39f104

Browse files
committed
GBCompo demo v1.4
1 parent 2b1b1f4 commit e39f104

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

Engine/Object.asm

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -525,13 +525,21 @@ Monster_CheckKill:
525525
add hl,bc
526526
ld [hl],1
527527
; make player bounce
528+
ld a,[sys_btnHold]
529+
bit btnA,a
530+
jr nz,.highbounce
531+
ld a,high(Player_BounceHeight)
532+
ld [Player_YVelocity],a
533+
ld a,low(Player_BounceHeight)
534+
ld [Player_YVelocityS],a
535+
jr :+
536+
.highbounce
528537
ld a,high(Player_HighBounceHeight)
529538
ld [Player_YVelocity],a
530539
ld a,low(Player_HighBounceHeight)
531540
ld [Player_YVelocityS],a
532-
; prevent monster from respawning
533-
call KillMonster
534-
ret
541+
: ; prevent monster from respawning
542+
jp KillMonster
535543

536544
section "Object System Routines",rom0
537545

0 commit comments

Comments
 (0)