From b867e909d2a9e15f0fecf07bf41d3c6cfa1200e4 Mon Sep 17 00:00:00 2001 From: Xuefeng education <40351998+xuefengedu@users.noreply.github.com> Date: Wed, 28 Nov 2018 21:12:53 -0800 Subject: [PATCH] Show block for isGameOver(),isRunning(),isPaused() (#1677) --- libs/core/game.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libs/core/game.ts b/libs/core/game.ts index a72c3175..a2871173 100644 --- a/libs/core/game.ts +++ b/libs/core/game.ts @@ -252,7 +252,8 @@ namespace game { /** * Gets a value indicating if the game is still running. Returns `false` if game over. */ - //% weight=10 + //% weight=5 help=game/isrunning + //% blockId=game_isrunning block="is running?" blockGap=8 export function isRunning(): boolean { let running: boolean; return !_isGameOver; @@ -272,6 +273,8 @@ namespace game { /** * Indicates if the game is display the game over sequence. */ + //% weight=7 help=game/isgameover + //% blockId=game_isgameover block="is game over?" blockGap=8 export function isGameOver(): boolean { return _isGameOver; } @@ -279,7 +282,8 @@ namespace game { /** * Indicates if the game rendering is paused to allow other animations */ - //% + //% weight=6 help=game/ispaused + //% blockId=game_ispaused block="is paused?" blockGap=8 export function isPaused(): boolean { return _paused; }