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
fecf4d86
Commit
fecf4d86
authored
Oct 12, 2018
by
LoveEevee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add fallback font
parent
f80565f2
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
10 deletions
+13
-10
public/src/css/game.css
public/src/css/game.css
+1
-1
public/src/css/main.css
public/src/css/main.css
+2
-2
public/src/js/canvastest.js
public/src/js/canvastest.js
+1
-1
public/src/js/scoresheet.js
public/src/js/scoresheet.js
+1
-1
public/src/js/songselect.js
public/src/js/songselect.js
+4
-1
public/src/js/view.js
public/src/js/view.js
+4
-4
No files found.
public/src/css/game.css
View file @
fecf4d86
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
border
:
.5vmin
solid
#ae7a26
;
border
:
.5vmin
solid
#ae7a26
;
background
:
#fff
;
background
:
#fff
;
color
:
#000
;
color
:
#000
;
font-family
:
TnT
;
font-family
:
TnT
,
Meiryo
,
sans-serif
;
font-size
:
3.5vmin
;
font-size
:
3.5vmin
;
border-radius
:
1.5vmin
;
border-radius
:
1.5vmin
;
outline
:
none
;
outline
:
none
;
...
...
public/src/css/main.css
View file @
fecf4d86
...
@@ -21,7 +21,7 @@ body{
...
@@ -21,7 +21,7 @@ body{
margin
:
0
;
margin
:
0
;
padding
:
0
;
padding
:
0
;
background
:
#fe7839
url("/assets/img/bg-pattern-1.png")
top
center
;
background
:
#fe7839
url("/assets/img/bg-pattern-1.png")
top
center
;
font-family
:
TnT
;
font-family
:
TnT
,
Meiryo
,
sans-serif
;
}
}
#assets
{
#assets
{
display
:
none
;
display
:
none
;
...
@@ -234,7 +234,7 @@ kbd{
...
@@ -234,7 +234,7 @@ kbd{
bottom
:
1vh
;
bottom
:
1vh
;
right
:
1vh
;
right
:
1vh
;
opacity
:
0.7
;
opacity
:
0.7
;
font-family
:
TnT
;
font-family
:
TnT
,
Meiryo
,
sans-serif
;
}
}
#version
a
{
#version
a
{
...
...
public/src/js/canvastest.js
View file @
fecf4d86
...
@@ -103,7 +103,7 @@ class CanvasTest{
...
@@ -103,7 +103,7 @@ class CanvasTest{
var
comboX
=
100
var
comboX
=
100
var
comboY
=
100
var
comboY
=
100
var
fontSize
=
120
var
fontSize
=
120
this
.
ctx
.
font
=
"
normal
"
+
fontSize
+
"
px TnT
"
this
.
ctx
.
font
=
"
normal
"
+
fontSize
+
"
px TnT
, Meiryo, sans-serif
"
this
.
ctx
.
textAlign
=
"
center
"
this
.
ctx
.
textAlign
=
"
center
"
this
.
ctx
.
strokeStyle
=
"
#000
"
this
.
ctx
.
strokeStyle
=
"
#000
"
this
.
ctx
.
lineWidth
=
fontSize
/
10
this
.
ctx
.
lineWidth
=
fontSize
/
10
...
...
public/src/js/scoresheet.js
View file @
fecf4d86
...
@@ -10,7 +10,7 @@ class Scoresheet{
...
@@ -10,7 +10,7 @@ class Scoresheet{
this
.
canvas
=
document
.
getElementById
(
"
canvas
"
)
this
.
canvas
=
document
.
getElementById
(
"
canvas
"
)
this
.
ctx
=
this
.
canvas
.
getContext
(
"
2d
"
)
this
.
ctx
=
this
.
canvas
.
getContext
(
"
2d
"
)
this
.
font
=
"
TnT
"
this
.
font
=
"
TnT
, Meiryo, sans-serif
"
this
.
state
=
{
this
.
state
=
{
screen
:
"
fadeIn
"
,
screen
:
"
fadeIn
"
,
screenMS
:
this
.
getMS
(),
screenMS
:
this
.
getMS
(),
...
...
public/src/js/songselect.js
View file @
fecf4d86
...
@@ -78,7 +78,7 @@ class SongSelect{
...
@@ -78,7 +78,7 @@ class SongSelect{
outline
:
"
#656565
"
outline
:
"
#656565
"
}
}
}
}
this
.
font
=
"
TnT
"
this
.
font
=
"
TnT
, Meiryo, sans-serif
"
this
.
songs
=
[]
this
.
songs
=
[]
for
(
let
song
of
assets
.
songs
){
for
(
let
song
of
assets
.
songs
){
...
@@ -432,6 +432,9 @@ class SongSelect{
...
@@ -432,6 +432,9 @@ class SongSelect{
this
.
state
.
locked
=
true
this
.
state
.
locked
=
true
this
.
state
.
moveHover
=
null
this
.
state
.
moveHover
=
null
this
.
state
.
ura
=
0
this
.
state
.
ura
=
0
if
(
this
.
selectedDiff
===
5
){
this
.
selectedDiff
=
4
}
assets
.
sounds
[
"
don
"
].
play
()
assets
.
sounds
[
"
don
"
].
play
()
assets
.
sounds
[
"
song-select
"
].
stop
()
assets
.
sounds
[
"
song-select
"
].
stop
()
...
...
public/src/js/view.js
View file @
fecf4d86
...
@@ -76,7 +76,7 @@ class View{
...
@@ -76,7 +76,7 @@ class View{
}
}
}
}
run
(){
run
(){
this
.
ctx
.
font
=
"
normal 14pt TnT
"
this
.
ctx
.
font
=
"
normal 14pt TnT
, Meiryo, sans-serif
"
this
.
setBackground
()
this
.
setBackground
()
if
(
this
.
controller
.
multiplayer
!==
2
){
if
(
this
.
controller
.
multiplayer
!==
2
){
...
@@ -321,7 +321,7 @@ class View{
...
@@ -321,7 +321,7 @@ class View{
var
comboX
=
this
.
taikoX
+
this
.
taikoW
/
2
var
comboX
=
this
.
taikoX
+
this
.
taikoW
/
2
var
comboY
=
this
.
barY
+
this
.
barH
/
2
var
comboY
=
this
.
barY
+
this
.
barH
/
2
var
fontSize
=
this
.
taikoH
*
0.4
var
fontSize
=
this
.
taikoH
*
0.4
this
.
ctx
.
font
=
"
normal
"
+
fontSize
+
"
px TnT
"
this
.
ctx
.
font
=
"
normal
"
+
fontSize
+
"
px TnT
, Meiryo, sans-serif
"
this
.
ctx
.
textAlign
=
"
center
"
this
.
ctx
.
textAlign
=
"
center
"
this
.
ctx
.
strokeStyle
=
"
#000
"
this
.
ctx
.
strokeStyle
=
"
#000
"
this
.
ctx
.
lineWidth
=
fontSize
/
10
this
.
ctx
.
lineWidth
=
fontSize
/
10
...
@@ -357,7 +357,7 @@ class View{
...
@@ -357,7 +357,7 @@ class View{
}
else
{
}
else
{
this
.
ctx
.
fillStyle
=
"
#fff
"
this
.
ctx
.
fillStyle
=
"
#fff
"
}
}
this
.
ctx
.
font
=
"
normal
"
+
fontSize
+
"
px TnT
"
this
.
ctx
.
font
=
"
normal
"
+
fontSize
+
"
px TnT
, Meiryo, sans-serif
"
this
.
ctx
.
lineWidth
=
fontSize
/
5
this
.
ctx
.
lineWidth
=
fontSize
/
5
this
.
strokeFillText
(
"
コンボ
"
,
this
.
strokeFillText
(
"
コンボ
"
,
comboX
,
comboX
,
...
@@ -389,7 +389,7 @@ class View{
...
@@ -389,7 +389,7 @@ class View{
var
fontSize
=
0.7
*
this
.
scoreSquareH
var
fontSize
=
0.7
*
this
.
scoreSquareH
// Draw score text
// Draw score text
this
.
ctx
.
font
=
"
normal
"
+
fontSize
+
"
px TnT
"
this
.
ctx
.
font
=
"
normal
"
+
fontSize
+
"
px TnT
, Meiryo, sans-serif
"
this
.
ctx
.
fillStyle
=
"
#fff
"
this
.
ctx
.
fillStyle
=
"
#fff
"
this
.
ctx
.
textAlign
=
"
center
"
this
.
ctx
.
textAlign
=
"
center
"
var
glyph
=
this
.
ctx
.
measureText
(
"
0
"
).
width
var
glyph
=
this
.
ctx
.
measureText
(
"
0
"
).
width
...
...
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