japanese-drum-game/public/src/js/tutorial.js

18 lines
465 B
JavaScript
Raw Normal View History

2018-09-03 00:11:09 +08:00
function Tutorial() {
var _this = this;
this.run = function() {
2018-09-11 06:17:13 +08:00
assets.sounds["bgm_setsume"].playLoop(0, false, 0, 1.0540416666666668)
2018-09-03 00:11:09 +08:00
$('#tutorial-end-button').click(function(){
2018-09-11 06:17:13 +08:00
assets.sounds["bgm_setsume"].stop();
assets.sounds["don"].play();
2018-09-03 00:11:09 +08:00
localStorage.setItem('tutorial', 'true');
new SongSelect();
});
};
$('#screen').load('/src/views/tutorial.html', _this.run);
};