Game Manager | |
ID | 66 |
---|---|
Category | Game |
Sublayer width | 14 |
Various I/O to control the level score and level completion.
The game ends if a value of 1 is sent to either IN0
or IN1
. If high scores are enabled, the game is lost, no high score is saved unless "Store high score on game over" is enabled.
The game may also end automatically if the final score specified in the level properties is reached.
NOTE: OUT0
can be used to check whether the final score has been reached. You may want to use a Floor component to filter this value before you pass it on to binary devices, otherwise a value of 0.5 (half final score reached) will be rounded up to 1.
IN0
: Player wins the gameIN1
: Player loses the gameIN2
: Score +1IN3
: Score +50IN4
: Score +100IN5
: Score +250IN6
: Score +500IN7
: Score -1IN8
: Score -50IN9
: Score -100IN10
: Score -250IN11
: Score -500IN12
: Restart LevelOUT0
: Output current score as a fraction: current_score/max_score
. If there is no max score, 0 is always output