Skip to content

Commit

Permalink
arcade: bigger target hurtboxes
Browse files Browse the repository at this point in the history
  • Loading branch information
sgadrat committed Mar 27, 2024
1 parent 248d595 commit fed629f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions game/logic/game_states/arcade_mode/ingame_hooks.asm
Expand Up @@ -471,16 +471,21 @@ hide_player_b:
.)

; Store target's hurtbox
target_hurtbox_margin = 2
;lda arcade_mode_targets_y, x ; useless, value already in A
sec
sbc #target_hurtbox_margin
sta target_top_pixel
clc
adc #8
adc #8+target_hurtbox_margin*2
sta target_bot_pixel

lda arcade_mode_targets_x, x
sec
sbc #target_hurtbox_margin
sta target_left_pixel
;clc ; useless, previous adx should not overflow
adc #8
adc #8+target_hurtbox_margin*2
sta target_right_pixel

lda #0
Expand Down

0 comments on commit fed629f

Please sign in to comment.