bug fix in JSON serialization

This commit is contained in:
2025-11-08 20:33:49 +02:00
parent f5a08a9702
commit 5c5c45938b
7 changed files with 21 additions and 4 deletions
@@ -36,6 +36,7 @@ const tl = 4;
class MazeQuizGame {
constructor(engine, data) {
data.noPhysics = true;
return new Promise(async (resolve, reject)=>{
let questions = data.shuffle ? Utils.shuffleArray(data.questions) : data.questions;
let def = this.generate(questions);
@@ -41,7 +41,6 @@ export default {
props:['modelValue'],
mounted(){
this.modelValue.questions ??= [];
this.modelValue.noPhysics = true;
},
methods:{
addQuestion(){
@@ -10,6 +10,7 @@ import * as BufferGeometryUtils from 'three/addons/utils/BufferGeometryUtils.js'
class Particles {
constructor(engine, data) {
data.noPhysics = true;
const { x, y, count, w, h } = data;
let positions = Particles.positions(count, w, h);
return new Promise(async (resolve, reject) => {
@@ -43,7 +43,6 @@ export default {
this.modelValue.count = 1000;
this.modelValue.w = 50;
this.modelValue.h = 50;
this.modelValue.noPhysics = true;
}
}
}