Experimented with loading hitbox from .sprite file
[supertux.git] / data / images / creatures / spidermite / spidermite.sprite
index 4d02d44..d574048 100644 (file)
@@ -1,25 +1,21 @@
 (supertux-sprite
        (action
          (name "left")
-         (x-offset 4)
-         (y-offset 3)
+         (hitbox 4 3 0 0)
          (images "spidermite.png"
                  "spidermite0.png"
                  "spidermite1.png"
                  "spidermite0.png"))
        (action
          (name "right")
-         (x-offset 4)
-         (y-offset 3)
+         (hitbox 4 3 0 0)
          (mirror-action "left"))
 
        (action
          (name "squished-left")
-         (x-offset 4)
-         (y-offset -12)
+         (hitbox 4 --12 0 0)
          (images "spidermite-squish.png"))
        (action
          (name "squished-right")
-         (x-offset 4)
-         (y-offset -12)
+         (hitbox 4 --12 0 0)
          (mirror-action "squished-left")))