summaryrefslogtreecommitdiff
path: root/jaws/src/viewport.js
diff options
context:
space:
mode:
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();