API Docs for:
Show:

Phaser.Plugin.GamygdalaWrapper Class

This is the Phaser plugin that wraps around the main Gamygdala class. To use gamygdala as a Phaser plugin, simply create an instance of Phaser.Plugin.GamygdalaWrapper, and add it to your Phaser game as a plugin. By default it is active. The easiest way to add it is as follows:

Constructor

Phaser.Plugin.GamygdalaWrapper

()

Example:

gamygdalaPlugin=new Phaser.Plugin.GamygdalaWrapper();//create the plugin. mygame.plugins.add(gamygdalaPlugin);//add the plugin to the game gamygdala=gamygdalaPlugin.getGamygdala(); //this gives you a ref to the actual underlying emotion engine, so that you can do what you need to do.

Methods

Phaser.Plugin.GamygdalaWrapper.getGamygdala

() TUDelft.Gamygdala

Returns the gamygdala instance you need to do all emotional stuff.

Returns:

TUDelft.Gamygdala:

The Gamygdala instance reference created by this plugin.

Phaser.Plugin.GamygdalaWrapper.update

()

This is run when the plugins update during the core game loop. It performs a regular decay, if phaserManagedDecay = true.