Last active
February 6, 2020 08:59
-
-
Save worldoptimizer/cc968c6e4dfe60453d711f590656403d to your computer and use it in GitHub Desktop.
Function initGame (preparation)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// fetch scene element and then the lander element in it by classname | |
var sceneElm = document.getElementById(hypeDocument.currentSceneId()); | |
var lander = sceneElm.querySelector('.lander'); | |
var landerBody = hypeDocument.getElementProperty(lander, 'physics-body'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment