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
92d31657
Commit
92d31657
authored
Sep 27, 2018
by
LoveEevee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Parsesong: Fix drumroll timing
parent
ad7eff3e
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 @
92d31657
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
background-size
:
cover
;
background-size
:
cover
;
}
}
#game
.default-bg
{
#game
.default-bg
{
background-size
:
c
ontain
;
background-size
:
c
alc
(
100vh
/
720
*
512
)
;
}
}
#canvas
{
#canvas
{
position
:
relative
;
position
:
relative
;
...
...
public/src/css/main.css
View file @
92d31657
...
@@ -190,17 +190,18 @@ kbd{
...
@@ -190,17 +190,18 @@ kbd{
}
}
@keyframes
bgscroll
{
@keyframes
bgscroll
{
from
{
from
{
background-position
:
0
0
;
background-position
:
0
center
;
}
}
to
{
to
{
background-position
:
calc
(
-100vh
/
720
*
512
)
0
;
background-position
:
calc
(
-100vh
/
720
*
512
)
center
;
}
}
}
}
#song-select
{
#song-select
{
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
background-image
:
url("/assets/img/bg_genre_0.png")
;
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
;
animation
:
bgscroll
16s
infinite
linear
;
white-space
:
nowrap
;
white-space
:
nowrap
;
transition
:
background-image
0.5s
;
transition
:
background-image
0.5s
;
...
...
public/src/js/mekadon.js
View file @
92d31657
...
@@ -8,7 +8,7 @@ class Mekadon{
...
@@ -8,7 +8,7 @@ class Mekadon{
play
(
circle
){
play
(
circle
){
var
type
=
circle
.
getType
()
var
type
=
circle
.
getType
()
if
((
type
===
"
balloon
"
||
type
===
"
drumroll
"
||
type
===
"
daiDrumroll
"
)
&&
this
.
getMS
()
>
circle
.
getEndTime
()){
if
((
type
===
"
balloon
"
||
type
===
"
drumroll
"
||
type
===
"
daiDrumroll
"
)
&&
this
.
getMS
()
>
circle
.
getEndTime
()){
circle
.
played
(
0
,
false
)
circle
.
played
(
-
1
,
false
)
this
.
game
.
updateCurrentCircle
()
this
.
game
.
updateCurrentCircle
()
}
}
type
=
circle
.
getType
()
type
=
circle
.
getType
()
...
...
public/src/js/parsesong.js
View file @
92d31657
...
@@ -122,7 +122,8 @@ class ParseSong{
...
@@ -122,7 +122,8 @@ class ParseSong{
start
:
start
,
start
:
start
,
sliderMultiplier
:
sliderMultiplier
,
sliderMultiplier
:
sliderMultiplier
,
measure
:
parseInt
(
values
[
this
.
osu
.
METER
]),
measure
:
parseInt
(
values
[
this
.
osu
.
METER
]),
gogoTime
:
parseInt
(
values
[
this
.
osu
.
KIAIMODE
])
gogoTime
:
parseInt
(
values
[
this
.
osu
.
KIAIMODE
]),
beatLength
:
msOrPercent
})
})
}
}
return
timingPoints
return
timingPoints
...
@@ -233,12 +234,14 @@ class ParseSong{
...
@@ -233,12 +234,14 @@ class ParseSong{
var
gogoTime
=
false
var
gogoTime
=
false
var
osuType
=
parseInt
(
values
[
this
.
osu
.
TYPE
])
var
osuType
=
parseInt
(
values
[
this
.
osu
.
TYPE
])
var
hitSound
=
parseInt
(
values
[
this
.
osu
.
HITSOUND
])
var
hitSound
=
parseInt
(
values
[
this
.
osu
.
HITSOUND
])
var
beatLength
=
speed
for
(
var
j
=
0
;
j
<
this
.
timingPoints
.
length
;
j
++
){
for
(
var
j
=
0
;
j
<
this
.
timingPoints
.
length
;
j
++
){
if
(
this
.
timingPoints
[
j
].
start
>
start
){
if
(
this
.
timingPoints
[
j
].
start
>
start
){
break
break
}
}
speed
=
this
.
timingPoints
[
j
].
sliderMultiplier
speed
=
this
.
timingPoints
[
j
].
sliderMultiplier
beatLength
=
this
.
timingPoints
[
j
].
beatLength
gogoTime
=
this
.
timingPoints
[
j
].
gogoTime
gogoTime
=
this
.
timingPoints
[
j
].
gogoTime
}
}
...
@@ -261,8 +264,14 @@ class ParseSong{
...
@@ -261,8 +264,14 @@ class ParseSong{
}
else
if
(
osuType
&
this
.
osu
.
SLIDER
){
}
else
if
(
osuType
&
this
.
osu
.
SLIDER
){
var
extras
=
values
.
slice
(
this
.
osu
.
EXTRAS
)
var
extras
=
values
.
slice
(
this
.
osu
.
EXTRAS
)
var
pixelLength
=
parseFloat
(
extras
[
this
.
osu
.
PIXELLENGTH
])
var
distance
=
parseFloat
(
extras
[
this
.
osu
.
PIXELLENGTH
])
var
endTime
=
start
+
pixelLength
/
(
speed
*
100
)
*
this
.
beatInfo
.
beatInterval
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
){
if
(
hitSound
&
this
.
osu
.
FINISH
){
type
=
"
daiDrumroll
"
type
=
"
daiDrumroll
"
txt
=
"
連打(大)ーっ!!
"
txt
=
"
連打(大)ーっ!!
"
...
...
public/src/js/scoresheet.js
View file @
92d31657
...
@@ -121,6 +121,7 @@ class Scoresheet{
...
@@ -121,6 +121,7 @@ class Scoresheet{
selected
.
click
()
selected
.
click
()
}
else
if
(
code
==
37
||
code
==
39
||
code
==
67
||
code
==
78
){
}
else
if
(
code
==
37
||
code
==
39
||
code
==
67
||
code
==
78
){
// Left, Right, C, N
// Left, Right, C, N
assets
.
sounds
[
"
ka
"
].
play
()
selected
.
classList
.
remove
(
"
selected
"
)
selected
.
classList
.
remove
(
"
selected
"
)
var
next
=
selected
.
nextElementSibling
var
next
=
selected
.
nextElementSibling
if
(
!
next
){
if
(
!
next
){
...
@@ -130,6 +131,7 @@ class Scoresheet{
...
@@ -130,6 +131,7 @@ class Scoresheet{
}
}
}
}
clean
(){
clean
(){
this
.
gamepad
.
clean
()
assets
.
sounds
[
"
bgm_result
"
].
stop
()
assets
.
sounds
[
"
bgm_result
"
].
stop
()
pageEvents
.
keyRemove
(
this
,
"
all
"
)
pageEvents
.
keyRemove
(
this
,
"
all
"
)
pageEvents
.
remove
(
window
,
"
resize
"
)
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