GiveScore (int score)
Adds SCORE to the player's score. This is preferable to directly modifying
the variable since it will play the score sound, update any status lines
and call the GOT_SCORE on_event function.
Note that SCORE can be negative, in which case the score sound is NOT played.
Example:
GiveScore(5);
will give 5 points to the player.
See Also: Game.DoOnceOnly
|