Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
LWD_2
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
LWD_2
Commits
93ad0fc2
Commit
93ad0fc2
authored
Jun 16, 2021
by
LWD
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码提交
parent
fb23390f
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
532 additions
and
523 deletions
+532
-523
华文圆体 REGULAR.TTF
play/assets/resources/font/华文圆体 REGULAR.TTF
+0
-0
华文圆体 REGULAR.TTF.meta
play/assets/resources/font/华文圆体 REGULAR.TTF.meta
+6
-0
Game.fire
play/assets/tmpGame/scene/Game.fire
+18
-18
game.js
play/assets/tmpGame/script/game/game.js
+260
-257
item.js
play/assets/tmpGame/script/game/item.js
+248
-248
No files found.
play/assets/resources/font/华文圆体 REGULAR.TTF
0 → 100644
View file @
93ad0fc2
File added
play/assets/resources/font/华文圆体 REGULAR.TTF.meta
0 → 100644
View file @
93ad0fc2
{
"ver": "1.1.0",
"uuid": "41ef287f-ba46-4313-a114-676b6eae4bca",
"subMetas": {}
}
\ No newline at end of file
play/assets/tmpGame/scene/Game.fire
View file @
93ad0fc2
...
@@ -189,7 +189,7 @@
...
@@ -189,7 +189,7 @@
"array": [
"array": [
0,
0,
0,
0,
358.80515010544025
,
234.6928844255829
,
0,
0,
0,
0,
0,
0,
...
@@ -804,7 +804,7 @@
...
@@ -804,7 +804,7 @@
"b": 77,
"b": 77,
"a": 255
"a": 255
},
},
"_width":
3
,
"_width":
2
,
"_id": "7frrmdk2NGMbzvXCwfUI+h"
"_id": "7frrmdk2NGMbzvXCwfUI+h"
},
},
{
{
...
@@ -2943,11 +2943,11 @@
...
@@ -2943,11 +2943,11 @@
"_dstBlendFactor": 771,
"_dstBlendFactor": 771,
"_string": "telefe",
"_string": "telefe",
"_N$string": "telefe",
"_N$string": "telefe",
"_fontSize": 2
4
,
"_fontSize": 2
8
,
"_lineHeight": 3
0
,
"_lineHeight": 3
2
,
"_enableWrapText": false,
"_enableWrapText": false,
"_N$file": {
"_N$file": {
"__uuid__": "
f0214b38-1b2a-41ef-aa3e-1d6949fd3b12
"
"__uuid__": "
41ef287f-ba46-4313-a114-676b6eae4bca
"
},
},
"_isSystemFontUsed": false,
"_isSystemFontUsed": false,
"_spacingX": 0,
"_spacingX": 0,
...
@@ -3106,11 +3106,11 @@
...
@@ -3106,11 +3106,11 @@
"_dstBlendFactor": 771,
"_dstBlendFactor": 771,
"_string": "telefe",
"_string": "telefe",
"_N$string": "telefe",
"_N$string": "telefe",
"_fontSize": 2
4
,
"_fontSize": 2
8
,
"_lineHeight": 3
0
,
"_lineHeight": 3
2
,
"_enableWrapText": false,
"_enableWrapText": false,
"_N$file": {
"_N$file": {
"__uuid__": "
f0214b38-1b2a-41ef-aa3e-1d6949fd3b12
"
"__uuid__": "
41ef287f-ba46-4313-a114-676b6eae4bca
"
},
},
"_isSystemFontUsed": false,
"_isSystemFontUsed": false,
"_spacingX": 0,
"_spacingX": 0,
...
@@ -3563,8 +3563,8 @@
...
@@ -3563,8 +3563,8 @@
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width":
9
0,
"width":
13
0,
"height":
42.84
"height":
50
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -3617,11 +3617,11 @@
...
@@ -3617,11 +3617,11 @@
"_dstBlendFactor": 771,
"_dstBlendFactor": 771,
"_string": "telefe",
"_string": "telefe",
"_N$string": "telefe",
"_N$string": "telefe",
"_fontSize":
32
,
"_fontSize":
40
,
"_lineHeight":
36
,
"_lineHeight":
44
,
"_enableWrapText": false,
"_enableWrapText": false,
"_N$file": {
"_N$file": {
"__uuid__": "
f0214b38-1b2a-41ef-aa3e-1d6949fd3b12
"
"__uuid__": "
41ef287f-ba46-4313-a114-676b6eae4bca
"
},
},
"_isSystemFontUsed": false,
"_isSystemFontUsed": false,
"_spacingX": 0,
"_spacingX": 0,
...
@@ -3726,8 +3726,8 @@
...
@@ -3726,8 +3726,8 @@
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width":
9
0,
"width":
13
0,
"height":
42.84
"height":
50
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -3780,11 +3780,11 @@
...
@@ -3780,11 +3780,11 @@
"_dstBlendFactor": 771,
"_dstBlendFactor": 771,
"_string": "telefe",
"_string": "telefe",
"_N$string": "telefe",
"_N$string": "telefe",
"_fontSize":
32
,
"_fontSize":
40
,
"_lineHeight":
36
,
"_lineHeight":
44
,
"_enableWrapText": false,
"_enableWrapText": false,
"_N$file": {
"_N$file": {
"__uuid__": "
f0214b38-1b2a-41ef-aa3e-1d6949fd3b12
"
"__uuid__": "
41ef287f-ba46-4313-a114-676b6eae4bca
"
},
},
"_isSystemFontUsed": false,
"_isSystemFontUsed": false,
"_spacingX": 0,
"_spacingX": 0,
...
...
play/assets/tmpGame/script/game/game.js
View file @
93ad0fc2
...
@@ -80,8 +80,8 @@ var game = cc.Class({
...
@@ -80,8 +80,8 @@ var game = cc.Class({
// 求出 ScrollView 可视区域在世界坐标系中的矩形(碰撞盒)
// 求出 ScrollView 可视区域在世界坐标系中的矩形(碰撞盒)
let
svBBoxRect
=
cc
.
rect
(
let
svBBoxRect
=
cc
.
rect
(
svLeftBottomPoint
.
x
-
6
0
,
svLeftBottomPoint
.
x
-
12
0
,
svLeftBottomPoint
.
y
-
3
0
,
svLeftBottomPoint
.
y
-
10
0
,
node
.
width
,
node
.
width
,
node
.
height
node
.
height
);
);
...
@@ -107,6 +107,9 @@ var game = cc.Class({
...
@@ -107,6 +107,9 @@ var game = cc.Class({
this
.
idx
=
this
.
checkNodeParent
();
this
.
idx
=
this
.
checkNodeParent
();
g
.
data_mgr
.
nowNum
=
itemArr
.
length
;
g
.
data_mgr
.
nowNum
=
itemArr
.
length
;
itemArr
.
sort
(
function
()
{
return
Math
.
random
()
>
0.5
?
-
1
:
1
;
})
for
(
var
i
=
0
;
i
<
itemArr
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
itemArr
.
length
;
i
++
)
{
let
newItem_0
=
cc
.
instantiate
(
this
.
Item_0
[
itemArr
.
length
>
14
?
0
:
1
]);
let
newItem_0
=
cc
.
instantiate
(
this
.
Item_0
[
itemArr
.
length
>
14
?
0
:
1
]);
...
...
play/assets/tmpGame/script/game/item.js
View file @
93ad0fc2
...
@@ -213,11 +213,11 @@ cc.Class({
...
@@ -213,11 +213,11 @@ cc.Class({
if
(
this
.
Item_name
.
node
.
active
)
{
if
(
this
.
Item_name
.
node
.
active
)
{
this
.
Item_name
.
node
.
active
=
false
;
this
.
Item_name
.
node
.
active
=
false
;
this
.
Item_photo
.
active
=
true
;
this
.
Item_photo
.
active
=
true
;
this
.
Item_redNam
e
.
active
=
false
;
this
.
Item_redName
.
nod
e
.
active
=
false
;
}
else
{
}
else
{
this
.
Item_name
.
node
.
active
=
true
;
this
.
Item_name
.
node
.
active
=
true
;
this
.
Item_photo
.
active
=
false
;
this
.
Item_photo
.
active
=
false
;
this
.
Item_redNam
e
.
active
=
true
;
this
.
Item_redName
.
nod
e
.
active
=
true
;
}
}
})
})
.
to
(
0.3
,
{
scaleX
:
scaleX
})
.
to
(
0.3
,
{
scaleX
:
scaleX
})
...
...
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