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
a40cdddf
Commit
a40cdddf
authored
Aug 15, 2019
by
18손재민
Browse files
Options
Browse Files
Download
Plain Diff
시즌 16호 머지
parents
4f200897
e637732e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
7 deletions
+16
-7
FirebaseClient.js
js/FirebaseClient.js
+1
-4
ScenesData.js
js/ScenesData.js
+13
-2
UIObject.js
js/UIObject.js
+2
-1
No files found.
js/FirebaseClient.js
View file @
a40cdddf
...
...
@@ -266,10 +266,7 @@ class UserData
this
.
userName
=
prompt
(
"
유저의 이름을 입력해주세요.
"
);
this
.
exp
=
0
;
this
.
rank
=
-
1
;
this
.
hopae
=
[
{
name
:
prompt
(
"
첫번째 호패의 닉네임을 입력해주세요.
\n
(반드시 한글만 사용해주세요 띄어쓰기도 금지)
"
),
type
:
'
wood
'
}
];
this
.
hopae
=
[];
this
.
recentHopae
=
null
;
this
.
title
=
[];
this
.
money
=
0
;
...
...
js/ScenesData.js
View file @
a40cdddf
...
...
@@ -36,6 +36,13 @@ var menuScene = new Phaser.Class(
{
BackGround
.
drawBackground
(
this
);
Audio
.
loopSound
(
this
,
'
login
'
);
console
.
log
(
PlayerData
.
userData
.
hopae
);
if
(
PlayerData
.
userData
.
hopae
===
undefined
||
PlayerData
.
userData
.
hopae
.
length
==
0
)
{
ScenesData
.
changeScene
(
'
hopaeScene
'
);
PlayerData
.
userData
.
money
+=
1
;
return
;
}
PlayerData
.
currentHopae
=
(
PlayerData
.
userData
.
recentHopae
==
null
)
?
PlayerData
.
userData
.
hopae
[
0
]
:
PlayerData
.
userData
.
recentHopae
;
PlayerData
.
nickname
=
PlayerData
.
currentHopae
.
name
;
...
...
@@ -214,6 +221,9 @@ var hopaeScene = new Phaser.Class(
Input
.
inputField
.
generate
(
this
,
function
(){},
UIObject
.
createLabel
(
this
,
game
.
config
.
width
/
2
,
game
.
config
.
height
/
2
,
10
,
'
nameBgr6
'
,
2
,
'
center
'
,
''
,
50
,
'
#ffffff
'
).
getElement
(
'
text
'
).
setOrigin
(
0.45
,
0.5
),
true
);
UIObject
.
createLabel
(
this
,
game
.
config
.
width
/
2
,
game
.
config
.
height
/
2
-
200
,
2
,
'
panel
'
,
1
,
'
center
'
,
'
호패는 오직 한글만 입력이 가능합니다.
\n
띄어쓰기도 사용할 수 없습니다.
'
,
50
,
'
#000000
'
).
layout
();
this
.
checkDialog
=
this
.
rexUI
.
add
.
dialog
({
x
:
game
.
config
.
width
/
2
,
...
...
@@ -221,9 +231,10 @@ var hopaeScene = new Phaser.Class(
background
:
this
.
add
.
sprite
(
game
.
config
.
width
/
2
,
game
.
config
.
height
/
2
,
'
panel
'
).
setOrigin
(
0.5
,
0.5
),
content
:
this
.
add
.
text
(
0
,
0
,
'
이 이름으로 하시겠습니까?
\n
변경에는 엽전이 소모됩니다.
'
,
{
content
:
this
.
add
.
text
(
0
,
0
,
'
이 이름으로 하시겠습니까?
'
+
(
PlayerData
.
userData
.
hopae
==
undefined
?
'
\n
(최초 호패는 비용이 들지 않습니다.)
'
:
'
\n
변경에는 엽전이 소모됩니다.
'
)
,
{
font
:
'
50pt 궁서
'
,
color
:
'
#000000
'
color
:
'
#000000
'
,
align
:
'
center
'
}),
actions
:
[
...
...
js/UIObject.js
View file @
a40cdddf
...
...
@@ -10,7 +10,8 @@ UIObject.createLabel = function (scene, x, y, depth, image, size, align, text =
background
:
scene
.
add
.
sprite
(
x
,
y
,
image
).
setScale
(
size
).
setOrigin
(
0.5
,
0.5
).
setDepth
(
depth
),
text
:
scene
.
add
.
text
(
x
,
y
,
text
,
{
font
:
textSize
+
'
pt 궁서
'
font
:
textSize
+
'
pt 궁서
'
,
align
:
'
center
'
}).
setDepth
(
depth
).
setOrigin
(
textOriginX
,
textOriginY
).
setColor
(
textColor
),
space
:
{
...
...
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