mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
first attempt to implement tiled style maps
This commit is contained in:
parent
3c8d3d3d8e
commit
b02036a019
5 changed files with 87 additions and 16 deletions
|
|
@ -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;
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue