Package it.marteEngine

Examples of it.marteEngine.Camera


        //Creamos la música
        musicaPasillo = ResourceManager.getMusic("pasillo");

        //Creamos la cámara que seguira al jugador y le cambiamos la posición inicial
        camara = new Camera(this, player, container.getWidth(), container.getHeight(), 712, 712, player.mySpeed);
        setCamera(camara);
        camara.cameraX = 120 * TAMANO_CASILLA;
        camara.cameraY = 92 * TAMANO_CASILLA;
    }
View Full Code Here


    PlatformerEntity player = loadPlayer(map, "player");
    // old camera
    // setCamera(new Camera(this, player, container.getWidth(),
    // container.getHeight()));
    setCamera(new Camera(this, player, container.getWidth(),
        container.getHeight(), 550, 170, player.maxSpeed));

    add(new Background(0, 0), BELOW);

    time = 0;
View Full Code Here

    gameWorld.add(player);
    gameWorld.add(temple);
    gameWorld.add(sword);

    // set screen camera to follo player
    gameWorld.setCamera(new Camera(gameWorld, player, container.getWidth(),
        container.getHeight(), container.getWidth() - 100, container
            .getHeight() - 100, player.mySpeed));
    ME.world = gameWorld;

    addState(gameWorld);
View Full Code Here

TOP

Related Classes of it.marteEngine.Camera

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.