added tiled level support

This commit is contained in:
logsol 2014-02-03 14:08:45 +01:00
parent 83e78a5732
commit 3782fa345b
13 changed files with 113 additions and 39 deletions

View file

@ -15,11 +15,15 @@ function (Parent, Settings, NotificationCenter) {
Tile.prototype.createMesh = function() {
var self = this;
/*
var texturePath = Settings.GRAPHICS_PATH
+ Settings.GRAPHICS_SUBPATH_TILES
+ this.options.m + '/'
+ this.options.s + ''
+ (this.options.r || 0) + '.gif';
*/
var texturePath = Settings.MAPS_PATH + this.options.t;
var callback = function(mesh) {
self.mesh = mesh;