We are back in rendering land

This commit is contained in:
Schluffe
2026-02-22 01:11:16 +01:00
parent c0bf2cfd01
commit 61f1c30557
2 changed files with 23 additions and 2 deletions
+2
View File
@@ -1,9 +1,11 @@
import { defineEntity } from "#/engine/Entity.ts";
import { createSpriteAnimation, useSpriteSheetSrc } from "#/engine/Sprite.ts";
import { createVector } from "#/engine/Vector";
import portal from "#/game/assets/portal.png";
const portalSheet = await useSpriteSheetSrc(portal, 3, 1);
defineEntity("portal", {
position: createVector(64, 64),
animation: createSpriteAnimation(portalSheet, 400, 0),
});