* Optim: better way to manage waves

* Feature: add mirror move and a beginnig of sinusoid move
This commit is contained in:
Fabrice Ecaille
2013-10-16 18:14:39 +02:00
parent 97dee3deb0
commit d588759e90
3 changed files with 91 additions and 40 deletions

View File

@@ -46,15 +46,15 @@ function displayModal(data) {
if( data.bonus ) {
$("#modal_pane")
.addSprite("bonusLbl", {width: 180, height: 32, posx: 10, posy: data.end ? 90 : 50})
.addSprite("bonusNbr", {width: 180, height: 32, posx: 200, posy: data.end ? 90 : 50})
.addSprite("totalLbl", {width: 180, height: 32, posx: 10, posy: data.end ? 130 : 90})
.addSprite("totalNbr", {width: 180, height: 32, posx: 200, posy: data.end ? 130 : 90})
.addSprite("bonusLbl", {width: 180, height: 32, posx: 10, posy: data.end ? 90 : 50})
.addSprite("bonusNbr", {width: 180, height: 32, posx: 200, posy: data.end ? 90 : 50})
;
$("#totalLbl").append("Wave").lettering();
$("#totalNbr").append(data.wave_score).lettering();
$("#bonusLbl").append("Bonus").lettering();
$("#bonusNbr").append(data.bonus).lettering();
$("#totalLbl").append("Wave score").lettering();
$("#totalNbr").append(data.wave_score).lettering();
}
$("#modal_pane").addClass( "modal" );