summaryrefslogtreecommitdiff
path: root/src/deathpart.c
diff options
context:
space:
mode:
authorkdx <kdx.42@42l.fr>2023-03-19 04:52:04 +0000
committerkdx <kdx.42@42l.fr>2023-03-19 04:52:04 +0000
commit2fd531436f64c745cadb7960a59770d58b14c367 (patch)
tree3e59a473f44bab00d344ca802706f7305add43ba /src/deathpart.c
parent21f07a88c22388d754e3a47a8f7cf9ed7dd5747a (diff)
downloadhyperultra-2fd531436f64c745cadb7960a59770d58b14c367.tar.gz
slowdown particles as well
Diffstat (limited to 'src/deathpart.c')
-rw-r--r--src/deathpart.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/deathpart.c b/src/deathpart.c
index 1579066..050cc54 100644
--- a/src/deathpart.c
+++ b/src/deathpart.c
@@ -4,9 +4,13 @@
#include <stdlib.h>
IMPL_UPDATE() {
- this->vel[1] *= AIR_RESISTANCE;
- this->vel[1] += GRAVITY;
- entity_move(this, g);
+ if (this->deathpart.skip == 0) {
+ this->vel[1] *= AIR_RESISTANCE;
+ this->vel[1] += GRAVITY;
+ entity_move(this, g);
+ this->deathpart.skip = 3;
+ } else
+ this->deathpart.skip -= 1;
} IMPL_END
IMPL_DRAW() {