Idle change.
authorRicardo Cruz <rick2@aeiou.pt>
Wed, 18 Aug 2004 10:31:49 +0000 (10:31 +0000)
committerRicardo Cruz <rick2@aeiou.pt>
Wed, 18 Aug 2004 10:31:49 +0000 (10:31 +0000)
SVN-Revision: 1805

data/images/supertux.strf
src/player.cpp

index 7b6651c..39eda45 100644 (file)
          (y-hotspot 9)
          (images "shared/bigtux/arms-stand-right-0.png"))
 
-       (action
-         (name "idle-left")
-         (x-hotspot 6)
-         (y-hotspot 8)
-         (images "shared/bigtux/arms-stand-left-0.png"))
-
-       (action
-         (name "idle-right")
-         (x-hotspot 6)
-         (y-hotspot 8)
-         (images "shared/bigtux/arms-stand-right-0.png"))
-
 ; Grabbing is arms specific!
        (action
          (name "grab-left")
          (name "buttjump-right")
          (x-hotspot 5)
          (y-hotspot 9)
-         (images "shared/bigtux/body-stand-right-0.png"))
-
-       (action
-         (name "idle-left")
-         (x-hotspot 6)
-         (y-hotspot 8)
-         (images "shared/bigtux/body-stand-left-0.png"))
-
-       (action
-         (name "idle-right")
-         (x-hotspot 6)
-         (y-hotspot 8)
          (images "shared/bigtux/body-stand-right-0.png")))
 
 ;; Big Tux Feet
          (name "buttjump-right")
          (x-hotspot 5)
          (y-hotspot 9)
-         (images "shared/bigtux/feet-buttjump-right-0.png"))
-
-
-       (action
-         (name "idle-left")
-         (x-hotspot 6)
-         (y-hotspot 8)
-         (images "shared/bigtux/feet-stand-left-0.png"))
-
-       (action
-         (name "idle-right")
-         (x-hotspot 6)
-         (y-hotspot 8)
-         (images "shared/bigtux/feet-stand-right-0.png")))
+         (images "shared/bigtux/feet-buttjump-right-0.png")))
 
 ; End of Big Tux (no power) sprite
 
 
        (action
          (name "idle-left")
+         (fps 1.0)
          (x-hotspot 6)
          (y-hotspot 8)
          (images "shared/bigtux/head-idle-blink-left-0.png"
 
        (action
          (name "idle-right")
+         (fps 1.0)
          (x-hotspot 6)
          (y-hotspot 8)
          (images "shared/bigtux/head-idle-blink-right-0.png"
index edd4b24..59dd6ae 100644 (file)
@@ -820,22 +820,22 @@ Player::draw(DrawingContext& context)
             }
         }
     }
-/*
+
   if(idle_timer.get_left() < 0)
     {
     if (dir == RIGHT)
       {
-      tux_body->set_action("idle-right");
-      tux_body->one_time_animation();
+      tux_body->head->set_action("idle-right");
+      tux_body->head->start_animation(1);
       }
     else
       {
-      tux_body->set_action("idle-left");
-      tux_body->one_time_animation();
+      tux_body->head->set_action("idle-right");
+      tux_body->head->start_animation(1);
       }
     idle_timer.start(IDLE_TIME);
     }
-*/
+
   // Tux is holding something
   if ((holding_something && physic.get_velocity_y() == 0) ||
       shooting_timer.check() && !duck)