small fixes (timing and animation) on nolok
authorMarek Moeckel <wansti@gmx.de>
Fri, 26 Nov 2004 17:08:53 +0000 (17:08 +0000)
committerMarek Moeckel <wansti@gmx.de>
Fri, 26 Nov 2004 17:08:53 +0000 (17:08 +0000)
SVN-Revision: 2204

src/badguy/nolok_01.cpp

index 1090d97..16214aa 100644 (file)
@@ -6,7 +6,7 @@
 
 #define WALK_TIME 2.5
 #define SHOOT_TIME 0.4
-#define JUMP_TIME 0.3
+#define JUMP_TIME 0.5
 
 static const float WALKSPEED = 90;
 
@@ -55,6 +55,7 @@ Nolok_01::active_action(float elapsed_time)
      switch (action) {       
        case WALKING:
         {
+         sprite->set_action("jump");
          physic.set_velocity_y(700);
          action = JUMPING;
          action_timer.start(JUMP_TIME);