aboutsummaryrefslogtreecommitdiff
path: root/game/prefab/ZapperScript.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-12-22 20:05:02 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-12-22 20:05:02 +0100
commitec69f40540317215d0f30e1f8e43d0e18450f8cc (patch)
tree1468a8d5bbf4a8800cee89c9e114d09348fa88bb /game/prefab/ZapperScript.cpp
parenta600cc55468a6513743ce916aa3da129270c23f0 (diff)
`make format`loek/game
Diffstat (limited to 'game/prefab/ZapperScript.cpp')
-rw-r--r--game/prefab/ZapperScript.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/game/prefab/ZapperScript.cpp b/game/prefab/ZapperScript.cpp
index b9b24be..01eb7aa 100644
--- a/game/prefab/ZapperScript.cpp
+++ b/game/prefab/ZapperScript.cpp
@@ -1,12 +1,12 @@
-#include <crepe/api/Rigidbody.h>
#include <cassert>
+#include <crepe/api/Rigidbody.h>
#include "ZapperScript.h"
using namespace crepe;
using namespace std;
-ZapperScript::ZapperScript(const ZapperObject & zapper) : zapper(zapper) { }
+ZapperScript::ZapperScript(const ZapperObject & zapper) : zapper(zapper) {}
void ZapperScript::init() {
zapper.sprite.beam.mask = {
@@ -17,7 +17,4 @@ void ZapperScript::init() {
};
}
-void ZapperScript::frame_update(duration_t delta_time) {
- zapper.sprite.beam.mask.x += 4;
-}
-
+void ZapperScript::frame_update(duration_t delta_time) { zapper.sprite.beam.mask.x += 4; }