Skip to content

Instantly share code, notes, and snippets.

@worldoptimizer
Last active February 6, 2020 08:59
Show Gist options
  • Save worldoptimizer/cc968c6e4dfe60453d711f590656403d to your computer and use it in GitHub Desktop.
Save worldoptimizer/cc968c6e4dfe60453d711f590656403d to your computer and use it in GitHub Desktop.
Function initGame (preparation)
// 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