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
97cd3ad1
Commit
97cd3ad1
authored
Oct 22, 2018
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
f5607a43
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
doStart.ts
egret/libs/new_tw/ctrls/doStart.ts
+1
-1
Kids.ts
egret/src/startScene/view/Kids.ts
+6
-2
No files found.
egret/libs/new_tw/ctrls/doStart.ts
View file @
97cd3ad1
...
@@ -9,7 +9,7 @@ import { DataManager } from "../../../libs/tw/manager/DataManager";
...
@@ -9,7 +9,7 @@ import { DataManager } from "../../../libs/tw/manager/DataManager";
* @param customizedType
* @param customizedType
*/
*/
const
doStart
=
(
callback
:
Function
,
isAgain
=
false
,
credits
?:
number
,
customizedType
?:
number
)
=>
{
const
doStart
=
(
callback
:
Function
,
isAgain
=
false
,
credits
?:
number
,
customizedType
?:
number
)
=>
{
if
(
window
[
'requirelogin'
])
{
if
(
window
[
'requirelogin'
]
&&
window
[
'config_notrequirelogin'
]
===
undefined
)
{
window
[
'requirelogin'
]();
window
[
'requirelogin'
]();
return
;
return
;
}
}
...
...
egret/src/startScene/view/Kids.ts
View file @
97cd3ad1
...
@@ -20,8 +20,12 @@ export default class Kids extends egret.Sprite {
...
@@ -20,8 +20,12 @@ export default class Kids extends egret.Sprite {
doAction
()
{
doAction
()
{
const
speed
=
200
;
const
speed
=
200
;
egret
.
Tween
.
get
(
this
.
boyhand
).
to
({
rotation
:
-
50
},
speed
).
to
({
rotation
:
0
},
speed
);
if
(
this
.
boyhand
)
{
egret
.
Tween
.
get
(
this
.
girlhand
).
to
({
rotation
:
50
},
speed
).
to
({
rotation
:
0
},
speed
);
egret
.
Tween
.
get
(
this
.
boyhand
).
to
({
rotation
:
-
50
},
speed
).
to
({
rotation
:
0
},
speed
);
}
if
(
this
.
girlhand
)
{
egret
.
Tween
.
get
(
this
.
girlhand
).
to
({
rotation
:
50
},
speed
).
to
({
rotation
:
0
},
speed
);
}
}
}
addPic
(
picData
:
egret
.
SpriteSheet
,
key
:
string
,
x
=
0
,
y
=
0
,
anchorOffsetX
=
0
,
anchorOffsetY
=
0
)
{
addPic
(
picData
:
egret
.
SpriteSheet
,
key
:
string
,
x
=
0
,
y
=
0
,
anchorOffsetX
=
0
,
anchorOffsetY
=
0
)
{
...
...
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