Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wfc13
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
wildfirecode13
wfc13
Commits
85b12b63
Commit
85b12b63
authored
Aug 11, 2021
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
u
parent
320d8b30
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
866 deletions
+33
-866
index.html
project/index.html
+2
-2
ResJson.ts
project/src/ResJson.ts
+14
-854
NewbieScene.ts
project/src/scenes/NewbieScene.ts
+17
-10
No files found.
project/index.html
View file @
85b12b63
...
...
@@ -67,8 +67,8 @@
</script>
<!-- 构建的js -->
<
!-- <script src="output.js" crossorigin="anonymous"></script> --
>
<
script
src=
"https://yun.duiba.com.cn/db_games/activity/template/1628646732/output.js"
crossorigin=
"anonymous"
></script
>
<
script
src=
"output.js"
crossorigin=
"anonymous"
></script
>
<
!-- <script src="https://yun.duiba.com.cn/db_games/activity/template/1628646732/output.js" crossorigin="anonymous"></script> --
>
...
...
project/src/ResJson.ts
View file @
85b12b63
This diff is collapsed.
Click to expand it.
project/src/scenes/NewbieScene.ts
View file @
85b12b63
...
...
@@ -51,7 +51,7 @@ export class NewbieScene extends Scene {
opensvga
.
mouseChildren
=
opensvga
.
mouseEnable
=
false
;
layers
.
topLayer
.
addChild
(
opensvga
);
opensvga
.
startAniRange
(
1
,
opensvga
.
totalFrames
,
1
,
()
=>
{
FYGE
.
Tween
.
get
(
opensvga
).
to
({
alpha
:
0
},
200
).
call
(()
=>
{
layers
.
topLayer
.
removeChild
(
opensvga
);
})
FYGE
.
Tween
.
get
(
opensvga
).
to
({
alpha
:
0
},
200
).
call
(()
=>
{
layers
.
topLayer
.
removeChild
(
opensvga
);
})
});
const
func
=
()
=>
{
if
(
opensvga
.
currentFrame
==
70
)
{
...
...
@@ -70,7 +70,8 @@ export class NewbieScene extends Scene {
}
onClick_openBtn
()
{
FYGE
.
Tween
.
removeTweens
(
getObject
(
this
,
'newbie_open'
))
FYGE
.
Tween
.
removeTweens
(
this
.
newbie_open
);
this
.
newbie_open
.
stop
();
this
.
openPrize
()
}
...
...
@@ -80,11 +81,17 @@ export class NewbieScene extends Scene {
initUi
()
{
super
.
initUi
();
const
oldbtn
=
getObject
(
this
,
'newbie_open'
);
oldbtn
.
visible
=
false
;
const
newbie_open
=
new
FYGE
.
MovieClip
(
RES
.
getRes
(
'start.svga'
));
newbie_open
.
position
.
set
(
oldbtn
.
x
+
10
,
oldbtn
.
y
);
this
.
addChild
(
newbie_open
);
this
.
newbie_open
=
newbie_open
;
const
layer
=
new
FYGE
.
Sprite
;
layer
.
mouseEnable
=
layer
.
mouseChildren
=
false
;
this
.
addChild
(
layer
);
sendWebNet
(
WebNetName
.
carouselInfo
).
then
(
res
=>
{
const
template
=
'{phone}邀请了1位好友,获得了{amount}体验金'
;
...
...
@@ -103,28 +110,28 @@ export class NewbieScene extends Scene {
indexsvga
.
mouseChildren
=
indexsvga
.
mouseEnable
=
false
;
this
.
addChild
(
indexsvga
);
this
.
addChild
(
getObject
(
this
,
'newbie_pic2'
));
this
.
addChild
(
getObject
(
this
,
'newbie_pic2'
));
const
newbie_open
=
getObject
(
this
,
'newbie_open'
);
newbie_open
.
anchorX
=
408
/
2
;
newbie_open
.
anchorY
=
158
/
2
;
FYGE
.
Tween
.
get
(
newbie_open
,{
loop
:
true
}).
to
({
scaleX
:
1.1
,
scaleY
:
1.1
},
500
).
to
({
scaleX
:
1
,
scaleY
:
1
},
500
)
this
.
newbie_open
.
anchorX
=
400
/
2
;
this
.
newbie_open
.
anchorY
=
150
/
2
;
FYGE
.
Tween
.
get
(
this
.
newbie_open
,
{
loop
:
true
}).
to
({
scaleX
:
1.1
,
scaleY
:
1.1
},
500
).
to
({
scaleX
:
1
,
scaleY
:
1
},
500
)
}
initEvents
()
{
super
.
initEvents
();
watchPageVisibility
(
this
.
onPageVisibilityChange
);
getObject
(
this
,
'newbie_open'
)
.
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
this
.
onClick_openBtn
,
this
);
this
.
newbie_open
.
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
this
.
onClick_openBtn
,
this
);
getObject
(
this
,
'newbie_rule'
).
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
this
.
onClick_ruleBtn
,
this
);
}
removeEvents
()
{
super
.
removeEvents
();
unwatchPageVisibility
(
this
.
onPageVisibilityChange
)
getObject
(
this
,
'newbie_open'
)
.
removeEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
this
.
onClick_openBtn
,
this
);
this
.
newbie_open
.
removeEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
this
.
onClick_openBtn
,
this
);
getObject
(
this
,
'newbie_rule'
).
removeEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
this
.
onClick_ruleBtn
,
this
);
}
newbie_open
:
FYGE
.
MovieClip
;
get
groupNames
()
{
return
[
"newbie"
]
}
get
skinName
()
{
return
"newbie"
}
...
...
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