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
f53788ee
Commit
f53788ee
authored
Mar 01, 2020
by
Bui
Committed by
GitHub
Mar 01, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #184 from N-Field/patch-lv5
improve Dais for Taiko Force Lv5
parents
09c212df
9a9bc286
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
51 additions
and
10 deletions
+51
-10
public/src/js/controller.js
public/src/js/controller.js
+5
-0
public/src/js/game.js
public/src/js/game.js
+21
-10
public/src/js/keyboard.js
public/src/js/keyboard.js
+6
-0
public/src/js/settings.js
public/src/js/settings.js
+4
-0
public/src/js/strings.js
public/src/js/strings.js
+15
-0
No files found.
public/src/js/controller.js
View file @
f53788ee
...
...
@@ -60,6 +60,11 @@ class Controller{
this
.
view
=
new
View
(
this
)
this
.
mekadon
=
new
Mekadon
(
this
,
this
.
game
)
this
.
keyboard
=
new
GameInput
(
this
)
if
(
!
autoPlayEnabled
&&
this
.
multiplayer
!==
2
){
this
.
easierBigNotes
=
settings
.
getItem
(
"
easierBigNotes
"
)
||
this
.
keyboard
.
keyboard
.
TaikoForceLv5
}
else
{
this
.
easierBigNotes
=
false
}
this
.
drumSounds
=
settings
.
getItem
(
"
latency
"
).
drumSounds
this
.
playedSounds
=
{}
...
...
public/src/js/game.js
View file @
f53788ee
...
...
@@ -104,7 +104,9 @@ class Game{
circle
.
beatMSCopied
=
true
}
}
if
(
ms
>
endTime
){
if
(
circle
.
daiFailed
&&
(
ms
>=
circle
.
daiFailed
.
ms
+
this
.
rules
.
daiLeniency
||
ms
>
endTime
)){
this
.
checkScore
(
circle
,
circle
.
daiFailed
.
check
)
}
else
if
(
ms
>
endTime
){
if
(
!
this
.
controller
.
autoPlayEnabled
){
if
(
drumrollNotes
){
if
(
circle
.
section
&&
circle
.
timesHit
===
0
){
...
...
@@ -314,7 +316,7 @@ class Game{
var
typeDai
=
type
===
"
daiDon
"
||
type
===
"
daiKa
"
var
keyTime
=
this
.
controller
.
getKeyTime
()
var
currentTime
=
keysDon
?
keyTime
[
"
don
"
]
:
keyTime
[
"
ka
"
]
var
currentTime
=
circle
.
daiFailed
?
circle
.
daiFailed
.
ms
:
keysDon
?
keyTime
[
"
don
"
]
:
keyTime
[
"
ka
"
]
var
relative
=
currentTime
-
circle
.
ms
-
this
.
controller
.
audioLatency
if
(
relative
>=
this
.
rules
.
ok
){
...
...
@@ -330,14 +332,6 @@ class Game{
}
var
score
=
0
if
(
keysDon
&&
typeDon
||
keysKa
&&
typeKa
){
if
(
typeDai
&&
!
keyDai
){
if
(
!
circle
.
daiFailed
){
circle
.
daiFailed
=
ms
return
false
}
else
if
(
ms
<
circle
.
daiFailed
+
this
.
rules
.
daiLeniency
){
return
false
}
}
var
circleStatus
=
-
1
relative
=
Math
.
abs
(
relative
)
if
(
relative
<
this
.
rules
.
good
){
...
...
@@ -347,6 +341,23 @@ class Game{
}
else
if
(
relative
<
this
.
rules
.
bad
){
circleStatus
=
0
}
if
(
typeDai
&&
!
keyDai
){
if
(
this
.
controller
.
easierBigNotes
){
// Taiko Force Lv5 can't hit both Dons at the same time, so dai offered
keyDai
=
true
}
else
if
(
!
circle
.
daiFailed
){
circle
.
daiFailed
=
{
ms
:
ms
,
status
:
circleStatus
,
check
:
check
}
return
false
}
else
if
(
ms
<
circle
.
daiFailed
.
ms
+
this
.
rules
.
daiLeniency
){
return
false
}
else
{
circleStatus
=
circle
.
daiFailed
.
status
}
}
if
(
circleStatus
===
230
||
circleStatus
===
450
){
score
=
circleStatus
}
...
...
public/src/js/keyboard.js
View file @
f53788ee
...
...
@@ -14,12 +14,18 @@ class Keyboard{
"
altgr
"
:
"
altgraph
"
}
this
.
btn
=
{}
this
.
TaikoForceLv5
=
false
;
this
.
update
()
pageEvents
.
keyAdd
(
this
,
"
all
"
,
"
both
"
,
this
.
keyEvent
.
bind
(
this
))
pageEvents
.
blurAdd
(
this
,
this
.
blurEvent
.
bind
(
this
))
}
isTaikoForceLv5
(
kbdSettings
){
// the key of Taiko Force Lv5's PC module looks like this
return
(
kbdSettings
.
ka_l
[
0
]
===
"
f
"
)
&&
(
kbdSettings
.
ka_r
[
0
]
===
"
e
"
)
&&
(
kbdSettings
.
don_l
[
0
]
===
"
i
"
)
&&
(
kbdSettings
.
don_r
[
0
]
===
"
j
"
);
}
update
(){
var
kbdSettings
=
settings
.
getItem
(
"
keyboardSettings
"
)
this
.
TaikoForceLv5
=
this
.
isTaikoForceLv5
(
kbdSettings
)
var
drumKeys
=
{}
for
(
var
name
in
kbdSettings
){
var
keys
=
kbdSettings
[
name
]
...
...
public/src/js/settings.js
View file @
f53788ee
...
...
@@ -46,6 +46,10 @@ class Settings{
"
video
"
:
0
,
"
drumSounds
"
:
true
}
},
easierBigNotes
:
{
type
:
"
toggle
"
,
default
:
false
}
}
...
...
public/src/js/strings.js
View file @
f53788ee
...
...
@@ -151,6 +151,9 @@
video
:
"
Video
"
,
drumSounds
:
"
Drum Sounds
"
},
easierBigNotes
:
{
name
:
"
簡単な大きな音符
"
},
on
:
"
オン
"
,
off
:
"
オフ
"
,
default
:
"
既定値にリセット
"
,
...
...
@@ -343,6 +346,9 @@ function StringsEn(){
video
:
"
Video
"
,
drumSounds
:
"
Drum Sounds
"
},
easierBigNotes
:
{
name
:
"
Easier Big Notes
"
},
on
:
"
On
"
,
off
:
"
Off
"
,
default
:
"
Reset to Defaults
"
,
...
...
@@ -535,6 +541,9 @@ function StringsCn(){
video
:
"
Video
"
,
drumSounds
:
"
Drum Sounds
"
},
easierBigNotes
:
{
name
:
"
简单的大音符
"
},
on
:
"
开
"
,
off
:
"
关
"
,
default
:
"
重置为默认值
"
,
...
...
@@ -727,6 +736,9 @@ function StringsTw(){
video
:
"
Video
"
,
drumSounds
:
"
Drum Sounds
"
},
easierBigNotes
:
{
name
:
"
簡單的大音符
"
},
on
:
"
開
"
,
off
:
"
關
"
,
default
:
"
重置為默認值
"
,
...
...
@@ -919,6 +931,9 @@ function StringsKo(){
video
:
"
Video
"
,
drumSounds
:
"
Drum Sounds
"
},
easierBigNotes
:
{
name
:
"
쉬운 큰 음표
"
},
on
:
"
온
"
,
off
:
"
오프
"
,
default
:
"
기본값으로 재설정
"
,
...
...
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