Add shared-scene 2D authoring, sprite animation and Rapier2D physics
CI / validate (push) Canceled after 0s

This commit is contained in:
emil28092005
2026-09-12 04:58:59 +03:00
parent 6f497d1977
commit 3afac743a4
32 changed files with 4999 additions and 270 deletions
+6
View File
@@ -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);