Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fucking_flirt
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
william
fucking_flirt
Commits
343efb3b
Commit
343efb3b
authored
May 05, 2018
by
william
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: order game node
parent
a456cd7e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
650 additions
and
193 deletions
+650
-193
game.fire
assets/game.fire
+648
-192
Game.js
assets/scripts/Game.js
+2
-1
No files found.
assets/game.fire
View file @
343efb3b
...
@@ -62,26 +62,35 @@
...
@@ -62,26 +62,35 @@
"__id__": 5
"__id__": 5
},
},
{
{
"__id__":
7
"__id__":
15
},
},
{
{
"__id__":
9
"__id__":
17
},
},
{
{
"__id__": 1
4
"__id__": 1
8
},
},
{
{
"__id__": 16
"__id__": 19
},
{
"__id__": 23
},
{
"__id__": 25
},
{
"__id__": 26
}
}
],
],
"_tag": -1,
"_tag": -1,
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
18
"__id__":
27
},
},
{
{
"__id__":
19
"__id__":
28
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -201,105 +210,33 @@
...
@@ -201,105 +210,33 @@
},
},
{
{
"__type__": "cc.Node",
"__type__": "cc.Node",
"_name": "
logo
",
"_name": "
index
",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 2
"__id__": 2
},
},
"_children": [],
"_children": [
"_tag": -1,
"_active": true,
"_components": [
{
{
"__id__": 6
"__id__": 6
}
],
"_prefab": null,
"_id": "d6B3OYIbdA0oKVBARBzlsD",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 332,
"height": 110
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 0.6,
"_scaleY": 0.6,
"_position": {
"__type__": "cc.Vec2",
"x": 2,
"y": 182
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"_spriteFrame": {
"__uuid__": "26869b11-f810-4bbe-994e-793228a11892"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_atlas": null
},
},
{
{
"__type__": "cc.Node",
"__id__": 11
"_name": "subtitle",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
},
"_children": [],
"_tag": -1,
"_active": true,
"_components": [
{
{
"__id__":
8
"__id__":
13
}
}
],
],
"_tag": -1,
"_active": true,
"_components": [],
"_prefab": null,
"_prefab": null,
"_id": "
71kSDoZslK+qnciDr+46zc
",
"_id": "
11Whf+9qZFC6iWPyh0zx07
",
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
"__type__": "cc.Color",
"__type__": "cc.Color",
"r":
0
,
"r":
255
,
"g":
0
,
"g":
255
,
"b":
0
,
"b":
255
,
"a": 255
"a": 255
},
},
"_cascadeOpacityEnabled": true,
"_cascadeOpacityEnabled": true,
...
@@ -310,8 +247,8 @@
...
@@ -310,8 +247,8 @@
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width":
16
0,
"width": 0,
"height":
12
0
"height": 0
},
},
"_rotationX": 0,
"_rotationX": 0,
"_rotationY": 0,
"_rotationY": 0,
...
@@ -319,8 +256,8 @@
...
@@ -319,8 +256,8 @@
"_scaleY": 1,
"_scaleY": 1,
"_position": {
"_position": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
"x":
2
,
"x":
0
,
"y":
75
"y":
0
},
},
"_skewX": 0,
"_skewX": 0,
"_skewY": 0,
"_skewY": 0,
...
@@ -330,47 +267,25 @@
...
@@ -330,47 +267,25 @@
"groupIndex": 0
"groupIndex": 0
},
},
{
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
},
"_enabled": true,
"_useOriginalSize": false,
"_actualFontSize": 20,
"_fontSize": 20,
"_lineHeight": 40,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_N$string": "点击屏幕开始撩妹\n在下课前快速撩妹\n避免被老师发现",
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0
},
{
"__type__": "cc.Node",
"__type__": "cc.Node",
"_name": "start_btn",
"_name": "start_btn",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
2
"__id__":
5
},
},
"_children": [
"_children": [
{
{
"__id__":
10
"__id__":
7
}
}
],
],
"_tag": -1,
"_tag": -1,
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
12
"__id__":
9
},
},
{
{
"__id__": 1
3
"__id__": 1
0
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -415,14 +330,14 @@
...
@@ -415,14 +330,14 @@
"_name": "Start",
"_name": "Start",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
9
"__id__":
6
},
},
"_children": [],
"_children": [],
"_tag": -1,
"_tag": -1,
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
11
"__id__":
8
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -467,7 +382,7 @@
...
@@ -467,7 +382,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
10
"__id__":
7
},
},
"_enabled": true,
"_enabled": true,
"isOpenGame": false
"isOpenGame": false
...
@@ -477,7 +392,7 @@
...
@@ -477,7 +392,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
9
"__id__":
6
},
},
"_enabled": true,
"_enabled": true,
"_spriteFrame": {
"_spriteFrame": {
...
@@ -503,34 +418,34 @@
...
@@ -503,34 +418,34 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
9
"__id__":
6
},
},
"_enabled": true,
"_enabled": true,
"isOpenGame": false
"isOpenGame": false
},
},
{
{
"__type__": "cc.Node",
"__type__": "cc.Node",
"_name": "
classroom
",
"_name": "
subtitle
",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
2
"__id__":
5
},
},
"_children": [],
"_children": [],
"_tag": -1,
"_tag": -1,
"_active":
fals
e,
"_active":
tru
e,
"_components": [
"_components": [
{
{
"__id__": 1
5
"__id__": 1
2
}
}
],
],
"_prefab": null,
"_prefab": null,
"_id": "
09EzHWUxdBmJlkWjuuPfMN
",
"_id": "
71kSDoZslK+qnciDr+46zc
",
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
"__type__": "cc.Color",
"__type__": "cc.Color",
"r":
255
,
"r":
0
,
"g":
255
,
"g":
0
,
"b":
255
,
"b":
0
,
"a": 255
"a": 255
},
},
"_cascadeOpacityEnabled": true,
"_cascadeOpacityEnabled": true,
...
@@ -541,8 +456,8 @@
...
@@ -541,8 +456,8 @@
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width":
375
,
"width":
160
,
"height":
60
0
"height":
12
0
},
},
"_rotationX": 0,
"_rotationX": 0,
"_rotationY": 0,
"_rotationY": 0,
...
@@ -550,8 +465,8 @@
...
@@ -550,8 +465,8 @@
"_scaleY": 1,
"_scaleY": 1,
"_position": {
"_position": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
"x":
0
,
"x":
2
,
"y":
-
75
"y": 75
},
},
"_skewX": 0,
"_skewX": 0,
"_skewY": 0,
"_skewY": 0,
...
@@ -561,48 +476,44 @@
...
@@ -561,48 +476,44 @@
"groupIndex": 0
"groupIndex": 0
},
},
{
{
"__type__": "cc.
Sprite
",
"__type__": "cc.
Label
",
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 1
4
"__id__": 1
1
},
},
"_enabled": true,
"_enabled": true,
"_spriteFrame": {
"_useOriginalSize": false,
"__uuid__": "1b29ad23-8777-436b-a7aa-5c7869ce1389"
"_actualFontSize": 20,
},
"_fontSize": 20,
"_type": 0,
"_lineHeight": 40,
"_sizeMode": 0,
"_enableWrapText": true,
"_fillType": 0,
"_N$file": null,
"_fillCenter": {
"_isSystemFontUsed": true,
"__type__": "cc.Vec2",
"_spacingX": 0,
"x": 0,
"_N$string": "点击屏幕开始撩妹\n在下课前快速撩妹\n避免被老师发现",
"y": 0
"_N$horizontalAlign": 1,
},
"_N$verticalAlign": 1,
"_fillStart": 0,
"_N$fontFamily": "Arial",
"_fillRange": 0,
"_N$overflow": 0
"_isTrimmedMode": true,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_atlas": null
},
},
{
{
"__type__": "cc.Node",
"__type__": "cc.Node",
"_name": "
hand
",
"_name": "
logo
",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
2
"__id__":
5
},
},
"_children": [],
"_children": [],
"_tag": -1,
"_tag": -1,
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 1
7
"__id__": 1
4
}
}
],
],
"_prefab": null,
"_prefab": null,
"_id": "
c91SgtpVVI44d283YT+CO9
",
"_id": "
d6B3OYIbdA0oKVBARBzlsD
",
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
"__type__": "cc.Color",
"__type__": "cc.Color",
...
@@ -619,17 +530,17 @@
...
@@ -619,17 +530,17 @@
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width": 3
0
2,
"width": 3
3
2,
"height":
378
"height":
110
},
},
"_rotationX": 0,
"_rotationX": 0,
"_rotationY": 0,
"_rotationY": 0,
"_scaleX": 0.
4
,
"_scaleX": 0.
6
,
"_scaleY": 0.
4
,
"_scaleY": 0.
6
,
"_position": {
"_position": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
"x":
104
,
"x":
2
,
"y":
-340
"y":
182
},
},
"_skewX": 0,
"_skewX": 0,
"_skewY": 0,
"_skewY": 0,
...
@@ -643,14 +554,14 @@
...
@@ -643,14 +554,14 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 1
6
"__id__": 1
3
},
},
"_enabled": true,
"_enabled": true,
"_spriteFrame": {
"_spriteFrame": {
"__uuid__": "
b5b26273-de9d-42a1-94c5-7b4839b6e1cf
"
"__uuid__": "
26869b11-f810-4bbe-994e-793228a11892
"
},
},
"_type": 0,
"_type": 0,
"_sizeMode":
1
,
"_sizeMode":
0
,
"_fillType": 0,
"_fillType": 0,
"_fillCenter": {
"_fillCenter": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -665,22 +576,572 @@
...
@@ -665,22 +576,572 @@
"_atlas": null
"_atlas": null
},
},
{
{
"__type__": "cc.
Canvas
",
"__type__": "cc.
Node
",
"_name": "",
"_name": "
classroom
",
"_objFlags": 0,
"_objFlags": 0,
"
node
": {
"
_parent
": {
"__id__": 2
"__id__": 2
},
},
"_enabled": true,
"_children": [],
"_designResolution": {
"_tag": -1,
"__type__": "cc.Size",
"_active": false,
"width": 375,
"_components": [
"height": 750
{
},
"__id__": 16
"_fitWidth": false,
}
"_fitHeight": true
],
},
"_prefab": null,
{
"_id": "09EzHWUxdBmJlkWjuuPfMN",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 375,
"height": 600
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": 0,
"y": -75
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 15
},
"_enabled": true,
"_spriteFrame": {
"__uuid__": "1b29ad23-8777-436b-a7aa-5c7869ce1389"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_atlas": null
},
{
"__type__": "cc.Node",
"_name": "teacher",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_tag": -1,
"_active": true,
"_components": [],
"_prefab": null,
"_id": "67K6Y1EOVDuJEJ6kufn8TI",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Node",
"_name": "student",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_tag": -1,
"_active": true,
"_components": [],
"_prefab": null,
"_id": "797uGBCXpALbTmcH0WGjHM",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Node",
"_name": "board",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 20
},
{
"__id__": 21
},
{
"__id__": 22
}
],
"_tag": -1,
"_active": true,
"_components": [],
"_prefab": null,
"_id": "b6UhBzM8tC8qOPuU1bO60n",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Node",
"_name": "timer",
"_objFlags": 0,
"_parent": {
"__id__": 19
},
"_children": [],
"_tag": -1,
"_active": true,
"_components": [],
"_prefab": null,
"_id": "72oI+QL4FHkLRzPjbmVAKC",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Node",
"_name": "score",
"_objFlags": 0,
"_parent": {
"__id__": 19
},
"_children": [],
"_tag": -1,
"_active": true,
"_components": [],
"_prefab": null,
"_id": "91m1cv1EdIX4yug893AJz7",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Node",
"_name": "life",
"_objFlags": 0,
"_parent": {
"__id__": 19
},
"_children": [],
"_tag": -1,
"_active": true,
"_components": [],
"_prefab": null,
"_id": "bdSU9wyDZNh7HtK8tnUXyL",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Node",
"_name": "hand",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_tag": -1,
"_active": true,
"_components": [
{
"__id__": 24
}
],
"_prefab": null,
"_id": "c91SgtpVVI44d283YT+CO9",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 302,
"height": 378
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 0.4,
"_scaleY": 0.4,
"_position": {
"__type__": "cc.Vec2",
"x": 104,
"y": -340
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 23
},
"_enabled": true,
"_spriteFrame": {
"__uuid__": "b5b26273-de9d-42a1-94c5-7b4839b6e1cf"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_atlas": null
},
{
"__type__": "cc.Node",
"_name": "failure",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_tag": -1,
"_active": true,
"_components": [],
"_prefab": null,
"_id": "f5ix1S5ixDqJ82EmycPor2",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Node",
"_name": "success",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_tag": -1,
"_active": true,
"_components": [],
"_prefab": null,
"_id": "f3QEdZlRtFaJOS+nqkQWrK",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Canvas",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_designResolution": {
"__type__": "cc.Size",
"width": 375,
"height": 750
},
"_fitWidth": false,
"_fitHeight": true
},
{
"__type__": "e4c9b01WKRDtYbVX2Ed1Nfl",
"__type__": "e4c9b01WKRDtYbVX2Ed1Nfl",
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
...
@@ -688,26 +1149,20 @@
...
@@ -688,26 +1149,20 @@
"__id__": 2
"__id__": 2
},
},
"_enabled": true,
"_enabled": true,
"score": 0,
"time": 60,
"leftLife": 3,
"swivelAnimationTime": 0.2,
"flirtAnimationTime": 0.2,
"gameState": "waiting",
"logo": {
"logo": {
"__id__":
5
"__id__":
13
},
},
"subtitle": {
"subtitle": {
"__id__":
7
"__id__":
11
},
},
"start_btn": {
"start_btn": {
"__id__":
9
"__id__":
6
},
},
"classroom": {
"classroom": {
"__id__": 1
4
"__id__": 1
5
},
},
"hand": {
"hand": {
"__id__":
16
"__id__":
23
}
}
}
}
]
]
\ No newline at end of file
assets/scripts/Game.js
View file @
343efb3b
...
@@ -29,6 +29,7 @@ cc.Class({
...
@@ -29,6 +29,7 @@ cc.Class({
classroom
:
{
classroom
:
{
default
:
null
,
default
:
null
,
type
:
cc
.
Node
,
type
:
cc
.
Node
,
active
:
false
,
},
},
// hand节点
// hand节点
...
@@ -49,7 +50,7 @@ cc.Class({
...
@@ -49,7 +50,7 @@ cc.Class({
this
.
flirtAnimationTime
=
0.5
;
//摸的动画时间(单向)
this
.
flirtAnimationTime
=
0.5
;
//摸的动画时间(单向)
// 奖Game组件的实例传入开始按钮
// 奖Game组件的实例传入开始按钮
var
startBtn
=
this
.
node
.
getChildByName
(
"start_btn"
);
var
startBtn
=
cc
.
find
(
"index/start_btn"
,
this
.
node
);
startBtn
.
getComponent
(
'Start'
).
game
=
this
;
startBtn
.
getComponent
(
'Start'
).
game
=
this
;
...
...
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