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
74b1f5ae
Commit
74b1f5ae
authored
Aug 01, 2019
by
18김재민
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
공격 사운드 시간 감소, 대기방 음악 추가
parent
76ffa1d0
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
4 additions
and
2 deletions
+4
-2
attackLong.ogg
assets/sound/attackLong.ogg
+0
-0
attackShort.ogg
assets/sound/attackShort.ogg
+0
-0
roomBGM.ogg
assets/sound/roomBGM.ogg
+0
-0
BGMsound.js
js/BGMsound.js
+2
-1
Client.js
js/Client.js
+1
-0
ScenesData.js
js/ScenesData.js
+1
-1
No files found.
assets/sound/attack.ogg
→
assets/sound/attack
Long
.ogg
View file @
74b1f5ae
File moved
assets/sound/attackShort.ogg
0 → 100644
View file @
74b1f5ae
File added
assets/sound/roomBGM.ogg
0 → 100644
View file @
74b1f5ae
File added
js/BGMsound.js
View file @
74b1f5ae
...
...
@@ -5,7 +5,8 @@ Audio.loadSound = function(scene)
{
scene
.
load
.
audio
(
'
login
'
,
'
assets/sound/login.ogg
'
);
scene
.
load
.
audio
(
'
startGame
'
,
'
assets/sound/startGame.ogg
'
);
scene
.
load
.
audio
(
'
attack
'
,
'
assets/sound/attack.ogg
'
);
scene
.
load
.
audio
(
'
attack
'
,
'
assets/sound/attackShort.ogg
'
);
scene
.
load
.
audio
(
'
inRoom
'
,
'
assets/sound/roomBGM.ogg
'
);
}
Audio
.
playSound
=
function
(
scene
,
title
)
// 한 번만 재생할 때 사용
...
...
js/Client.js
View file @
74b1f5ae
...
...
@@ -103,6 +103,7 @@ socket.on('syncRoomData', function(msg) // {num roomNum, [] players}
});
socket
.
on
(
'
startGame
'
,
function
()
{
Audio
.
killSound
(
ScenesData
.
roomScene
,
'
inRoom
'
);
game
.
scene
.
remove
(
'
roomScene
'
);
game
.
scene
.
start
(
'
gameScene
'
);
});
...
...
js/ScenesData.js
View file @
74b1f5ae
...
...
@@ -49,7 +49,7 @@ var roomScene = new Phaser.Class(
create
:
function
()
{
BackGround
.
drawRoom
(
this
);
Audio
.
loopSound
(
this
,
'
inRoom
'
);
this
.
players
=
[];
this
.
isCounting
=
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