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
099824bd
Commit
099824bd
authored
Aug 21, 2019
by
18김재민
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
단어 사라지는 소리 적용
parent
9a7701b1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
Client.js
js/Client.js
+6
-1
WordObject.js
js/WordObject.js
+2
-0
No files found.
js/Client.js
View file @
099824bd
...
...
@@ -154,6 +154,8 @@ socket.on('someoneAttacked', function(msg) // {Id attackerId, Id victimId}
});
socket
.
on
(
'
attacked
'
,
function
(
msg
)
// object attackData
{
Audio
.
playSound
(
ScenesData
.
gameScene
,
'
Bagazi
'
);
let
attackedEvent
=
new
Cycle
(
function
()
{
if
(
!
WordSpace
.
isInvincible
)
...
...
@@ -225,6 +227,9 @@ socket.on('defeat', function(msg) // object player
{
let
lastAttacker
=
RoomData
.
findPlayer
(
msg
.
lastAttack
.
attackerId
);
let
attackWord
=
msg
.
lastAttack
.
word
;
Audio
.
playSound
(
ScenesData
.
gameScene
,
'
killLog
'
);
console
.
log
(
victim
.
nickname
+
'
defeated by
'
+
lastAttacker
.
nickname
+
'
, with
'
+
msg
.
lastAttack
.
word
);
if
(
WordSpace
.
lastAttackGroup
.
length
!=
0
)
{
...
...
js/WordObject.js
View file @
099824bd
...
...
@@ -59,6 +59,8 @@ class WordObject
},
200
);
RoomData
.
myself
.
playerImage
.
play
(
WordSpace
.
pyeongminAnims
[
Enums
.
characterAnim
.
write
]);
RoomData
.
myself
.
playerImage
.
anims
.
chain
(
WordSpace
.
pyeongminAnims
[
Enums
.
characterAnim
.
sit
]);
Audio
.
playSound
(
ScenesData
.
gameScene
,
'
killWord
'
);
}
attract
()
...
...
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