Well it works again
This commit is contained in:
1 parent
c95621072c
commit
ec41f332f2
6 files changed
+44
-24
No files matched your search
@@ -1,9 +1,8 @@
|
||||
import { defineEntity } from "#/engine/Entity.ts";
|
||||
import { loadImage } from "#/engine/lib/loadImage.ts";
|
||||
import { createSpriteAnimation, createSpritesSheet } from "#/engine/sprites.ts";
|
||||
import { createSpriteAnimation, useSpriteSheetSrc } from "#/engine/Sprite.ts";
|
||||
import portal from "#/game/assets/portal.png";
|
||||
|
||||
const portalSheet = createSpritesSheet(await loadImage(portal), 3, 1);
|
||||
const portalSheet = await useSpriteSheetSrc(portal, 3, 1);
|
||||
|
||||
defineEntity("portal", {
|
||||
animation: createSpriteAnimation(portalSheet, 400, 0),
|
||||
|
||||
Reference in new issue
Block a user