add a win screen when the flag is reached

This commit is contained in:
2022-08-31 01:07:56 -04:00
parent eb14adbb0e
commit 08216d061c
7 changed files with 183 additions and 2 deletions

View File

@@ -16,6 +16,7 @@
#include "goal/GoalReached.h"
#include "goal/GoalNotReached.h"
#include "gui/game_over/GameOverScreen.h"
#include "gui/game_won/GameWonScreen.h"
/**
* @brief This function connects the gdnative init function.
@@ -62,4 +63,5 @@ extern "C" void GDN_EXPORT godot_nativescript_init(void *handle)
godot::register_class<alai::GoalReached>();
godot::register_class<alai::GoalNotReached>();
godot::register_class<alai::GameOverScreen>();
godot::register_class<alai::GameWonScreen>();
}