diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-12-22 20:04:33 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-12-22 20:04:33 +0100 |
commit | a600cc55468a6513743ce916aa3da129270c23f0 (patch) | |
tree | 324eb574298b321dcfba69a5a29c59b0cc18f007 /game/prefab/ZapperObject.h | |
parent | 73dea702bdedf48a2d2d26e7922b5ee935063cfd (diff) |
more WIP zapper
Diffstat (limited to 'game/prefab/ZapperObject.h')
-rw-r--r-- | game/prefab/ZapperObject.h | 32 |
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; }; + |