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
9e60cf0f
Commit
9e60cf0f
authored
Aug 06, 2018
by
Bui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aaa
parent
f69b0fe3
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
5 deletions
+12
-5
src/css/game.css
src/css/game.css
+1
-0
src/css/main.css
src/css/main.css
+1
-1
src/js/controller.js
src/js/controller.js
+1
-1
src/js/scoresheet.js
src/js/scoresheet.js
+3
-2
src/js/view.js
src/js/view.js
+5
-1
src/views/game.html
src/views/game.html
+1
-0
No files found.
src/css/game.css
View file @
9e60cf0f
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
top
:
0
;
top
:
0
;
left
:
0
;
left
:
0
;
background
:
rgba
(
0
,
0
,
0
,
0.75
);
background
:
rgba
(
0
,
0
,
0
,
0.75
);
z-index
:
5
;
}
}
#pause-menu
button
{
#pause-menu
button
{
...
...
src/css/main.css
View file @
9e60cf0f
...
@@ -54,7 +54,7 @@ html, body{
...
@@ -54,7 +54,7 @@ html, body{
z-index
:
1
;
z-index
:
1
;
}
}
.result-song
{
.result-song
,
.game-song
{
position
:
absolute
;
position
:
absolute
;
right
:
0
;
right
:
0
;
font-size
:
5vmin
;
font-size
:
5vmin
;
...
...
src/js/controller.js
View file @
9e60cf0f
...
@@ -7,7 +7,7 @@ function Controller(selectedSong, songData){
...
@@ -7,7 +7,7 @@ function Controller(selectedSong, songData){
var
_songData
=
_songParser
.
getData
();
var
_songData
=
_songParser
.
getData
();
var
_game
=
new
Game
(
this
,
selectedSong
,
_songData
);
var
_game
=
new
Game
(
this
,
selectedSong
,
_songData
);
var
_view
=
new
View
(
this
,
_backgroundURL
);
var
_view
=
new
View
(
this
,
_backgroundURL
,
selectedSong
.
title
);
var
_keyboard
=
new
Keyboard
(
this
);
var
_keyboard
=
new
Keyboard
(
this
);
var
_mainLoop
;
var
_mainLoop
;
var
_pauseMenu
=
false
;
var
_pauseMenu
=
false
;
...
...
src/js/scoresheet.js
View file @
9e60cf0f
function
Scoresheet
(
controller
,
score
){
function
Scoresheet
(
controller
,
score
){
var
_this
=
this
;
var
_this
=
this
;
...
@@ -85,14 +86,14 @@ function Scoresheet(controller, score){
...
@@ -85,14 +86,14 @@ function Scoresheet(controller, score){
$
(
"
#song-select
"
).
click
(
function
(){
$
(
"
#song-select
"
).
click
(
function
(){
assets
.
sounds
[
"
don
"
].
play
();
assets
.
sounds
[
"
don
"
].
play
();
assets
.
sounds
[
"
bgm_results
"
].
pause
();
assets
.
sounds
[
"
bgm_results
"
].
pause
();
assets
.
sounds
[
"
bgm_
songsel
"
].
currentTime
=
0
;
assets
.
sounds
[
"
bgm_
results
"
].
currentTime
=
0
;
controller
.
songSelection
();
controller
.
songSelection
();
});
});
$
(
"
#replay
"
).
click
(
function
(){
$
(
"
#replay
"
).
click
(
function
(){
assets
.
sounds
[
"
don
"
].
play
();
assets
.
sounds
[
"
don
"
].
play
();
assets
.
sounds
[
"
bgm_results
"
].
pause
();
assets
.
sounds
[
"
bgm_results
"
].
pause
();
assets
.
sounds
[
"
bgm_
songsel
"
].
currentTime
=
0
;
assets
.
sounds
[
"
bgm_
results
"
].
currentTime
=
0
;
controller
.
restartSong
();
controller
.
restartSong
();
});
});
...
...
src/js/view.js
View file @
9e60cf0f
function
View
(
controller
,
bg
){
function
View
(
controller
,
bg
,
title
){
var
_this
=
this
;
var
_this
=
this
;
var
_canvas
=
document
.
getElementById
(
'
canvas
'
);
var
_canvas
=
document
.
getElementById
(
'
canvas
'
);
...
@@ -56,10 +56,14 @@ function View(controller, bg){
...
@@ -56,10 +56,14 @@ function View(controller, bg){
var
_currentBigDonFace
=
1
;
var
_currentBigDonFace
=
1
;
var
_nextBeat
=
0
;
var
_nextBeat
=
0
;
var
_songTitle
=
title
;
this
.
run
=
function
(){
this
.
run
=
function
(){
_ctx
.
font
=
_mainFont
;
_ctx
.
font
=
_mainFont
;
_this
.
setBackground
();
_this
.
setBackground
();
$
(
'
.game-song
'
).
attr
(
'
alt
'
,
_songTitle
).
html
(
_songTitle
);
_this
.
refresh
();
_this
.
refresh
();
}
}
...
...
src/views/game.html
View file @
9e60cf0f
<div
id=
'game'
>
<div
id=
'game'
>
<h3
alt=
""
class=
"stroke-sub game-song"
></h3>
<canvas
id=
'canvas'
></canvas>
<canvas
id=
'canvas'
></canvas>
...
...
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