a-maze-ing

This commit is contained in:
2025-10-27 08:42:23 +02:00
parent 7221733b47
commit 7afefec63f
5 changed files with 47 additions and 13 deletions
@@ -30,7 +30,16 @@ class MazeQuizGame {
generate(questions, idx = 0, len){
let cq = questions[idx]
if (!cq) return {};
if (!cq) return {
len:3,
objects:[
{
type: 'gltf',
position:[0,.25,len + .52], scale: [0.037, 0.037, 0.037], rotation: [0, Math.PI/4, 0],
value: '/static/meshes/award.glb'
}
]
};
len = len || Math.round(Math.random()*tl) + 2;
// let l = {
@@ -64,7 +73,7 @@ class MazeQuizGame {
}
if (i == 0){
mo[d] = {
len: 4,
len: 3,
[dd]: this.generate(questions, idx + 1, 3)
}
}else{