Public Functions:Game Functions
Game functions...
-
MyGame.doStartGame()
This is a special property on the game object. It does not exist as a
function unless the author defines it. If the author defines it as a
function, that function will be called when the game starts. This allows
authors to run arbitrary code when the game starts. Use it like this:
MyGame.doStartGame = function(){ // author's code here } - MyGame.isCurrentRoom('asset') {String} the name or id of a room asset Boolean This method asks whether the player's current room matches the provided string and returns a boolean. Only considers the player's current room; doesn't work for NPCs in other rooms.