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
2dfa4ce5
Commit
2dfa4ce5
authored
Aug 11, 2020
by
汪欢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify
parent
7da17f99
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
309 additions
and
5 deletions
+309
-5
main.js
src/custom/pictures/debug/main.js
+304
-1
main.js.map
src/custom/pictures/debug/main.js.map
+1
-1
meta.json
src/custom/pictures/meta.json
+2
-2
GameView.ts
src/custom/pictures/src/game/GameView.ts
+2
-1
No files found.
src/custom/pictures/debug/main.js
View file @
2dfa4ce5
This diff is collapsed.
Click to expand it.
src/custom/pictures/debug/main.js.map
View file @
2dfa4ce5
This diff is collapsed.
Click to expand it.
src/custom/pictures/meta.json
View file @
2dfa4ce5
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
"MAX_ROW"
:
{
"MAX_ROW"
:
{
"alias"
:
"图片分成几行"
,
"alias"
:
"图片分成几行"
,
"type"
:
"number"
,
"type"
:
"number"
,
"default"
:
4
"default"
:
3
},
},
"W"
:
{
"W"
:
{
"alias"
:
"图片的宽度"
,
"alias"
:
"图片的宽度"
,
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
"GAME_TIME"
:
{
"GAME_TIME"
:
{
"alias"
:
"游戏时间"
,
"alias"
:
"游戏时间"
,
"type"
:
"number"
,
"type"
:
"number"
,
"default"
:
10
"default"
:
10
0
}
}
},
},
...
...
src/custom/pictures/src/game/GameView.ts
View file @
2dfa4ce5
...
@@ -101,7 +101,7 @@ export default class GameView extends engine.Container {
...
@@ -101,7 +101,7 @@ export default class GameView extends engine.Container {
if
(
GAME_TIME
<
10
)
{
if
(
GAME_TIME
<
10
)
{
GAME_TIME
=
'0'
+
GAME_TIME
GAME_TIME
=
'0'
+
GAME_TIME
}
}
console
.
log
(
GAME_TIME
);
console
.
log
(
GAME_TIME
,
"gametime1"
);
engine
.
globalEvent
.
dispatchEvent
(
'pictures-time-update'
,
{
engine
.
globalEvent
.
dispatchEvent
(
'pictures-time-update'
,
{
...
@@ -185,6 +185,7 @@ export default class GameView extends engine.Container {
...
@@ -185,6 +185,7 @@ export default class GameView extends engine.Container {
GAME_TIME
=
props
.
GAME_TIME
;
GAME_TIME
=
props
.
GAME_TIME
;
// OFFSET_X = props.OFFSET_X;
// OFFSET_X = props.OFFSET_X;
// OFFSET_Y = props.OFFSET_Y;
// OFFSET_Y = props.OFFSET_Y;
console
.
log
(
GAME_TIME
,
'setuptime'
)
W
=
props
.
W
;
W
=
props
.
W
;
H
=
props
.
H
;
H
=
props
.
H
;
GAP
=
props
.
GAP
;
GAP
=
props
.
GAP
;
...
...
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