Updating examples with new runner and menu system.

This commit is contained in:
Richard Davey
2013-09-13 17:48:47 +01:00
parent ad0d32b7aa
commit 70233b7508
155 changed files with 2377 additions and 104 deletions
+5 -8
View File
@@ -291,14 +291,6 @@ Phaser.Input.prototype = {
this.hitCanvas.height = 1;
this.hitContext = this.hitCanvas.getContext('2d');
// Debugging
// this.hitCanvas.style['width'] = '200px';
// this.hitCanvas.style['height'] = '200px';
// this.hitCanvas.style['position'] = 'absolute';
// this.hitCanvas.style['left'] = '810px';
// this.hitCanvas.style['backgroundColor'] = '#ef0000';
// Phaser.Canvas.addToDOM(this.hitCanvas);
this.mouse.start();
this.keyboard.start();
this.touch.start();
@@ -378,6 +370,11 @@ Phaser.Input.prototype = {
**/
reset: function (hard) {
if (this.game.isBooted == false)
{
return;
}
if (typeof hard == 'undefined') { hard = false; }
this.keyboard.reset();