Difference between revisions of "Scoreboard"

From Sugar Labs
Jump to navigation Jump to search
Line 7: Line 7:
 
* maxScore
 
* maxScore
 
* .inc(val), .dec(val) to increment and decrement score, default change by one if no val supplied
 
* .inc(val), .dec(val) to increment and decrement score, default change by one if no val supplied
* pause() score can't be changed
 
 
* reset()
 
* reset()
 
* start()
 
* start()
Line 21: Line 20:
 
* display difficulty level
 
* display difficulty level
 
* .stop()
 
* .stop()
 +
* pause() score can't be changed

Revision as of 00:23, 5 January 2010

Fields

  • Score
  • Total
  • ?# wrong?

Methods

  • maxScore
  • .inc(val), .dec(val) to increment and decrement score, default change by one if no val supplied
  • reset()
  • start()

Options

  • startBtn : true
  • restartBtn : true
  • stopBtn : true
  • incValue : 1
  • maxScore : 0

Possibly For future

  • display difficulty level
  • .stop()
  • pause() score can't be changed