quiz game scoring system

This commit is contained in:
2025-11-11 18:13:53 +02:00
parent 351c6097f3
commit b1312d9b54
5 changed files with 60 additions and 34 deletions
@@ -104,7 +104,7 @@ class MazeObject {
addPhysics(def.matrix, [-tubeSize / 2, 0.6, offsetZ/2], offsetZ)
addRoom(['floor', 'door', def.r ? 'door' : 'wall', def.f ? 'door' : 'wall', def.l ? 'door' : 'wall'], def, offsetZ)
if (def.userData?.qid !== undefined || def.userData?.finish){
if (def.userData?.qid !== undefined || def.userData?.finish || def.userData?.corner){
addPhysics(def.matrix, [0,0,offsetZ + wallSize/2], { width: wallSize/2, height: wallSize/2, depth: wallSize/2}, 'side', true, def.userData)
}
//console.log('loadingggg', def.objects)