From 6568208c119eaf9fa466451779498d1853df0fba Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tobias=20Gl=C3=A4=C3=9Fer?= Date: Wed, 24 Mar 2004 22:15:44 +0000 Subject: [PATCH] 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 --- src/scene.cpp | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) 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) -- 2.11.0