Examples of PlatformerEntity


Examples of it.marteEngine.entity.PlatformerEntity

    blocked = new int[widthInTiles][heightInTiles];

    loadEntityFromMap(map, Arrays.asList("entity", "background", "star",
        "enemies", "spikes"));

    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));
View Full Code Here

Examples of it.marteEngine.entity.PlatformerEntity

  public void init(GameContainer container, StateBasedGame game)
      throws SlickException {

    super.init(container, game);
    // create player & camera
    PlatformerEntity player = new PlatformerEntity(80, 100, "player");
    add(player);

    // add some blocks to level, I will just create and add to the world
    Image block = ResourceManager.getImage("block");
    // bottom
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.