mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
Makes world in Engine private
And some refactoring.
This commit is contained in:
parent
8641a2dc0b
commit
c068592915
3 changed files with 12 additions and 14 deletions
|
|
@ -25,6 +25,7 @@ define([
|
|||
|
||||
Level.prototype.load = function (uid) {
|
||||
var self = this;
|
||||
// FIXME: check if theres a security hazard here (user injected path)
|
||||
var path = Settings.MAPS_PATH + uid + ".json";
|
||||
this.loadLevelDataFromPath(path, function (levelData) {
|
||||
self.setup(levelData);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue