Description

Initializes the canvas

Usage

Parameters

  • params {Object}

    Parameters :

    • canvas {String} (mandatory) : name of the identifier of the canvas
    • autoload {Boolean) : load data and resources in Data/Database.json and Data/Materials.json (true by default)
    • scene_path {String} : The path to the classes scenes. ./ by default

      scene_path: "../" // => ../core/scene
      
    • plugins {Array} Name of files to load plugins

    • and all parameters of CanvasEngine.defines()

Returns

RPGJS

Discussion