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
05d26a4e
Commit
05d26a4e
authored
Jun 16, 2020
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
df9efc28
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
1034 deletions
+9
-1034
recycling.json
dist/customs/recycling.json
+1
-1
main.js
src/custom/recycling/debug/main.js
+1
-1029
main.js.map
src/custom/recycling/debug/main.js.map
+1
-1
Conveyors.ts
src/custom/recycling/src/game/Conveyors.ts
+4
-2
transStores.ts
src/custom/recycling/src/game/datas/transStores.ts
+2
-1
No files found.
dist/customs/recycling.json
View file @
05d26a4e
This diff is collapsed.
Click to expand it.
src/custom/recycling/debug/main.js
View file @
05d26a4e
This diff is collapsed.
Click to expand it.
src/custom/recycling/debug/main.js.map
View file @
05d26a4e
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/custom/recycling/src/game/Conveyors.ts
View file @
05d26a4e
...
...
@@ -61,7 +61,7 @@ export default class Conveyors extends engine.Sprite {
view
.
isRight
=
false
;
data
.
isOnStage
=
true
;
view
.
data
=
data
;
view
.
type
=
data
.
type
;
view
.
name
=
data
.
name
;
view
.
anchorX
=
data
.
width
/
2
;
...
...
@@ -116,6 +116,7 @@ export default class Conveyors extends engine.Sprite {
if
(
data
)
{
data
.
isOnStage
=
true
;
let
view
:
any
=
new
engine
.
Sprite
(
getTextureByName
(
data
.
source
));
view
.
data
=
data
;
view
.
isWrong
=
false
;
view
.
isRight
=
false
;
view
.
type
=
data
.
type
;
...
...
@@ -233,7 +234,7 @@ export default class Conveyors extends engine.Sprite {
}
private
_currentDragView
:
engine
.
Sprite
;
private
_currentTarget
:
engine
.
Sprite
;
private
_currentTarget
;
onDown_garbage
(
e
:
engine
.
MouseEvent
)
{
if
(
this
.
_currentDragView
)
{
removeChild
(
this
.
_currentDragView
)
...
...
@@ -269,6 +270,7 @@ export default class Conveyors extends engine.Sprite {
if
(
result
==
this
.
_currentDragView
[
'type'
])
{
//匹配
this
.
addscore
();
this
.
wrapper
.
rightTips
.
play
(
getTargetRect
(
result
,
this
.
wrapper
));
this
.
_currentTarget
.
data
.
isRight
=
true
;
}
else
{
//不匹配
engine
.
Tween
.
get
(
this
.
_currentTarget
).
to
({
scaleX
:
1
,
scaleY
:
1
},
300
).
call
(()
=>
{
});
this
.
wrapper
.
wrongTips
.
play
(
getTargetRect
(
result
,
this
.
wrapper
));
...
...
src/custom/recycling/src/game/datas/transStores.ts
View file @
05d26a4e
...
...
@@ -49,7 +49,8 @@ export default (list: any[]) => {
return
{
'targetName'
:
getTargetName
(
i
.
targetType
),
'isCorrect'
:
i
.
targetType
==
i
.
itemType
,
'itemName'
:
i
.
itemName
'itemName'
:
i
.
itemName
,
'itemTypeName'
:
getTargetName
(
i
.
itemType
)
}
})
}
...
...
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