PuzzlesLoader

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

Constructor

PuzzlesLoader()

Properties

.editorCSSFile : String

Deprecated. A path to the Puzzles editor's CSS file relative to the Puzzles' source folder (usually it's the SDK's "puzzles/" folder). Default is "puzzles.css".

.editorJSFile : String

Deprecated. A path to the Puzzles editor's JS file relative to the Puzzles' source directory (usually it's the SDK's "puzzles/" folder). Default is "puzzles.min.js".

.editorMediaDir : String

Deprecated. A path to the Puzzles editor's media folder relative to the Puzzles' source directory (usually it's the SDK's "puzzles/" folder). Default is "media/".

.libraryXML : String

Deprecated. A path to the Puzzles editor's library file relative to the Puzzles' source directory (usually it's the SDK's "puzzles/" folder). Default is "library.xml".

Methods

.loadEditorWithLogic (editorDir, logicURL, onLoad, onError) : null

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, onLoad, onError) : null

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