Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
Lwd
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
Commits
cd82e1ec
Commit
cd82e1ec
authored
Mar 25, 2021
by
Lwd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aaaa
parent
a2880720
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
458 additions
and
340 deletions
+458
-340
Animation.meta
play/assets/tmpGame/Animation.meta
+0
-12
Game.fire
play/assets/tmpGame/scene/Game.fire
+443
-288
game.js
play/assets/tmpGame/script/game/game.js
+13
-1
data_mgr.js
play/assets/tmpGame/script/manager/data_mgr.js
+2
-2
微信图片_20210204203203.jpg
play/assets/tmpGame/textures/微信图片_20210204203203.jpg
+0
-0
微信图片_20210204203203.jpg.meta
play/assets/tmpGame/textures/微信图片_20210204203203.jpg.meta
+0
-37
No files found.
play/assets/tmpGame/Animation.meta
deleted
100644 → 0
View file @
a2880720
{
"ver": "1.1.2",
"uuid": "7d25a5d7-a799-4071-8de4-8b430d572289",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
play/assets/tmpGame/scene/Game.fire
View file @
cd82e1ec
This diff is collapsed.
Click to expand it.
play/assets/tmpGame/script/game/game.js
View file @
cd82e1ec
...
@@ -34,6 +34,11 @@ var game = cc.Class({
...
@@ -34,6 +34,11 @@ var game = cc.Class({
default
:
null
,
default
:
null
,
type
:
cc
.
Node
,
type
:
cc
.
Node
,
displayName
:
"
结算弹窗
"
displayName
:
"
结算弹窗
"
},
title
:
{
default
:
null
,
type
:
cc
.
Label
,
displayName
:
"
标题
"
}
}
},
},
...
@@ -58,10 +63,15 @@ var game = cc.Class({
...
@@ -58,10 +63,15 @@ var game = cc.Class({
//更新界面信息
//更新界面信息
UpdataUi
:
function
()
{
UpdataUi
:
function
()
{
//显示标题
this
.
title
.
string
=
g
.
data_mgr
.
data
.
contentObj
.
title
;
//获得上列表的数据
//获得上列表的数据
var
topList
=
g
.
data_mgr
.
getImgInfo
(
1
);
var
topList
=
g
.
data_mgr
.
getImgInfo
(
1
);
var
botList
=
g
.
data_mgr
.
getImgInfo
(
2
);
var
botList
=
g
.
data_mgr
.
getImgInfo
(
2
);
//打乱列表顺序
//打乱列表顺序
this
.
contentArr_1
.
opacity
=
0
;
this
.
contentArr_2
.
opacity
=
0
;
topList
.
sort
(
function
()
{
return
Math
.
random
()
>
0.5
?
-
1
:
1
;
})
topList
.
sort
(
function
()
{
return
Math
.
random
()
>
0.5
?
-
1
:
1
;
})
botList
.
sort
(
function
()
{
return
Math
.
random
()
>
0.5
?
-
1
:
1
;
})
botList
.
sort
(
function
()
{
return
Math
.
random
()
>
0.5
?
-
1
:
1
;
})
this
.
addItem
(
topList
,
this
.
contentArr_1
,
this
.
Item_1
,
0
);
this
.
addItem
(
topList
,
this
.
contentArr_1
,
this
.
Item_1
,
0
);
...
@@ -151,6 +161,8 @@ var game = cc.Class({
...
@@ -151,6 +161,8 @@ var game = cc.Class({
addItem
:
function
(
listInfo
,
content
,
item
,
i
)
{
addItem
:
function
(
listInfo
,
content
,
item
,
i
)
{
if
(
listInfo
.
length
<=
i
)
{
if
(
listInfo
.
length
<=
i
)
{
content
.
getComponent
(
cc
.
Layout
).
updateLayout
();
content
.
getComponent
(
cc
.
Layout
).
updateLayout
();
this
.
contentArr_1
.
runAction
(
cc
.
fadeIn
(
0.2
))
this
.
contentArr_2
.
runAction
(
cc
.
fadeIn
(
0.2
))
return
;
return
;
}
}
var
len
=
content
.
childrenCount
;
var
len
=
content
.
childrenCount
;
...
@@ -164,7 +176,7 @@ var game = cc.Class({
...
@@ -164,7 +176,7 @@ var game = cc.Class({
this
.
scheduleOnce
(
function
()
{
this
.
scheduleOnce
(
function
()
{
i
+=
1
;
i
+=
1
;
this
.
addItem
(
listInfo
,
content
,
item
,
i
)
this
.
addItem
(
listInfo
,
content
,
item
,
i
)
}.
bind
(
this
),
0
.01
);
}.
bind
(
this
),
0
);
},
},
//点亮 conten:上列表,下列表 state:0 点亮,2变暗
//点亮 conten:上列表,下列表 state:0 点亮,2变暗
...
...
play/assets/tmpGame/script/manager/data_mgr.js
View file @
cd82e1ec
This diff is collapsed.
Click to expand it.
play/assets/tmpGame/textures/微信图片_20210204203203.jpg
deleted
100644 → 0
View file @
a2880720
588 KB
play/assets/tmpGame/textures/微信图片_20210204203203.jpg.meta
deleted
100644 → 0
View file @
a2880720
{
"ver": "2.3.5",
"uuid": "fad1b059-3b4a-42dd-8d5d-e1baba413a8b",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1342,
"height": 2376,
"platformSettings": {},
"subMetas": {
"微信图片_20210204203203": {
"ver": "1.0.4",
"uuid": "2fc7eb28-a60f-42fa-8911-789b3f20f368",
"rawTextureUuid": "fad1b059-3b4a-42dd-8d5d-e1baba413a8b",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1342,
"height": 2376,
"rawWidth": 1342,
"rawHeight": 2376,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
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