Add shared-scene 2D authoring, sprite animation and Rapier2D physics
CI / validate (push) Canceled after 0s
CI / validate (push) Canceled after 0s
This commit is contained in:
@@ -146,10 +146,16 @@ export class ProjectStore {
|
||||
case "project.settings":
|
||||
deepMerge(p.settings, a);
|
||||
return p.settings;
|
||||
case "scene.configure": {
|
||||
if (!scene) throw Error("Сцена не найдена");
|
||||
scene.mode = a.mode;
|
||||
return { id: scene.id };
|
||||
}
|
||||
case "scene.create": {
|
||||
const s = {
|
||||
id: a.id || uid("scene"),
|
||||
name: a.name || "Сцена",
|
||||
...(a.mode ? { mode: a.mode } : {}),
|
||||
entities: [],
|
||||
};
|
||||
p.scenes.push(s);
|
||||
|
||||
Reference in New Issue
Block a user