aboutsummaryrefslogtreecommitdiff
path: root/game/prefab/PlayerObject.h
diff options
context:
space:
mode:
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;
+};