May 2018
Intermediate to advanced
470 pages
13h 54m
English
Every time an answerObject is collected, we will check whether the total number of collected items is equal to the total number of objects in the answerObjects array to determine whether the game is complete by calling checkGameCompleteStatus.
/MERNVR/index.js:
if (collectedTotal == this.state.game.answerObjects.length) { AudioModule.playEnvironmental({ source: asset('happy-bot.mp3'), loop: true }) this.setState({hide: 'flex', hmMatrix: VrHeadModel.getHeadMatrix()}) }
If the game is indeed complete, we will perform the following actions:
Read now
Unlock full access