mirror of
https://github.com/wassname/phaser.git
synced 2026-08-13 12:30:11 +08:00
Updating examples with new runner and menu system.
This commit is contained in:
+1
-4
@@ -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
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user