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

@@ -78,6 +78,10 @@ class Loader{
this.promises.push(this.ajax("/api/songs").then(songs => {
assets.songs = JSON.parse(songs)
}))
this.promises.push(this.ajax("/api/config").then(conf => {
gameConfig = JSON.parse(conf)
}))
assets.views.forEach(name => {
var id = this.getFilename(name)