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
347e52db
Commit
347e52db
authored
Jun 26, 2019
by
18신대성
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
시즌1호 머지
parent
d29662e9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
51 deletions
+14
-51
index.html
index.html
+2
-8
Word.js
js/Word.js
+0
-28
WordObject.js
js/WordObject.js
+7
-7
main.js
js/main.js
+5
-8
No files found.
index.html
View file @
347e52db
...
...
@@ -2,17 +2,11 @@
<html>
<head>
<meta
charset=
"utf-8"
/>
<
<<<<<<
HEAD
<script
src=
"/socket.io/socket.io.js"
></script>
<script
src=
"js/phaser.js"
></script>
<script
src=
"js/Background.js"
></script>
<script
src=
"js/Word.js"
></script>
=======
<script
src=
"script/phaser.js"
></script>
<script
src=
"script/Background.js"
></script>
<script
src=
"script/WordSpace.js"
></script>
<script
src=
"script/WordObject.js"
></script>
>>>>>>> word
<script
src=
"js/WordSpace.js"
></script>
<script
src=
"js/WordObject.js"
></script>
</head>
<body>
<script
src=
"js/Main.js"
></script>
...
...
js/Word.js
deleted
100644 → 0
View file @
d29662e9
class
Word
{
constructor
(
text
)
{
this
.
wordText
=
text
;
}
generate
(
scene
)
{
scene
.
add
.
text
(
400
,
300
,
this
.
wordText
,
{
fontFamily
:
'
"궁서", 궁서체, serif
'
}).
setBackgroundColor
(
'
#FF00FF
'
);
}
}
/*
function Word()
{
this.wordText = '임시텍스트';
}
Word.prototype.generate = function(scene)
{
myText = scene.add.text(400,300, this.wordText, {fontFamily: '"궁서", 궁서체, serif'}).setBackgroundColor('#FF00FF');
}
Word.prototype.delete = function()
{
}*/
\ No newline at end of file
js/WordObject.js
View file @
347e52db
...
...
@@ -46,17 +46,17 @@ class WordObject
{
return
this
.
wordWeight
;
}
}
//***********ToDo*************
WordObject
.
isEqual
(
inputWord
)
{
if
(
inputWord
===
this
.
wordText
)
//***********ToDo*************
isEqual
(
inputWord
)
{
this
.
destroy
();
if
(
inputWord
===
this
.
wordText
)
{
this
.
destroy
();
}
}
//****************************
}
//****************************
function
firstSound
(
charText
)
{
...
...
js/main.js
View file @
347e52db
...
...
@@ -52,17 +52,14 @@ function create()
function
update
()
{
var
socket
=
io
.
connect
();
socket
.
on
(
'
hi
'
,
function
(
msg
)
{
console
.
log
(
msg
);
});
socket
.
emit
(
'
hello
'
);
for
(
i
=
0
;
i
<
WordSpace
.
wordGroup
.
length
;
i
++
)
{
WordSpace
.
wordGroup
[
i
].
attract
(
0.3
);
}
}
var
socket
=
io
.
connect
();
socket
.
on
(
'
hi
'
,
function
(
msg
)
{
console
.
log
(
msg
);
});
socket
.
emit
(
'
hello
'
);
\ No newline at end of file
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