mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 08:42:43 +08:00
Merge branch 'v1.2' of github.com:nantas/engine into v1.2
This commit is contained in:
@@ -36,12 +36,12 @@ var _isMusicPlaying = false;
|
||||
* !#zh 包含游戏主体信息并负责驱动游戏的游戏对象。
|
||||
* @class Game
|
||||
*/
|
||||
var game = /** @lends cc.game# */{
|
||||
var game = {
|
||||
|
||||
/**
|
||||
* Event triggered when game hide to background.
|
||||
* Please note that this event is not 100% guaranteed to be fired.
|
||||
* @property
|
||||
* @property EVENT_HIDE
|
||||
* @type {String}
|
||||
* @example
|
||||
* cc.game.on(cc.game.EVENT_HIDE, function () {
|
||||
@@ -54,21 +54,21 @@ var game = /** @lends cc.game# */{
|
||||
/**
|
||||
* Event triggered when game back to foreground
|
||||
* Please note that this event is not 100% guaranteed to be fired.
|
||||
* @property
|
||||
* @property EVENT_SHOW
|
||||
* @type {String}
|
||||
*/
|
||||
EVENT_SHOW: "game_on_show",
|
||||
|
||||
/**
|
||||
* Event triggered after game inited, at this point all engine objects and game scripts are loaded
|
||||
* @property
|
||||
* @property EVENT_GAME_INITED
|
||||
* @type {String}
|
||||
*/
|
||||
EVENT_GAME_INITED: "game_inited",
|
||||
|
||||
/**
|
||||
* Event triggered after renderer inited, at this point you will be able to use the render context
|
||||
* @property
|
||||
* @property EVENT_RENDERER_INITED
|
||||
* @type {String}
|
||||
*/
|
||||
EVENT_RENDERER_INITED: "renderer_inited",
|
||||
@@ -82,7 +82,7 @@ var game = /** @lends cc.game# */{
|
||||
|
||||
/**
|
||||
* Key of config
|
||||
* @property
|
||||
* @property CONFIG_KEY
|
||||
* @type {Object}
|
||||
*/
|
||||
CONFIG_KEY: {
|
||||
|
||||
Reference in New Issue
Block a user