This commit is contained in:
2025-10-08 23:06:39 -05:00
parent fef31b9102
commit c31bcf7f6a
7 changed files with 37 additions and 17 deletions

View File

@@ -46,6 +46,10 @@ void entityUpdate(entity_t *entity) {
assertTrue(entity->type < ENTITY_TYPE_COUNT, "Invalid entity type");
assertTrue(entity->type != ENTITY_TYPE_NULL, "Cannot have NULL entity type");
if(entity->type == ENTITY_TYPE_PLAYER) {
playerMovement(entity);
}
// Velocity
for(uint8_t i = 0; i < WORLD_DIMENSIONS; i++) {
if(entity->velocity[i] == 0) continue;