Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qiaqia_qx
Project
Project
Details
Activity
Releases
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
邱旭
qiaqia_qx
Commits
dd7c7b58
Commit
dd7c7b58
authored
Jun 23, 2020
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1111
parent
348688ed
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
53 additions
and
36 deletions
+53
-36
workspace.xml
.idea/workspace.xml
+42
-25
qiaqiaHome.getGameInfo.json
mock/miniTb/qiaqiaHome.getGameInfo.json
+2
-2
Tools.ts
src/Tools.ts
+1
-1
staticData.ts
src/const/staticData.ts
+5
-5
GuideScene.ts
src/scenes/GuideScene.ts
+3
-3
No files found.
.idea/workspace.xml
View file @
dd7c7b58
This diff is collapsed.
Click to expand it.
mock/miniTb/qiaqiaHome.getGameInfo.json
View file @
dd7c7b58
{
{
"code"
:
"000000"
,
"code"
:
"000000"
,
"data"
:
{
"data"
:
{
"guideStep"
:
8
,
"guideStep"
:
0
,
"guideIsEnd"
:
tru
e
,
"guideIsEnd"
:
fals
e
,
"waterDrops"
:
0
,
"waterDrops"
:
0
,
"plants"
:
[
"plants"
:
[
{
{
...
...
src/Tools.ts
View file @
dd7c7b58
...
@@ -87,7 +87,7 @@ export class Tool {
...
@@ -87,7 +87,7 @@ export class Tool {
}
}
// cloud://21DC968488CF65B20EC98D34D07B7B9D//浇水动效.svga
// cloud://21DC968488CF65B20EC98D34D07B7B9D//浇水动效.svga
const
src
=
`cloud://
21DC968488CF65B20EC98D34D07B7B9D
//
${
name
}
.svga`
;
const
src
=
`cloud://
5C68107E2545139A29BC2BA5EF618280
//
${
name
}
.svga`
;
// const src = `../svga/${name}.svga`; /// TODO 线上替换
// const src = `../svga/${name}.svga`; /// TODO 线上替换
SvgaParser
.
loadSvga
(
src
,
(
v
)
=>
{
SvgaParser
.
loadSvga
(
src
,
(
v
)
=>
{
Tool
.
svgaCache
[
name
]
=
v
;
// 做一个缓存
Tool
.
svgaCache
[
name
]
=
v
;
// 做一个缓存
...
...
src/const/staticData.ts
View file @
dd7c7b58
...
@@ -37,17 +37,17 @@ export const s_PlantData = {
...
@@ -37,17 +37,17 @@ export const s_PlantData = {
CHESTNUT
:
{
CHESTNUT
:
{
key
:
PLANT_TYPE
.
CHESTNUT
,
key
:
PLANT_TYPE
.
CHESTNUT
,
name
:
'板栗'
,
name
:
'板栗'
,
time
:
1
,
time
:
6
,
},
},
PECAN
:
{
PECAN
:
{
key
:
PLANT_TYPE
.
PECAN
,
key
:
PLANT_TYPE
.
PECAN
,
name
:
'山核桃'
,
name
:
'山核桃'
,
time
:
2
,
time
:
4
,
},
},
PEANUT
:
{
PEANUT
:
{
key
:
PLANT_TYPE
.
PEANUT
,
key
:
PLANT_TYPE
.
PEANUT
,
name
:
'花生'
,
name
:
'花生'
,
time
:
3
,
time
:
6
,
},
},
MELON
:
{
MELON
:
{
key
:
PLANT_TYPE
.
MELON
,
key
:
PLANT_TYPE
.
MELON
,
...
@@ -57,12 +57,12 @@ export const s_PlantData = {
...
@@ -57,12 +57,12 @@ export const s_PlantData = {
PISTACHIONUT
:
{
PISTACHIONUT
:
{
key
:
PLANT_TYPE
.
PISTACHIONUT
,
key
:
PLANT_TYPE
.
PISTACHIONUT
,
name
:
'开心果'
,
name
:
'开心果'
,
time
:
5
,
time
:
4
,
},
},
CASHEWNUT
:
{
CASHEWNUT
:
{
key
:
PLANT_TYPE
.
CASHEWNUT
,
key
:
PLANT_TYPE
.
CASHEWNUT
,
name
:
'腰果'
,
name
:
'腰果'
,
time
:
6
,
time
:
5
,
},
},
}
}
...
...
src/scenes/GuideScene.ts
View file @
dd7c7b58
...
@@ -36,13 +36,13 @@ export class GuideScene extends Scene {
...
@@ -36,13 +36,13 @@ export class GuideScene extends Scene {
});
});
// UI层
this
.
uiLayer
=
this
.
addChild
(
new
UILayer
());
// 游戏层
// 游戏层
GameLayer
.
kill
();
GameLayer
.
kill
();
this
.
gameLayer
=
this
.
addChild
(
GameLayer
.
ins
);
this
.
gameLayer
=
this
.
addChild
(
GameLayer
.
ins
);
// UI层
this
.
uiLayer
=
this
.
addChild
(
new
UILayer
());
// 引导层
// 引导层
this
.
guideLayer
=
this
.
addChild
(
new
GuideLayer
());
this
.
guideLayer
=
this
.
addChild
(
new
GuideLayer
());
}
}
...
...
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