Namespace: MC

MC

(MaxCanvas)
Version 1.0 (June 2018 - April 2019)
First Release
All Engine Variables reside in this namespace.
Avoid extending as future versions may overwrite your work !
Source:

Classes

Color
ConBox
GUI
Picture
Point
Sprite
SpriteBin
Typeface

Interfaces

canvas
draw
game
keys
maths
mouse
utils

Methods

(static) init(canvas, fullWindowopt)


Initialises the MaxCanvas (MC) Engine by passing it a reference to the canvas it is to use.
(1) If the parameter string "fullWindow" is entered, the canvas will automatically re-size to the browser window size. It will subsequently be resized with the window.
Parameters:
Name Type Attributes Description
canvas Object HTML canvas to be used
fullWindow String <optional>
(1)
Source:
Example
var c=document.getElementById("canvas");
MC.init(c,"fullWindow");

Documentation generated by JSDoc 3.5.5 on Fri Apr 26 2019 18:16:49 GMT+0100 (GMT Summer Time)