aboutsummaryrefslogtreecommitdiff
path: root/game/prefab/ZapperObject.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2025-01-06 11:58:27 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2025-01-06 11:58:27 +0100
commit7126db6e1d97b7ede4cc929abfdeadd360e4cb74 (patch)
treeb93d87321025b3730ef5534033a3a790abf41138 /game/prefab/ZapperObject.cpp
parentd4f443070017c5c2e6a938bf4d0a86b70ae6beaa (diff)
WIP
Diffstat (limited to 'game/prefab/ZapperObject.cpp')
-rw-r--r--game/prefab/ZapperObject.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/game/prefab/ZapperObject.cpp b/game/prefab/ZapperObject.cpp
index b848f18..e63a5f2 100644
--- a/game/prefab/ZapperObject.cpp
+++ b/game/prefab/ZapperObject.cpp
@@ -1,6 +1,5 @@
#include "ZapperObject.h"
#include "Config.h"
-#include "ZapperScript.h"
using namespace crepe;
@@ -67,14 +66,13 @@ ZapperObject::ZapperObject(crepe::GameObject && base)
sprite.orb_end, ivec2(62, 42), uvec2(4, 1), animator.orb_start.data
),
.glow_start = add_component<Animator>(
- sprite.glow_start, ivec2(128, 128), uvec2(4, 4),
+ sprite.glow_start, ivec2(128, 128), uvec2(16, 1),
Animator::Data {
.fps = 30,
.looping = true,
}
),
.glow_end = add_component<Animator>(
- sprite.glow_end, ivec2(128, 128), uvec2(4, 4), animator.glow_start.data
+ sprite.glow_end, ivec2(128, 128), uvec2(16, 1), animator.glow_start.data
),
- },
- controller(add_component<BehaviorScript>().set_script<ZapperScript>(*this)) {}
+ } {}