Shuvit game master repo. http://shuvit.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

levelLibload.py 342B

123456789101112
  1. import bge
  2. def main(cont):
  3. own = cont.owner
  4. scene = bge.logic.getCurrentScene()
  5. dict = bge.logic.globalDict
  6. mainDir = bge.logic.expandPath("//")
  7. fileName = mainDir + 'assets/maps/' + dict['map'] + '/map.blend'
  8. path = bge.logic.expandPath(fileName)
  9. bge.logic.LibLoad(path, 'Scene', load_actions=True)