diff options
author | kdx <kdx.42@42l.fr> | 2023-03-26 07:26:47 +0000 |
---|---|---|
committer | kdx <kdx.42@42l.fr> | 2023-03-26 07:26:47 +0000 |
commit | 09438266c3987c89a1e7f0abf9042dd3528ac343 (patch) | |
tree | 5bc3888bfcdd122f8734cbb0414a71597fb2c254 /src/spike.c | |
parent | 83f5fc33df8ea2b8df661f921f157080d472a0ae (diff) | |
download | hyperultra-09438266c3987c89a1e7f0abf9042dd3528ac343.tar.gz |
overengineer entityimpl a bit more
Diffstat (limited to 'src/spike.c')
-rw-r--r-- | src/spike.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/spike.c b/src/spike.c index 3ab6e54..2f178e9 100644 --- a/src/spike.c +++ b/src/spike.c @@ -1,13 +1,11 @@ #include "entityimpl.h" #include "rotrect.h" -IMPL(update) {} +IMPL_INIT(spike) { + this->height = this->width = 8; +} IMPL(draw) { rotrect_draw(g->spike_rect, this->pos[0], this->pos[1]); rotrect_draw(g->spike_irect, this->pos[0], this->pos[1]); } - -IMPL_INIT(spike) { - this->height = this->width = 8; -} IMPL_END |