Experimented with loading hitbox from .sprite file
[supertux.git] / data / images / creatures / snail / snail.sprite
index 83aff20..b03b31e 100644 (file)
@@ -1,21 +1,18 @@
 (supertux-sprite
        (action
          (name "left")
-         (x-offset 2)
-         (y-offset 3)
+         (hitbox 2 3 0 0)
          (images "snowsnail1.png"
                  "snowsnail2.png"
                  "snowsnail3.png"
                  ))
 
        (action (name "right")
-               (x-offset 2)
-               (y-offset 3)
+               (hitbox 2 3 0 0)
                (mirror-action "left"))
 
        (action (name "falling-left")
-               (x-offset 2)
-               (y-offset 3)
+               (hitbox 2 3 0 0)
                (images "snowsnail_flip1.png"
                        "snowsnail_flip2.png"
                        "snowsnail_flip3.png"
                        ))
 
        (action (name "falling-right")
-               (x-offset 2)
-               (y-offset 3)
+               (hitbox 2 3 0 0)
                (mirror-action "falling-left"))
 
        (action (name "flat-left")
-               (x-offset 2)
-               (y-offset 3)
+               (hitbox 2 3 0 0)
                (images "snowsnail_flip1.png"
                        "snowsnail_flip2.png"
                        "snowsnail_flip3.png"
@@ -43,6 +38,5 @@
                        ))
 
        (action (name "flat-right")
-               (x-offset 2)
-               (y-offset 3)
+               (hitbox 2 3 0 0)
                (mirror-action "falling-left")))