Skip to content

Why does not support zoom out ? #28

@fanflash

Description

@fanflash

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions