Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sejong25
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Tear of Sejong
sejong25
Commits
4f1d3e52
Commit
4f1d3e52
authored
Jul 03, 2019
by
Chae Ho Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
공격게이지 색바뀜
parent
6a1dca8b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
WordSpace.js
js/WordSpace.js
+11
-3
No files found.
js/WordSpace.js
View file @
4f1d3e52
...
...
@@ -102,22 +102,31 @@ WordSpace.GetPlayerTypingRate = function()
WordSpace
.
attackGauge
=
{
value
:
0
,
gradeColor
:
[
'
#000000
'
,
'
#000000
'
,
'
#000000
'
,
'
#000000
'
,
'
#000000
'
],
gradeColor
:
[
'
#111124
'
,
'
#EBB435
'
,
'
#A42FFF
'
,
'
#1D22EB
'
,
'
#83947F
'
],
setRect
:
function
()
{
this
.
rectUI
.
setSize
(
20
*
this
.
value
,
11
);
this
.
rectUI
.
setPosition
(
640
-
10
*
this
.
value
,
597
);
let
tmp
=
this
.
getAttackOption
();
this
.
rectUI
.
setFillStyle
(
Phaser
.
Display
.
Color
.
HexStringToColor
(
this
.
gradeColor
[
tmp
.
wordGrade
+
1
]).
color
);
},
generate
:
function
(
scene
)
{
console
.
log
(
"
created
"
);
this
.
rectUI
=
scene
.
add
.
rectangle
(
640
,
580
,
0
,
20
,
this
.
gradeColor
[
0
]
);
this
.
rectUI
=
scene
.
add
.
rectangle
(
640
,
600
,
0
,
11
).
setDepth
(
11
);
},
add
:
function
(
plus
)
{
if
(
this
.
value
+
plus
>
11
)
this
.
value
=
11
;
else
this
.
value
+=
plus
;
this
.
setRect
();
this
.
text
.
setText
(
'
게이지:
'
+
this
.
value
.
toFixed
(
1
));
},
sub
:
function
(
minus
)
{
if
(
this
.
value
-
minus
<
0
)
this
.
value
=
0
;
else
this
.
value
-=
minus
;
this
.
setRect
();
this
.
text
.
setText
(
'
게이지:
'
+
this
.
value
.
toFixed
(
1
));
},
resetValue
:
function
()
{
this
.
value
=
0
;},
...
...
@@ -137,7 +146,6 @@ WordSpace.attackGauge =
this
.
text
=
scene
.
add
.
text
(
100
,
100
,
'
게이지:
'
+
this
.
value
.
toFixed
(
1
)).
setDepth
(
10
).
setColor
(
'
#000000
'
);
//this.rectUI.setColor(this.gradeColor[0]);
this
.
rectUI
.
setSize
(
this
.
rectUI
.
width
,
this
.
value
*
20
);
},
pauseCycle
:
function
(
bool
)
{
this
.
currentCycle
.
paused
=
bool
;},
// showValue: 아래쪽에 바의 길이로 게이지 표시, 색으로 게이지의 강도 표현
...
...
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