diff options
| author | max-001 <maxsmits21@kpnmail.nl> | 2024-12-17 11:59:35 +0100 | 
|---|---|---|
| committer | max-001 <maxsmits21@kpnmail.nl> | 2024-12-17 11:59:35 +0100 | 
| commit | c0fff89b0cfbfe2d207e72178af5210a1646905c (patch) | |
| tree | db050df29ff5633f49ef94205bf8a3ab8fffaa35 | |
| parent | 24b415850da853496a6610e6fa00d4325b9a95c9 (diff) | |
Added comments
| -rw-r--r-- | src/example/GameScene.cpp | 3 | 
1 files changed, 3 insertions, 0 deletions
| 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<Transform>("player").front(); +		// Create hole in wall and activate panic lamp  		if (player_transform.position.x == -310) {  			Sprite & lamp_sprite = this->get_components_by_name<Sprite>("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<Animator>("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<Rigidbody>("camera").front();  			rb.data.linear_velocity = vec2(100, 0); |