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
0a5b6941
Commit
0a5b6941
authored
Jun 26, 2019
by
18신대성
Committed by
16이지혜
Jun 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inputfield 보이게 함, Input WIP
parent
f3997713
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
5 deletions
+11
-5
inputFieldBackground.png
assets/inputFieldBackground.png
+0
-0
index.html
index.html
+2
-1
Input.js
js/Input.js
+7
-4
main.js
js/main.js
+2
-0
No files found.
assets/inputFieldBackground.png
0 → 100644
View file @
0a5b6941
1.48 KB
index.html
View file @
0a5b6941
...
@@ -4,7 +4,8 @@
...
@@ -4,7 +4,8 @@
<meta
charset=
"utf-8"
/>
<meta
charset=
"utf-8"
/>
<script
src=
"/socket.io/socket.io.js"
></script>
<script
src=
"/socket.io/socket.io.js"
></script>
<script
src=
"js/phaser.js"
></script>
<script
src=
"js/phaser.js"
></script>
<script
src=
"js/Background.js"
></script>
<script
src=
"js/Background.js"
></script>
]
<script
src=
"js/Input.js"
></script>
<script
src=
"js/WordSpace.js"
></script>
<script
src=
"js/WordSpace.js"
></script>
<script
src=
"js/WordObject.js"
></script>
<script
src=
"js/WordObject.js"
></script>
</head>
</head>
...
...
js/Input.js
View file @
0a5b6941
...
@@ -15,10 +15,13 @@ Input.convert = function()
...
@@ -15,10 +15,13 @@ Input.convert = function()
Input
.
inputField
=
Input
.
inputField
=
{
{
background
:
null
,
generate
:
function
(
scene
)
text
:
null
,
init
:
function
()
{
{
this
.
background
=
scene
.
add
.
sprite
(
400
,
500
,
'
inputFieldBackground
'
).
setScale
(
0.2
);
this
.
text
=
scene
.
add
.
text
(
400
,
500
,
"
안녕하세요
"
,
{
font
:
'
15pt 궁서
'
}).
setOrigin
(
0.5
,
0.5
).
setColor
(
'
#000000
'
);
},
loadImage
:
function
(
scene
)
{
scene
.
load
.
image
(
'
inputFieldBackground
'
,
'
assets/inputFieldBackground.png
'
);
}
}
}
}
\ No newline at end of file
js/main.js
View file @
0a5b6941
...
@@ -23,11 +23,13 @@ function preload()
...
@@ -23,11 +23,13 @@ function preload()
{
{
BackGround
.
loadImage
(
this
);
BackGround
.
loadImage
(
this
);
WordSpace
.
loadImage
(
this
);
WordSpace
.
loadImage
(
this
);
Input
.
inputField
.
loadImage
(
this
);
}
}
function
create
()
function
create
()
{
{
BackGround
.
drawBrain
(
this
);
BackGround
.
drawBrain
(
this
);
Input
.
inputField
.
generate
(
this
);
WordSpace
.
wordPhysicsGroup
=
this
.
physics
.
add
.
group
();
WordSpace
.
wordPhysicsGroup
=
this
.
physics
.
add
.
group
();
WordSpace
.
resetCycle
(
this
,
2000
);
WordSpace
.
resetCycle
(
this
,
2000
);
}
}
...
...
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