Package org.bitbucket.woolmark

Examples of org.bitbucket.woolmark.World


    }

    private int calcJumpX() {
        // y = -1 * fence.height / fence.width * (x - (frame.width - fence.width) / 2) + frame.height

        World world = getWorld();
        int fw = world.getWidth();
        int fh = world.getHeight();

        Fence fence = world.findFirstObject(Fence.class);
        int w = fence.getWidth();
        int h = fence.getHeight();

        return -1 * (getY() - fh) * w / h + (fw - w) / 2;
    }
View Full Code Here

TOP

Related Classes of org.bitbucket.woolmark.World

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.