aboutsummaryrefslogtreecommitdiff
path: root/game/prefab/PlayerObject.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-12-22 17:26:27 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-12-22 17:26:27 +0100
commit0dae96161a99158815a8075b5c405a35b0939936 (patch)
tree5b9b214c0397694b671e271f6b743c0fd845f51f /game/prefab/PlayerObject.cpp
parent7e12ebdf945d40d6f11872cf5852c9bb54d1864f (diff)
fix Player prefab
Diffstat (limited to 'game/prefab/PlayerObject.cpp')
-rw-r--r--game/prefab/PlayerObject.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/game/prefab/PlayerObject.cpp b/game/prefab/PlayerObject.cpp
index 736704a..ef7b6cc 100644
--- a/game/prefab/PlayerObject.cpp
+++ b/game/prefab/PlayerObject.cpp
@@ -1,5 +1,3 @@
-#include <crepe/util/Log.h>
-
#include "Config.h"
#include "PlayerObject.h"
#include "PlayerScript.h"
@@ -67,10 +65,8 @@ PlayerObject::PlayerObject(crepe::GameObject && base)
.collision_layer = COLL_LAY_PLAYER,
})),
collider(add_component<BoxCollider>(vec2(50, 50))),
- controller(add_component<BehaviorScript>().set_script<PlayerScript>(this)) {
+ controller(add_component<BehaviorScript>().set_script<PlayerScript>(*this)) {
sprite.jetpack.active = false;
- // controller.active = false;
-
- Log::logf(Log::DEBUG, "PlayerObject: ref {}", (void*) &(this->body.game_object_id));
+ controller.active = false;
}