Options
All
  • Public
  • Public/Protected
  • All
Menu

interface game GameResult

Object to return when game is done

You need to return a object containing at least score and the game will stop

Once this object is returned the game will stop

Summary

Properties

Properties

Optional data

data: any

can set game specific data, like player's achievements

score

score: number

represents the score achieved by the player (integer)