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
1b966ad1
Commit
1b966ad1
authored
Aug 10, 2020
by
Chary
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
start event add params
parent
7da17f99
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
326 additions
and
6 deletions
+326
-6
pictures.json
dist/customs/pictures.json
+5
-2
app.js
src/custom/pictures/debug/app.js
+3
-0
main.js
src/custom/pictures/debug/main.js
+307
-1
main.js.map
src/custom/pictures/debug/main.js.map
+1
-1
meta.json
src/custom/pictures/meta.json
+4
-1
GameView.ts
src/custom/pictures/src/game/GameView.ts
+6
-1
No files found.
dist/customs/pictures.json
View file @
1b966ad1
This diff is collapsed.
Click to expand it.
src/custom/pictures/debug/app.js
View file @
1b966ad1
...
...
@@ -49,6 +49,9 @@ function launchWithCustomModule(customModule) {
engine
.
globalEvent
.
dispatchEvent
(
'pictures-start'
,
{
picUrl
:
"http://yun.duiba.com.cn/aurora/assets/e1593b97c27077b85b92f7eaaeae1ed64a1eb79a.png"
,
blockUrl
:
"888"
,
column
:
"2"
,
row
:
"2"
,
gameTime
:
"50"
});
const
d
=
engine
.
gameStage
.
sceneContainer
.
getChildAt
(
0
);
...
...
src/custom/pictures/debug/main.js
View file @
1b966ad1
This diff is collapsed.
Click to expand it.
src/custom/pictures/debug/main.js.map
View file @
1b966ad1
This diff is collapsed.
Click to expand it.
src/custom/pictures/meta.json
View file @
1b966ad1
...
...
@@ -59,7 +59,10 @@
"alias"
:
"开始"
,
"data"
:
{
"picUrl"
:
"图片路径"
,
"blockUrl"
:
"blockUrl"
"blockUrl"
:
"blockUrl"
,
"row"
:
"行"
,
"column"
:
"列"
,
"gameTime"
:
"游戏时间"
}
},
"pictures-stop"
:
{
...
...
src/custom/pictures/src/game/GameView.ts
View file @
1b966ad1
...
...
@@ -27,7 +27,12 @@ export default class GameView extends engine.Container {
private
date
start
()
{
//优先获取start事件接收到的参数
MAX_COL
=
props
.
column
||
props
.
MAX_COL
;
MAX_ROW
=
props
.
row
||
props
.
MAX_ROW
;
GAME_TIME
=
props
.
gameTime
||
props
.
GAME_TIME
;
console
.
log
(
'start'
,
props
.
column
,
props
.
row
,
props
.
gameTime
)
if
(
!
this
.
guideHole
)
{
this
.
guideHole
=
new
engine
.
Image
();
this
.
guideHole
.
source
=
'asset://'
+
props
.
blockUrl
;
...
...
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