diff options
author | Max-001 <maxsmits21@kpnmail.nl> | 2024-12-24 12:14:51 +0100 |
---|---|---|
committer | Max-001 <maxsmits21@kpnmail.nl> | 2024-12-24 12:14:51 +0100 |
commit | a0a3e7e2d12d3acb7bf4073cb5a10c08047cd08e (patch) | |
tree | 063137e04def88c0b3bb7404cf7630881a9c2f3e /game/GameScene.cpp | |
parent | 192aea3112af0b36f6f26670e66c7e24926c579a (diff) |
Added EndGameScript
Diffstat (limited to 'game/GameScene.cpp')
-rw-r--r-- | game/GameScene.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/game/GameScene.cpp b/game/GameScene.cpp index 821191d..b471484 100644 --- a/game/GameScene.cpp +++ b/game/GameScene.cpp @@ -1,5 +1,6 @@ #include "GameScene.h" #include "Config.h" +#include "EndGameScript.h" #include "MoveCameraManualyScript.h" #include "StartGameScript.h" @@ -66,6 +67,8 @@ void GameScene::load_scene() { GameObject start_game_script = new_object("start_game_script", "script", vec2(0, 0)); start_game_script.add_component<BehaviorScript>().set_script<StartGameScript>(); + GameObject end_game_script = new_object("end_game_script", "script", vec2(0, 0)); + end_game_script.add_component<BehaviorScript>().set_script<EndGameScript>().active = false; // zapper, laser and missile (below) for testing purpose only!!! GameObject zapper = new_object("zapper", "zapper", vec2(1000, 0)); |