Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
Sbx_Pronunciation
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
Sbx_Pronunciation
Commits
75d586d1
Commit
75d586d1
authored
Dec 04, 2020
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test on platform
parent
ee36d426
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
283 additions
and
267 deletions
+283
-267
Scene.fire
play/assets/tmpGame/scene/Scene.fire
+267
-267
Scene.js
play/assets/tmpGame/script/Scene.js
+14
-0
index.html
publish/index.html
+2
-0
No files found.
play/assets/tmpGame/scene/Scene.fire
View file @
75d586d1
This diff is collapsed.
Click to expand it.
play/assets/tmpGame/script/Scene.js
View file @
75d586d1
...
@@ -6,6 +6,12 @@
...
@@ -6,6 +6,12 @@
// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
import
GameLogic
from
"
./GameLogic
"
import
GameLogic
from
"
./GameLogic
"
// cc.game.onStart = function(){
// cc.director.runScene(new MyScene());
// console.log("Test")
// cc.game.run();
// };
// cc.game.run();
cc
.
Class
({
cc
.
Class
({
extends
:
cc
.
Component
,
extends
:
cc
.
Component
,
...
@@ -14,10 +20,18 @@ cc.Class({
...
@@ -14,10 +20,18 @@ cc.Class({
},
},
onStart
()
{
},
// 生命周期 onLoad
// 生命周期 onLoad
onLoad
()
{
onLoad
()
{
this
.
initSceneData
();
this
.
initSceneData
();
this
.
initSize
();
this
.
initSize
();
cc
.
macro
.
ENABLE_TRANSPARENT_CANVAS
=
true
;
cc
.
director
.
setClearColor
(
new
cc
.
Color
(
255
,
255
,
255
,
0
));
},
},
_imageResList
:
null
,
_imageResList
:
null
,
...
...
publish/index.html
View file @
75d586d1
...
@@ -67,6 +67,8 @@
...
@@ -67,6 +67,8 @@
loadScript
(
debug
?
'
physics.js
'
:
'
physics-min.js
'
,
window
.
boot
);
loadScript
(
debug
?
'
physics.js
'
:
'
physics-min.js
'
,
window
.
boot
);
}
}
else
{
else
{
cc
.
macro
.
ENABLE_TRANSPARENT_CANVAS
=
true
;
cc
.
director
.
setClearColor
(
new
cc
.
Color
(
255
,
255
,
255
,
0
));
window
.
boot
();
window
.
boot
();
}
}
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment