Skip to content

Commit

Permalink
adjust darttrap's hitbox to spawn darts at the correct position
Browse files Browse the repository at this point in the history
  • Loading branch information
Narre committed Aug 26, 2023
1 parent bc496de commit d4ea33d
Showing 1 changed file with 37 additions and 33 deletions.
70 changes: 37 additions & 33 deletions data/images/creatures/darttrap/darttrap.sprite
Original file line number Diff line number Diff line change
@@ -1,75 +1,79 @@
(supertux-sprite
(action
(hitbox -13 2 32 38)
(hitbox -8 2 32 63)
(name "idle-left")
(loops 1)
(fps 10)
(images "empty_left-0.png"
"empty_left-1.png"
"empty_left-2.png"
"empty_left-3.png"
"empty_left-4.png")
"empty_left-1.png"
"empty_left-2.png"
"empty_left-3.png"
"empty_left-4.png"
)
)
(action
(hitbox 2 19 38 32)
(hitbox 2 14 63 32)
(name "idle-down")
(loops 1)
(fps 10)
(images "empty_down-0.png"
"empty_down-1.png"
"empty_down-2.png"
"empty_down-3.png"
"empty_down-4.png")
"empty_down-1.png"
"empty_down-2.png"
"empty_down-3.png"
"empty_down-4.png"
)
)
(action
(hitbox 19 2 32 38)
(hitbox 14 2 32 63)
(name "idle-right")
(loops 1)
(fps 10)
(fps 10)
(mirror-action "idle-left")
)
(action
(hitbox 2 -13 38 32)
(hitbox 2 -8 63 32)
(name "idle-up")
(loops 1)
(fps 10)
(loops 1)
(fps 10)
(flip-action "idle-down")
)

(action
(hitbox -13 2 32 38)
(hitbox -8 2 32 63)
(name "loading-left")
(loops 1)
(fps 10)
(fps 10)
(images "empty_left-4.png"
"charge_left-0.png"
"charge_left-1.png"
"charge_left-2.png"
"charge_left-3.png")
"charge_left-0.png"
"charge_left-1.png"
"charge_left-2.png"
"charge_left-3.png"
)
)
(action
(hitbox 2 19 38 32)
(hitbox 2 14 63 32)
(name "loading-down")
(loops 1)
(fps 10)
(fps 10)
(images "empty_down-4.png"
"charge_down-0.png"
"charge_down-1.png"
"charge_down-2.png"
"charge_down-3.png")
"charge_down-0.png"
"charge_down-1.png"
"charge_down-2.png"
"charge_down-3.png"
)
)
(action
(hitbox 19 2 32 38)
(hitbox 14 2 32 63)
(name "loading-right")
(loops 1)
(fps 10)
(fps 10)
(mirror-action "loading-left")
)
(action
(hitbox 2 -13 38 32)
(hitbox 2 -8 63 32)
(name "loading-up")
(loops 1)
(fps 10)
(loops 1)
(fps 10)
(flip-action "loading-down")
)
)
)

0 comments on commit d4ea33d

Please sign in to comment.