first attempt to implement tiled style maps

This commit is contained in:
logsol 2014-01-28 21:34:46 +01:00
parent 3c8d3d3d8e
commit b02036a019
5 changed files with 87 additions and 16 deletions

View file

@ -1,9 +1,25 @@
define([
"Game/Core/Loader/Level"
"Game/Core/Loader/Level",
"Game/Config/Settings"
"fs"
],
function(Parent) {
return Parent;
function (Parent, Fs) {
function Level () {
Parent.call(this);
}
Level.prototype = Object.create(Parent.prototype);
Level.prototype.loadLevelObjectFromPath = function (path, callback) {
// overwriting parent
fs.readFile( + path, function (err, data) {
if (err) throw err;
callback(data);
});
}
return Level;
});