diff --git a/design/main_screen.psd b/design/main_screen.psd new file mode 100644 index 0000000..b420a2e Binary files /dev/null and b/design/main_screen.psd differ diff --git a/dev/lib/game/main.js b/dev/lib/game/main.js index a280290..2a6219b 100755 --- a/dev/lib/game/main.js +++ b/dev/lib/game/main.js @@ -109,6 +109,7 @@ StartScreen = ig.Game.extend({ background: new ig.Image('media/main_screen.png'), + clearColor: null, init: function() { ig.input.bind(ig.KEY.ENTER, 'start-game'); @@ -122,6 +123,7 @@ }, draw: function() { + ig.system.context.clearRect( 0 ,0, ig.system.realWidth, ig.system.realHeight ); this.parent(); this.background.draw(0, 0); } diff --git a/dev/lib/impact/loader.js b/dev/lib/impact/loader.js index b792ddd..53f9895 100755 --- a/dev/lib/impact/loader.js +++ b/dev/lib/impact/loader.js @@ -62,6 +62,7 @@ ig.Loader = ig.Class.extend({ draw: function() { + ig.system.context.clearRect( 0 ,0, ig.system.realWidth, ig.system.realHeight ); this._drawStatus += (this.status - this._drawStatus)/5; var s = ig.system.scale; var w = ig.system.width * 0.6; @@ -70,7 +71,7 @@ ig.Loader = ig.Class.extend({ var y = ig.system.height * 0.5-h/2; ig.system.context.fillStyle = '#000'; - ig.system.context.fillRect( 0, 0, 480, 320 ); + //ig.system.context.fillRect( 0, 0, 480, 320 ); ig.system.context.fillStyle = '#fff'; ig.system.context.fillRect( x*s, y*s, w*s, h*s ); diff --git a/dev/media/main_screen.png b/dev/media/main_screen.png index 1a5a77d..2f9d836 100644 Binary files a/dev/media/main_screen.png and b/dev/media/main_screen.png differ