Changeset 126 for pycodeshooter/trunk/shooter
- Timestamp:
- 01/22/12 21:00:46 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pycodeshooter/trunk/shooter/system.js
r125 r126 208 208 } 209 209 210 function getStageNumber() { 211 return System.stage; 212 } 213 210 214 function switchStage(base) { 211 215 var scores = Object.keys(System.score); … … 266 270 } 267 271 268 function numEnemies() {272 function getEnemiesOnScreen() { 269 273 return System.enemies.length; 270 274 } … … 378 382 // switch stage 379 383 if (switchStage(50000)) 380 switchBgm(System.stage); 384 switchBgm(getStageNumber()); 385 386 // draw stage number 387 drawString( 388 System.screen.ctx, 389 "source-over", 390 "STAGE " + getStageNumber(), 391 System.screen.width - 10, 392 System.screen.height - 15, 393 "#ACF", "9pt monospace", "right" 394 ); 381 395 382 396 // draw score … … 387 401 System.screen.ctx, 388 402 "source-over", 389 name + " score" + System.score[name],403 name + " SCORE " + System.score[name], 390 404 (System.screen.width - 10), 391 405 i * 16 + 15,
Note: See TracChangeset
for help on using the changeset viewer.