@@ -428,8 +428,8 @@ var Camera = new Class({
428428 var cullW = cameraW + objectW ;
429429 var cullH = cameraH + objectH ;
430430
431- if ( tx > - objectW || ty > - objectH || tx < cullW || ty < cullH ||
432- tw > - objectW || th > - objectH || tw < cullW || th < cullH )
431+ if ( tx > - objectW && ty > - objectH && tx < cullW && ty < cullH &&
432+ tw > - objectW && th > - objectH && tw < cullW && th < cullH )
433433 {
434434 culledObjects . push ( object ) ;
435435 }
@@ -753,7 +753,7 @@ var Camera = new Class({
753753
754754 /**
755755 * Set the rotation of this Camera. This causes everything it renders to appear rotated.
756- *
756+ *
757757 * Rotating a camera does not rotate the viewport itself, it is applied during rendering.
758758 *
759759 * @method Phaser.Cameras.Scene2D.Camera#setAngle
@@ -774,7 +774,7 @@ var Camera = new Class({
774774
775775 /**
776776 * Sets the background color for this Camera.
777- *
777+ *
778778 * By default a Camera has a transparent background but it can be given a solid color, with any level
779779 * of transparency, via this method.
780780 *
@@ -845,7 +845,7 @@ var Camera = new Class({
845845
846846 /**
847847 * Set the position of the Camera viewport within the game.
848- *
848+ *
849849 * This does not change where the camera is 'looking'. See `setScroll` to control that.
850850 *
851851 * @method Phaser.Cameras.Scene2D.Camera#setPosition
@@ -868,7 +868,7 @@ var Camera = new Class({
868868
869869 /**
870870 * Set the rotation of this Camera. This causes everything it renders to appear rotated.
871- *
871+ *
872872 * Rotating a camera does not rotate the viewport itself, it is applied during rendering.
873873 *
874874 * @method Phaser.Cameras.Scene2D.Camera#setRotation
@@ -926,7 +926,7 @@ var Camera = new Class({
926926 * Set the position of where the Camera is looking within the game.
927927 * You can also modify the properties `Camera.scrollX` and `Camera.scrollY` directly.
928928 * Use this method, or the scroll properties, to move your camera around the game world.
929- *
929+ *
930930 * This does not change where the camera viewport is placed. See `setPosition` to control that.
931931 *
932932 * @method Phaser.Cameras.Scene2D.Camera#setScroll
@@ -978,7 +978,7 @@ var Camera = new Class({
978978 * If you're trying to change where the Camera is looking at in your game, then see
979979 * the method `Camera.setScroll` instead. This method is for changing the viewport
980980 * itself, not what the camera can see.
981- *
981+ *
982982 * By default a Camera is the same size as the game, but can be made smaller via this method,
983983 * allowing you to create mini-cam style effects by creating and positioning a smaller Camera
984984 * viewport within your game.
0 commit comments