Notice: Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.) in /home/wcc1969/public_html/phasergames.com/wp-includes/functions.php on line 6085
Notice: Function wpdb::prepare was called incorrectly. The query does not contain the correct number of placeholders (0) for the number of arguments passed (1). Please see Debugging in WordPress for more information. (This message was added in version 4.8.3.) in /home/wcc1969/public_html/phasergames.com/wp-includes/functions.php on line 6085
Warning: Undefined variable $output in /home/wcc1969/public_html/phasergames.com/wp-content/plugins/wc_snippets/snippets.php on line 77
Add a button
Description:
Example:game.add.button(240,320,'buttons',clickHandler,this,0,1,0)
Sprite click
Description:
Example:this.sprite.events.onInputUp.add(this.changeColor,this);
enable a sprite for input
Description:to be able to use a click event on a sprite you first must enable it for inputs
Example:this.btnPlay.inputEnabled=true;
Canvas Click
Description:adds a listener to the entire game
Example: game.input.onUp.add(this.doClick, this);