summaryrefslogtreecommitdiff
path: root/src/object/floatingBlock.c
blob: 79b784b5a1f8b9a1986f81078e2f201e0c33edb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/**
 * @file floatingBlock.c
 * @ingroup Objects
 *
 * @brief Floating Block object
 */
#include "object.h"

void FloatingBlock(Entity* this) {
    if (this->action == 0) {
        this->action = 1;
        this->frameIndex = this->type;
        this->spritePriority.b0 = 0xe;
        this->collisionLayer = 1;
        UpdateSpriteForCollisionLayer(this);
    }
}