Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xiaoxiaole
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
wildfirecode13
xiaoxiaole
Commits
7feb0c46
Commit
7feb0c46
authored
Nov 04, 2019
by
邱旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
901e7037
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
MapScene.ts
egret/src/mapScene/MapScene.ts
+1
-1
RainMgr.ts
egret/src/panels/HongbaoRain/RainMgr.ts
+5
-3
RainObj.ts
egret/src/panels/HongbaoRain/RainObj.ts
+1
-0
No files found.
egret/src/mapScene/MapScene.ts
View file @
7feb0c46
...
...
@@ -91,7 +91,7 @@ export default class MapScene extends Scene {
this
.
sendInvite
();
PanelCtrl
.
instance
.
show
(
"HbGame"
);
//
PanelCtrl.instance.show("HbGame");
this
.
updateMyInfo
();
this
.
updateAdData
();
...
...
egret/src/panels/HongbaoRain/RainMgr.ts
View file @
7feb0c46
...
...
@@ -41,8 +41,8 @@ export default class RainMgr {
}
private
addRain
()
{
let
num
=
Utils
.
RandomInt
(
3
,
5
);
for
(
let
i
=
0
;
i
<
Utils
.
RandomInt
(
3
,
5
)
;
i
++
)
{
let
num
=
Utils
.
RandomInt
(
3
,
6
);
for
(
let
i
=
0
;
i
<
num
;
i
++
)
{
let
newRainObj
=
this
.
rainPool
.
get
();
if
(
!
newRainObj
)
{
newRainObj
=
new
RainObj
({
...
...
@@ -51,7 +51,9 @@ export default class RainMgr {
pool
:
this
.
rainPool
,
});
}
newRainObj
.
addStage
((
this
.
rainGroup
.
width
-
200
)
/
num
*
i
+
100
,
Utils
.
RandomInt
(
7
,
10
)
/
10
);
setTimeout
(()
=>
{
newRainObj
.
addStage
((
this
.
rainGroup
.
width
)
/
num
*
i
+
100
,
Utils
.
RandomInt
(
7
,
10
)
/
10
);
},
Utils
.
RandomInt
(
0
,
6
)
*
100
);
}
}
...
...
egret/src/panels/HongbaoRain/RainObj.ts
View file @
7feb0c46
...
...
@@ -17,6 +17,7 @@ export default class RainObj {
public
addStage
(
x
,
scale
)
{
this
.
module
.
x
=
x
;
console
.
log
(
x
);
this
.
module
.
y
=
-
200
;
this
.
module
.
scaleX
=
this
.
module
.
scaleY
=
scale
;
this
.
module
.
visible
=
true
;
...
...
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