Add tree test map, fix easing system
This commit is contained in:
@@ -75,7 +75,7 @@ void updateEasingSystem(ecs_iter_t *it) {
|
||||
x = e->easeStart + e->easeTarget * x + e->easeOffset;
|
||||
// Outer
|
||||
x = e->start + e->target * x + e->offset;
|
||||
easing->x = x;
|
||||
easing[i].x = x;
|
||||
|
||||
u8 *compData = ecs_get_mut_id(ECS, entity, easing[i].compID);
|
||||
compData += easing[i].memberOffset;
|
||||
|
||||
@@ -14,7 +14,7 @@ i32 harvestEvent(ecs_entity_t entity, HarvestEvent event) {
|
||||
.duration = 0.6f,
|
||||
|
||||
// 45 * (1.0f + (-1.0f) * x)
|
||||
.target = 45,
|
||||
.target = GetRandomValue(30, 55) * GetRandomValue(1, 2) - 1,
|
||||
.easeTarget = -1.0f,
|
||||
.easeStart = 1.0f
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user