From c0fff89b0cfbfe2d207e72178af5210a1646905c Mon Sep 17 00:00:00 2001 From: max-001 Date: Tue, 17 Dec 2024 11:59:35 +0100 Subject: Added comments --- src/example/GameScene.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/example/GameScene.cpp b/src/example/GameScene.cpp index 76e5284..10cc4cb 100644 --- a/src/example/GameScene.cpp +++ b/src/example/GameScene.cpp @@ -45,6 +45,7 @@ public: Transform & player_transform = this->get_components_by_name("player").front(); + // Create hole in wall and activate panic lamp if (player_transform.position.x == -310) { Sprite & lamp_sprite = this->get_components_by_name("start_end").back(); lamp_sprite.active = true; @@ -52,6 +53,7 @@ public: hole_sprite.active = true; } + // Take jetpack from jetpack stand if (player_transform.position.x == -100) { Animator & jetpack_stand_anim = this->get_components_by_name("start_begin").back(); @@ -60,6 +62,7 @@ public: jetpack_sprite.active = true; } + // Start camera movement if (player_transform.position.x == 150) { Rigidbody & rb = this->get_components_by_name("camera").front(); rb.data.linear_velocity = vec2(100, 0); -- cgit v1.2.3