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
36035482
Commit
36035482
authored
Jul 10, 2019
by
18손재민
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
이제 공격 단어 오타낼 경우 강호패가 공격자에게 감
parent
be184f3e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
GameServer.js
GameServer.js
+1
-1
Input.js
js/Input.js
+1
-2
WordSpace.js
js/WordSpace.js
+3
-3
No files found.
GameServer.js
View file @
36035482
var
GameServer
=
GameServer
||
{};
var
GameServer
=
GameServer
||
{};
GameServer
.
Phase
=
{
READY
:
0
,
START
:
1
,
MAIN
:
2
,
MUSIC
:
3
};
GameServer
.
Phase
=
{
READY
:
0
,
START
:
1
,
MAIN
:
2
,
MUSIC
:
3
};
GameServer
.
startCount
=
4
;
GameServer
.
startCount
=
2
;
GameServer
.
currentPlayer
=
[];
GameServer
.
currentPlayer
=
[];
GameServer
.
playingRoom
=
[];
GameServer
.
playingRoom
=
[];
...
...
js/Input.js
View file @
36035482
...
@@ -16,8 +16,7 @@ Input.gameSceneEnterReaction = function()
...
@@ -16,8 +16,7 @@ Input.gameSceneEnterReaction = function()
{
{
if
(
!
Input
.
isEntered
)
if
(
!
Input
.
isEntered
)
{
{
Input
.
convInput
=
Input
.
removeConVow
(
Input
.
convInput
);
if
(
Input
.
attackMode
)
WordSpace
.
attack
(
Input
.
removeConVow
(
Input
.
convInput
),
Input
.
attackOption
.
wordGrade
);
if
(
Input
.
attackMode
)
WordSpace
.
attack
(
Input
.
convInput
,
Input
.
attackOption
.
wordGrade
);
else
WordSpace
.
findWord
(
Input
.
convInput
);
else
WordSpace
.
findWord
(
Input
.
convInput
);
Input
.
reset
();
Input
.
reset
();
Input
.
isEntered
=
true
;
Input
.
isEntered
=
true
;
...
...
js/WordSpace.js
View file @
36035482
...
@@ -355,13 +355,13 @@ WordSpace.findWord = function(wordText)
...
@@ -355,13 +355,13 @@ WordSpace.findWord = function(wordText)
if
(
WordSpace
.
getEditDistance
(
wordText
,
element
.
wordText
)
==
minDist
)
if
(
WordSpace
.
getEditDistance
(
wordText
,
element
.
wordText
)
==
minDist
)
{
{
console
.
log
(
'
Attack word :
'
+
element
.
wordText
+
'
of
'
+
element
.
attacker
.
nickname
+
'
오타임
'
);
console
.
log
(
'
Attack word :
'
+
element
.
wordText
+
'
of
'
+
element
.
attacker
.
nickname
+
'
오타임
'
);
let
attacked
Data
=
let
victim
Data
=
{
{
roomNum
:
RoomData
.
roomNum
,
roomNum
:
RoomData
.
roomNum
,
victim
:
RoomData
.
myself
,
victim
:
RoomData
.
myself
,
target
:
element
.
attacker
.
ownerId
target
:
element
.
attacker
.
idNum
}
}
socket
.
emit
(
'
defenseFailed
'
,
attacked
Data
);
socket
.
emit
(
'
defenseFailed
'
,
victim
Data
);
}
}
});
});
this
.
attackGauge
.
sub
(
2
);
this
.
attackGauge
.
sub
(
2
);
...
...
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