is Paused
Find out if the game is paused or not.
game.isPaused()Returns
- a boolean value that is trueif the game is paused orfalseif not.
Example
Resume the game if it’s paused and button B is pressed.
input.onButtonPressed(Button.B, function () {
    if (game.isPaused()) {
        game.resume()
    }
}) 
            