Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
crazyflirt
Project
Overview
Details
Activity
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
Shawn Wang
crazyflirt
Commits
21281ef2
Commit
21281ef2
authored
May 06, 2018
by
Shawn Wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
65c2ac66
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
2 deletions
+17
-2
blood.jpg
fe/resource/assets/blood.jpg
+0
-0
default.res.json
fe/resource/default.res.json
+7
-1
RoomScene.ts
fe/src/scenes/RoomScene.ts
+10
-1
No files found.
fe/resource/assets/blood.jpg
0 → 100644
View file @
21281ef2
1.55 KB
fe/resource/default.res.json
View file @
21281ef2
{
{
"groups"
:
[
"groups"
:
[
{
{
"keys"
:
"bg_jpg,egret_icon_png,description_json,control_jpg,grid_jpg,logo_jpg,mask_jpg,grid_select_jpg,lighting_jpg,prop_heart_jpg,prop_light_jpg,catched_0_mp3,catched_1_mp3,catched_2_mp3,flirt_mp3,avatar_bg_jpg,bgm_mp3,transition_catcher_jpg,transition_runner_jpg"
,
"keys"
:
"bg_jpg,egret_icon_png,description_json,control_jpg,grid_jpg,logo_jpg,mask_jpg,grid_select_jpg,lighting_jpg,prop_heart_jpg,prop_light_jpg,catched_0_mp3,catched_1_mp3,catched_2_mp3,flirt_mp3,avatar_bg_jpg,bgm_mp3,transition_catcher_jpg,transition_runner_jpg
,blood_jpg
"
,
"name"
:
"preload"
"name"
:
"preload"
}
}
],
],
...
@@ -100,6 +100,11 @@
...
@@ -100,6 +100,11 @@
"name"
:
"transition_runner_jpg"
,
"name"
:
"transition_runner_jpg"
,
"type"
:
"image"
,
"type"
:
"image"
,
"url"
:
"assets/transition_runner.jpg"
"url"
:
"assets/transition_runner.jpg"
},
{
"name"
:
"blood_jpg"
,
"type"
:
"image"
,
"url"
:
"assets/blood.jpg"
}
}
]
]
}
}
\ No newline at end of file
fe/src/scenes/RoomScene.ts
View file @
21281ef2
...
@@ -21,6 +21,15 @@ class RoomScene extends egret.Sprite {
...
@@ -21,6 +21,15 @@ class RoomScene extends egret.Sprite {
// sound.play();
// sound.play();
// put display object to this scene
// put display object to this scene
let
tipsLabel
=
new
egret
.
TextField
()
tipsLabel
.
width
=
1334
tipsLabel
.
y
=
750
-
50
tipsLabel
.
x
=
1334
/
2
tipsLabel
.
anchorOffsetX
=
400
tipsLabel
.
size
=
21
tipsLabel
.
text
=
"提示 : 一名成员将会随机成为 '迷雾撩手' 夺取其他成员的 ❤, 其它成员需要避免被撩"
this
.
addChild
(
tipsLabel
)
}
}
public
update
(
data
)
{
public
update
(
data
)
{
...
@@ -64,7 +73,7 @@ class RoomScene extends egret.Sprite {
...
@@ -64,7 +73,7 @@ class RoomScene extends egret.Sprite {
}
}
if
(
this
.
startLabel
.
text
==
'Go!'
)
{
if
(
this
.
startLabel
.
text
==
'Go!'
)
{
clearInterval
(
timer
)
clearInterval
(
timer
)
const
bg
=
Store
.
isCatcher
?
this
.
transition_catcher_jpg
:
this
.
transition_runner_jpg
const
bg
=
Store
.
isCatcher
()
?
this
.
transition_catcher_jpg
:
this
.
transition_runner_jpg
this
.
showTransition
(
bg
,
()
=>
{
this
.
showTransition
(
bg
,
()
=>
{
SceneManager
.
getInstance
().
changeScene
(
'gameScene'
)
SceneManager
.
getInstance
().
changeScene
(
'gameScene'
)
})
})
...
...
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