This commit is contained in:
Schluffe
2026-03-01 11:55:27 +01:00
parent a0671e7953
commit d8668f807c
4 changed files with 18 additions and 8 deletions
+2 -1
View File
@@ -1,3 +1,4 @@
import { box } from "#/engine/Box";
import { defineEntity } from "#/engine/Entity.ts";
import { createSpriteAnimation, useSpriteSheetSrc } from "#/engine/Sprite.ts";
import { createVector } from "#/engine/Vector.ts";
@@ -15,5 +16,5 @@ const sprite = {
defineEntity("portal", {
position: createVector(64, 64),
sprite,
$animation: { value: createSpriteAnimation(sprite, 400, 0) },
animation: box(createSpriteAnimation(sprite, 400, 0)),
});