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
41cc5842
Commit
41cc5842
authored
Sep 15, 2018
by
LoveEevee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add drumroll count to the scoreboard
parent
749e6570
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletion
+5
-1
public/src/js/game.js
public/src/js/game.js
+3
-0
public/src/js/scoresheet.js
public/src/js/scoresheet.js
+1
-0
public/src/views/scoresheet.html
public/src/views/scoresheet.html
+1
-1
No files found.
public/src/js/game.js
View file @
41cc5842
...
@@ -12,6 +12,7 @@ class Game{
...
@@ -12,6 +12,7 @@ class Game{
good
:
0
,
good
:
0
,
fail
:
0
,
fail
:
0
,
maxCombo
:
0
,
maxCombo
:
0
,
drumroll
:
0
,
hp
:
0
,
hp
:
0
,
song
:
selectedSong
.
title
song
:
selectedSong
.
title
}
}
...
@@ -196,6 +197,7 @@ class Game{
...
@@ -196,6 +197,7 @@ class Game{
var
score
=
300
var
score
=
300
circle
.
hit
()
circle
.
hit
()
}
}
this
.
globalScore
.
drumroll
++
this
.
globalScore
.
points
+=
score
this
.
globalScore
.
points
+=
score
}
}
checkDrumroll
(
circle
){
checkDrumroll
(
circle
){
...
@@ -211,6 +213,7 @@ class Game{
...
@@ -211,6 +213,7 @@ class Game{
circleAnim
.
played
(
score
)
circleAnim
.
played
(
score
)
circleAnim
.
animate
()
circleAnim
.
animate
()
this
.
controller
.
view
.
drumroll
.
push
(
circleAnim
)
this
.
controller
.
view
.
drumroll
.
push
(
circleAnim
)
this
.
globalScore
.
drumroll
++
this
.
globalScore
.
points
+=
score
this
.
globalScore
.
points
+=
score
}
}
whenLastCirclePlayed
(){
whenLastCirclePlayed
(){
...
...
public/src/js/scoresheet.js
View file @
41cc5842
...
@@ -34,6 +34,7 @@ class Scoresheet{
...
@@ -34,6 +34,7 @@ class Scoresheet{
this
.
altText
(
this
.
elem
(
"
nb-good
"
,
scoreCont
),
score
.
good
)
this
.
altText
(
this
.
elem
(
"
nb-good
"
,
scoreCont
),
score
.
good
)
this
.
altText
(
this
.
elem
(
"
nb-fail
"
,
scoreCont
),
score
.
fail
)
this
.
altText
(
this
.
elem
(
"
nb-fail
"
,
scoreCont
),
score
.
fail
)
this
.
altText
(
this
.
elem
(
"
max-combo
"
,
scoreCont
),
score
.
maxCombo
)
this
.
altText
(
this
.
elem
(
"
max-combo
"
,
scoreCont
),
score
.
maxCombo
)
this
.
altText
(
this
.
elem
(
"
nb-drumroll
"
,
scoreCont
),
score
.
drumroll
)
addEventListener
(
"
resize
"
,
()
=>
{
addEventListener
(
"
resize
"
,
()
=>
{
this
.
positionning
(
scoreCont
)
this
.
positionning
(
scoreCont
)
...
...
public/src/views/scoresheet.html
View file @
41cc5842
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
<tr>
<tr>
<th
class=
"header-good stroke-sub"
alt=
"可"
>
可
</th>
<th
class=
"header-good stroke-sub"
alt=
"可"
>
可
</th>
<td
class=
"value nb-good stroke-sub"
></td>
<td
class=
"value nb-good stroke-sub"
></td>
<
!--<td class="stroke-sub" alt="連打数">連打数</td><td class="value nb-rendasu stroke-sub"></td>--
>
<
td
class=
"stroke-sub"
alt=
"連打数"
>
連打数
</td><td
class=
"value nb-drumroll stroke-sub"
></td
>
</tr>
</tr>
<tr>
<tr>
<th
class=
"header-fail stroke-sub"
alt=
"不可"
>
不可
</th>
<th
class=
"header-fail stroke-sub"
alt=
"不可"
>
不可
</th>
...
...
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