diff options
author | Max-001 <maxsmits21@kpnmail.nl> | 2025-01-08 11:22:53 +0100 |
---|---|---|
committer | Max-001 <maxsmits21@kpnmail.nl> | 2025-01-08 11:22:53 +0100 |
commit | 8fc12804f7f0203564cd6352cf47da13a4f46641 (patch) | |
tree | 069c7ffe36fee345cb6532a15435f3fab03371e3 /game/background/BackgroundSubScene.cpp | |
parent | b2fb4028f13f47d89487d48a1cc1e3e062d81e35 (diff) |
Made background aquarium move
Diffstat (limited to 'game/background/BackgroundSubScene.cpp')
-rw-r--r-- | game/background/BackgroundSubScene.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/game/background/BackgroundSubScene.cpp b/game/background/BackgroundSubScene.cpp index a954f0b..14258be 100644 --- a/game/background/BackgroundSubScene.cpp +++ b/game/background/BackgroundSubScene.cpp @@ -1,4 +1,5 @@ #include "BackgroundSubScene.h" +#include "AquariumScript.h" #include "AquariumSubScene.h" #include "ForestSubScene.h" #include "HallwayScript.h" @@ -31,10 +32,10 @@ BackgroundSubScene::BackgroundSubScene(Scene & scn) { begin_x = aquarium.create(scn, begin_x); - begin_x += 3000; + //begin_x += 3000; //begin_x = hallway.create(scn, begin_x, 3, Color::CYAN); - begin_x = forest.create(scn, begin_x, "2"); + //begin_x = forest.create(scn, begin_x, "2"); //begin_x = hallway.create(scn, begin_x, 4, Color::GREEN); @@ -88,4 +89,5 @@ BackgroundSubScene::BackgroundSubScene(Scene & scn) { GameObject scripts = scn.new_object("scrips_background", "background"); scripts.add_component<BehaviorScript>().set_script<HallwayScript>(); + scripts.add_component<BehaviorScript>().set_script<AquariumScript>(); } |