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
2dc1644b
Commit
2dc1644b
authored
Aug 18, 2019
by
18손재민
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
공격 종이 뭉치가 머리로 날아감
parent
d1fd5f89
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
Client.js
js/Client.js
+2
-2
WordSpace.js
js/WordSpace.js
+4
-1
No files found.
js/Client.js
View file @
2dc1644b
...
...
@@ -175,8 +175,8 @@ socket.on('someoneItemStart', function(msg)
switch
(
msg
.
itemType
)
{
case
Enums
.
item
.
invincible
:
itemPlayer
.
invincibleMark
=
ScenesData
.
gameScene
.
add
.
sprite
(
itemPlayer
.
position
.
x
+
20
*
size
*
xOffset
,
itemPlayer
.
position
.
y
-
50
*
size
,
'
attackPaper
'
)
.
setDepth
(
5.3
).
setOrigin
(
0.5
,
0.5
).
setScale
(
size
);
itemPlayer
.
invincibleMark
=
ScenesData
.
gameScene
.
add
.
sprite
(
itemPlayer
.
position
.
x
+
20
*
size
*
xOffset
,
itemPlayer
.
position
.
y
-
50
*
size
,
'
attackPaper
'
)
.
setDepth
(
5.3
).
setOrigin
(
0.5
,
0.5
).
setScale
(
size
);
break
;
default
:
console
.
log
(
'
Improper item type.
'
);
...
...
js/WordSpace.js
View file @
2dc1644b
...
...
@@ -417,6 +417,9 @@ WordSpace.attack = function(wordText, grade)
WordSpace
.
makeAttackPaper
=
function
(
scene
,
attackFrom
,
attackTo
,
multiple
)
{
let
size
=
attackTo
==
RoomData
.
myself
.
position
?
1
:
0.7
;
let
xOffset
=
attackTo
!=
RoomData
.
myself
.
position
&&
attackTo
.
x
<
game
.
config
.
width
/
2
?
-
1
:
1
;
var
attackPaper
=
scene
.
add
.
sprite
(
attackFrom
.
x
,
attackFrom
.
y
,
'
attackPaper
'
).
setScale
(
0.5
*
multiple
).
setDepth
(
5.2
);
attackPaper
.
mask
=
new
Phaser
.
Display
.
Masks
.
BitmapMask
(
scene
,
BackGround
.
gameBackground
);
attackPaper
.
throwTarget
=
attackTo
;
...
...
@@ -424,7 +427,7 @@ WordSpace.makeAttackPaper = function(scene, attackFrom, attackTo, multiple)
attackPaper
.
path
=
new
Phaser
.
Curves
.
Spline
([
attackFrom
.
x
,
attackFrom
.
y
,
(
attackFrom
.
x
+
attackPaper
.
throwTarget
.
x
)
/
2
,
Math
.
min
(
attackFrom
.
y
,
attackPaper
.
throwTarget
.
y
)
-
100
,
attackPaper
.
throwTarget
.
x
,
attackPaper
.
throwTarget
.
y
-
10
attackPaper
.
throwTarget
.
x
+
20
*
size
*
xOffset
,
attackPaper
.
throwTarget
.
y
-
50
*
size
]);
scene
.
tweens
.
add
({
targets
:
attackPaper
.
follower
,
...
...
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