aboutsummaryrefslogtreecommitdiff
path: root/src/example
diff options
context:
space:
mode:
Diffstat (limited to 'src/example')
-rw-r--r--src/example/events.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/example/events.cpp b/src/example/events.cpp
index 1f757e1..1a29d80 100644
--- a/src/example/events.cpp
+++ b/src/example/events.cpp
@@ -73,14 +73,11 @@ int main() {
EventManager::get_instance().queue_event<KeyPressEvent>(std::move(key_press), 0);
EventManager::get_instance().queue_event<MouseClickEvent>(std::move(click_event), 0);
{
- // Instantiate TestKeyListener, which subscribes to key events
TestKeyListener testListener;
- // Create game object with Transform and BehaviorScript components
auto obj = GameObject(0, "name", "tag", Vector2{1.2, 3.4}, 0, 1);
obj.add_component<BehaviorScript>().set_script<MyScript>();
- // Get ScriptSystem singleton instance (this would normally be done from the game loop)
ScriptSystem sys;
sys.update();