23 lines
513 B
C
23 lines
513 B
C
/**
|
|
* Copyright (c) 2026 Dominic Masters
|
|
*
|
|
* This software is released under the MIT License.
|
|
* https://opensource.org/licenses/MIT
|
|
*/
|
|
|
|
#pragma once
|
|
#include "dusk.h"
|
|
#include "time/time.h"
|
|
|
|
typedef struct entity_s entity_t;
|
|
|
|
#define ENTITY_ANIM_WALK_DURATION TIME_TICKS_TO_TIME(12)
|
|
#define ENTITY_ANIM_WALK_TURN_COOLDOWN TIME_TICKS_TO_TIME(4)
|
|
|
|
/**
|
|
* Updates render position for the walk animation state.
|
|
*
|
|
* @param entity Pointer to the entity to update.
|
|
*/
|
|
void entityAnimWalkUpdate(entity_t *entity);
|