I have a question: Why does not support zoom out?
I found that I just changed very little code can support this feature.
you are deliberately wrote?
change the following code:
1.
public function Ax(initialState:Class = null, width:uint = 0, height:uint = 0, zoom:uint = 1, framerate:uint = 60, fixedTimestep:Boolean = false) {
if (zoom < 1) {
throw new Error("Zoom level must be an integer greater than 0");
}
==>
public function Ax(initialState:Class = null, width:uint = 0, height:uint = 0, zoom:Number = 1, framerate:uint = 60, fixedTimestep:Boolean = false) {
//if (zoom < 1) {
//throw new Error("Zoom level must be an integer greater than 0");
//}
Ax.worldZoom = Math.ceil(worldZoom);
==>
Ax.worldZoom = worldZoom;
I have a question: Why does not support zoom out?
I found that I just changed very little code can support this feature.
you are deliberately wrote?
change the following code:
1.
public function Ax(initialState:Class = null, width:uint = 0, height:uint = 0, zoom:uint = 1, framerate:uint = 60, fixedTimestep:Boolean = false) {
if (zoom < 1) {
throw new Error("Zoom level must be an integer greater than 0");
}
==>
Ax.worldZoom = Math.ceil(worldZoom);
==>
Ax.worldZoom = worldZoom;