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
39240161
Commit
39240161
authored
Jul 28, 2019
by
18손재민
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
이제 공격시 던지는 종이가 뇌 뒤로 지나감
parent
df16a77d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
brain.png
assets/image/background/brain.png
+0
-0
Background.js
js/Background.js
+5
-2
WordSpace.js
js/WordSpace.js
+1
-0
No files found.
assets/image/background/brain.png
0 → 100644
View file @
39240161
12.1 KB
js/Background.js
View file @
39240161
...
...
@@ -13,7 +13,8 @@ BackGround.otherCharacters = [];
BackGround
.
loadImage
=
function
(
scene
)
{
scene
.
load
.
image
(
'
brainGround
'
,
'
assets/image/background/background_brain.png
'
);
scene
.
load
.
image
(
'
brain
'
,
'
assets/image/background/brain.png
'
);
scene
.
load
.
image
(
'
gameBackground
'
,
'
assets/image/background/background_brain.png
'
);
scene
.
load
.
image
(
'
menuBackground
'
,
'
assets/placeholder/menuBackground.png
'
);
scene
.
load
.
image
(
'
roomBackground
'
,
'
assets/placeholder/roomBackground.png
'
);
}
...
...
@@ -35,9 +36,11 @@ BackGround.drawCharacter = function(scene)
});
}
BackGround
.
gameBackground
=
null
;
BackGround
.
drawBrain
=
function
(
scene
)
{
brains
=
scene
.
add
.
sprite
(
game
.
config
.
width
/
2
,
game
.
config
.
height
/
2
,
'
brainG
round
'
).
setDisplaySize
(
game
.
config
.
width
,
game
.
config
.
height
).
setDepth
(
1
);
BackGround
.
gameBackground
=
scene
.
add
.
sprite
(
game
.
config
.
width
/
2
,
game
.
config
.
height
/
2
,
'
gameBackg
round
'
).
setDisplaySize
(
game
.
config
.
width
,
game
.
config
.
height
).
setDepth
(
1
);
}
BackGround
.
drawMenu
=
function
(
scene
)
...
...
js/WordSpace.js
View file @
39240161
...
...
@@ -465,6 +465,7 @@ WordSpace.attack = function(wordText, grade)
WordSpace
.
makeAttackPaper
=
function
(
scene
,
attackFrom
,
attackTo
)
{
var
attackPaper
=
scene
.
add
.
sprite
(
attackFrom
.
x
,
attackFrom
.
y
,
'
attackPapaer
'
).
setScale
(
0.5
).
setDepth
(
3
);
attackPaper
.
mask
=
new
Phaser
.
Display
.
Masks
.
BitmapMask
(
scene
,
BackGround
.
gameBackground
);
attackPaper
.
throwTarget
=
attackTo
;
attackPaper
.
follower
=
{
t
:
0
,
vec
:
new
Phaser
.
Math
.
Vector2
()
};
attackPaper
.
path
=
new
Phaser
.
Curves
.
Spline
([
...
...
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