What it does
game.win takes message. message is optional.
Signature
game.win(message?)Arguments
messageoptional
Example · generated
function start() { game.win('Hello');}game.win is called with values of the shape its signature asks for. The code sits in start(), which the engine calls once, when the entity spawns.