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/exit.c | |
parent | 83f5fc33df8ea2b8df661f921f157080d472a0ae (diff) | |
download | hyperultra-09438266c3987c89a1e7f0abf9042dd3528ac343.tar.gz |
overengineer entityimpl a bit more
Diffstat (limited to 'src/exit.c')
-rw-r--r-- | src/exit.c | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -1,7 +1,10 @@ #include "entityimpl.h" #include "rotrect.h" -IMPL(update) { +IMPL_INIT(exit) { + this->width = 12; + this->height = 12; + this->exit.dir = 1; } IMPL(draw) { @@ -9,9 +12,3 @@ IMPL(draw) { rotrect(this->pos[0], this->pos[1], this->width, this->height, 0.2 * this->exit.dir); } - -IMPL_INIT(exit) { - this->width = 12; - this->height = 12; - this->exit.dir = 1; -} IMPL_END |