diff options
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>(); } |