If we have tiles just off the bottom they can stick up into our screen.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@945 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -163,7 +163,7 @@ public class MisoScenePanel extends Sprite
|
|||||||
var minX :int = xMove;
|
var minX :int = xMove;
|
||||||
var maxX :int = size.x + xMove;
|
var maxX :int = size.x + xMove;
|
||||||
var minY :int = yMove;
|
var minY :int = yMove;
|
||||||
var maxY :int = size.y + yMove;
|
var maxY :int = BOTTOM_BUFFER + size.y + yMove;
|
||||||
|
|
||||||
var topLeft :Point = _isoView.localToIso(new Point(minX, minY));
|
var topLeft :Point = _isoView.localToIso(new Point(minX, minY));
|
||||||
var topRight :Point = _isoView.localToIso(new Point(maxX, minY));
|
var topRight :Point = _isoView.localToIso(new Point(maxX, minY));
|
||||||
@@ -310,6 +310,8 @@ public class MisoScenePanel extends Sprite
|
|||||||
|
|
||||||
protected const DEF_WIDTH :int = 985;
|
protected const DEF_WIDTH :int = 985;
|
||||||
protected const DEF_HEIGHT :int = 560;
|
protected const DEF_HEIGHT :int = 560;
|
||||||
|
|
||||||
|
protected const BOTTOM_BUFFER :int = 250;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user