Skip to content

Instantly share code, notes, and snippets.

@cazala
Created July 25, 2018 15:27
Show Gist options
  • Save cazala/7fadb84ae6b674f77a0ca542aa9c813c to your computer and use it in GitHub Desktop.
Save cazala/7fadb84ae6b674f77a0ca542aa9c813c to your computer and use it in GitHub Desktop.
renderIdle() {
const { playerWhite, playerBlack } = store.getState().match
return (
<entity>
<gltf-model
src={modelsById['Q']}
id="register-white"
position={{ x: 3.5, y: playerWhite ? 1 : 0, z: 5 }}
/>
<gltf-model
src={modelsById['q']}
id="register-black"
position={{ x: 6.5, y: playerBlack ? 1 : 0, z: 5 }}
/>
<text
value="Choose your color"
color="#000000"
position={{ x: 5, y: 2, z: 5 }}
width={3}
billboard={7}
/>
</entity>
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment