Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
Sbox_FT_08
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
template admin
Sbox_FT_08
Commits
ea23c04c
Commit
ea23c04c
authored
Dec 21, 2021
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 闪屏调试
parent
3ff863a6
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
588 additions
and
0 deletions
+588
-0
GameLogic.js
assets/Sbox_FT_08/script/GameLogic.js
+9
-0
yarn.lock
yarn.lock
+579
-0
No files found.
assets/Sbox_FT_08/script/GameLogic.js
View file @
ea23c04c
...
...
@@ -743,6 +743,9 @@ export default class GameLogic {
}
snowing
(
time
=
5000
)
{
console
.
log
(
'
in snowing 1
'
)
const
parent
=
this
.
g_cartoon
.
getCartoonElement
(
"
snow_container
"
)
const
downHeigth
=
parent
.
node
.
height
/
2
+
50
console
.
log
(
downHeigth
,
this
.
g_systemOption
.
mapScaleMax
)
...
...
@@ -759,10 +762,16 @@ export default class GameLogic {
return
node
;
}
console
.
log
(
'
in snowing 2
'
)
const
downTime
=
Math
.
ceil
((
cc
.
winSize
.
height
/
100
)
*
1000
)
/
1000
console
.
log
(
downTime
)
this
.
intervalID
=
setInterval
(()
=>
{
console
.
log
(
'
in snowing 3
'
)
let
snow
=
getSnow
(
Math
.
ceil
(
Math
.
random
()
*
4
)
)
// this.g_cartoon.tweenChange(snow, {y: -cc.winSize.height / 2}, downTime)
cc
.
tween
(
snow
).
to
(
downTime
,
{
y
:
-
cc
.
winSize
.
height
/
2
}).
call
(()
=>
snow
.
destroy
()).
start
()
...
...
yarn.lock
0 → 100644
View file @
ea23c04c
This diff is collapsed.
Click to expand it.
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