add tutorial screen

This commit is contained in:
Bui
2018-09-02 17:11:09 +01:00
parent a95f2e4319
commit 2405345291
8 changed files with 147 additions and 3 deletions

View File

@@ -41,7 +41,11 @@ function Titlescreen(){
assets.sounds["title"].currentTime = 0;
assets.sounds["don"].playAsset();
new SongSelect();
if (localStorage.getItem('tutorial') !== 'true') {
new Tutorial();
} else {
new SongSelect();
};
}
$("#screen").load("/src/views/titlescreen.html", _this.run);