Sample data

For initial development purposes, the following sample game data can be set to state to be rendered in the game view:

game: {  name: 'Space Exploration',  world: 'https://s3.amazonaws.com/mernbook/vrGame/milkyway.jpg',  answerObjects: [    {       objUrl: 'https://s3.amazonaws.com/mernbook/vrGame/planet.obj',      mtlUrl: 'https://s3.amazonaws.com/mernbook/vrGame/planet.mtl',      translateX: -50,      translateY: 0,      translateZ: 30,      rotateX: 0,      rotateY: 0,      rotateZ: 0,      scale: 7,      color: 'white'    }  ],  wrongObjects: [    {       objUrl: 'https://s3.amazonaws.com/mernbook/vrGame/tardis.obj',      mtlUrl: 'https://s3.amazonaws.com/mernbook/vrGame/tardis.mtl',      translateX: 0,      translateY: 0,      translateZ: 90,      rotateX: 0,      rotateY: 20,      rotateZ: 0,      scale: 1,      color: 'white'    }  ]}

Get Full-Stack React Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.