Text templating
Last updated
Last updated
When you're using text, you can include information about the game using variables.
Here are un example: Fantastic! You have reached {{score}} points!!
The text is translated as soon as it's loaded when starting a new level. That means if you show {{score}} and after that the game assign more points, the text won't be updated.
Here is a list of the available variables:
{{score}}
: Shows the current score
{{visitedLevels}}
List of visited levels:
{{time}}
Elapsed time in seconds since the countdown started
{{timeLeft}}
Time left of the countdown in seconds
{{formattedTime}}
Elapsed time in seconds since the countdown started in format hh:mm
{{formattedTimeLeft}}
Time left of the countdown in seconds in format hh:mm