Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
T
Taiko Web
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Taiko Web
Commits
dc01102a
Commit
dc01102a
authored
Sep 27, 2018
by
Bui
Committed by
GitHub
Sep 27, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #38 from LoveEevee/parsesong-drumroll-timing
Parsesong: Fix drumroll timing
parents
ad7eff3e
92d31657
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
8 deletions
+20
-8
public/src/css/game.css
public/src/css/game.css
+1
-1
public/src/css/main.css
public/src/css/main.css
+4
-3
public/src/js/mekadon.js
public/src/js/mekadon.js
+1
-1
public/src/js/parsesong.js
public/src/js/parsesong.js
+12
-3
public/src/js/scoresheet.js
public/src/js/scoresheet.js
+2
-0
No files found.
public/src/css/game.css
View file @
dc01102a
...
...
@@ -5,7 +5,7 @@
background-size
:
cover
;
}
#game
.default-bg
{
background-size
:
c
ontain
;
background-size
:
c
alc
(
100vh
/
720
*
512
)
;
}
#canvas
{
position
:
relative
;
...
...
public/src/css/main.css
View file @
dc01102a
...
...
@@ -190,17 +190,18 @@ kbd{
}
@keyframes
bgscroll
{
from
{
background-position
:
0
0
;
background-position
:
0
center
;
}
to
{
background-position
:
calc
(
-100vh
/
720
*
512
)
0
;
background-position
:
calc
(
-100vh
/
720
*
512
)
center
;
}
}
#song-select
{
width
:
100%
;
height
:
100%
;
background-image
:
url("/assets/img/bg_genre_0.png")
;
background-size
:
contain
;
background-size
:
calc
(
100vh
/
720
*
512
);
background-repeat
:
repeat
no-repeat
;
animation
:
bgscroll
16s
infinite
linear
;
white-space
:
nowrap
;
transition
:
background-image
0.5s
;
...
...
public/src/js/mekadon.js
View file @
dc01102a
...
...
@@ -8,7 +8,7 @@ class Mekadon{
play
(
circle
){
var
type
=
circle
.
getType
()
if
((
type
===
"
balloon
"
||
type
===
"
drumroll
"
||
type
===
"
daiDrumroll
"
)
&&
this
.
getMS
()
>
circle
.
getEndTime
()){
circle
.
played
(
0
,
false
)
circle
.
played
(
-
1
,
false
)
this
.
game
.
updateCurrentCircle
()
}
type
=
circle
.
getType
()
...
...
public/src/js/parsesong.js
View file @
dc01102a
...
...
@@ -122,7 +122,8 @@ class ParseSong{
start
:
start
,
sliderMultiplier
:
sliderMultiplier
,
measure
:
parseInt
(
values
[
this
.
osu
.
METER
]),
gogoTime
:
parseInt
(
values
[
this
.
osu
.
KIAIMODE
])
gogoTime
:
parseInt
(
values
[
this
.
osu
.
KIAIMODE
]),
beatLength
:
msOrPercent
})
}
return
timingPoints
...
...
@@ -233,12 +234,14 @@ class ParseSong{
var
gogoTime
=
false
var
osuType
=
parseInt
(
values
[
this
.
osu
.
TYPE
])
var
hitSound
=
parseInt
(
values
[
this
.
osu
.
HITSOUND
])
var
beatLength
=
speed
for
(
var
j
=
0
;
j
<
this
.
timingPoints
.
length
;
j
++
){
if
(
this
.
timingPoints
[
j
].
start
>
start
){
break
}
speed
=
this
.
timingPoints
[
j
].
sliderMultiplier
beatLength
=
this
.
timingPoints
[
j
].
beatLength
gogoTime
=
this
.
timingPoints
[
j
].
gogoTime
}
...
...
@@ -261,8 +264,14 @@ class ParseSong{
}
else
if
(
osuType
&
this
.
osu
.
SLIDER
){
var
extras
=
values
.
slice
(
this
.
osu
.
EXTRAS
)
var
pixelLength
=
parseFloat
(
extras
[
this
.
osu
.
PIXELLENGTH
])
var
endTime
=
start
+
pixelLength
/
(
speed
*
100
)
*
this
.
beatInfo
.
beatInterval
var
distance
=
parseFloat
(
extras
[
this
.
osu
.
PIXELLENGTH
])
var
speedMultiplier
=
beatLength
<
0
?
100.0
/
-
beatLength
:
1
var
speedAdjustedBeatLength
=
this
.
beatInfo
.
beatInterval
/
speedMultiplier
var
taikoVelocity
=
100
*
this
.
difficulty
.
sliderMultiplier
/
speedAdjustedBeatLength
var
taikoDuration
=
distance
/
taikoVelocity
var
endTime
=
start
+
taikoDuration
if
(
hitSound
&
this
.
osu
.
FINISH
){
type
=
"
daiDrumroll
"
txt
=
"
連打(大)ーっ!!
"
...
...
public/src/js/scoresheet.js
View file @
dc01102a
...
...
@@ -121,6 +121,7 @@ class Scoresheet{
selected
.
click
()
}
else
if
(
code
==
37
||
code
==
39
||
code
==
67
||
code
==
78
){
// Left, Right, C, N
assets
.
sounds
[
"
ka
"
].
play
()
selected
.
classList
.
remove
(
"
selected
"
)
var
next
=
selected
.
nextElementSibling
if
(
!
next
){
...
...
@@ -130,6 +131,7 @@ class Scoresheet{
}
}
clean
(){
this
.
gamepad
.
clean
()
assets
.
sounds
[
"
bgm_result
"
].
stop
()
pageEvents
.
keyRemove
(
this
,
"
all
"
)
pageEvents
.
remove
(
window
,
"
resize
"
)
...
...
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