aboutsummaryrefslogtreecommitdiff
path: root/game/prefab/PlayerObject.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-12-22 16:12:31 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-12-22 16:12:31 +0100
commit7e12ebdf945d40d6f11872cf5852c9bb54d1864f (patch)
treed81f4661e2fd47f487cf0c9627baa1e21dc45b37 /game/prefab/PlayerObject.h
parent61148c757a1f742ff09e40e5347e74e638c7371c (diff)
big WIP
Diffstat (limited to 'game/prefab/PlayerObject.h')
-rw-r--r--game/prefab/PlayerObject.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/game/prefab/PlayerObject.h b/game/prefab/PlayerObject.h
new file mode 100644
index 0000000..a44d367
--- /dev/null
+++ b/game/prefab/PlayerObject.h
@@ -0,0 +1,30 @@
+#pragma once
+
+#include <crepe/api/Animator.h>
+#include <crepe/api/BehaviorScript.h>
+#include <crepe/api/BoxCollider.h>
+#include <crepe/api/GameObject.h>
+#include <crepe/api/Rigidbody.h>
+#include <crepe/api/Sprite.h>
+
+class PlayerObject : public crepe::GameObject {
+public:
+ PlayerObject(crepe::GameObject &&);
+
+public:
+ struct {
+ crepe::Sprite & body;
+ crepe::Sprite & head;
+ crepe::Sprite & jetpack;
+ } sprite;
+
+ struct {
+ crepe::Animator & body;
+ crepe::Animator & head;
+ crepe::Animator & jetpack;
+ } animator;
+
+ crepe::Rigidbody & body;
+ crepe::BoxCollider & collider;
+ crepe::BehaviorScript & controller;
+};