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
a7063e42
Commit
a7063e42
authored
Dec 07, 2020
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update scene
parent
c714c7db
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
89 additions
and
172 deletions
+89
-172
Scene.fire
play/assets/tmpGame/scene/Scene.fire
+74
-169
GameLogic.js
play/assets/tmpGame/script/GameLogic.js
+15
-3
No files found.
play/assets/tmpGame/scene/Scene.fire
View file @
a7063e42
...
...
@@ -17,7 +17,7 @@
"__id__": 2
},
{
"__id__": 4
7
"__id__": 4
5
}
],
"_active": false,
...
...
@@ -78,31 +78,31 @@
"__id__": 5
},
{
"__id__": 1
4
"__id__": 1
2
},
{
"__id__":
20
"__id__":
18
},
{
"__id__": 2
5
"__id__": 2
3
},
{
"__id__": 2
9
"__id__": 2
7
},
{
"__id__": 3
7
"__id__": 3
5
}
],
"_active": true,
"_components": [
{
"__id__": 4
4
"__id__": 4
2
},
{
"__id__": 4
5
"__id__": 4
3
},
{
"__id__": 4
6
"__id__": 4
4
}
],
"_prefab": null,
...
...
@@ -192,7 +192,7 @@
"array": [
0,
0,
4
16.55821922031504
,
4
24.352447854375
,
0,
0,
0,
...
...
@@ -267,9 +267,6 @@
},
{
"__id__": 10
},
{
"__id__": 12
}
],
"_active": true,
...
...
@@ -324,7 +321,7 @@
},
{
"__type__": "cc.Node",
"_name": "bg
_A
",
"_name": "bg
Color
",
"_objFlags": 0,
"_parent": {
"__id__": 5
...
...
@@ -337,7 +334,7 @@
}
],
"_prefab": null,
"_opacity":
0
,
"_opacity":
255
,
"_color": {
"__type__": "cc.Color",
"r": 255,
...
...
@@ -347,8 +344,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width":
128
0,
"height":
72
0
"width":
256
0,
"height":
256
0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -382,7 +379,7 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "
32MJMZ2HRGF4BOf533Avyi
"
"_id": "
578CoVS05K5IAHeBtBSz32
"
},
{
"__type__": "cc.Sprite",
...
...
@@ -400,7 +397,7 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "
8fca9173-2c3b-4a8a-a2fe-3c97908a3bd9
"
"__uuid__": "
03fecb54-2cbe-4bb3-ba83-e4b044796be4
"
},
"_type": 0,
"_sizeMode": 1,
...
...
@@ -414,11 +411,11 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "
97/S6HDq9MeqgmV1Zwnhbb
"
"_id": "
ff8mBl/i1PX71+K0oR79qe
"
},
{
"__type__": "cc.Node",
"_name": "bg
New_A
",
"_name": "bg
_A
",
"_objFlags": 0,
"_parent": {
"__id__": 5
...
...
@@ -476,7 +473,7 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "
578CoVS05K5IAHeBtBSz32
"
"_id": "
32MJMZ2HRGF4BOf533Avyi
"
},
{
"__type__": "cc.Sprite",
...
...
@@ -494,10 +491,10 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "
efc7ad6f-e504-4a62-b16d-aefef18faad3
"
"__uuid__": "
64f90f87-7032-4fce-88b0-6da5e1afe092
"
},
"_type": 0,
"_sizeMode":
1
,
"_sizeMode":
0
,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
...
...
@@ -508,11 +505,11 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "
ff8mBl/i1PX71+K0oR79qe
"
"_id": "
97/S6HDq9MeqgmV1Zwnhbb
"
},
{
"__type__": "cc.Node",
"_name": "bg_
B
",
"_name": "bg_
D
",
"_objFlags": 0,
"_parent": {
"__id__": 5
...
...
@@ -570,98 +567,6 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "dbml4BWuRKwJrxE+5TDhHj"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": null,
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "d8JNzu809IO7zeJIKpsJrM"
},
{
"__type__": "cc.Node",
"_name": "bg_C",
"_objFlags": 0,
"_parent": {
"__id__": 5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 13
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1280,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "e8YQ2CqipP76AODeH4UgjR"
},
{
...
...
@@ -669,7 +574,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
2
"__id__": 1
0
},
"_enabled": true,
"_materials": [
...
...
@@ -703,13 +608,13 @@
},
"_children": [
{
"__id__": 1
5
"__id__": 1
3
},
{
"__id__": 1
7
"__id__": 1
5
},
{
"__id__": 1
9
"__id__": 1
7
}
],
"_active": true,
...
...
@@ -767,13 +672,13 @@
"_name": "video",
"_objFlags": 0,
"_parent": {
"__id__": 1
4
"__id__": 1
2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
6
"__id__": 1
4
}
],
"_prefab": null,
...
...
@@ -829,7 +734,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
5
"__id__": 1
3
},
"_enabled": true,
"_resourceType": 1,
...
...
@@ -851,13 +756,13 @@
"_name": "bg_A",
"_objFlags": 0,
"_parent": {
"__id__": 1
4
"__id__": 1
2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
8
"__id__": 1
6
}
],
"_prefab": null,
...
...
@@ -913,7 +818,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
7
"__id__": 1
5
},
"_enabled": true,
"_materials": [
...
...
@@ -945,7 +850,7 @@
"_name": "bg_D",
"_objFlags": 0,
"_parent": {
"__id__": 1
4
"__id__": 1
2
},
"_children": [],
"_active": true,
...
...
@@ -1007,13 +912,13 @@
},
"_children": [
{
"__id__":
21
"__id__":
19
},
{
"__id__": 2
3
"__id__": 2
1
},
{
"__id__": 2
4
"__id__": 2
2
}
],
"_active": true,
...
...
@@ -1071,13 +976,13 @@
"_name": "bg_A",
"_objFlags": 0,
"_parent": {
"__id__":
20
"__id__":
18
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 2
2
"__id__": 2
0
}
],
"_prefab": null,
...
...
@@ -1133,7 +1038,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
21
"__id__":
19
},
"_enabled": true,
"_materials": [
...
...
@@ -1165,7 +1070,7 @@
"_name": "bg_D",
"_objFlags": 0,
"_parent": {
"__id__":
20
"__id__":
18
},
"_children": [],
"_active": true,
...
...
@@ -1223,7 +1128,7 @@
"_name": "DB",
"_objFlags": 0,
"_parent": {
"__id__":
20
"__id__":
18
},
"_children": [],
"_active": true,
...
...
@@ -1285,10 +1190,10 @@
},
"_children": [
{
"__id__": 2
6
"__id__": 2
4
},
{
"__id__": 2
8
"__id__": 2
6
}
],
"_active": true,
...
...
@@ -1346,13 +1251,13 @@
"_name": "bg",
"_objFlags": 0,
"_parent": {
"__id__": 2
5
"__id__": 2
3
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 2
7
"__id__": 2
5
}
],
"_prefab": null,
...
...
@@ -1408,7 +1313,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
6
"__id__": 2
4
},
"_enabled": true,
"_materials": [
...
...
@@ -1440,7 +1345,7 @@
"_name": "dragonBones",
"_objFlags": 0,
"_parent": {
"__id__": 2
5
"__id__": 2
3
},
"_children": [],
"_active": true,
...
...
@@ -1502,13 +1407,13 @@
},
"_children": [
{
"__id__":
30
"__id__":
28
},
{
"__id__": 3
3
"__id__": 3
1
},
{
"__id__": 3
6
"__id__": 3
4
}
],
"_active": false,
...
...
@@ -1566,11 +1471,11 @@
"_name": "font",
"_objFlags": 0,
"_parent": {
"__id__": 2
9
"__id__": 2
7
},
"_children": [
{
"__id__":
31
"__id__":
29
}
],
"_active": true,
...
...
@@ -1628,13 +1533,13 @@
"_name": "Comic Sans MS",
"_objFlags": 0,
"_parent": {
"__id__":
30
"__id__":
28
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
2
"__id__": 3
0
}
],
"_prefab": null,
...
...
@@ -1690,7 +1595,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
31
"__id__":
29
},
"_enabled": true,
"_materials": [],
...
...
@@ -1722,11 +1627,11 @@
"_name": "img",
"_objFlags": 0,
"_parent": {
"__id__": 2
9
"__id__": 2
7
},
"_children": [
{
"__id__": 3
4
"__id__": 3
2
}
],
"_active": true,
...
...
@@ -1784,13 +1689,13 @@
"_name": "black",
"_objFlags": 0,
"_parent": {
"__id__": 3
3
"__id__": 3
1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
5
"__id__": 3
3
}
],
"_prefab": null,
...
...
@@ -1846,7 +1751,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
4
"__id__": 3
2
},
"_enabled": true,
"_materials": [],
...
...
@@ -1874,7 +1779,7 @@
"_name": "audio",
"_objFlags": 0,
"_parent": {
"__id__": 2
9
"__id__": 2
7
},
"_children": [],
"_active": true,
...
...
@@ -1936,13 +1841,13 @@
},
"_children": [
{
"__id__": 3
8
"__id__": 3
6
},
{
"__id__":
40
"__id__":
38
},
{
"__id__": 4
2
"__id__": 4
0
}
],
"_active": true,
...
...
@@ -2000,13 +1905,13 @@
"_name": "btn_right",
"_objFlags": 0,
"_parent": {
"__id__": 3
7
"__id__": 3
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
9
"__id__": 3
7
}
],
"_prefab": null,
...
...
@@ -2062,7 +1967,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
8
"__id__": 3
6
},
"_enabled": true,
"_materials": [
...
...
@@ -2094,13 +1999,13 @@
"_name": "btn_left",
"_objFlags": 0,
"_parent": {
"__id__": 3
7
"__id__": 3
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__":
41
"__id__":
39
}
],
"_prefab": null,
...
...
@@ -2156,7 +2061,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
40
"__id__":
38
},
"_enabled": true,
"_materials": [
...
...
@@ -2188,13 +2093,13 @@
"_name": "btn_restart",
"_objFlags": 0,
"_parent": {
"__id__": 3
7
"__id__": 3
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 4
3
"__id__": 4
1
}
],
"_prefab": null,
...
...
@@ -2250,7 +2155,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 4
2
"__id__": 4
0
},
"_enabled": true,
"_materials": [
...
...
play/assets/tmpGame/script/GameLogic.js
View file @
a7063e42
...
...
@@ -76,11 +76,23 @@ export default class GameLogic {
}
initBg
()
{
console
.
log
(
this
.
g_formData
.
theme
)
const
bgNode_A
=
cc
.
find
(
'
Canvas/bgMain/bg_A
'
);
bgNode_A
.
scale
=
this
.
g_systemOption
.
mapScaleMax
;
// bgNode_A.height = cc.winSize.height;
// bgNode_A.width = cc.winSize.width;
console
.
log
(
bgNode_A
.
height
,
bgNode_A
.
width
)
if
(
this
.
g_formData
.
theme
==
"
A
"
)
{
bgNode_A
.
active
=
true
;
}
else
{
bgNode_A
.
active
=
false
;
}
const
bgNode_D
=
cc
.
find
(
'
Canvas/bgMain/bg_D
'
);
bgNode_D
.
scale
=
this
.
g_systemOption
.
mapScaleMax
;
if
(
this
.
g_formData
.
theme
==
"
A
"
)
{
bgNode_D
.
active
=
true
;
}
else
{
bgNode_D
.
active
=
false
;
}
}
resetPosition
()
{
...
...
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