mirror of
https://github.com/jiojciojsioe3/a3cjroijsiojiorj.git
synced 2024-11-15 07:21:50 +08:00
aaa
This commit is contained in:
parent
f69b0fe38a
commit
9e60cf0fee
@ -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{
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
|
||||||
function Scoresheet(controller, score){
|
function Scoresheet(controller, score){
|
||||||
|
|
||||||
var _this = this;
|
var _this = this;
|
||||||
@ -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();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
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');
|
||||||
@ -57,9 +57,13 @@ function View(controller, bg){
|
|||||||
|
|
||||||
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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
<div id='game'>
|
<div id='game'>
|
||||||
|
<h3 alt="" class="stroke-sub game-song"></h3>
|
||||||
|
|
||||||
<canvas id='canvas'></canvas>
|
<canvas id='canvas'></canvas>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user