Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
new_taobao
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
wildfirecode13
new_taobao
Commits
a7a6172d
Commit
a7a6172d
authored
Sep 21, 2020
by
Edwise
🍷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
e21e77d0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
21 deletions
+21
-21
resCanvasList.js
project/src/canvas/game/resCanvasList.js
+18
-18
MainScene.ts
project/src/canvas/game/src/scenes/MainScene.ts
+2
-2
StartScene.ts
project/src/canvas/game/src/scenes/StartScene.ts
+1
-1
No files found.
project/src/canvas/game/resCanvasList.js
View file @
a7a6172d
...
@@ -23,24 +23,6 @@ const resCanvasList = {
...
@@ -23,24 +23,6 @@ const resCanvasList = {
url
:
'https://yun.duiba.com.cn/spark/assets/blueCatHand.ebb0e7dfe53c3a347d8e1f118367eed31e0b486e.png'
,
url
:
'https://yun.duiba.com.cn/spark/assets/blueCatHand.ebb0e7dfe53c3a347d8e1f118367eed31e0b486e.png'
,
uuid
:
'3a105062-4474-4f37-abd2-fa9471e2536f'
uuid
:
'3a105062-4474-4f37-abd2-fa9471e2536f'
},
},
'ceb650c2-9620-4b5b-ad34-c95af25d77ce'
:
{
name
:
'寝室'
,
ext
:
'.png'
,
uuid
:
'ceb650c2-9620-4b5b-ad34-c95af25d77ce'
,
url
:
'https://yun.duiba.com.cn/spark/assets/5b641238d5b0c00f8740b355cc0f1130446c8b1c.png'
},
'52c9cc35-c220-4dac-9c26-639b88a043b3'
:
{
name
:
'操场'
,
ext
:
'.png'
,
uuid
:
'52c9cc35-c220-4dac-9c26-639b88a043b3'
,
url
:
'https://yun.duiba.com.cn/spark/assets/9c1601507f8730bcb0faf70316feec41bd73cb9b.png'
},
'3ebdda49-754c-42e5-bfb3-daefa9835fb5'
:
{
name
:
'教室'
,
ext
:
'.png'
,
uuid
:
'3ebdda49-754c-42e5-bfb3-daefa9835fb5'
,
url
:
'https://yun.duiba.com.cn/spark/assets/afd87964074d1773e12fe5cb8745dcccdf33dcbe.png'
},
'483dbc34-2962-4483-8968-71e3cc5182b9'
:
{
'483dbc34-2962-4483-8968-71e3cc5182b9'
:
{
name
:
'玩耍猫'
,
name
:
'玩耍猫'
,
ext
:
'.png'
,
ext
:
'.png'
,
...
@@ -628,6 +610,24 @@ const resCanvasList = {
...
@@ -628,6 +610,24 @@ const resCanvasList = {
ext
:
'.png'
,
ext
:
'.png'
,
url
:
'https://yun.duiba.com.cn/spark/assets/XianluoCatTexture.5ddac07bcc3d692773d464ddace1879e95c9605f.png'
,
url
:
'https://yun.duiba.com.cn/spark/assets/XianluoCatTexture.5ddac07bcc3d692773d464ddace1879e95c9605f.png'
,
uuid
:
'de2d1dca-ed1c-4fe0-93ef-684f4b96c87e'
uuid
:
'de2d1dca-ed1c-4fe0-93ef-684f4b96c87e'
},
'efaf990e-5392-49ad-94d8-25c04f651ede'
:
{
name
:
'操场1'
,
ext
:
'.jpg'
,
url
:
'//yun.duiba.com.cn/spark/assets/操场1.b001a98dc403137934e6b7d7a17a7882ecd63478.jpg'
,
uuid
:
'efaf990e-5392-49ad-94d8-25c04f651ede'
},
'c6d699b0-b276-4985-b3ea-47bcef13f2ea'
:
{
name
:
'教室1'
,
ext
:
'.jpg'
,
url
:
'//yun.duiba.com.cn/spark/assets/教室1.b439ee3a59ed36c920c92e11df87b317e4ff048d.jpg'
,
uuid
:
'c6d699b0-b276-4985-b3ea-47bcef13f2ea'
},
'b3c8c187-e5c9-4968-9a00-a118d18ab2fc'
:
{
name
:
'寝室1'
,
ext
:
'.jpg'
,
url
:
'//yun.duiba.com.cn/spark/assets/寝室1.e9238ec5e71c328817026128dd0f41fdc65203f4.jpg'
,
uuid
:
'b3c8c187-e5c9-4968-9a00-a118d18ab2fc'
}
}
};
};
export
default
resCanvasList
;
export
default
resCanvasList
;
project/src/canvas/game/src/scenes/MainScene.ts
View file @
a7a6172d
...
@@ -37,8 +37,8 @@ export class MainScene extends Scene{
...
@@ -37,8 +37,8 @@ export class MainScene extends Scene{
that
.
y
=
(
Ins
.
stageH
-
1624
)
>>
1
;
that
.
y
=
(
Ins
.
stageH
-
1624
)
>>
1
;
that
.
mouseChildren
=
true
;
that
.
mouseChildren
=
true
;
//0:教室,1:操场,2:寝室
//0:教室,1:操场,2:寝室
that
.
bgUUID
=
[
"
3ebdda49-754c-42e5-bfb3-daefa9835fb5"
,
"52c9cc35-c220-4dac-9c26-639b88a043b3"
,
"ceb650c2-9620-4b5b-ad34-c95af25d77ce
"
];
that
.
bgUUID
=
[
"
c6d699b0-b276-4985-b3ea-47bcef13f2ea"
,
"efaf990e-5392-49ad-94d8-25c04f651ede"
,
"b3c8c187-e5c9-4968-9a00-a118d18ab2fc
"
];
that
.
sceneBg
=
Ins
.
initSprite
(
"
ceb650c2-9620-4b5b-ad34-c95af25d77ce
"
);
that
.
sceneBg
=
Ins
.
initSprite
(
"
b3c8c187-e5c9-4968-9a00-a118d18ab2fc
"
);
that
.
addChild
(
that
.
sceneBg
);
that
.
addChild
(
that
.
sceneBg
);
that
.
tlBtn
=
Ins
.
initSprite
(
"1f8b040d-2fbc-4ff8-92f9-159773364fae"
,
0
,
640
);
that
.
tlBtn
=
Ins
.
initSprite
(
"1f8b040d-2fbc-4ff8-92f9-159773364fae"
,
0
,
640
);
...
...
project/src/canvas/game/src/scenes/StartScene.ts
View file @
a7a6172d
...
@@ -10,7 +10,7 @@ import { SelectCatPanel } from "../panels/selectcatpanel/SelectCatPanel";
...
@@ -10,7 +10,7 @@ import { SelectCatPanel } from "../panels/selectcatpanel/SelectCatPanel";
export
class
StartScene
extends
Scene
{
export
class
StartScene
extends
Scene
{
initUi
()
{
initUi
()
{
super
.
initUi
();
super
.
initUi
();
var
sceneBg
=
Ins
.
initSprite
(
"
ceb650c2-9620-4b5b-ad34-c95af25d77ce
"
);
var
sceneBg
=
Ins
.
initSprite
(
"
b3c8c187-e5c9-4968-9a00-a118d18ab2fc
"
);
this
.
addChild
(
sceneBg
);
this
.
addChild
(
sceneBg
);
this
.
x
=
(
Ins
.
stageW
-
750
)
>>
1
;
this
.
x
=
(
Ins
.
stageW
-
750
)
>>
1
;
this
.
y
=
(
Ins
.
stageH
-
1624
)
>>
1
;
this
.
y
=
(
Ins
.
stageH
-
1624
)
>>
1
;
...
...
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