From: Ricardo Cruz Date: Sat, 14 Aug 2004 12:00:58 +0000 (+0000) Subject: Trampoline image was not yet working cause: X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=81969b21b0fa594184a992fd428a0f7a2676f7c2;p=supertux.git Trampoline image was not yet working cause: - forgot to disable animation; - made a mistake in the supertux.strt entries. :( SVN-Revision: 1777 --- diff --git a/data/supertux.strf b/data/supertux.strf index 0502e07e4..776eee106 100644 --- a/data/supertux.strf +++ b/data/supertux.strf @@ -750,26 +750,14 @@ (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") diff --git a/src/gameobjs.cpp b/src/gameobjs.cpp index ccd9b83ea..e8ea3058f 100644 --- a/src/gameobjs.cpp +++ b/src/gameobjs.cpp @@ -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"); }