File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -756,6 +756,10 @@ var BaseCamera = new Class({
756756 var scrollY = this . scrollY ;
757757 var cameraW = this . width ;
758758 var cameraH = this . height ;
759+ var cullTop = this . y ;
760+ var cullBottom = cullTop + cameraH ;
761+ var cullLeft = this . x ;
762+ var cullRight = cullLeft + cameraW ;
759763 var culledObjects = this . culledObjects ;
760764 var length = renderableObjects . length ;
761765
@@ -781,10 +785,6 @@ var BaseCamera = new Class({
781785 var ty = ( objectX * mvb + objectY * mvd + mvf ) ;
782786 var tw = ( ( objectX + objectW ) * mva + ( objectY + objectH ) * mvc + mve ) ;
783787 var th = ( ( objectX + objectW ) * mvb + ( objectY + objectH ) * mvd + mvf ) ;
784- var cullTop = this . y ;
785- var cullBottom = cullTop + cameraH ;
786- var cullLeft = this . x ;
787- var cullRight = cullLeft + cameraW ;
788788
789789 if ( ( tw > cullLeft && tx < cullRight ) && ( th > cullTop && ty < cullBottom ) )
790790 {
You can’t perform that action at this time.
0 commit comments