@Override
    protected boolean checkCollision(float xx, float yy) {
        for (int corner = 0; corner < 4; corner++) {
            int xc = (int) (((x + xx) + corner % 2 * 13 + 1) / Tile.SIZE);
            int yc = (int) (((y + yy) + corner / 2 * 13 + 1) / Tile.SIZE);
            if (world.getTile(xc, yc).isSolid()) {
                if (corner == 2 || corner == 3) {
                    if (Game.type == GameType.PLATFORMER) {
                        velY = 0;
                        falling = false;
                        jumping = false;
                    }
                } else falling = true;
                return true;
            }
        }
        falling = true;
        return false;
    }