Files
Santy-Wang 7bc135e1c7 adjust initialization process (#11143)
* adjust init process

* fix bugs

* restructure

* tweak

* delete useless code

* fix ci

* support more platform and fix some bugs

* mark internal

* tweak

* add docs

* add docs and little adjustment

* fix bugs

* adjust decorator execute order

fix mesh error

* fix bugs

* revert some change

* revert auto-generated code

* revert auto-generated code
2022-07-03 21:16:09 +08:00

9 lines
386 B
JavaScript

cc.game.restart = function () {
};
ral.onWindowResize && ral.onWindowResize(function (width, height) {
// Since the initialization of the creator engine may not take place until after the onWindowResize call,
// you need to determine whether the canvas already exists before you can call the setCanvasSize method
cc.game.canvas && cc.view.setCanvasSize(width, height);
});