Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zeroing-libs
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
劳工
zeroing-libs
Commits
f7274e9f
Commit
f7274e9f
authored
Jun 04, 2020
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
a0bb5b71
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
288 deletions
+9
-288
.DS_Store
dist/.DS_Store
+0
-0
pictures.json
dist/customs/pictures.json
+1
-1
app.js
src/custom/pictures/debug/app.js
+2
-2
main.js
src/custom/pictures/debug/main.js
+1
-284
main.js.map
src/custom/pictures/debug/main.js.map
+1
-1
qietu.ts
src/custom/pictures/src/game/qietu.ts
+4
-0
No files found.
dist/.DS_Store
View file @
f7274e9f
No preview for this file type
dist/customs/pictures.json
View file @
f7274e9f
This diff is collapsed.
Click to expand it.
src/custom/pictures/debug/app.js
View file @
f7274e9f
...
...
@@ -53,7 +53,7 @@ function launchWithCustomModule(customModule) {
const
d
=
engine
.
gameStage
.
sceneContainer
.
getChildAt
(
0
);
engine
.
gameStage
.
sceneContainer
.
getChildAt
(
0
).
x
=
(
d
.
stage
.
width
-
props
.
W
)
/
2
;
engine
.
gameStage
.
sceneContainer
.
getChildAt
(
0
).
y
=
(
d
.
stage
.
height
-
props
.
H
)
/
2
;
},
1
5
00
);
},
1
0
00
);
setTimeout
(()
=>
{
engine
.
globalEvent
.
dispatchEvent
(
'pictures-start'
,
{
...
...
@@ -61,7 +61,7 @@ function launchWithCustomModule(customModule) {
// picUrl: "http://yun.duiba.com.cn/aurora/assets/d23e73d37ec01931e48cbd0a4095367044c5675c.png"
});
},
10
000
);
},
2
000
);
});
engine
.
globalEvent
.
addEventListener
(
'pictures-time-update'
,
(
e
)
=>
{
// console.log(e.type, e.data);
...
...
src/custom/pictures/debug/main.js
View file @
f7274e9f
This diff is collapsed.
Click to expand it.
src/custom/pictures/debug/main.js.map
View file @
f7274e9f
This diff is collapsed.
Click to expand it.
src/custom/pictures/src/game/qietu.ts
View file @
f7274e9f
...
...
@@ -4,6 +4,10 @@ const picMap = {};
const
posMap
=
{};
export
default
(
parent
,
url
,
MAX_COL
,
MAX_ROW
)
=>
{
if
(
picMap
[
url
])
{
const
pics
:
any
[]
=
picMap
[
url
];
for
(
const
pic
of
pics
)
{
parent
.
addChild
(
pic
);
}
return
[
picMap
[
url
],
posMap
[
url
]]
}
...
...
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