bug fix in JSON serialization
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user