mirror of
https://github.com/wassname/phaser.git
synced 2026-07-26 13:27:43 +08:00
Updating examples with new runner and menu system.
This commit is contained in:
+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