Class

RPGcode

RPGcode() → {RPGcode}

Constructor

# new RPGcode() → {RPGcode}

The engine RPGcode API.

View Source rpgcode.js, line 42

RPGcode

Members

String

# font

Font that will be used for all drawing operations.

View Source rpgcode.js, line 78

Example
// Normal
rpgcode.font = "20px Lucida Console"
//Bold
rpgcode.font = "bold 20px Lucida Console"
// Italic
rpgcode.font = "italic 20px Lucida Console"
// Both.
rpgcode.font = "italic bold 20px Lucida Console"
Number

# globalAlpha

Alpha value that will be used for all drawing operations.

View Source rpgcode.js, line 90

Example
// 50% Alpha
rpgcode.globalAlpha = 0.5
// 100% Alpha
rpgcode.globalAlpha = 1.0
Boolean

# scale

Controls whether or not all drawing operations will be scaled in fullscreen mode, default setting is true.

View Source rpgcode.js, line 101

Example
// Turn global scaling of on all drawing operations
rpgcode.scale = false;