Package it.marteEngine

Examples of it.marteEngine.World


  public void initStatesList(GameContainer container) throws SlickException {
    initRessources();

    StaticActor helloWorld = new StaticActor(300, 250, 35, 35,
        ResourceManager.getImage("hello"));
    World world = new World(0, container);
    world.add(helloWorld);

    addState(world);

  }
View Full Code Here


  }

  @Override
  public void initStatesList(GameContainer container) throws SlickException {

    World gameWorld = new World(0, container);
    // make the world a bit bigger than the screen to force camera scrolling
    gameWorld.setWidth(2000);
    gameWorld.setHeight(2000);

    // create player
    TopDownActor player = new TopDownActor(400, 400, "data/link.png");
    // create sword relative to player
    Sword sword = new Sword(player.x, player.x, "data/sword.png", player);
    // create temple
    StaticActor temple = new StaticActor(150, 150, 48, 48,
        "data/tiles.png", 0, 6);

    // add entities
    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

    super("AngleAlphaScaleMoveTest");
  }

  @Override
  public void initStatesList(GameContainer container) throws SlickException {
    World world = new World(0, container);
    prepareTestScenario(container, world);
    addState(world);
  }
View Full Code Here

  }

  @Override
  public void initStatesList(GameContainer container) throws SlickException {

    World state = new World(0, container);

    Entity e = new StaticActor(100, 100, 100, 100, "data/cross.png");
    e.speed = new Vector2f(8, 8);
    e.stateManager.addAll(new IdleState(e), new MovingState(e),
        new CombatState(e));
    state.add(e);

    addState(state);
  }
View Full Code Here

TOP

Related Classes of it.marteEngine.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.