add game config

This commit is contained in:
Bui
2018-10-27 22:42:28 +01:00
parent 5fcdca89e5
commit 2598a5014d
9 changed files with 34 additions and 8 deletions

View File

@@ -7,7 +7,7 @@ class Controller{
this.touchEnabled = touchEnabled
this.snd = this.multiplayer ? "_p" + this.multiplayer : ""
var backgroundURL = "/songs/" + this.selectedSong.folder + "/bg.png"
var backgroundURL = gameConfig.songs_baseurl + this.selectedSong.folder + "/bg.png"
if(selectedSong.type === "tja"){
this.parsedSongData = new ParseTja(songData, selectedSong.difficulty, selectedSong.offset)