working on the highscore layout
This commit is contained in:
parent
9a37a561e9
commit
22084bd6fd
2 changed files with 6 additions and 7 deletions
|
@ -23,8 +23,6 @@ ig.module(
|
||||||
pauseDialogAnim: null,
|
pauseDialogAnim: null,
|
||||||
showPause: false,
|
showPause: false,
|
||||||
|
|
||||||
highscoreDialog: new ig.AnimationSheet('media/highscore_screen.png', 624, 384),
|
|
||||||
|
|
||||||
clearColor: null,
|
clearColor: null,
|
||||||
|
|
||||||
init: function() {
|
init: function() {
|
||||||
|
@ -117,9 +115,10 @@ ig.module(
|
||||||
game_id: '642fc6c1e8',
|
game_id: '642fc6c1e8',
|
||||||
response: 'json'
|
response: 'json'
|
||||||
},
|
},
|
||||||
font: new ig.Font( 'media/04b03.font.png' ),
|
font: new ig.Font( 'media/lcddot.font.png' ),
|
||||||
background: new ig.Image('media/stats_screen.png'),
|
background: new ig.Image('media/highscore_screen.png'),
|
||||||
nameField: null,
|
nameField: null,
|
||||||
|
clearColor: null,
|
||||||
|
|
||||||
init: function() {
|
init: function() {
|
||||||
ig.input.bind(ig.KEY.ENTER, 'submit-score');
|
ig.input.bind(ig.KEY.ENTER, 'submit-score');
|
||||||
|
@ -160,6 +159,7 @@ ig.module(
|
||||||
},
|
},
|
||||||
|
|
||||||
draw: function() {
|
draw: function() {
|
||||||
|
ig.system.context.clearRect( 0 ,0, ig.system.realWidth, ig.system.realHeight );
|
||||||
this.parent();
|
this.parent();
|
||||||
this.background.draw(0, 0);
|
this.background.draw(0, 0);
|
||||||
|
|
||||||
|
@ -173,9 +173,8 @@ ig.module(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.nameField.draw(200, 200);
|
this.nameField.draw(260, 200);
|
||||||
this.font.draw('Score: ' + ig.global.score, 200, 300, ig.Font.ALIGN.CENTER);
|
this.font.draw(ig.global.score, 485, 150, ig.Font.ALIGN.RIGHT);
|
||||||
this.font.draw('Press [ENTER] to move to the main menu', 200, 350, ig.Font.ALIGN.CENTER);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 155 KiB After Width: | Height: | Size: 158 KiB |
Loading…
Reference in a new issue