Align scene ids with names and order

This commit is contained in:
Daddy32
2025-12-13 19:59:39 +01:00
parent f57e993964
commit ebd61a7979
5 changed files with 49 additions and 24 deletions

View File

@@ -1,10 +1,10 @@
(() => {
const { Bodies } = Matter;
const scenes =
(window.PhysilinksSceneDefs = window.PhysilinksSceneDefs || []);
const scenes = (window.PhysilinksSceneDefs =
window.PhysilinksSceneDefs || []);
scenes.push({
id: "scene3",
id: "fast-drop-maze",
name: "Fast drop maze",
config: {
gravity: 1.25,
@@ -42,16 +42,10 @@
render: { fillStyle: "#14b8a6", strokeStyle: "#14b8a6" },
},
),
Bodies.rectangle(
-wallThickness / 2,
h / 2,
wallThickness,
wallHeight,
{
isStatic: true,
render: { fillStyle: "#f472b6", strokeStyle: "#f472b6" },
},
),
Bodies.rectangle(-wallThickness / 2, h / 2, wallThickness, wallHeight, {
isStatic: true,
render: { fillStyle: "#f472b6", strokeStyle: "#f472b6" },
}),
Bodies.rectangle(
w + wallThickness / 2,
h / 2,