aboutsummaryrefslogtreecommitdiff
path: root/game/prefab/ZapperObject.h
diff options
context:
space:
mode:
Diffstat (limited to 'game/prefab/ZapperObject.h')
-rw-r--r--game/prefab/ZapperObject.h32
1 files changed, 31 insertions, 1 deletions
diff --git a/game/prefab/ZapperObject.h b/game/prefab/ZapperObject.h
index 1f32cd7..6b68146 100644
--- a/game/prefab/ZapperObject.h
+++ b/game/prefab/ZapperObject.h
@@ -1,7 +1,37 @@
#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 ZapperObject : public crepe::GameObject {
- // afsd
+public:
+ ZapperObject(crepe::GameObject &&);
+
+public:
+ struct {
+ crepe::Sprite & orb_start;
+ crepe::Sprite & orb_end;
+ crepe::Sprite & glow_start;
+ crepe::Sprite & glow_end;
+ crepe::Sprite & beam;
+ } sprite;
+
+ struct {
+ crepe::Animator & orb_start;
+ crepe::Animator & orb_end;
+ crepe::Animator & glow_start;
+ crepe::Animator & glow_end;
+ } animator;
+
+ // crepe::Rigidbody & body;
+ // crepe::BoxCollider & collider;
+ crepe::BehaviorScript & controller;
+
+private:
+ static constexpr int SCALE = 60;
};
+