From: Stephen Groundwater Date: Thu, 29 Jun 2006 03:23:24 +0000 (+0000) Subject: Adding in the start of graphics and noise for the new backflip. These file are free... X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=f44e2310e449113e4618d153b765b6d81ef187ce;p=supertux.git Adding in the start of graphics and noise for the new backflip. These file are free to be changed and or replaced, removed. SVN-Revision: 3803 --- diff --git a/data/images/creatures/tux_big/big-tux-arms.sprite b/data/images/creatures/tux_big/big-tux-arms.sprite index a8cb066d4..f09502d78 100644 --- a/data/images/creatures/tux_big/big-tux-arms.sprite +++ b/data/images/creatures/tux_big/big-tux-arms.sprite @@ -74,7 +74,7 @@ (action (name "backflip-right") (hitbox 5 62 0 0) - (images "arms-duck-0.png")) + (images "flip/empty.png")) (action (name "backflip-left") diff --git a/data/images/creatures/tux_big/big-tux-body.sprite b/data/images/creatures/tux_big/big-tux-body.sprite index 9146a1791..c89bf9c1d 100644 --- a/data/images/creatures/tux_big/big-tux-body.sprite +++ b/data/images/creatures/tux_big/big-tux-body.sprite @@ -71,13 +71,24 @@ (action (name "backflip-right") - (fps 15.0) + (fps 9.0) (hitbox 5 62 0 0) - (images "body-duck-0.png")) + (images "flip/flip_1.png" +"flip/flip_2.png" +"flip/flip_3.png" +"flip/flip_4.png" +"flip/flip_5.png" +"flip/flip_6.png" +"flip/flip_1.png" +"flip/flip_1.png" +"flip/flip_1.png" +"flip/flip_1.png" +"flip/flip_1.png" +)) (action (name "backflip-left") - (fps 15.0) + (fps 9.0) (hitbox 27 62 0 0) (mirror-action "backflip-right")) diff --git a/data/images/creatures/tux_big/big-tux-feet.sprite b/data/images/creatures/tux_big/big-tux-feet.sprite index 1018f547b..d60a3e785 100644 --- a/data/images/creatures/tux_big/big-tux-feet.sprite +++ b/data/images/creatures/tux_big/big-tux-feet.sprite @@ -76,7 +76,7 @@ (name "backflip-right") (fps 15.0) (hitbox 5 62 0 0) - (images "feet-duck-0.png")) + (images "flip/empty.png")) (action (name "backflip-left") diff --git a/data/images/creatures/tux_big/big-tux-head.sprite b/data/images/creatures/tux_big/big-tux-head.sprite index ecec7456b..137710ba5 100644 --- a/data/images/creatures/tux_big/big-tux-head.sprite +++ b/data/images/creatures/tux_big/big-tux-head.sprite @@ -83,7 +83,7 @@ (name "backflip-right") (fps 15.0) (hitbox 5 62 0 0) - (images "head-duck-0.png")) + (images "flip/empty.png")) (action (name "backflip-left") diff --git a/data/images/creatures/tux_big/flip/empty.png b/data/images/creatures/tux_big/flip/empty.png new file mode 100644 index 000000000..ad17df16d Binary files /dev/null and b/data/images/creatures/tux_big/flip/empty.png differ diff --git a/data/images/creatures/tux_big/flip/flip_1.png b/data/images/creatures/tux_big/flip/flip_1.png new file mode 100644 index 000000000..4689602b6 Binary files /dev/null and b/data/images/creatures/tux_big/flip/flip_1.png differ diff --git a/data/images/creatures/tux_big/flip/flip_2.png b/data/images/creatures/tux_big/flip/flip_2.png new file mode 100644 index 000000000..3e51c2182 Binary files /dev/null and b/data/images/creatures/tux_big/flip/flip_2.png differ diff --git a/data/images/creatures/tux_big/flip/flip_3.png b/data/images/creatures/tux_big/flip/flip_3.png new file mode 100644 index 000000000..bd30cbcbe Binary files /dev/null and b/data/images/creatures/tux_big/flip/flip_3.png differ diff --git a/data/images/creatures/tux_big/flip/flip_4.png b/data/images/creatures/tux_big/flip/flip_4.png new file mode 100644 index 000000000..ea315894b Binary files /dev/null and b/data/images/creatures/tux_big/flip/flip_4.png differ diff --git a/data/images/creatures/tux_big/flip/flip_5.png b/data/images/creatures/tux_big/flip/flip_5.png new file mode 100644 index 000000000..4d3dc01ea Binary files /dev/null and b/data/images/creatures/tux_big/flip/flip_5.png differ diff --git a/data/images/creatures/tux_big/flip/flip_6.png b/data/images/creatures/tux_big/flip/flip_6.png new file mode 100644 index 000000000..67b71b2d7 Binary files /dev/null and b/data/images/creatures/tux_big/flip/flip_6.png differ diff --git a/data/images/creatures/tux_big/flip/flip_7.png b/data/images/creatures/tux_big/flip/flip_7.png new file mode 100644 index 000000000..3669bb81d Binary files /dev/null and b/data/images/creatures/tux_big/flip/flip_7.png differ diff --git a/data/images/creatures/tux_big/flip/flip_8.png b/data/images/creatures/tux_big/flip/flip_8.png new file mode 100644 index 000000000..45fd7ac9e Binary files /dev/null and b/data/images/creatures/tux_big/flip/flip_8.png differ diff --git a/data/sounds/flip.wav b/data/sounds/flip.wav new file mode 100644 index 000000000..05bff184a Binary files /dev/null and b/data/sounds/flip.wav differ diff --git a/src/object/player.cpp b/src/object/player.cpp index 29390d994..ebed28a85 100644 --- a/src/object/player.cpp +++ b/src/object/player.cpp @@ -117,6 +117,7 @@ Player::Player(PlayerStatus* _player_status) sound_manager->preload("sounds/jump.wav"); sound_manager->preload("sounds/hurt.wav"); sound_manager->preload("sounds/skid.wav"); + sound_manager->preload("sounds/flip.wav"); init(); } @@ -491,6 +492,7 @@ Player::do_backflip() { backflip_direction = (dir == LEFT)?(+1):(-1); backflipping = true; do_jump(-580); + sound_manager->play("sounds/flip.wav"); backflip_timer.start(0.15); }