From: Wolfgang Becker Date: Sat, 16 Jun 2007 17:03:27 +0000 (+0000) Subject: Keep fire on backflip. Image still missing X-Git-Url: https://git.octo.it/?p=supertux.git;a=commitdiff_plain;h=479d4feb01c6fea75bdb54e529132402208b47f9 Keep fire on backflip. Image still missing SVN-Revision: 5108 --- diff --git a/data/images/creatures/tux_big/big-fire-tux-head.sprite b/data/images/creatures/tux_big/big-fire-tux-head.sprite index 47c671027..b85694b1b 100644 --- a/data/images/creatures/tux_big/big-fire-tux-head.sprite +++ b/data/images/creatures/tux_big/big-fire-tux-head.sprite @@ -78,6 +78,18 @@ (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) diff --git a/src/object/player.cpp b/src/object/player.cpp index 31d38a9b5..5b965a290 100644 --- a/src/object/player.cpp +++ b/src/object/player.cpp @@ -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);