View: Add song backgrounds

This commit is contained in:
LoveEevee
2018-11-23 19:53:29 +03:00
parent 8f1f029b8e
commit 87bdf7a407
8 changed files with 108 additions and 22 deletions

View File

@@ -7,8 +7,6 @@ class Controller{
this.touchEnabled = touchEnabled
this.snd = this.multiplayer ? "_p" + this.multiplayer : ""
var backgroundURL = gameConfig.songs_baseurl + this.selectedSong.folder + "/bg.png"
if(selectedSong.type === "tja"){
this.parsedSongData = new ParseTja(songData, selectedSong.difficulty, selectedSong.offset)
}else{
@@ -23,7 +21,7 @@ class Controller{
})
this.game = new Game(this, this.selectedSong, this.parsedSongData)
this.view = new View(this, backgroundURL, this.selectedSong.title, this.selectedSong.difficulty)
this.view = new View(this)
this.mekadon = new Mekadon(this, this.game)
this.keyboard = new Keyboard(this)