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
7a44cb45
Commit
7a44cb45
authored
Jul 24, 2020
by
zjz1994
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码暂存
parent
985450b4
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
3 deletions
+28
-3
pintu.json
dist/customs/pintu.json
+1
-1
main.js
src/custom/pintu/debug/main.js
+14
-1
main.js.map
src/custom/pintu/debug/main.js.map
+1
-1
GameView.ts
src/custom/pintu/src/game/GameView.ts
+12
-0
No files found.
dist/customs/pintu.json
View file @
7a44cb45
This diff is collapsed.
Click to expand it.
src/custom/pintu/debug/main.js
View file @
7a44cb45
...
@@ -209,11 +209,21 @@
...
@@ -209,11 +209,21 @@
case
3
:
case
3
:
l
++
;
l
++
;
return
[
3
,
1
];
return
[
3
,
1
];
case
4
:
return
[
2
];
case
4
:
this
.
removeSelectImg
();
return
[
2
];
}
}
});
});
});
});
};
};
GameView
.
prototype
.
removeSelectImg
=
function
()
{
if
(
this
.
selectimg3
)
{
this
.
blockcont
.
removeChild
(
this
.
selectimg3
);
}
if
(
this
.
selectimg4
)
{
this
.
blockcont
.
removeChild
(
this
.
selectimg4
);
}
};
GameView
.
prototype
.
startfirst
=
function
()
{
GameView
.
prototype
.
startfirst
=
function
()
{
return
tslib
.
__awaiter
(
this
,
void
0
,
void
0
,
function
()
{
return
tslib
.
__awaiter
(
this
,
void
0
,
void
0
,
function
()
{
var
actidx
,
tex
,
type1
,
result
,
res
,
picarr
,
mwid
,
mhei
,
picnames
,
gap
,
r
,
c
,
ipicx
,
ipicy
,
npicname
,
ipic
,
rl
,
cl
;
var
actidx
,
tex
,
type1
,
result
,
res
,
picarr
,
mwid
,
mhei
,
picnames
,
gap
,
r
,
c
,
ipicx
,
ipicy
,
npicname
,
ipic
,
rl
,
cl
;
...
@@ -223,6 +233,7 @@
...
@@ -223,6 +233,7 @@
this
.
dicont
.
removeChildren
();
this
.
dicont
.
removeChildren
();
this
.
movesteps
=
0
;
this
.
movesteps
=
0
;
this
.
startime
=
Date
.
now
();
this
.
startime
=
Date
.
now
();
this
.
removeSelectImg
();
actidx
=
0
;
actidx
=
0
;
this
.
gametime
=
this
.
gameTimes
[
actidx
];
this
.
gametime
=
this
.
gameTimes
[
actidx
];
this
.
showtime
=
this
.
gameTimes
[
actidx
];
this
.
showtime
=
this
.
gameTimes
[
actidx
];
...
@@ -313,6 +324,7 @@
...
@@ -313,6 +324,7 @@
this
.
dicont
.
removeChildren
();
this
.
dicont
.
removeChildren
();
this
.
movesteps
=
0
;
this
.
movesteps
=
0
;
this
.
startime
=
Date
.
now
();
this
.
startime
=
Date
.
now
();
this
.
removeSelectImg
();
actidx
=
props
.
actidx
;
actidx
=
props
.
actidx
;
this
.
gametime
=
this
.
gameTimes
[
actidx
];
this
.
gametime
=
this
.
gameTimes
[
actidx
];
this
.
showtime
=
this
.
gameTimes
[
actidx
];
this
.
showtime
=
this
.
gameTimes
[
actidx
];
...
@@ -540,6 +552,7 @@
...
@@ -540,6 +552,7 @@
};
};
return
GameView
;
return
GameView
;
}(
engine
.
Container
));
}(
engine
.
Container
));
//# sourceMappingURL=GameView.js.map
var
GameWrapper
=
(
function
(
_super
)
{
var
GameWrapper
=
(
function
(
_super
)
{
tslib
.
__extends
(
GameWrapper
,
_super
);
tslib
.
__extends
(
GameWrapper
,
_super
);
...
...
src/custom/pintu/debug/main.js.map
View file @
7a44cb45
This diff is collapsed.
Click to expand it.
src/custom/pintu/src/game/GameView.ts
View file @
7a44cb45
...
@@ -86,11 +86,22 @@ export default class GameView extends engine.Container {
...
@@ -86,11 +86,22 @@ export default class GameView extends engine.Container {
}
}
}
}
this
.
removeSelectImg
();
}
removeSelectImg
(){
if
(
this
.
selectimg3
){
this
.
blockcont
.
removeChild
(
this
.
selectimg3
);
}
if
(
this
.
selectimg4
){
this
.
blockcont
.
removeChild
(
this
.
selectimg4
);
}
}
}
async
startfirst
(){
async
startfirst
(){
this
.
dicont
.
removeChildren
();
this
.
dicont
.
removeChildren
();
this
.
movesteps
=
0
;
this
.
movesteps
=
0
;
this
.
startime
=
Date
.
now
();
this
.
startime
=
Date
.
now
();
this
.
removeSelectImg
();
let
actidx
=
0
;
let
actidx
=
0
;
this
.
gametime
=
this
.
gameTimes
[
actidx
];
this
.
gametime
=
this
.
gameTimes
[
actidx
];
...
@@ -182,6 +193,7 @@ export default class GameView extends engine.Container {
...
@@ -182,6 +193,7 @@ export default class GameView extends engine.Container {
this
.
dicont
.
removeChildren
();
this
.
dicont
.
removeChildren
();
this
.
movesteps
=
0
;
this
.
movesteps
=
0
;
this
.
startime
=
Date
.
now
();
this
.
startime
=
Date
.
now
();
this
.
removeSelectImg
();
let
actidx
=
props
.
actidx
;
let
actidx
=
props
.
actidx
;
this
.
gametime
=
this
.
gameTimes
[
actidx
];
this
.
gametime
=
this
.
gameTimes
[
actidx
];
...
...
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