diff options
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 |