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
+1 -4
View File
@@ -309,9 +309,9 @@ Phaser.Game.prototype = {
this.stage.boot();
this.world.boot();
this.state.boot();
this.input.boot();
this.sound.boot();
this.state.boot();
if (this.renderType == Phaser.CANVAS)
{
@@ -372,9 +372,6 @@ Phaser.Game.prototype = {
this.state.loadComplete();
// ?
// this.load.onLoadComplete.remove(this.loadComplete, this);
},
update: function (time) {
+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();