PuzzlesLoader

A class capable of loading the Puzzles editor and visual logic code.

Constructor

PuzzlesLoader()

The constructor takes no parameters.

Methods

.loadEditorWithLogic(editorDir : String, logicURL : String, onLoad : Function, onError : Function)

Load the Puzzles editor and the logic file. The method needs to be provided with the path to the Puzzles Editor's source folder (specified by the editorDir parameter, usually it's the SDK's "puzzles/" folder) and with the path to the logic JS file (logicURL parameter). The onLoad callback can be used to load a scene after the editor and the logic file were loaded.

.loadLogic(logicURL : String, onLoad : Function, onError : Function)

Load the logic file. The onLoad callback can be used to load a scene after the logic file was loaded.