diff options
Diffstat (limited to 'game/prefab/ZapperScript.cpp')
-rw-r--r-- | game/prefab/ZapperScript.cpp | 9 |
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; } |