summaryrefslogtreecommitdiff
path: root/src/deathpart.c
diff options
context:
space:
mode:
authorkdx <kdx.42@42l.fr>2023-03-26 07:11:55 +0000
committerkdx <kdx.42@42l.fr>2023-03-26 07:11:55 +0000
commit83f5fc33df8ea2b8df661f921f157080d472a0ae (patch)
tree2862b2afa978a700f6cfa39601c6d87a9bf72260 /src/deathpart.c
parent60b9ce29c42ac9fff81c677ab0426415046259b3 (diff)
downloadhyperultra-83f5fc33df8ea2b8df661f921f157080d472a0ae.tar.gz
simplify entityimpl a bit
Diffstat (limited to 'src/deathpart.c')
-rw-r--r--src/deathpart.c8
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;