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
36f27f24
Commit
36f27f24
authored
Jun 21, 2019
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new score
parent
e7d21869
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
3 deletions
+38
-3
public/src/js/game.js
public/src/js/game.js
+28
-1
public/src/js/parsetja.js
public/src/js/parsetja.js
+10
-2
No files found.
public/src/js/game.js
View file @
36f27f24
...
...
@@ -582,6 +582,9 @@ class Game{
if
(
this
.
combo
===
50
||
this
.
combo
>
0
&&
this
.
combo
%
100
===
0
&&
this
.
combo
<
1500
||
this
.
combo
>
0
&&
this
.
combo
%
500
===
0
){
this
.
controller
.
playSoundMeka
(
"
v_combo_
"
+
(
this
.
combo
<=
1400
?
this
.
combo
:
"
over1500
"
))
}
if
(
this
.
songData
.
scoremode
==
2
&&
this
.
combo
>
0
&&
this
.
combo
%
100
==
0
)
{
this
.
globalScore
.
points
+=
10000
;
}
this
.
view
.
updateCombo
(
this
.
combo
)
}
getCombo
(){
...
...
@@ -603,6 +606,16 @@ class Game{
this
.
globalScore
.
bad
++
break
}
if
(
this
.
songData
.
scoremode
)
{
switch
(
score
)
{
case
450
:
score
=
this
.
songData
.
scoreinit
;
break
;
case
230
:
score
=
Math
.
floor
(
this
.
songData
.
scoreinit
/
2
);
break
;
}
}
// Gauge update
if
(
score
!==
0
){
this
.
globalScore
.
gauge
+=
this
.
HPGain
...
...
@@ -612,7 +625,21 @@ class Game{
this
.
globalScore
.
gauge
=
0
}
// Points update
score
+=
Math
.
max
(
0
,
Math
.
floor
((
Math
.
min
(
this
.
combo
,
100
)
-
1
)
/
10
)
*
100
)
if
(
this
.
songData
.
scoremode
==
2
)
{
var
diff_mul
=
0
;
if
(
this
.
combo
>=
100
)
{
diff_mul
=
8
;
}
else
if
(
this
.
combo
>=
50
)
{
diff_mul
=
4
;
}
else
if
(
this
.
combo
>=
30
)
{
diff_mul
=
2
;
}
else
if
(
this
.
combo
>=
10
)
{
diff_mul
=
1
;
}
score
+=
this
.
songData
.
scorediff
*
diff_mul
;
}
else
{
score
+=
Math
.
max
(
0
,
Math
.
floor
((
Math
.
min
(
this
.
combo
,
100
)
-
1
)
/
10
)
*
(
this
.
songData
.
scoremode
?
this
.
songData
.
scorediff
:
100
));
}
if
(
gogoTime
){
multiplier
*=
1.2
...
...
public/src/js/parsetja.js
View file @
36f27f24
...
...
@@ -41,7 +41,7 @@
}
}
parseMetadata
(){
var
metaNumbers
=
[
"
bpm
"
,
"
offset
"
,
"
demostart
"
,
"
level
"
]
var
metaNumbers
=
[
"
bpm
"
,
"
offset
"
,
"
demostart
"
,
"
level
"
,
"
scoremode
"
,
"
scorediff
"
]
var
inSong
=
false
var
hasSong
=
false
var
courses
=
{}
...
...
@@ -99,7 +99,10 @@
}
else
if
(
this
.
inArray
(
name
,
metaNumbers
)){
value
=
parseFloat
(
value
)
}
else
if
(
name
===
"
scoreinit
"
)
{
value
=
value
?
parseFloat
(
value
.
split
(
"
,
"
)[
0
])
:
0
;
}
currentCourse
[
name
]
=
value
}
...
...
@@ -119,6 +122,11 @@
}
parseCircles
(){
var
meta
=
this
.
metadata
[
this
.
difficulty
]
this
.
scoreinit
=
meta
.
scoreinit
;
this
.
scorediff
=
meta
.
scorediff
;
if
(
this
.
scoreinit
&&
this
.
scorediff
)
{
this
.
scoremode
=
meta
.
scoremode
||
1
;
}
var
ms
=
(
meta
.
offset
||
0
)
*
-
1000
+
this
.
offset
var
bpm
=
Math
.
abs
(
meta
.
bpm
)
||
120
var
scroll
=
1
...
...
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