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
e41ce1c5
Commit
e41ce1c5
authored
Aug 04, 2019
by
18손재민
Committed by
18류지석
Aug 04, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
끝내기 시 보따리가 생성됨. 보따리 크기 커졌다 작아지는 부분 wip
parent
d45df75d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
3 deletions
+8
-3
GameServer.js
GameServer.js
+1
-1
itembag1.png
assets/image/etc/itembag1.png
+0
-0
itembag2.png
assets/image/etc/itembag2.png
+0
-0
Client.js
js/Client.js
+4
-0
ResourceLoader.js
js/ResourceLoader.js
+3
-2
No files found.
GameServer.js
View file @
e41ce1c5
...
...
@@ -76,7 +76,7 @@ class GameRoom
{
this
.
roomId
=
GameServer
.
getRoomNumber
();
this
.
roomIndex
=
-
1
;
this
.
startCount
=
2
;
this
.
startCount
=
3
;
this
.
maxPlayer
=
100
;
this
.
nextRank
=
100
;
...
...
assets/image/etc/itembag1.png
View replaced file @
d45df75d
View file @
e41ce1c5
197 KB
|
W:
|
H:
42.8 KB
|
W:
|
H:
2-up
Swipe
Onion skin
assets/image/etc/itembag2.png
View replaced file @
d45df75d
View file @
e41ce1c5
195 KB
|
W:
|
H:
46.3 KB
|
W:
|
H:
2-up
Swipe
Onion skin
js/Client.js
View file @
e41ce1c5
...
...
@@ -194,6 +194,10 @@ socket.on('defeat', function(msg) // object player
{
var
keys
=
Object
.
keys
(
Enums
.
item
);
WordSpace
.
generateWord
.
Item
(
ScenesData
.
gameScene
,
Enums
.
item
[
keys
[
keys
.
length
*
Math
.
random
()
<<
0
]]);
let
itemBag
=
ScenesData
.
gameScene
.
add
.
sprite
(
RoomData
.
myself
.
position
.
x
,
RoomData
.
myself
.
position
.
y
,
'
itemBag
'
).
setScale
(
1
).
setDepth
(
5
);
setTimeout
(
function
()
{
itemBag
.
destroy
();
},
3000
);
}
}
else
...
...
js/ResourceLoader.js
View file @
e41ce1c5
...
...
@@ -31,7 +31,6 @@ ResourceLoader.loadImage = function(scene)
scene
.
load
.
image
(
'
strongBgr
'
+
i
,
'
assets/image/word/strong
'
+
i
+
'
.png
'
);
}
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
});
...
...
@@ -39,9 +38,11 @@ ResourceLoader.loadImage = function(scene)
scene
.
load
.
spritesheet
(
'
pyeongminBurningBig
'
,
'
assets/image/character/pyeongmin/burning/pyeong_burning_big.png
'
,
{
frameWidth
:
521
,
frameHeight
:
610
});
scene
.
load
.
spritesheet
(
'
pyeongminGameOver
'
,
'
assets/image/character/pyeongmin/balladang/pyeong_balladang.png
'
,
{
frameWidth
:
720
,
frameHeight
:
700
});
scene
.
load
.
image
(
'
pyeongminStand
'
,
'
assets/image/character/pyeongmin/pyeong_stand.png
'
);
scene
.
load
.
spritesheet
(
'
wordBreak
'
,
'
assets/image/word/wordbreak.png
'
,
{
frameWidth
:
180
,
frameHeight
:
180
});
scene
.
load
.
image
(
'
phaseChangeBgr
'
,
'
assets/placeholder/phaseChange.png
'
);
scene
.
load
.
image
(
'
attackPaper
'
,
'
assets/image/etc/paper_crumbled.png
'
);
scene
.
load
.
image
(
'
itemBag
'
,
'
assets/image/etc/itembag2.png
'
);
}
ResourceLoader
.
loadAnimation
=
function
(
scene
)
...
...
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