From 83f5fc33df8ea2b8df661f921f157080d472a0ae Mon Sep 17 00:00:00 2001 From: kdx Date: Sun, 26 Mar 2023 07:11:55 +0000 Subject: simplify entityimpl a bit --- src/deathpart.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/deathpart.c') 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 -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; -- cgit v1.2.3