Files
tmc/src/object/windTribeFlag.c
T
2021-11-12 01:34:34 -08:00

23 lines
561 B
C

#include "global.h"
#include "entity.h"
#include "random.h"
void WindTribeFlag(Entity* this) {
if (this->action == 0) {
this->action++;
this->collisionLayer = 2;
if (this->type == 0) {
this->spriteSettings.flipX = 0;
} else {
this->spriteSettings.flipX = 1;
}
UpdateSpriteForCollisionLayer(this);
InitializeAnimation(this, 0);
} else {
GetNextFrame(this);
}
if (this->frameDuration == 0xff) {
this->frameDuration = (Random() & 0xf) + 0x10;
}
}