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
12413278
Commit
12413278
authored
Aug 17, 2020
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
ca381601
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
20 deletions
+12
-20
recycling.json
dist/customs/recycling.json
+3
-2
app.js
src/custom/recycling/debug/app.js
+1
-1
main.js
src/custom/recycling/debug/main.js
+1
-15
main.js.map
src/custom/recycling/debug/main.js.map
+1
-1
meta.json
src/custom/recycling/meta.json
+5
-0
GameView.ts
src/custom/recycling/src/game/GameView.ts
+1
-1
No files found.
dist/customs/recycling.json
View file @
12413278
This diff is collapsed.
Click to expand it.
src/custom/recycling/debug/app.js
View file @
12413278
...
...
@@ -46,7 +46,7 @@ function launchWithCustomModule(customModule) {
},
100
);
setTimeout
(()
=>
{
engine
.
globalEvent
.
dispatchEvent
(
'recycling-start'
,
{
time
:
1500
,
maxScore
:
200
,
speed
:
3
,
sound
:
1
});
engine
.
globalEvent
.
dispatchEvent
(
'recycling-start'
,
{
time
:
1500
,
maxScore
:
200
,
speed
:
3
,
sound
:
1
,
isNewPlayer
:
0
});
const
d
=
engine
.
gameStage
.
sceneContainer
.
getChildAt
(
0
);
},
2000
);
...
...
src/custom/recycling/debug/main.js
View file @
12413278
...
...
@@ -597,20 +597,6 @@
});
//# sourceMappingURL=uiConfig.js.map
var
getGuideInfo
=
(
function
()
{
try
{
if
(
window
.
localStorage
&&
window
.
localStorage
.
getItem
)
{
return
localStorage
.
getItem
(
'recyclingGuide'
);
}
else
{
return
0
;
}
}
catch
(
e
)
{
console
.
log
(
"getguideinfo--error"
,
e
);
return
0
;
}
});
var
setGuide
=
function
()
{
try
{
if
(
window
.
localStorage
&&
window
.
localStorage
.
setItem
)
{
...
...
@@ -943,7 +929,7 @@
switch
(
_a
.
label
)
{
case
0
:
this
.
_timeCounter
=
0
;
if
(
!
(
!
getGuideInfo
()
&&
!
this
.
guidenew
))
return
[
3
,
2
];
if
(
!
(
!
props
.
isNewPlayer
&&
!
this
.
guidenew
))
return
[
3
,
2
];
return
[
4
,
this
.
guide
.
startGuide
()];
case
1
:
_a
.
sent
();
...
...
src/custom/recycling/debug/main.js.map
View file @
12413278
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/custom/recycling/meta.json
View file @
12413278
...
...
@@ -6,6 +6,11 @@
"alias"
:
"图片分成几列"
,
"type"
:
"number"
,
"default"
:
3
},
"isNewPlayer"
:{
"alias"
:
"isNewPlayer"
,
"type"
:
"number"
,
"default"
:
1
}
},
"assets"
:
[{
...
...
src/custom/recycling/src/game/GameView.ts
View file @
12413278
...
...
@@ -129,7 +129,7 @@ export default class GameView extends engine.Container {
// console.log('on start',getGuideInfo());
this
.
_timeCounter
=
0
;
if
(
!
getGuideInfo
()
&&!
this
.
guidenew
)
{
if
(
!
props
.
isNewPlayer
&&!
this
.
guidenew
)
{
await
this
.
guide
.
startGuide
();
setGuide
();
this
.
guidenew
=
true
;
...
...
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