summaryrefslogtreecommitdiff
path: root/jaws/src/viewport.js
diff options
context:
space:
mode:
authorMichele Bini <michele.bini@gmail.com>2014-10-05 14:38:17 (GMT)
committerMichele Bini <michele.bini@gmail.com>2014-10-05 14:38:17 (GMT)
commit26e282e626be8d16eb40fe1ddf4454f96037a3e1 (patch)
tree5711a4aa5c679d24b3bfeddb90b1f88b371347eb /jaws/src/viewport.js
parent251eb1a64f07b5267ddc6a15c9cc1b1187dfe53e (diff)
jaws: Remove tilemap support
Diffstat (limited to 'jaws/src/viewport.js')
-rwxr-xr-xjaws/src/viewport.js11
1 files changed, 0 insertions, 11 deletions
diff --git a/jaws/src/viewport.js b/jaws/src/viewport.js
index 992ccff..c273f47 100755
--- a/jaws/src/viewport.js
+++ b/jaws/src/viewport.js
@@ -167,17 +167,6 @@ jaws.Viewport = function ViewPort(options) {
});
}
- /**
- * draws all items of 'tile_map' that's lies inside the viewport
- * this is simular to viewport.draw( tile_map.all() ) but optmized for Huge game worlds (tile maps)
- */
- this.drawTileMap = function( tile_map ) {
- var sprites = tile_map.atRect({ x: this.x, y: this.y, right: this.x + this.width, bottom: this.y + this.height })
- this.apply( function() {
- for(var i=0; i < sprites.length; i++) sprites[i].draw();
- });
- }
-
/** draws 'item' if it's partly inside the viewport */
this.drawIfPartlyInside = function(item) {
if(that.isPartlyInside(item)) item.draw();