diff options
Diffstat (limited to 'src/deathpart.c')
-rw-r--r-- | src/deathpart.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/deathpart.c b/src/deathpart.c index b397133..bdc3cdf 100644 --- a/src/deathpart.c +++ b/src/deathpart.c @@ -3,7 +3,7 @@ #include "entityimpl.h" #include <stdlib.h> -IMPL_UPDATE() { +IMPL(update) { if (this->deathpart.skip == 0) { this->vel[1] *= AIR_RESISTANCE; this->vel[1] += GRAVITY; @@ -11,16 +11,16 @@ IMPL_UPDATE() { this->deathpart.skip = 3; } else this->deathpart.skip -= 1; -} IMPL_END +} -IMPL_DRAW() { +IMPL(draw) { LZY_DrawSetColor(BLACK); if (this->width == 1) (void)LZY_DrawPoint(this->pos[0], this->pos[1]); else (void)LZY_DrawRect(this->pos[0], this->pos[1], this->width, this->width); -} IMPL_END +} IMPL_INIT(deathpart) { this->ignore_solids = true; |