Rename playback to animation again

This commit is contained in:
Schluffe
2026-03-15 12:29:57 +01:00
parent 575884d15b
commit 650b28a660
5 changed files with 30 additions and 30 deletions
+2 -2
View File
@@ -4,7 +4,7 @@ import { pointer } from "#/engine/Pointer.ts";
import $ from "#/engine/Scene.ts";
import {
createSprite,
createSpritePlayback,
createSpriteAnimation,
defineSpriteSheet,
} from "#/engine/Sprite.ts";
import { createVector, type Vector } from "#/engine/Vector.ts";
@@ -16,7 +16,7 @@ const idleSrc = await defineSpriteSheet(charIdle, 2, 4);
const process = defineEntity("hero", {
position: createVector(),
sprite: createSprite(idleSrc),
playback: createSpritePlayback(500, 2),
animation: createSpriteAnimation(500, 2),
velocity: createVector(),
});