From df035382c41b4d0cda86a1aa30b53f15bef05b53 Mon Sep 17 00:00:00 2001 From: Doug McInnes Date: Tue, 25 May 2010 22:18:23 -0700 Subject: [PATCH 1/6] I can't spell 'screen' apparently :) --- game.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game.js b/game.js index 553849b..8b87936 100644 --- a/game.js +++ b/game.js @@ -917,7 +917,7 @@ Game = { this.state = 'waiting'; }, waiting: function () { - Text.renderText(ipad ? 'Touch Sreen to Start' : 'Press Space to Start', 36, Game.canvasWidth/2 - 270, Game.canvasHeight/2); + Text.renderText(ipad ? 'Touch Screen to Start' : 'Press Space to Start', 36, Game.canvasWidth/2 - 270, Game.canvasHeight/2); if (KEY_STATUS.space || window.gameStart) { KEY_STATUS.space = false; // hack so we don't shoot right away window.gameStart = false; From 25ede836903881848fea811df5b687b59d962da3 Mon Sep 17 00:00:00 2001 From: Doug McInnes Date: Wed, 26 May 2010 23:52:00 -0700 Subject: [PATCH 2/6] a couple missing ends with the ipad version --- game.js | 3 +-- index.html | 1 - ipad.js | 4 ++-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/game.js b/game.js index 8b87936..5daadb0 100644 --- a/game.js +++ b/game.js @@ -408,7 +408,6 @@ Ship = function () { } if (KEY_STATUS.space) { if (this.delayBeforeBullet <= 0) { - this.delayBeforeBullet = 10; for (var i = 0; i < this.bullets.length; i++) { if (!this.bullets[i].visible) { SFX.laser(); @@ -917,7 +916,7 @@ Game = { this.state = 'waiting'; }, waiting: function () { - Text.renderText(ipad ? 'Touch Screen to Start' : 'Press Space to Start', 36, Game.canvasWidth/2 - 270, Game.canvasHeight/2); + Text.renderText(window.ipad ? 'Touch Screen to Start' : 'Press Space to Start', 36, Game.canvasWidth/2 - 270, Game.canvasHeight/2); if (KEY_STATUS.space || window.gameStart) { KEY_STATUS.space = false; // hack so we don't shoot right away window.gameStart = false; diff --git a/index.html b/index.html index 3d6e6f4..8aa618d 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,6 @@