Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
db-game-template
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
崔立强
db-game-template
Commits
46605339
Commit
46605339
authored
Nov 11, 2020
by
huangwenjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复
parent
ddd08f47
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
12 deletions
+23
-12
settings.json
.vscode/settings.json
+4
-0
build.js
build.js
+2
-1
index.html
egret/index.html
+1
-1
publish.js
egret/publish.js
+2
-2
PlayScene.ts
egret/src/playScene/PlayScene.ts
+14
-8
No files found.
.vscode/settings.json
0 → 100644
View file @
46605339
{
"editor.snippetSuggestions"
:
"bottom"
,
"editor.suggest.snippetsPreventQuickSuggestions"
:
false
}
\ No newline at end of file
build.js
View file @
46605339
...
@@ -8,7 +8,8 @@ let build = new DBGBuild(config);
...
@@ -8,7 +8,8 @@ let build = new DBGBuild(config);
if
(
cmd
===
'build'
&&
process
.
argv
[
3
]
===
'prod'
)
{
if
(
cmd
===
'build'
&&
process
.
argv
[
3
]
===
'prod'
)
{
// if (cmd === 'build' && remain[1] === 'prod') {
// if (cmd === 'build' && remain[1] === 'prod') {
cmd
=
'buildProd'
;
// cmd = 'buildProd';
cmd
=
'notinypng'
;
if
(
process
.
argv
[
4
]
===
'ts'
)
if
(
process
.
argv
[
4
]
===
'ts'
)
cmd
=
'buildProdTS'
;
cmd
=
'buildProdTS'
;
if
(
process
.
argv
[
4
]
===
'exml'
)
if
(
process
.
argv
[
4
]
===
'exml'
)
...
...
egret/index.html
View file @
46605339
...
@@ -78,7 +78,7 @@
...
@@ -78,7 +78,7 @@
<script
src=
"libs/downloadApp.js"
></script>
<script
src=
"libs/downloadApp.js"
></script>
<script>
<script>
// 游戏速度 1-10 默认5
// 游戏速度 1-10 默认5
window
[
"speed"
]
=
2
;
window
[
"speed"
]
=
5
;
// 难度比率
// 难度比率
window
[
'speedRate'
]
=
0.5
;
window
[
'speedRate'
]
=
0.5
;
// 赚积分链接
// 赚积分链接
...
...
egret/publish.js
View file @
46605339
...
@@ -24,8 +24,8 @@ class TuiaAutoUpload {
...
@@ -24,8 +24,8 @@ class TuiaAutoUpload {
var
_this
=
this
;
var
_this
=
this
;
this
.
client
=
new
OSS
({
this
.
client
=
new
OSS
({
region
:
'oss-cn-hangzhou'
,
region
:
'oss-cn-hangzhou'
,
accessKeyId
:
'LTAI
qO2wblIxQvwc
'
,
accessKeyId
:
'LTAI
4Fw25WcfcGv7FvcHoiHK
'
,
accessKeySecret
:
'
4brsaSRbRpjxw3oDIxJi6bNMcndIR6
'
,
accessKeySecret
:
'
NZk1NtT9J5HFaAolNbtQdzTzLLvLYm
'
,
bucket
:
_this
.
type
===
'prod'
?
'duiba'
:
'daily-duiba'
bucket
:
_this
.
type
===
'prod'
?
'duiba'
:
'daily-duiba'
});
});
this
.
bar
=
new
ProgressBar
(
chalk
.
yellow
(
` 文件上传中 [:bar] :current/
${
this
.
files
().
length
}
:percent :elapseds`
),
{
this
.
bar
=
new
ProgressBar
(
chalk
.
yellow
(
` 文件上传中 [:bar] :current/
${
this
.
files
().
length
}
:percent :elapseds`
),
{
...
...
egret/src/playScene/PlayScene.ts
View file @
46605339
...
@@ -191,6 +191,7 @@ export default class PlayScene extends Scene {
...
@@ -191,6 +191,7 @@ export default class PlayScene extends Scene {
this
.
removeEventListener
(
egret
.
TouchEvent
.
TOUCH_CANCEL
,
this
.
onEnd_guideEle
,
this
);
this
.
removeEventListener
(
egret
.
TouchEvent
.
TOUCH_CANCEL
,
this
.
onEnd_guideEle
,
this
);
this
.
removeEventListener
(
egret
.
TouchEvent
.
TOUCH_END
,
this
.
onEnd_guideEle
,
this
);
this
.
removeEventListener
(
egret
.
TouchEvent
.
TOUCH_END
,
this
.
onEnd_guideEle
,
this
);
if
(
this
.
guideTarget
)
{
if
(
this
.
guideTarget
)
{
this
.
guideTarget
.
scaling
=
true
egret
.
Tween
.
get
(
this
.
guideTarget
)
egret
.
Tween
.
get
(
this
.
guideTarget
)
.
to
({
scaleX
:
0
,
scaleY
:
0
},
200
)
.
to
({
scaleX
:
0
,
scaleY
:
0
},
200
)
.
call
(()
=>
{
.
call
(()
=>
{
...
@@ -549,10 +550,13 @@ export default class PlayScene extends Scene {
...
@@ -549,10 +550,13 @@ export default class PlayScene extends Scene {
this
.
currTarget
=
null
;
this
.
currTarget
=
null
;
})
})
}
else
{
}
else
{
this
.
currTargetBase
.
parent
.
scaleX
=
0
;
if
(
this
.
currTargetBase
.
parent
){
this
.
currTargetBase
.
parent
.
scaleY
=
0
;
this
.
currTargetBase
.
parent
.
scaleX
=
0
;
egret
.
Tween
.
get
(
this
.
currTargetBase
.
parent
)
this
.
currTargetBase
.
parent
.
scaleY
=
0
;
.
to
({
scaleX
:
1
,
scaleY
:
1
},
200
)
egret
.
Tween
.
get
(
this
.
currTargetBase
.
parent
)
.
to
({
scaleX
:
1
,
scaleY
:
1
},
200
)
}
this
.
currTargetBase
.
visible
=
true
;
this
.
currTargetBase
.
visible
=
true
;
egret
.
Tween
.
get
(
this
.
currTarget
)
egret
.
Tween
.
get
(
this
.
currTarget
)
.
to
({
scaleX
:
0
,
scaleY
:
0
},
200
)
.
to
({
scaleX
:
0
,
scaleY
:
0
},
200
)
...
@@ -583,10 +587,12 @@ export default class PlayScene extends Scene {
...
@@ -583,10 +587,12 @@ export default class PlayScene extends Scene {
}
}
anwserWrong
()
{
anwserWrong
()
{
this
.
currTargetBase
.
parent
.
scaleX
=
0
;
if
(
this
.
currTargetBase
.
parent
){
this
.
currTargetBase
.
parent
.
scaleY
=
0
;
this
.
currTargetBase
.
parent
.
scaleX
=
0
;
egret
.
Tween
.
get
(
this
.
currTargetBase
.
parent
)
this
.
currTargetBase
.
parent
.
scaleY
=
0
;
.
to
({
scaleX
:
1
,
scaleY
:
1
},
200
)
egret
.
Tween
.
get
(
this
.
currTargetBase
.
parent
)
.
to
({
scaleX
:
1
,
scaleY
:
1
},
200
)
}
this
.
currTargetBase
.
visible
=
true
;
this
.
currTargetBase
.
visible
=
true
;
this
.
currGamePool
.
forEach
(
garbage
=>
{
this
.
currGamePool
.
forEach
(
garbage
=>
{
...
...
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