diff options
author | kdx <kdx.42@42l.fr> | 2023-03-26 07:11:55 +0000 |
---|---|---|
committer | kdx <kdx.42@42l.fr> | 2023-03-26 07:11:55 +0000 |
commit | 83f5fc33df8ea2b8df661f921f157080d472a0ae (patch) | |
tree | 2862b2afa978a700f6cfa39601c6d87a9bf72260 /src/spike.c | |
parent | 60b9ce29c42ac9fff81c677ab0426415046259b3 (diff) | |
download | hyperultra-83f5fc33df8ea2b8df661f921f157080d472a0ae.tar.gz |
simplify entityimpl a bit
Diffstat (limited to 'src/spike.c')
-rw-r--r-- | src/spike.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/spike.c b/src/spike.c index 3492a5f..3ab6e54 100644 --- a/src/spike.c +++ b/src/spike.c @@ -1,13 +1,12 @@ #include "entityimpl.h" #include "rotrect.h" -IMPL_UPDATE() { -} IMPL_END +IMPL(update) {} -IMPL_DRAW() { +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_END +} IMPL_INIT(spike) { this->height = this->width = 8; |