Options
All
  • Public
  • Public/Protected
  • All
Menu

shell Competition

It contains the information and method required to show competition data and start a game

It is provided to the shell upon calling etherplay.init (see init)

More to come : getCurrentHighScores() , getCurrentJackpot(), ....

Summary

Properties

gameLoadingProgress

gameLoadingProgress: number

number between 0 and 1

1 means the game has been loaded and is going to be ready to be started

isGameReady

isGameReady: function

return true when game resources have been loaded and the game is ready to be started

Type declaration

    • (): boolean
    • Returns boolean

startGame

startGame: function

This method start the actual game

param

params accept three function properties to be called when the game cannot start, start and finish respectively

Type declaration