WIP
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"name": "barScene",
|
||||
"width": 80,
|
||||
"height": 48,
|
||||
"entities": [
|
||||
{
|
||||
"name": "fooEntity",
|
||||
"position": {
|
||||
"x": 0,
|
||||
"y": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "barEntity",
|
||||
"position": {
|
||||
"x": 24,
|
||||
"y": 16
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
import { useScene } from "#/engine/Scene.ts";
|
||||
import data from "./data.json";
|
||||
|
||||
const { process, linkScenes } = useScene(data);
|
||||
|
||||
// const changeScene = linkScenes(["testScene"] as const);
|
||||
|
||||
// changeScene("testScene");
|
||||
|
||||
process((_ctx, _delta) => {});
|
||||
Reference in New Issue
Block a user