Keep fire on backflip. Image still missing
authorWolfgang Becker <uafr@gmx.de>
Sat, 16 Jun 2007 17:03:27 +0000 (17:03 +0000)
committerWolfgang Becker <uafr@gmx.de>
Sat, 16 Jun 2007 17:03:27 +0000 (17:03 +0000)
SVN-Revision: 5108

data/images/creatures/tux_big/big-fire-tux-head.sprite
src/object/player.cpp

index 47c6710..b85694b 100644 (file)
          (mirror-action "buttjump-right"))
 
        (action
+         (name "backflip-right")
+         (fps 15.0)
+         (hitbox 5 62 0 0)
+         (images "flip/empty.png"))
+
+       (action
+         (name "backflip-left")
+         (fps 15.0)
+         (hitbox 27 62 0 0)
+         (mirror-action "backflip-right"))
+
+       (action
          (name "idle-right")
          (fps 1.0)
          (hitbox 6 31 0 0)
index 31d38a9..5b965a2 100644 (file)
@@ -541,9 +541,6 @@ Player::do_backflip() {
   if (!on_ground())
     return;
 
-  // TODO: we don't have an animation for firetux backflipping, so let's revert to bigtux
-  set_bonus(GROWUP_BONUS, true);
-
   backflip_direction = (dir == LEFT)?(+1):(-1);
   backflipping = true;
   do_jump(-580);