Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
z_05_xcx
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
z_05_xcx
Commits
a2858aa9
Commit
a2858aa9
authored
Sep 27, 2020
by
Li Mingzhe
Browse files
Options
Browse Files
Download
Plain Diff
feat: v1.0
parents
c9ecd9a7
26144dcf
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
1476 additions
and
4143 deletions
+1476
-4143
scene.js
play/assets/tmpGame/scene/scene.js
+4
-5
n_xuan1.fire
play/assets/tmpGame/scene_2/n_xuan1.fire
+1152
-3419
n_xuan1.js
play/assets/tmpGame/scene_2/n_xuan1.js
+246
-61
scene_2.fire
play/assets/tmpGame/scene_2/scene_2.fire
+0
-649
scene_2.fire.meta
play/assets/tmpGame/scene_2/scene_2.fire.meta
+0
-7
utils.js
play/assets/tmpGame/script/utils.js
+1
-1
loading_bg.jpg
play/assets/tmpGame/textures/loading_bg.jpg
+0
-0
loading_bg.jpg.meta
play/assets/tmpGame/textures/loading_bg.jpg.meta
+36
-0
loading_icon.png
play/assets/tmpGame/textures/loading_icon.png
+0
-0
loading_icon.png.meta
play/assets/tmpGame/textures/loading_icon.png.meta
+36
-0
wechatgame.json
play/settings/wechatgame.json
+1
-1
No files found.
play/assets/tmpGame/scene/scene.js
View file @
a2858aa9
...
...
@@ -31,17 +31,16 @@ cc.Class({
// onLoad () {},
start
()
{
setTimeout
(()
=>
{
// setTimeout(() => {
cc
.
assetManager
.
loadBundle
(
'
tmpGame/scene_2
'
,
(
err
,
bundle
)
=>
{
console
.
log
(
'
bundle:
'
,
bundle
);
bundle
.
loadScene
(
'
n_xuan1
'
,
(
err
,
s
)
=>
{
cc
.
director
.
runScene
(
s
);
})
})
// cc.director.loadScene('')
// console.log('aaa');
},
1000
);
// }, 1000);
},
// update (dt) {},
...
...
play/assets/tmpGame/scene_2/n_xuan1.fire
View file @
a2858aa9
This source diff could not be displayed because it is too large. You can
view the blob
instead.
play/assets/tmpGame/scene_2/n_xuan1.js
View file @
a2858aa9
...
...
@@ -67,15 +67,17 @@ cc.Class({
// LIFE-CYCLE CALLBACKS:
// onLoad () {},
courseid
:
null
,
ctor
()
{
this
.
_imageResList
=
[];
this
.
_audioResList
=
[];
this
.
courseid
=
'
111444
'
;
this
.
courseid
=
111452
;
},
start
()
{
cc
.
debug
.
setDisplayStats
(
false
);
this
.
showLoadingPage
();
this
.
data
=
defaultData
;
this
.
getData
((
data
)
=>
{
if
(
data
)
{
...
...
@@ -87,11 +89,11 @@ cc.Class({
getData
(
func
)
{
http
(
'
GET
'
,
'
http://staging-teach.ireadabc.com/api/courseware/v1/getdata?courseid=
'
+
this
.
courseid
,
{}).
then
((
resStr
)
=>
{
http
(
'
GET
'
,
'
http
s
://staging-teach.ireadabc.com/api/courseware/v1/getdata?courseid=
'
+
this
.
courseid
,
{}).
then
((
resStr
)
=>
{
const
res
=
JSON
.
parse
(
resStr
)
const
data
=
JSON
.
parse
(
res
.
data
);
func
(
data
);
console
.
log
(
'
res:
'
,
res
);
console
.
log
(
'
data:
'
,
JSON
.
parse
(
res
.
data
));
func
(
JSON
.
parse
(
res
.
data
));
});
// if (window && window.courseware) {
...
...
@@ -123,20 +125,20 @@ cc.Class({
this
.
hideAirClassLoading
();
}
// bgNode
// monkeyUpperNode
// letterPageUINode
// cloudPrefab
// starAnimePrefab
// starPreFab
// sharkPreFab
// arrowPrefab
const
letterList
=
'
abcdefghijklmnopqrstuvwxyz
'
.
split
(
''
);
for
(
let
i
=
0
;
i
<
letterList
.
length
;
i
++
)
{
const
letter
=
letterList
[
i
];
this
[
`letter
${
letter
.
toUpperCase
()}
Prefab`
]
=
await
this
.
loadAssetSync
({
path
:
`prefabs/letter_big/prefab_big_
${
letter
.
toLowerCase
()}
`
},
cc
.
Prefab
);
this
[
`letter
${
letter
.
toLowerCase
()}
Prefab`
]
=
await
this
.
loadAssetSync
({
path
:
`prefabs/letter_small/prefab_small_
${
letter
.
toLowerCase
()}
`
},
cc
.
Prefab
);
const
letterPicSpriteFrame
=
await
this
.
loadAssetSync
({
path
:
`letterPic/bg_
${
letter
.
toLowerCase
()}
`
},
cc
.
SpriteFrame
);
var
letterPicNode
=
new
cc
.
Node
(
"
New Sprite
"
);
letterPicNode
.
parent
=
cc
.
find
(
'
Canvas/LetterPicturePage/LetterPicture
'
);
letterPicNode
.
name
=
`bg_
${
letter
.
toLowerCase
()}
`
;
letterPicNode
.
active
=
false
;
var
sprite
=
letterPicNode
.
addComponent
(
cc
.
Sprite
);
sprite
.
spriteFrame
=
letterPicSpriteFrame
;
}
},
...
...
@@ -237,7 +239,7 @@ cc.Class({
onLoadFinish
()
{
this
.
initScrollView
();
this
.
getUserInfo
();
this
.
initReplayBtn
();
this
.
initListeners
();
...
...
@@ -248,6 +250,7 @@ cc.Class({
}
this
.
updateLetter
();
this
.
hideLoadingPage
();
},
...
...
@@ -712,8 +715,15 @@ cc.Class({
this
.
createLetterPage
(
this
.
letter
);
}
else
{
if
(
this
.
_status
.
currentLetterIdx
==
this
.
data
.
letterList
.
length
-
1
)
{
if
(
wx
)
{
this
.
getUserInfo
();
}
else
{
this
.
showScrollView
();
}
}
}
},
...
...
@@ -965,20 +975,20 @@ cc.Class({
startTime
:
null
,
rankLabel
:
null
,
rankData
:
null
,
initScrollView
()
{
this
.
rankData
=
[];
this
.
receiveData
(
this
.
courseid
,
(
rankData
)
=>
{
this
.
rankData
=
rankData
;
});
this
.
svItemArr
=
[];
this
.
topH
=
60
;
this
.
rankLineH
=
60
;
this
.
startTime
=
new
Date
().
getTime
();
const
sv
=
cc
.
find
(
'
Canvas/scrollview
'
);
sv
.
zIndex
=
1
0
;
sv
.
zIndex
=
1
1
;
const
content
=
cc
.
find
(
'
Canvas/scrollview/view/content
'
)
...
...
@@ -1030,15 +1040,26 @@ cc.Class({
finishLabel
.
fontSize
=
30
;
this
.
finishLabel
=
finishLabel
;
const
replayBtn
=
cc
.
find
(
'
Canvas/scrollview/button
'
);
},
initReplayBtn
()
{
const
replayBtn
=
cc
.
find
(
'
Canvas/replayButton
'
);
replayBtn
.
zIndex
=
11
;
replayBtn
.
on
(
'
click
'
,
()
=>
{
cc
.
director
.
loadScene
(
'
n_xuan1
'
)
cc
.
assetManager
.
loadBundle
(
'
tmpGame/scene_2
'
,
(
err
,
bundle
)
=>
{
bundle
.
loadScene
(
'
n_xuan1
'
,
(
err
,
s
)
=>
{
cc
.
director
.
runScene
(
s
);
})
})
})
},
setScrollView
()
{
const
rankData
=
this
.
rankData
;
const
rankData
=
this
.
rankData
console
.
log
(
'
rankData:
'
,
rankData
);
for
(
let
i
=
0
;
i
<
rankData
.
length
;
i
++
)
{
this
.
addScrollViewItem
(
rankData
[
i
],
i
+
1
);
...
...
@@ -1053,7 +1074,13 @@ cc.Class({
this
.
svItemArr
.
push
(
data
);
let
fontColor
=
cc
.
Color
.
BLACK
;
if
(
data
.
name
==
this
.
userInfo
.
nickName
)
{
fontColor
=
cc
.
Color
.
BLUE
;
}
const
rankLabel
=
this
.
getLabel
();
rankLabel
.
node
.
color
=
fontColor
;
rankLabel
.
string
=
rank
rankLabel
.
node
.
parent
=
content
;
rankLabel
.
node
.
x
=
this
.
rankLabel
.
node
.
x
+
30
;
...
...
@@ -1062,18 +1089,21 @@ cc.Class({
content
.
height
=
h
const
nameLabel
=
this
.
getLabel
();
nameLabel
.
node
.
color
=
fontColor
;
nameLabel
.
string
=
data
.
name
;
// '玩家-' + (this.svItemArr.length);
nameLabel
.
node
.
parent
=
content
;
nameLabel
.
node
.
x
=
this
.
nameLabel
.
node
.
x
;
nameLabel
.
node
.
y
=
rankLabel
.
node
.
y
;
const
scoreLabel
=
this
.
getLabel
();
scoreLabel
.
node
.
color
=
fontColor
;
scoreLabel
.
string
=
formatSeconds
(
data
.
score
/
1000
)
// '分数-' + (this.svItemArr.length);
scoreLabel
.
node
.
parent
=
content
;
scoreLabel
.
node
.
x
=
this
.
scoreLabel
.
node
.
x
;
scoreLabel
.
node
.
y
=
nameLabel
.
node
.
y
;
const
finishLabel
=
this
.
getLabel
();
finishLabel
.
node
.
color
=
fontColor
;
// finishLabel.string = '时间-' + (this.svItemArr.length);
// const dateTime = new Date().getTime();
finishLabel
.
string
=
dateFormat
(
'
YYYY-mm-dd HH:MM
'
,
new
Date
(
data
.
date
))
...
...
@@ -1094,67 +1124,82 @@ cc.Class({
const
scoreTime
=
curTime
-
this
.
startTime
;
const
id
=
this
.
getUserId
();
const
newData
=
{
id
,
name
:
'
玩家-
'
+
id
,
courseid
:
this
.
courseid
,
id
:
1
,
name
:
this
.
userInfo
.
nickName
,
score
:
scoreTime
,
date
:
curTime
}
const
rankData
=
this
.
rankData
;
const
isExist
=
rankData
.
some
((
item
,
i
)
=>
{
if
(
item
.
id
==
newData
.
id
)
{
if
(
item
.
score
>
newData
.
score
)
{
rankData
[
i
]
=
newData
;
let
isNeedSendData
=
true
;
rankData
.
forEach
((
item
,
i
)
=>
{
if
(
item
.
name
==
newData
.
name
)
{
if
(
item
.
score
<
newData
.
score
)
{
isNeedSendData
=
false
;
}
return
true
;
}
})
if
(
!
isExist
)
{
if
(
isNeedSendData
)
{
rankData
.
push
(
newData
);
this
.
sendData
(
newData
);
}
const
tmpData
=
{}
for
(
let
i
=
0
;
i
<
rankData
.
length
;
i
++
)
{
const
scoreData
=
rankData
[
i
];
if
(
!
tmpData
[
scoreData
.
name
])
{
tmpData
[
scoreData
.
name
]
=
scoreData
}
else
{
if
(
tmpData
[
scoreData
.
name
].
score
>
scoreData
.
score
)
{
tmpData
[
scoreData
.
name
]
=
scoreData
;
}
}
}
rankData
.
sort
((
a
,
b
)
=>
{
return
a
.
score
-
b
.
score
;
const
newRankData
=
[];
for
(
let
key
in
tmpData
)
{
newRankData
.
push
(
tmpData
[
key
])
}
newRankData
.
sort
((
a
,
b
)
=>
{
return
Number
(
a
.
score
)
-
Number
(
b
.
score
);
})
this
.
rankData
=
newRankData
;
// const newRankData = []
// for( let i = 0; i < rankData.length; i ++) {
// if (rankData[i].score) {
// newRankData.push(rankData[i]);
// }
// }
this
.
sendData
(
this
.
courseid
,
rankData
);
this
.
setScrollView
();
cc
.
find
(
'
Canvas/scrollview
'
).
active
=
true
;
},
sendData
(
id
,
data
)
{
// localStorage.setItem(id, JSON.stringify(data));
sendData
(
data
)
{
http
(
'
POST
'
,
'
http://staging-teach.ireadabc.com/api/dashboard/v1/studyinfo?courseid=
'
+
this
.
courseid
,
data
).
then
((
resStr
)
=>
{
http
(
'
POST
'
,
'
http
s
://staging-teach.ireadabc.com/api/dashboard/v1/studyinfo?courseid=
'
+
this
.
courseid
,
data
).
then
((
resStr
)
=>
{
const
res
=
JSON
.
parse
(
resStr
)
console
.
log
(
'
res:
'
,
res
);
console
.
log
(
'
sendData
res:
'
,
res
);
});
},
},
receiveData
(
id
,
cb
)
{
http
(
'
GET
'
,
'
http://staging-teach.ireadabc.com/api/dashboard/v1/studyinfo?courseid=
'
+
this
.
courseid
,
{}).
then
((
resStr
)
=>
{
http
(
'
GET
'
,
'
http
s
://staging-teach.ireadabc.com/api/dashboard/v1/studyinfo?courseid=
'
+
this
.
courseid
,
{}).
then
((
resStr
)
=>
{
const
res
=
JSON
.
parse
(
resStr
)
console
.
log
(
'
res:
'
,
res
);
});
let
strData
=
localStorage
.
getItem
(
id
);
if
(
!
strData
)
{
strData
=
'
[]
'
}
if
(
cb
)
{
cb
(
JSON
.
parse
(
strData
)
);
cb
(
res
.
data
);
}
console
.
log
(
'
receiveData res:
'
,
res
.
data
);
});
// let strData = localStorage.getItem(id);
// if (!strData) {
// strData = '[]'
// }
// return JSON.parse(strData);
},
getLabel
()
{
const
node
=
new
cc
.
Node
();
...
...
@@ -1175,21 +1220,161 @@ cc.Class({
getUserId
()
{
return
Math
.
floor
(
Math
.
random
()
*
100
)
+
1
;
},
userInfo
:
null
,
getUserInfo
()
{
if
(
!
window
.
wx
)
{
console
.
log
(
'
in getUserInfo 1
'
)
if
(
!
wx
)
{
console
.
log
(
'
no wx
'
);
return
;
}
if
(
!
wx
)
{
console
.
log
(
'
no window.wx
'
)
return
;
}
console
.
log
(
'
in getUserInfo 2
'
)
let
sysInfo
=
window
.
wx
.
getSystemInfoSync
();
console
.
log
(
'
sysInfo:
'
,
sysInfo
)
const
self
=
this
;
self
.
createUserInfoButton
();
},
showLoadingPage
()
{
const
loading
=
cc
.
find
(
'
Canvas/loading
'
)
const
loadingBg
=
loading
.
getChildByName
(
'
bg
'
);
const
loadingIcon
=
loading
.
getChildByName
(
'
icon
'
);
loading
.
opacity
=
255
;
loading
.
active
=
true
;
loading
.
zIndex
=
15
;
loadingBg
.
width
=
cc
.
winSize
.
width
;
loadingBg
.
height
=
cc
.
winSize
.
height
;
loadingIcon
.
opacity
=
0
;
cc
.
tween
(
loadingIcon
)
.
to
(
2
,
{
opacity
:
255
},
{
easing
:
'
cubicOut
'
})
.
start
()
},
hideLoadingPage
()
{
const
loading
=
cc
.
find
(
'
Canvas/loading
'
)
cc
.
tween
(
loading
)
.
to
(
0.5
,
{
opacity
:
0
},
{
easing
:
'
cubicOut
'
})
.
call
(()
=>
{
loading
.
active
=
false
;
})
.
start
()
},
window
.
wx
.
getUserInfo
({
/**
* 点击创建用户信息授权按钮
*/
authorButton
:
null
,
createUserInfoButton
()
{
//获取视图窗口可见区域尺寸
let
visibleSize
=
cc
.
view
.
getVisibleSize
();
//获取系统信息
let
wx_size
=
wx
.
getSystemInfoSync
();
//计算实际大小和可见区域尺寸的比例(这里以宽度为准)
let
size_scale_width
=
wx_size
.
screenWidth
/
visibleSize
.
width
;
//计算创建用户信息按钮需要的属性(img_auth为蓝色参考节点)
let
x
=
visibleSize
.
width
/
2
;
//(this.img_auth.x + visibleSize.width / 2 - this.img_auth.width / 2) * size_scale_width;
let
y
=
visibleSize
.
height
/
2
;
// (Math.abs(this.img_auth.y) + visibleSize.height / 2 - this.img_auth.height / 2) * size_scale_width;
let
width
=
300
;
// this.img_auth.width * size_scale_width;
let
height
=
300
;
// this.img_auth.height * size_scale_width;
const
frameSize
=
cc
.
view
.
getFrameSize
();
const
rankBtnW
=
200
;
const
rankBtnH
=
40
;
const
disH
=
-
40
;
this
.
authorButton
=
wx
.
createUserInfoButton
({
type
:
'
text
'
,
text
:
'
查看排行
'
,
style
:
{
left
:
frameSize
.
width
/
2
-
rankBtnW
/
2
,
top
:
frameSize
.
height
/
2
-
rankBtnH
/
2
-
disH
,
width
:
200
,
height
:
40
,
lineHeight
:
40
,
backgroundColor
:
'
#cccccc
'
,
color
:
'
#222222
'
,
textAlign
:
'
center
'
,
fontSize
:
16
,
borderRadius
:
4
}
})
const
replayBtn
=
cc
.
find
(
'
Canvas/replayButton
'
);
// replayBtn.y = cc.winSize.height / 2 - disH;
replayBtn
.
active
=
true
;
console
.
log
(
'
this.authorButton:
'
,
this
.
authorButton
);
this
.
authorButton
.
onTap
((
res
)
=>
{
if
(
res
.
errMsg
==
"
getUserInfo:ok
"
)
{
wx
.
showToast
({
icon
:
"
none
"
,
title
:
"
获取用户信息成功
"
,
duration
:
2000
,
});
this
.
authorButton
.
hide
();
//获取用户信息成功后隐藏按钮
// wx.login({
// success (res) {
// console.log('login res: ', res);
// if (res.code) {
// //发起网络请求
// const tmpUrl = 'https://api.weixin.qq.com/sns/jscode2session?appid=APPID&secret=SECRET&js_code=JSCODE&grant_type=authorization_code'
// wx.request({
// url: 'https://test.com/onLogin',
// data: {
// code: res.code
// }
// })
// } else {
// console.log('登录失败!' + res.errMsg)
// }
// }
// })
console
.
log
(
'
res:
'
,
res
)
const
self
=
this
;
wx
.
getUserInfo
({
success
(
res
)
{
console
.
log
(
res
);
console
.
log
(
"
getUserInfo:
"
,
res
);
self
.
userInfo
=
res
.
userInfo
;
self
.
showScrollView
();
// exportJson.userInfo = res.userInfo;
//此时可进行登录操作
}
});
}
else
{
if
(
res
.
errMsg
===
"
getUserInfo:fail auth deny
"
)
{
wx
.
showToast
({
icon
:
"
none
"
,
title
:
"
获取用户信息失败
"
,
duration
:
2000
,
});
}
else
{
wx
.
showToast
({
icon
:
"
none
"
,
title
:
res
.
errMsg
,
duration
:
2000
,
});
}
}
});
},
});
play/assets/tmpGame/scene_2/scene_2.fire
deleted
100644 → 0
View file @
c9ecd9a7
[
{
"__type__": "cc.SceneAsset",
"_name": "",
"_objFlags": 0,
"_native": "",
"scene": {
"__id__": 1
}
},
{
"__type__": "cc.Scene",
"_objFlags": 0,
"_parent": null,
"_children": [
{
"__id__": 2
},
{
"__id__": 7
}
],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_is3DNode": true,
"_groupIndex": 0,
"groupIndex": 0,
"autoReleaseAssets": true,
"_id": "bbec5d49-536a-4dcd-a536-d9f5f954d854"
},
{
"__type__": "cc.Node",
"_name": "Canvas",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [
{
"__id__": 3
}
],
"_active": true,
"_components": [
{
"__id__": 5
},
{
"__id__": 6
}
],
"_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": [
640,
360,
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": "a5esZu+45LA5mBpvttspPD"
},
{
"__type__": "cc.Node",
"_name": "Main Camera",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 4
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 960,
"height": 640
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
475.44794667765683,
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": "e1WoFrQ79G7r4ZuQE3HlNb"
},
{
"__type__": "cc.Camera",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
},
"_enabled": true,
"_cullingMask": 4294967295,
"_clearFlags": 7,
"_backgroundColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_depth": -1,
"_zoomRatio": 1,
"_targetTexture": null,
"_fov": 60,
"_orthoSize": 10,
"_nearClip": 1,
"_farClip": 4096,
"_ortho": true,
"_rect": {
"__type__": "cc.Rect",
"x": 0,
"y": 0,
"width": 1,
"height": 1
},
"_renderStages": 1,
"_alignWithScreen": true,
"_id": "81GN3uXINKVLeW4+iKSlim"
},
{
"__type__": "cc.Canvas",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_designResolution": {
"__type__": "cc.Size",
"width": 1280,
"height": 720
},
"_fitWidth": true,
"_fitHeight": false,
"_id": "59Cd0ovbdF4byw5sbjJDx7"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 45,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "29zXboiXFBKoIV4PQ2liTe"
},
{
"__type__": "cc.Node",
"_name": "button",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [
{
"__id__": 8
}
],
"_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": 100,
"height": 40
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
544,
378,
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": "de5TcmoVpI17rVWMCniwwo"
},
{
"__type__": "cc.Node",
"_name": "Background",
"_objFlags": 512,
"_parent": {
"__id__": 7
},
"_children": [
{
"__id__": 9
}
],
"_active": true,
"_components": [
{
"__id__": 11
},
{
"__id__": 12
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 100,
"height": 40
},
"_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": "00xnpiKZJORbi8pzzoc559"
},
{
"__type__": "cc.Node",
"_name": "Label",
"_objFlags": 512,
"_parent": {
"__id__": 8
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 10
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 100,
"height": 40
},
"_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": "29lg5wggVPvJ8f0VxJH+7B"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_useOriginalSize": false,
"_string": "button",
"_N$string": "button",
"_fontSize": 20,
"_lineHeight": 40,
"_enableWrapText": false,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 1,
"_N$cacheMode": 1,
"_id": "b9e+5srutDkKH2vRMN5lf1"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_type": 1,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "ecvfXJvYlEF4iRERiYnWQ4"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
},
"_enabled": true,
"alignMode": 0,
"_target": null,
"_alignFlags": 45,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 100,
"_originalHeight": 40,
"_id": "ecBIe8dQpFy401wRDTSBCt"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 2,
"transition": 2,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 230,
"g": 230,
"b": 230,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 200,
"g": 200,
"b": 200,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 200,
"g": 200,
"b": 200,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 120,
"g": 120,
"b": 120,
"a": 200
},
"_N$normalSprite": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_N$pressedSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"pressedSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"_N$hoverSprite": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"hoverSprite": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_N$disabledSprite": {
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__": 8
},
"_id": "d58XwoxH5MLaMbWqfBRfSA"
}
]
\ No newline at end of file
play/assets/tmpGame/scene_2/scene_2.fire.meta
deleted
100644 → 0
View file @
c9ecd9a7
{
"ver": "1.2.7",
"uuid": "bbec5d49-536a-4dcd-a536-d9f5f954d854",
"asyncLoadAssets": false,
"autoReleaseAssets": true,
"subMetas": {}
}
\ No newline at end of file
play/assets/tmpGame/script/utils.js
View file @
a2858aa9
...
...
@@ -176,7 +176,7 @@ export async function http(type, url, data) {
}
};
xhr
.
open
(
type
,
url
,
true
);
//
xhr.setRequestHeader("Content-Type","application/json; charset=utf-8");
xhr
.
setRequestHeader
(
"
Content-Type
"
,
"
application/json; charset=utf-8
"
);
xhr
.
send
(
JSON
.
stringify
(
data
));
});
}
play/assets/tmpGame/textures/loading_bg.jpg
0 → 100644
View file @
a2858aa9
285 Bytes
play/assets/tmpGame/textures/loading_bg.jpg.meta
0 → 100644
View file @
a2858aa9
{
"ver": "2.3.5",
"uuid": "9dcaf5f2-c0eb-4f92-8b96-5c5ee4360816",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 10,
"height": 10,
"platformSettings": {},
"subMetas": {
"loading_bg": {
"ver": "1.0.4",
"uuid": "a31135f5-f1ae-4e41-ae60-1bf92ebbdf65",
"rawTextureUuid": "9dcaf5f2-c0eb-4f92-8b96-5c5ee4360816",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 10,
"height": 10,
"rawWidth": 10,
"rawHeight": 10,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
play/assets/tmpGame/textures/loading_icon.png
0 → 100644
View file @
a2858aa9
38.4 KB
play/assets/tmpGame/textures/loading_icon.png.meta
0 → 100644
View file @
a2858aa9
{
"ver": "2.3.5",
"uuid": "abd4d5ea-e752-4121-bbfd-f2525d1af9bd",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 265,
"height": 265,
"platformSettings": {},
"subMetas": {
"loading_icon": {
"ver": "1.0.4",
"uuid": "289902a0-e926-4f4e-92ab-f4e45becde5d",
"rawTextureUuid": "abd4d5ea-e752-4121-bbfd-f2525d1af9bd",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0.5,
"offsetY": 0,
"trimX": 8,
"trimY": 4,
"width": 250,
"height": 257,
"rawWidth": 265,
"rawHeight": 265,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
play/settings/wechatgame.json
View file @
a2858aa9
{
"appid"
:
"wx
a082c58c5b503561
"
,
"appid"
:
"wx
e5b8afe35e915c1c
"
,
"orientation"
:
"landscape"
,
"separate_engine"
:
false
,
"REMOTE_SERVER_ROOT"
:
""
,
...
...
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