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
39d9f817
Commit
39d9f817
authored
Aug 03, 2019
by
18손재민
Committed by
18류지석
Aug 03, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
이제 플레이어가 모든 애니메이션이 끝날 때마다 원래 앉아있는 자세로 되돌아옴
parent
d8c5688c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
6 deletions
+16
-6
Enums.js
js/Enums.js
+1
-1
WordObject.js
js/WordObject.js
+1
-0
WordSpace.js
js/WordSpace.js
+14
-5
No files found.
js/Enums.js
View file @
39d9f817
var
Enums
=
Enums
||
{};
Enums
.
characterAnim
=
{
write
:
0
,
notBurning
:
1
,
smallBurning
:
2
,
bigBurning
:
3
,
throw
:
4
,
hit
:
5
}
Enums
.
characterAnim
=
{
sit
:
0
,
write
:
1
,
notBurning
:
2
,
smallBurning
:
3
,
bigBurning
:
4
,
throw
:
5
,
hit
:
6
}
Enums
.
item
=
{
invincible
:
"
무적
"
,
nameList
:
"
명단
"
,
charge
:
"
충전
"
,
clean
:
"
청소
"
,
heavy
:
"
중량
"
,
dark
:
"
암흑
"
}
\ No newline at end of file
js/WordObject.js
View file @
39d9f817
...
...
@@ -59,6 +59,7 @@ class WordObject
breakAnim
.
destroy
();
},
200
);
RoomData
.
myself
.
playerImage
.
play
(
WordSpace
.
pyeongminAnims
[
Enums
.
characterAnim
.
write
]);
RoomData
.
myself
.
playerImage
.
anims
.
chain
(
WordSpace
.
pyeongminAnims
[
Enums
.
characterAnim
.
sit
]);
}
attract
()
...
...
js/WordSpace.js
View file @
39d9f817
...
...
@@ -192,10 +192,11 @@ WordSpace.loadImage = function(scene)
}
scene
.
load
.
spritesheet
(
'
wordBreak
'
,
'
assets/image/word/wordbreak.png
'
,
{
frameWidth
:
180
,
frameHeight
:
180
});
scene
.
load
.
spritesheet
(
'
pyeongminSit
'
,
'
assets/image/character/pyeongmin/pyeong_sit.png
'
,
{
frameWidth
:
521
,
frameHeight
:
610
});
scene
.
load
.
spritesheet
(
'
pyeongminWrite
'
,
'
assets/image/character/pyeongmin/write/pyeong_write.png
'
,
{
frameWidth
:
521
,
frameHeight
:
610
});
scene
.
load
.
spritesheet
(
'
pyeongminThrow
'
,
'
assets/image/character/pyeongmin/throw/pyeong_throw.png
'
,
{
frameWidth
:
521
,
frameHeight
:
610
});
scene
.
load
.
spritesheet
(
'
pyeongminBurningSmall
'
,
'
assets/image/character/pyeongmin/pyeong_burning_small.png
'
,
{
frameWidth
:
521
,
frameHeight
:
610
});
scene
.
load
.
spritesheet
(
'
pyeongminBurningBig
'
,
'
assets/image/character/pyeongmin/pyeong_burning_big.png
'
,
{
frameWidth
:
521
,
frameHeight
:
610
});
scene
.
load
.
spritesheet
(
'
pyeongminBurningSmall
'
,
'
assets/image/character/pyeongmin/
burning/
pyeong_burning_small.png
'
,
{
frameWidth
:
521
,
frameHeight
:
610
});
scene
.
load
.
spritesheet
(
'
pyeongminBurningBig
'
,
'
assets/image/character/pyeongmin/
burning/
pyeong_burning_big.png
'
,
{
frameWidth
:
521
,
frameHeight
:
610
});
scene
.
load
.
image
(
'
attackPaper
'
,
'
assets/image/etc/paper_crumbled.png
'
);
WordSpace
.
weightTextObjForTest
=
scene
.
add
.
text
(
game
.
config
.
width
*
5
/
64
,
game
.
config
.
height
*
5
/
48
,
'
뇌의 무게: (현재) 0 /
'
+
this
.
brainCapacity
+
'
(전체)
'
).
setDepth
(
10
).
setColor
(
'
#000000
'
);
...
...
@@ -211,6 +212,13 @@ WordSpace.loadAnimation = function(scene)
repeat
:
0
,
hideOnComplete
:
false
});
WordSpace
.
pyeongminAnims
[
Enums
.
characterAnim
.
sit
]
=
scene
.
anims
.
create
({
key
:
'
pyeongminSitAnim
'
,
frames
:
scene
.
anims
.
generateFrameNumbers
(
'
pyeongminSit
'
),
frameRate
:
10
,
repeat
:
0
,
hideOnComplete
:
false
});
WordSpace
.
pyeongminAnims
[
Enums
.
characterAnim
.
write
]
=
scene
.
anims
.
create
({
key
:
'
pyeongminWriteAnim
'
,
frames
:
scene
.
anims
.
generateFrameNumbers
(
'
pyeongminWrite
'
),
...
...
@@ -228,14 +236,14 @@ WordSpace.loadAnimation = function(scene)
WordSpace
.
pyeongminAnims
[
Enums
.
characterAnim
.
smallBurning
]
=
scene
.
anims
.
create
({
key
:
'
pyeongminsmallBurningAnim
'
,
frames
:
scene
.
anims
.
generateFrameNumbers
(
'
pyeongminBurningSmall
'
),
frameRate
:
2
0
,
frameRate
:
1
0
,
repeat
:
-
1
,
hideOnComplete
:
false
});
WordSpace
.
pyeongminAnims
[
Enums
.
characterAnim
.
bigBurning
]
=
scene
.
anims
.
create
({
key
:
'
pyeongminbigBurningAnim
'
,
frames
:
scene
.
anims
.
generateFrameNumbers
(
'
pyeongminBurningBig
'
),
frameRate
:
4
0
,
frameRate
:
1
0
,
repeat
:
-
1
,
hideOnComplete
:
false
});
...
...
@@ -379,7 +387,7 @@ WordSpace.findWord = function(wordText)
console
.
log
(
'
Improper attack option.
'
);
break
;
}
//
RoomData.myself.playerImage.anims.msPerFrame /= (4 - Input.attackOption.wordGrade);
RoomData
.
myself
.
playerImage
.
anims
.
msPerFrame
/=
(
4
-
Input
.
attackOption
.
wordGrade
);
}
else
// 오타 체크
{
...
...
@@ -484,6 +492,7 @@ WordSpace.attack = function(wordText, grade)
WordSpace
.
attackGauge
.
resetValue
();
WordSpace
.
setPlayerTyping
.
add
(
wordText
);
RoomData
.
myself
.
playerImage
.
play
(
WordSpace
.
pyeongminAnims
[
Enums
.
characterAnim
.
throw
]);
RoomData
.
myself
.
playerImage
.
anims
.
chain
(
WordSpace
.
pyeongminAnims
[
Enums
.
characterAnim
.
sit
]);
Input
.
attackOption
.
isHeavy
=
false
;
Input
.
attackOption
.
isDark
=
false
;
}
...
...
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