From 81969b21b0fa594184a992fd428a0f7a2676f7c2 Mon Sep 17 00:00:00 2001 From: Ricardo Cruz Date: Sat, 14 Aug 2004 12:00:58 +0000 Subject: [PATCH] Trampoline image was not yet working cause: - forgot to disable animation; - made a mistake in the supertux.strt entries. :( SVN-Revision: 1777 --- data/supertux.strf | 22 +++++----------------- src/gameobjs.cpp | 1 + 2 files changed, 6 insertions(+), 17 deletions(-) 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"); } -- 2.11.0