Trampoline image was not yet working cause:
authorRicardo Cruz <rick2@aeiou.pt>
Sat, 14 Aug 2004 12:00:58 +0000 (12:00 +0000)
committerRicardo Cruz <rick2@aeiou.pt>
Sat, 14 Aug 2004 12:00:58 +0000 (12:00 +0000)
- forgot to disable animation;
- made a mistake in the supertux.strt entries.
:(

SVN-Revision: 1777

data/supertux.strf
src/gameobjs.cpp

index 0502e07..776eee1 100644 (file)
          (fps 20)
          (images "shared/icebullet-1.png")))
   ; Trampoline
-  (sprite (name "trampoline-1")
+  (sprite (name "trampoline")
        (action
          (x-hotspot 0)
          (y-hotspot 0)
-         (images "shared/trampoline-1.png")))
- (sprite (name "trampoline-2")
-       (action
-         (x-hotspot 0)
-         (y-hotspot 0)
-         (images "shared/trampoline-2.png")))
- (sprite (name "trampoline-3")
-       (action
-         (x-hotspot 0)
-         (y-hotspot 0)
-         (images "shared/trampoline-3.png")))
- (sprite (name "trampoline-4")
-       (action
-         (x-hotspot 0)
-         (y-hotspot 0)
-         (images "shared/trampoline-4.png")))
+         (images "shared/trampoline-1.png"
+                 "shared/trampoline-2.png"
+                 "shared/trampoline-3.png"
+                 "shared/trampoline-4.png")))
 
   ; Flying platform
   (sprite (name "flying_platform")
index ccd9b83..e8ea305 100644 (file)
@@ -440,6 +440,7 @@ SmokeCloud::draw(DrawingContext& context)
 void load_object_gfx()
 {
   img_trampoline = sprite_manager->load("trampoline");
+  img_trampoline->start_animation(0);
   img_flying_platform = sprite_manager->load("flying_platform");
   img_smoke_cloud = sprite_manager->load("stomp");
 }