slowdown particles as well

This commit is contained in:
kdx 2023-03-19 04:52:04 +00:00
parent 21f07a88c2
commit 2fd531436f
3 changed files with 9 additions and 5 deletions

View File

@ -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() {

View File

@ -1,7 +1,7 @@
#pragma once
typedef struct {
int _;
int skip;
} DeathPart;
struct Entity;

View File

@ -57,7 +57,7 @@ IMPL_UPDATE() {
dy += 2;
}
this->type = ET_NONE;
g->queue_restart_scene = 30;
g->queue_restart_scene = 45;
}
if (entity_place_meeting(this, g, ET_exit) != NULL)