From: Tobias Gläßer Date: Wed, 24 Mar 2004 22:15:44 +0000 (+0000) Subject: new levelformat with multiple layers and and new tileset code. Along with a new parti... X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=6568208c119eaf9fa466451779498d1853df0fba;p=supertux.git new levelformat with multiple layers and and new tileset code. Along with a new particlesystem. (the latest one was contributed by Matze Braun) SVN-Revision: 344 --- diff --git a/src/scene.cpp b/src/scene.cpp index 897873bcc..390c98344 100644 --- a/src/scene.cpp +++ b/src/scene.cpp @@ -25,7 +25,8 @@ bool counting_distros; int distro_counter; timer_type super_bkgd_timer; float scroll_x; -int global_frame_counter; +unsigned int global_frame_counter; + std::vector bouncy_distros; std::vector broken_bricks; std::vector bouncy_bricks; @@ -33,6 +34,7 @@ std::vector bad_guys; std::vector floating_scores; std::vector upgrades; std::vector bullets; +std::vector particle_systems; Player tux; texture_type img_box_full; texture_type img_box_empty; @@ -49,13 +51,18 @@ void arrays_init(void) void arrays_free(void) { - bad_guys.clear(); - bouncy_distros.clear(); - broken_bricks.clear(); - bouncy_bricks.clear(); - floating_scores.clear(); - upgrades.clear(); - bullets.clear(); +bad_guys.clear(); +bouncy_distros.clear(); +broken_bricks.clear(); +bouncy_bricks.clear(); +floating_scores.clear(); +upgrades.clear(); +bullets.clear(); +std::vector::iterator i; +for(i = particle_systems.begin(); i != particle_systems.end(); ++i) { + delete *i; +} +particle_systems.clear(); } void set_defaults(void)