a-maze-ing
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user