Shuvit game master repo. http://shuvit.org
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

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)