Description: Let's drive this gag into the ground!
!game_mode = $7e0100 !buttons1 = $7e0016 !ground_stand = $7e13ef !sprite_stand = $7e1471 !sprite_2_id = $7e00a0 !sprite_2_status = $7e14ca !sprite_2_tweaker4 = $7e167c !sprite_2_tweaker5 = $7e1688 !inflation_timer = $7e13f3 !sfx = $7e1df9 !pballoon_timer = $7e1891 lda !game_mode cmp #$14 bne end lda !pballoon_timer dec bpl + lda #$40 sta !pballoon_timer + ;b jump test lda !buttons1 bit #$80 beq end ;b jump ;Test if the player is on the ground. lda !ground_stand ora !sprite_stand beq end ;Player is jumping off the ground. Give them a pballoon! lda #$7d sta !sprite_2_id lda #$0b sta !sprite_2_status lda #$09 sta !inflation_timer lda #$9a sta !sprite_2_tweaker4 lda #$29 sta !sprite_2_tweaker5 lda #$1e sta !sfx end: lda #$00 rtlback to listings