Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mlk
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
mlk
Commits
2bfa82ac
Commit
2bfa82ac
authored
Apr 15, 2023
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 初始化
parent
a3f5ba9f
Changes
42
Hide whitespace changes
Inline
Side-by-side
Showing
42 changed files
with
778 additions
and
396 deletions
+778
-396
cocos_generator.ts
assets/cocos_generator/scene/cocos_generator.ts
+0
-195
defaultData.ts
assets/cocos_generator/script/defaultData.ts
+0
-6
1orange.png
assets/cocos_generator/textures/1orange.png
+0
-0
1orange.png.meta
assets/cocos_generator/textures/1orange.png.meta
+0
-36
bg.jpg
assets/cocos_generator/textures/bg.jpg
+0
-0
bg.jpg.meta
assets/cocos_generator/textures/bg.jpg.meta
+0
-36
btn_left.png
assets/cocos_generator/textures/btn_left.png
+0
-0
btn_left.png.meta
assets/cocos_generator/textures/btn_left.png.meta
+0
-36
btn_right.png
assets/cocos_generator/textures/btn_right.png
+0
-0
btn_right.png.meta
assets/cocos_generator/textures/btn_right.png.meta
+0
-36
icon.png
assets/cocos_generator/textures/icon.png
+0
-0
icon.png.meta
assets/cocos_generator/textures/icon.png.meta
+0
-36
mlk.meta
assets/mlk.meta
+1
-1
audios.meta
assets/mlk/audios.meta
+1
-1
.keep
assets/mlk/audios/.keep
+0
-0
btn.mp3
assets/mlk/audios/btn.mp3
+0
-0
btn.mp3.meta
assets/mlk/audios/btn.mp3.meta
+1
-1
dragonBones.meta
assets/mlk/dragonBones.meta
+1
-1
.keep
assets/mlk/dragonBones/.keep
+0
-0
fonts.meta
assets/mlk/fonts.meta
+1
-1
.keep
assets/mlk/fonts/.keep
+0
-0
BRLNSDB.TTF
assets/mlk/fonts/BRLNSDB.TTF
+0
-0
BRLNSDB.TTF.meta
assets/mlk/fonts/BRLNSDB.TTF.meta
+5
-0
scene.meta
assets/mlk/scene.meta
+1
-1
mlk.fire
assets/mlk/scene/mlk.fire
+673
-0
mlk.fire.meta
assets/mlk/scene/mlk.fire.meta
+1
-1
mlk.ts
assets/mlk/scene/mlk.ts
+17
-0
mlk.ts.meta
assets/mlk/scene/mlk.ts.meta
+1
-1
script.meta
assets/mlk/script.meta
+1
-1
MyCocosSceneComponent.ts
assets/mlk/script/MyCocosSceneComponent.ts
+0
-0
MyCocosSceneComponent.ts.meta
assets/mlk/script/MyCocosSceneComponent.ts.meta
+1
-1
defaultData.ts
assets/mlk/script/defaultData.ts
+31
-0
defaultData.ts.meta
assets/mlk/script/defaultData.ts.meta
+1
-1
mlk_utils.ts
assets/mlk/script/mlk_utils.ts
+28
-0
mlk_utils.ts.meta
assets/mlk/script/mlk_utils.ts.meta
+9
-0
runtime.js
assets/mlk/script/runtime.js
+0
-0
runtime.js.meta
assets/mlk/script/runtime.js.meta
+1
-1
util.ts
assets/mlk/script/util.ts
+0
-0
util.ts.meta
assets/mlk/script/util.ts.meta
+1
-1
textures.meta
assets/mlk/textures.meta
+1
-1
.keep
assets/mlk/textures/.keep
+0
-0
builder.json
settings/builder.json
+1
-1
No files found.
assets/cocos_generator/scene/cocos_generator.ts
deleted
100644 → 0
View file @
a3f5ba9f
import
{
asyncDelay
,
onHomeworkFinish
}
from
"
../script/util
"
;
import
{
MyCocosSceneComponent
}
from
"
../script/MyCocosSceneComponent
"
;
const
{
ccclass
,
property
}
=
cc
.
_decorator
;
@
ccclass
export
default
class
SceneComponent
extends
MyCocosSceneComponent
{
addPreloadImage
()
{
// TODO 根据自己的配置预加载图片资源
this
.
_imageResList
.
push
({
url
:
this
.
data
.
pic_url
});
this
.
_imageResList
.
push
({
url
:
this
.
data
.
pic_url_2
});
}
addPreloadAudio
()
{
// TODO 根据自己的配置预加载音频资源
this
.
_audioResList
.
push
({
url
:
this
.
data
.
audio_url
});
}
addPreloadAnima
()
{
}
async
onLoadEnd
()
{
// TODO 加载完成后的逻辑写在这里, 下面的代码仅供参考
this
.
initData
();
this
.
initView
();
this
.
initListener
();
}
_cantouch
=
null
;
initData
()
{
// 所有全局变量 默认都是null
this
.
_cantouch
=
true
;
}
initView
()
{
this
.
initBg
();
this
.
initPic
();
this
.
initBtn
();
this
.
initIcon
();
}
initBg
()
{
const
bgNode
=
cc
.
find
(
'
Canvas/bg
'
);
bgNode
.
scale
=
this
.
_mapScaleMax
;
}
pic1
=
null
;
pic2
=
null
;
initPic
()
{
const
canvas
=
cc
.
find
(
'
Canvas
'
);
const
maxW
=
canvas
.
width
*
0.7
;
this
.
getSprNodeByUrl
(
this
.
data
.
pic_url
,
(
sprNode
)
=>
{
const
picNode1
=
sprNode
;
picNode1
.
scale
=
maxW
/
picNode1
.
width
;
picNode1
.
baseX
=
picNode1
.
x
;
canvas
.
addChild
(
picNode1
);
this
.
pic1
=
picNode1
;
const
labelNode
=
new
cc
.
Node
();
labelNode
.
color
=
cc
.
Color
.
YELLOW
;
const
label
=
labelNode
.
addComponent
(
cc
.
Label
);
label
.
string
=
this
.
data
.
text
;
label
.
fontSize
=
60
;
label
.
lineHeight
=
60
;
label
.
font
=
cc
.
find
(
'
Canvas/res/font/BRLNSDB
'
).
getComponent
(
'
cc.Label
'
).
font
;
picNode1
.
addChild
(
labelNode
);
});
this
.
getSprNodeByUrl
(
this
.
data
.
pic_url_2
,
(
sprNode
)
=>
{
const
picNode2
=
sprNode
;
picNode2
.
scale
=
maxW
/
picNode2
.
width
;
canvas
.
addChild
(
picNode2
);
picNode2
.
x
=
canvas
.
width
;
picNode2
.
baseX
=
picNode2
.
x
;
this
.
pic2
=
picNode2
;
const
labelNode
=
new
cc
.
Node
();
const
label
=
labelNode
.
addComponent
(
cc
.
RichText
);
const
size
=
60
label
.
font
=
cc
.
find
(
'
Canvas/res/font/BRLNSDB
'
).
getComponent
(
cc
.
Label
).
font
;
label
.
string
=
`<outline color=#751e00 width=4><size=
${
size
}
><color=#ffffff>
${
this
.
data
.
text
}
</color></size></outline>`
label
.
lineHeight
=
size
;
picNode2
.
addChild
(
labelNode
);
});
}
initIcon
()
{
const
iconNode
=
this
.
getSprNode
(
'
icon
'
);
iconNode
.
zIndex
=
5
;
iconNode
.
anchorX
=
1
;
iconNode
.
anchorY
=
1
;
iconNode
.
parent
=
cc
.
find
(
'
Canvas
'
);
iconNode
.
x
=
iconNode
.
parent
.
width
/
2
-
10
;
iconNode
.
y
=
iconNode
.
parent
.
height
/
2
-
10
;
iconNode
.
on
(
cc
.
Node
.
EventType
.
TOUCH_START
,
()
=>
{
this
.
playAudioByUrl
(
this
.
data
.
audio_url
);
})
}
curPage
=
null
;
initBtn
()
{
this
.
curPage
=
0
;
const
bottomPart
=
cc
.
find
(
'
Canvas/bottomPart
'
);
bottomPart
.
zIndex
=
5
;
// 提高层级
bottomPart
.
x
=
bottomPart
.
parent
.
width
/
2
;
bottomPart
.
y
=
-
bottomPart
.
parent
.
height
/
2
;
const
leftBtnNode
=
bottomPart
.
getChildByName
(
'
btn_left
'
);
//节点中添加了button组件 则可以添加click事件监听
leftBtnNode
.
on
(
'
click
'
,
()
=>
{
if
(
!
this
.
_cantouch
)
{
return
;
}
if
(
this
.
curPage
==
0
)
{
return
;
}
this
.
curPage
=
0
this
.
leftMove
();
this
.
playLocalAudio
(
'
btn
'
);
})
const
rightBtnNode
=
bottomPart
.
getChildByName
(
'
btn_right
'
);
//节点中添加了button组件 则可以添加click事件监听
rightBtnNode
.
on
(
'
click
'
,
()
=>
{
if
(
!
this
.
_cantouch
)
{
return
;
}
if
(
this
.
curPage
==
1
)
{
return
;
}
this
.
curPage
=
1
this
.
rightMove
();
// 游戏结束时需要调用这个方法通知系统作业完成
onHomeworkFinish
();
this
.
playLocalAudio
(
'
btn
'
);
})
}
leftMove
()
{
this
.
_cantouch
=
false
;
const
len
=
this
.
pic1
.
parent
.
width
;
cc
.
tween
(
this
.
pic1
)
.
to
(
1
,
{
x
:
this
.
pic1
.
baseX
},
{
easing
:
'
cubicInOut
'
})
.
start
();
cc
.
tween
(
this
.
pic2
)
.
to
(
1
,
{
x
:
this
.
pic2
.
baseX
},
{
easing
:
'
cubicInOut
'
})
.
call
(()
=>
{
this
.
_cantouch
=
true
;
})
.
start
();
}
rightMove
()
{
this
.
_cantouch
=
false
;
const
len
=
this
.
pic1
.
parent
.
width
;
cc
.
tween
(
this
.
pic1
)
.
to
(
1
,
{
x
:
this
.
pic1
.
baseX
-
len
},
{
easing
:
'
cubicInOut
'
})
.
start
();
cc
.
tween
(
this
.
pic2
)
.
to
(
1
,
{
x
:
this
.
pic2
.
baseX
-
len
},
{
easing
:
'
cubicInOut
'
})
.
call
(()
=>
{
this
.
_cantouch
=
true
;
})
.
start
();
}
// update (dt) {},
initListener
()
{
}
playLocalAudio
(
audioName
)
{
const
audio
=
cc
.
find
(
`Canvas/res/audio/
${
audioName
}
`
).
getComponent
(
cc
.
AudioSource
);
return
new
Promise
((
resolve
,
reject
)
=>
{
const
id
=
cc
.
audioEngine
.
playEffect
(
audio
.
clip
,
false
);
cc
.
audioEngine
.
setFinishCallback
(
id
,
()
=>
{
resolve
(
id
);
});
})
}
}
assets/cocos_generator/script/defaultData.ts
deleted
100644 → 0
View file @
a3f5ba9f
export
const
defaultData
=
{
"
pic_url
"
:
"
http://staging-teach.cdn.ireadabc.com/ed94332a503c31e0908bd4c6923a2665.png
"
,
"
pic_url_2
"
:
"
http://staging-teach.cdn.ireadabc.com/5fb60317ade0195d35ad8034d5370a7f.png
"
,
"
text
"
:
"
This is a test label.
"
,
"
audio_url
"
:
"
http://staging-teach.cdn.ireadabc.com/f47f1d7b5c160fe1c59500d180346240.mp3
"
}
\ No newline at end of file
assets/cocos_generator/textures/1orange.png
deleted
100644 → 0
View file @
a3f5ba9f
123 KB
assets/cocos_generator/textures/1orange.png.meta
deleted
100644 → 0
View file @
a3f5ba9f
{
"ver": "2.3.5",
"uuid": "efa5fa09-a4dd-4bfc-ab7e-17c19f85408f",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 366,
"height": 336,
"platformSettings": {},
"subMetas": {
"1orange": {
"ver": "1.0.4",
"uuid": "43d1e79d-6de8-4dcb-b8ce-d767df7913aa",
"rawTextureUuid": "efa5fa09-a4dd-4bfc-ab7e-17c19f85408f",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": -0.5,
"trimX": 0,
"trimY": 1,
"width": 366,
"height": 335,
"rawWidth": 366,
"rawHeight": 336,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/cocos_generator/textures/bg.jpg
deleted
100644 → 0
View file @
a3f5ba9f
25.8 KB
assets/cocos_generator/textures/bg.jpg.meta
deleted
100644 → 0
View file @
a3f5ba9f
{
"ver": "2.3.5",
"uuid": "e1b4d971-9876-4832-803a-5a321964a78b",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1280,
"height": 720,
"platformSettings": {},
"subMetas": {
"bg": {
"ver": "1.0.4",
"uuid": "8288e3d4-4c75-4b27-8f01-f7014417f4dd",
"rawTextureUuid": "e1b4d971-9876-4832-803a-5a321964a78b",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1280,
"height": 720,
"rawWidth": 1280,
"rawHeight": 720,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/cocos_generator/textures/btn_left.png
deleted
100644 → 0
View file @
a3f5ba9f
1.97 KB
assets/cocos_generator/textures/btn_left.png.meta
deleted
100644 → 0
View file @
a3f5ba9f
{
"ver": "2.3.5",
"uuid": "9a79969a-0506-48d4-bc98-3c05d109b027",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 61,
"height": 67,
"platformSettings": {},
"subMetas": {
"btn_left": {
"ver": "1.0.4",
"uuid": "ce19457d-e8f3-4c38-ae3e-d4b99208ddb5",
"rawTextureUuid": "9a79969a-0506-48d4-bc98-3c05d109b027",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 61,
"height": 67,
"rawWidth": 61,
"rawHeight": 67,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/cocos_generator/textures/btn_right.png
deleted
100644 → 0
View file @
a3f5ba9f
1.88 KB
assets/cocos_generator/textures/btn_right.png.meta
deleted
100644 → 0
View file @
a3f5ba9f
{
"ver": "2.3.5",
"uuid": "d582359e-924e-4ee9-9964-1fc4bb417e71",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 61,
"height": 67,
"platformSettings": {},
"subMetas": {
"btn_right": {
"ver": "1.0.4",
"uuid": "e5a2dbaa-a677-4a32-90d7-a1b057d7fb59",
"rawTextureUuid": "d582359e-924e-4ee9-9964-1fc4bb417e71",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -0.5,
"offsetY": 0.5,
"trimX": 0,
"trimY": 0,
"width": 60,
"height": 66,
"rawWidth": 61,
"rawHeight": 67,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/cocos_generator/textures/icon.png
deleted
100644 → 0
View file @
a3f5ba9f
10.7 KB
assets/cocos_generator/textures/icon.png.meta
deleted
100644 → 0
View file @
a3f5ba9f
{
"ver": "2.3.5",
"uuid": "18d07592-51a9-421e-8972-0f67b68d29e1",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 144,
"height": 144,
"platformSettings": {},
"subMetas": {
"icon": {
"ver": "1.0.4",
"uuid": "6fbc30a8-3c49-44ae-8ba4-7f56f385b78a",
"rawTextureUuid": "18d07592-51a9-421e-8972-0f67b68d29e1",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": -0.5,
"trimX": 3,
"trimY": 2,
"width": 138,
"height": 141,
"rawWidth": 144,
"rawHeight": 144,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/
cocos_generator
.meta
→
assets/
mlk
.meta
View file @
2bfa82ac
{
{
"ver": "1.1.2",
"ver": "1.1.2",
"uuid": "
c35bb2f6-f24a-4850-ae44-643f2fdc7541
",
"uuid": "
82dbec83-42a8-4af9-aa42-f2d8ccfda8a3
",
"isBundle": false,
"isBundle": false,
"bundleName": "",
"bundleName": "",
"priority": 1,
"priority": 1,
...
...
assets/
cocos_generator
/audios.meta
→
assets/
mlk
/audios.meta
View file @
2bfa82ac
{
{
"ver": "1.1.2",
"ver": "1.1.2",
"uuid": "c
b9fa4ea-66ca-45af-ad31-e445c7b0ef3
2",
"uuid": "c
cbbe865-6a56-4235-a739-e579c3d1045
2",
"isBundle": false,
"isBundle": false,
"bundleName": "",
"bundleName": "",
"priority": 1,
"priority": 1,
...
...
assets/
cocos_generator
/audios/.keep
→
assets/
mlk
/audios/.keep
View file @
2bfa82ac
File moved
assets/
cocos_generator
/audios/btn.mp3
→
assets/
mlk
/audios/btn.mp3
View file @
2bfa82ac
File moved
assets/
cocos_generator
/audios/btn.mp3.meta
→
assets/
mlk
/audios/btn.mp3.meta
View file @
2bfa82ac
{
{
"ver": "2.0.1",
"ver": "2.0.1",
"uuid": "
f0680ae0-c079-45ef-abd7-9e63d90b982
b",
"uuid": "
6a536d0a-000a-4a33-a179-8a6cf836d59
b",
"downloadMode": 0,
"downloadMode": 0,
"duration": 0.130612,
"duration": 0.130612,
"subMetas": {}
"subMetas": {}
...
...
assets/
cocos_generator
/dragonBones.meta
→
assets/
mlk
/dragonBones.meta
View file @
2bfa82ac
{
{
"ver": "1.1.2",
"ver": "1.1.2",
"uuid": "
0853721c-3f55-4eb2-873d-e3081cfadd4b
",
"uuid": "
f879639e-1e3a-4f31-86bb-dee0dc0cdc92
",
"isBundle": false,
"isBundle": false,
"bundleName": "",
"bundleName": "",
"priority": 1,
"priority": 1,
...
...
assets/
cocos_generator
/dragonBones/.keep
→
assets/
mlk
/dragonBones/.keep
View file @
2bfa82ac
File moved
assets/
cocos_generator
/fonts.meta
→
assets/
mlk
/fonts.meta
View file @
2bfa82ac
{
{
"ver": "1.1.2",
"ver": "1.1.2",
"uuid": "
20185448-a1ca-4de2-8b37-7bf6cdfccbae
",
"uuid": "
bbbb614e-27d3-4e10-b179-0c19c746ee14
",
"isBundle": false,
"isBundle": false,
"bundleName": "",
"bundleName": "",
"priority": 1,
"priority": 1,
...
...
assets/
cocos_generator
/fonts/.keep
→
assets/
mlk
/fonts/.keep
View file @
2bfa82ac
File moved
assets/
cocos_generator
/fonts/BRLNSDB.TTF
→
assets/
mlk
/fonts/BRLNSDB.TTF
View file @
2bfa82ac
File moved
assets/
cocos_generator
/fonts/BRLNSDB.TTF.meta
→
assets/
mlk
/fonts/BRLNSDB.TTF.meta
View file @
2bfa82ac
{
{
"ver": "1.1.0",
"ver": "1.1.0",
"uuid": "
c551970e-b095-45f3-9f1d-25cde8b8deb1
",
"uuid": "
b5194e9c-a86e-4228-8ee5-5556111b047f
",
"subMetas": {}
"subMetas": {}
}
}
\ No newline at end of file
assets/
cocos_generator
/scene.meta
→
assets/
mlk
/scene.meta
View file @
2bfa82ac
{
{
"ver": "1.1.2",
"ver": "1.1.2",
"uuid": "
e8bd16b0-3804-45a9-a8ca-f52c02224f55
",
"uuid": "
758367fb-39f1-47e7-b161-fb295c9e5977
",
"isBundle": false,
"isBundle": false,
"bundleName": "",
"bundleName": "",
"priority": 1,
"priority": 1,
...
...
assets/
cocos_generator/scene/cocos_generator
.fire
→
assets/
mlk/scene/mlk
.fire
View file @
2bfa82ac
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
"_groupIndex": 0,
"_groupIndex": 0,
"groupIndex": 0,
"groupIndex": 0,
"autoReleaseAssets": true,
"autoReleaseAssets": true,
"_id": "
0737ce42-24f0-45c6-8e1a-8bdab4f74ba3
"
"_id": "
87d6cedf-e31a-4085-8346-4419e82f52c2
"
},
},
{
{
"__type__": "cc.Node",
"__type__": "cc.Node",
...
@@ -75,22 +75,22 @@
...
@@ -75,22 +75,22 @@
"__id__": 5
"__id__": 5
},
},
{
{
"__id__":
7
"__id__":
8
},
},
{
{
"__id__": 1
4
"__id__": 1
0
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
24
"__id__":
13
},
},
{
{
"__id__":
25
"__id__":
14
},
},
{
{
"__id__":
26
"__id__":
15
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -251,6 +251,9 @@
...
@@ -251,6 +251,9 @@
"_components": [
"_components": [
{
{
"__id__": 6
"__id__": 6
},
{
"__id__": 7
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -299,7 +302,7 @@
...
@@ -299,7 +302,7 @@
"_is3DNode": false,
"_is3DNode": false,
"_groupIndex": 0,
"_groupIndex": 0,
"groupIndex": 0,
"groupIndex": 0,
"_id": "
32MJMZ2HRGF4BOf533Avyi
"
"_id": "
5bUkuE/qBOZaADOqsmXuFX
"
},
},
{
{
"__type__": "cc.Sprite",
"__type__": "cc.Sprite",
...
@@ -317,10 +320,10 @@
...
@@ -317,10 +320,10 @@
"_srcBlendFactor": 770,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_dstBlendFactor": 771,
"_spriteFrame": {
"_spriteFrame": {
"__uuid__": "
8288e3d4-4c75-4b27-8f01-f7014417f4dd
"
"__uuid__": "
a23235d1-15db-4b95-8439-a2e005bfff91
"
},
},
"_type": 0,
"_type": 0,
"_sizeMode":
1
,
"_sizeMode":
0
,
"_fillType": 0,
"_fillType": 0,
"_fillCenter": {
"_fillCenter": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -331,38 +334,62 @@
...
@@ -331,38 +334,62 @@
"_fillRange": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_isTrimmedMode": true,
"_atlas": null,
"_atlas": null,
"_id": "97/S6HDq9MeqgmV1Zwnhbb"
"_id": "803Vg+xkRN0JDd0zbSY+rM"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_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": 100,
"_originalHeight": 100,
"_id": "1ebKSdWZVAXLBZz4x2rolr"
},
},
{
{
"__type__": "cc.Node",
"__type__": "cc.Node",
"_name": "
bottomPart
",
"_name": "
screentips
",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 2
"__id__": 2
},
},
"_children": [
"_children": [],
{
"_active": true,
"__id__": 8
"_components": [
},
{
{
"__id__":
11
"__id__":
9
}
}
],
],
"_active": true,
"_components": [],
"_prefab": null,
"_prefab": null,
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
"__type__": "cc.Color",
"__type__": "cc.Color",
"r":
255
,
"r":
96
,
"g":
255
,
"g":
98
,
"b":
255
,
"b":
102
,
"a": 255
"a": 255
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width": 0,
"width":
25
0,
"height":
0
"height":
63
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -373,8 +400,8 @@
...
@@ -373,8 +400,8 @@
"__type__": "TypedArray",
"__type__": "TypedArray",
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
635.132
,
0
,
-356.326
,
0
,
0,
0,
0,
0,
0,
0,
...
@@ -396,25 +423,57 @@
...
@@ -396,25 +423,57 @@
"_is3DNode": false,
"_is3DNode": false,
"_groupIndex": 0,
"_groupIndex": 0,
"groupIndex": 0,
"groupIndex": 0,
"_id": "8c7k8ep/ZFNpO263+1QHz9"
"_id": "96DUcl9tVIsJkBbA2JFruU"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "请放置纸张",
"_N$string": "请放置纸张",
"_fontSize": 50,
"_lineHeight": 50,
"_enableWrapText": true,
"_N$file": {
"__uuid__": "b5194e9c-a86e-4228-8ee5-5556111b047f"
},
"_isSystemFontUsed": false,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 1,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "571vzZXFBFv6ukb7+mMFVC"
},
},
{
{
"__type__": "cc.Node",
"__type__": "cc.Node",
"_name": "
btn_left
",
"_name": "
paper
",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
7
"__id__":
2
},
},
"_children": [],
"_children": [
"_active": true,
"_components": [
{
"__id__": 9
},
{
{
"__id__": 1
0
"__id__": 1
1
}
}
],
],
"_active": false,
"_components": [],
"_prefab": null,
"_prefab": null,
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
...
@@ -426,8 +485,8 @@
...
@@ -426,8 +485,8 @@
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width":
61
,
"width":
0
,
"height":
67
"height":
0
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -438,8 +497,8 @@
...
@@ -438,8 +497,8 @@
"__type__": "TypedArray",
"__type__": "TypedArray",
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
-148.464
,
0
,
34
,
0
,
0,
0,
0,
0,
0,
0,
...
@@ -461,123 +520,20 @@
...
@@ -461,123 +520,20 @@
"_is3DNode": false,
"_is3DNode": false,
"_groupIndex": 0,
"_groupIndex": 0,
"groupIndex": 0,
"groupIndex": 0,
"_id": "5ad2wLQLxIN5Eg7OHecSH6"
"_id": "b8W1s92vpG54k9TeuylTeF"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "ce19457d-e8f3-4c38-ae3e-d4b99208ddb5"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "84mqOgJ3JNqZrYVTEU8CjE"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"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": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": "bcYN/4EKBJhbIAfovo9Ah1"
},
},
{
{
"__type__": "cc.Node",
"__type__": "cc.Node",
"_name": "b
tn_right
",
"_name": "b
g
",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
7
"__id__":
10
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 12
"__id__": 12
},
{
"__id__": 13
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -585,14 +541,14 @@
...
@@ -585,14 +541,14 @@
"_color": {
"_color": {
"__type__": "cc.Color",
"__type__": "cc.Color",
"r": 255,
"r": 255,
"g": 2
55
,
"g": 2
42
,
"b": 2
55
,
"b": 2
26
,
"a": 255
"a": 255
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width":
60
,
"width":
444
,
"height": 6
6
"height": 6
30
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -603,8 +559,8 @@
...
@@ -603,8 +559,8 @@
"__type__": "TypedArray",
"__type__": "TypedArray",
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
-47.164
,
0
,
34
,
0
,
0,
0,
0,
0,
0,
0,
...
@@ -626,7 +582,7 @@
...
@@ -626,7 +582,7 @@
"_is3DNode": false,
"_is3DNode": false,
"_groupIndex": 0,
"_groupIndex": 0,
"groupIndex": 0,
"groupIndex": 0,
"_id": "
46i3stdzpHX6zQHTGnRsNE
"
"_id": "
edi3fIeBJO0ar/xJXNe15X
"
},
},
{
{
"__type__": "cc.Sprite",
"__type__": "cc.Sprite",
...
@@ -644,10 +600,10 @@
...
@@ -644,10 +600,10 @@
"_srcBlendFactor": 770,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_dstBlendFactor": 771,
"_spriteFrame": {
"_spriteFrame": {
"__uuid__": "
e5a2dbaa-a677-4a32-90d7-a1b057d7fb59
"
"__uuid__": "
a23235d1-15db-4b95-8439-a2e005bfff91
"
},
},
"_type": 0,
"_type": 0,
"_sizeMode":
1
,
"_sizeMode":
0
,
"_fillType": 0,
"_fillType": 0,
"_fillCenter": {
"_fillCenter": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -658,593 +614,7 @@
...
@@ -658,593 +614,7 @@
"_fillRange": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_isTrimmedMode": true,
"_atlas": null,
"_atlas": null,
"_id": "42Sh8QS/BHn4WiGyPQPKPt"
"_id": "e23273VQ9IsYcAo3Sy09yj"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"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": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": "1aj32fYY1IxLesa77E70Qu"
},
{
"__type__": "cc.Node",
"_name": "res",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 15
},
{
"__id__": 18
},
{
"__id__": 21
}
],
"_active": false,
"_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.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": "0aAzbH6R1E+6AmGRrkKa5O"
},
{
"__type__": "cc.Node",
"_name": "font",
"_objFlags": 0,
"_parent": {
"__id__": 14
},
"_children": [
{
"__id__": 16
}
],
"_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.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": "9bLfcYeeNKrr524vzWchiM"
},
{
"__type__": "cc.Node",
"_name": "BRLNSDB",
"_objFlags": 0,
"_parent": {
"__id__": 15
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 17
}
],
"_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.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": "cfMLGsq0BMhJARv+ySMAxS"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 16
},
"_enabled": true,
"_materials": [],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "",
"_N$string": "",
"_fontSize": 40,
"_lineHeight": 40,
"_enableWrapText": true,
"_N$file": {
"__uuid__": "c551970e-b095-45f3-9f1d-25cde8b8deb1"
},
"_isSystemFontUsed": false,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 0,
"_N$verticalAlign": 0,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "9bNHNPu5lC7rQYyr8ai/sY"
},
{
"__type__": "cc.Node",
"_name": "img",
"_objFlags": 0,
"_parent": {
"__id__": 14
},
"_children": [
{
"__id__": 19
}
],
"_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.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": "53LUHHG2pEr79fyrvazXJs"
},
{
"__type__": "cc.Node",
"_name": "icon",
"_objFlags": 0,
"_parent": {
"__id__": 18
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 20
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 138,
"height": 141
},
"_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": "1blU2OArJIfoC9XfupGxJG"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 19
},
"_enabled": true,
"_materials": [],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "6fbc30a8-3c49-44ae-8ba4-7f56f385b78a"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "03GEWUEZJGyKormWgIWCtM"
},
{
"__type__": "cc.Node",
"_name": "audio",
"_objFlags": 0,
"_parent": {
"__id__": 14
},
"_children": [
{
"__id__": 22
}
],
"_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.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": "d9f+b0lmZGSJJae6zrADhp"
},
{
"__type__": "cc.Node",
"_name": "btn",
"_objFlags": 0,
"_parent": {
"__id__": 21
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 23
}
],
"_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.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": "e87DSaFCVJfb2PAUkf4/o7"
},
{
"__type__": "cc.AudioSource",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 22
},
"_enabled": true,
"_clip": {
"__uuid__": "f0680ae0-c079-45ef-abd7-9e63d90b982b"
},
"_volume": 1,
"_mute": false,
"_loop": false,
"_firstlyEnabled": true,
"playOnLoad": false,
"preload": false,
"_id": "dey05oKrBIspvsDa6pOIQz"
},
},
{
{
"__type__": "cc.Canvas",
"__type__": "cc.Canvas",
...
@@ -1291,7 +661,7 @@
...
@@ -1291,7 +661,7 @@
"_id": "29zXboiXFBKoIV4PQ2liTe"
"_id": "29zXboiXFBKoIV4PQ2liTe"
},
},
{
{
"__type__": "
408a6f4ZfpM8Yzyg+IOGg/V
",
"__type__": "
f2016YGIJ9OkLm7k72UCQPE
",
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
...
...
assets/
cocos_generator/scene/cocos_generator
.fire.meta
→
assets/
mlk/scene/mlk
.fire.meta
View file @
2bfa82ac
{
{
"ver": "1.2.9",
"ver": "1.2.9",
"uuid": "
0737ce42-24f0-45c6-8e1a-8bdab4f74ba3
",
"uuid": "
87d6cedf-e31a-4085-8346-4419e82f52c2
",
"asyncLoadAssets": false,
"asyncLoadAssets": false,
"autoReleaseAssets": true,
"autoReleaseAssets": true,
"subMetas": {}
"subMetas": {}
...
...
assets/mlk/scene/mlk.ts
0 → 100644
View file @
2bfa82ac
import
{
MyCocosSceneComponent
}
from
"
../script/MyCocosSceneComponent
"
;
const
{
ccclass
,
property
}
=
cc
.
_decorator
;
@
ccclass
export
default
class
SceneComponent
extends
MyCocosSceneComponent
{
_cantouch
=
null
;
async
onLoadEnd
()
{
window
[
'
air
'
].
osmoHandwritingMlkitCallback
=
(
res
)
=>
{
console
.
log
(
'
-----------------
'
);
console
.
log
(
res
);
console
.
log
(
'
-----------------
'
);
}
window
[
'
courseware
'
].
openOsmoHandwritingMlkit
();
}
}
assets/
cocos_generator/scene/cocos_generator
.ts.meta
→
assets/
mlk/scene/mlk
.ts.meta
View file @
2bfa82ac
{
{
"ver": "1.0.8",
"ver": "1.0.8",
"uuid": "
408a67f8-65fa-4cf1-8cf2-83e20e1a0fd5
",
"uuid": "
f2016606-209f-4e90-b9bb-93bd940903c4
",
"isPlugin": false,
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInNative": true,
...
...
assets/
cocos_generator
/script.meta
→
assets/
mlk
/script.meta
View file @
2bfa82ac
{
{
"ver": "1.1.2",
"ver": "1.1.2",
"uuid": "
b0c008bc-cf92-463b-8360-0984e13c2e4d
",
"uuid": "
53707d8b-6387-41de-9796-f46dff4f2db8
",
"isBundle": false,
"isBundle": false,
"bundleName": "",
"bundleName": "",
"priority": 1,
"priority": 1,
...
...
assets/
cocos_generator
/script/MyCocosSceneComponent.ts
→
assets/
mlk
/script/MyCocosSceneComponent.ts
View file @
2bfa82ac
File moved
assets/
cocos_generator
/script/MyCocosSceneComponent.ts.meta
→
assets/
mlk
/script/MyCocosSceneComponent.ts.meta
View file @
2bfa82ac
{
{
"ver": "1.0.8",
"ver": "1.0.8",
"uuid": "
f8b451ff-857c-4ca8-9870-866bc5154a29
",
"uuid": "
732e366e-350f-441e-99e3-9462b534cd52
",
"isPlugin": false,
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInNative": true,
...
...
assets/mlk/script/defaultData.ts
0 → 100644
View file @
2bfa82ac
export
const
defaultData
=
{
allText
:
"
k
"
,
block
:
[
{
line
:
[
{
word
:
[
{
"
content
"
:
"
k
"
,
cornerPoint
:
[
{
x
:
314
,
y
:
135
},{
x
:
327
,
y
:
134
},{
x
:
328
,
y
:
153
},{
x
:
315
,
y
:
154
}
]
}
]
}
]
}
]
}
\ No newline at end of file
assets/
cocos_generator
/script/defaultData.ts.meta
→
assets/
mlk
/script/defaultData.ts.meta
View file @
2bfa82ac
{
{
"ver": "1.0.8",
"ver": "1.0.8",
"uuid": "
c41b0e51-55d7-443c-af3a-b22c3dd9b9e5
",
"uuid": "
34a2fe85-f254-4728-b02f-f9926ed06510
",
"isPlugin": false,
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInNative": true,
...
...
assets/mlk/script/mlk_utils.ts
0 → 100644
View file @
2bfa82ac
// Learn TypeScript:
// - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
// Learn Attribute:
// - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
const
{
ccclass
,
property
}
=
cc
.
_decorator
;
@
ccclass
export
default
class
NewClass
extends
cc
.
Component
{
@
property
(
cc
.
Label
)
label
:
cc
.
Label
=
null
;
@
property
text
:
string
=
'
hello
'
;
// LIFE-CYCLE CALLBACKS:
// onLoad () {}
start
()
{
}
// update (dt) {}
}
assets/mlk/script/mlk_utils.ts.meta
0 → 100644
View file @
2bfa82ac
{
"ver": "1.0.8",
"uuid": "aa5e182b-8252-4e3a-881c-de311da033a8",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
assets/
cocos_generator
/script/runtime.js
→
assets/
mlk
/script/runtime.js
View file @
2bfa82ac
File moved
assets/
cocos_generator
/script/runtime.js.meta
→
assets/
mlk
/script/runtime.js.meta
View file @
2bfa82ac
{
{
"ver": "1.0.8",
"ver": "1.0.8",
"uuid": "
b54300af-b8e5-4b4e-aa2f-9ac1cef7b598
",
"uuid": "
13373273-5efa-4ab5-a313-5c1c7ad5aa35
",
"isPlugin": true,
"isPlugin": true,
"loadPluginInWeb": true,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInNative": true,
...
...
assets/
cocos_generator
/script/util.ts
→
assets/
mlk
/script/util.ts
View file @
2bfa82ac
File moved
assets/
cocos_generator
/script/util.ts.meta
→
assets/
mlk
/script/util.ts.meta
View file @
2bfa82ac
{
{
"ver": "1.0.8",
"ver": "1.0.8",
"uuid": "
ade7af40-d56d-4087-bbc6-2888fef55353
",
"uuid": "
bb77669c-54cd-4879-a206-f5854c701005
",
"isPlugin": false,
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInNative": true,
...
...
assets/
cocos_generator
/textures.meta
→
assets/
mlk
/textures.meta
View file @
2bfa82ac
{
{
"ver": "1.1.2",
"ver": "1.1.2",
"uuid": "8
ba21262-178f-4fa5-afc9-2c1dd50ba3ab
",
"uuid": "8
84e6bfd-5a33-4889-bd49-54ffc1b587d9
",
"isBundle": false,
"isBundle": false,
"bundleName": "",
"bundleName": "",
"priority": 1,
"priority": 1,
...
...
assets/
cocos_generator
/textures/.keep
→
assets/
mlk
/textures/.keep
View file @
2bfa82ac
File moved
settings/builder.json
View file @
2bfa82ac
{
{
"title"
:
"play"
,
"title"
:
"play"
,
"packageName"
:
"org.cocos2d.demo"
,
"packageName"
:
"org.cocos2d.demo"
,
"startScene"
:
"
0737ce42-24f0-45c6-8e1a-8bdab4f74ba3
"
,
"startScene"
:
"
87d6cedf-e31a-4085-8346-4419e82f52c2
"
,
"excludeScenes"
:
[],
"excludeScenes"
:
[],
"includeSDKBox"
:
false
,
"includeSDKBox"
:
false
,
"orientation"
:
{
"orientation"
:
{
...
...
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