Ignore:
Timestamp:
05/05/12 05:39:04 (12 years ago)
Author:
atzm
Message:
  • add score board
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pycodeshooter/trunk/shooter/system.js

    r131 r132  
    595595 *  Initializer 
    596596 */ 
    597 function initGame(canvas, msg, playerData) { 
     597function initGame(canvas, msg, playerData, scoreCallback) { 
    598598    System.screen.canvas = canvas; 
    599599    System.message       = msg; 
     
    681681                             -0.5) 
    682682        ]; 
     683 
     684        if (trooper.isDead() && scoreCallback) { 
     685            scoreCallback(trooper.name, System.score[trooper.name]); 
     686        } 
    683687    }); 
    684688 
Note: See TracChangeset for help on using the changeset viewer.