Package it.marteEngine.entity

Examples of it.marteEngine.entity.Entity


      if (motion != null) {
        motion.update(delta);
        setPosition(motion.getPosition());
      }
      ty = y;
      Entity player = collide(PLAYER, x, y);
      if (player != null) {
        ((FuzzyPlayer) player).damage(30);
      }

      if (ME.world.getNrOfEntities(TargetBlock.TARGET_BLOCK) == 0) {
View Full Code Here


    setHitBox(0, 0, width, height);
  }

  public void update(GameContainer container, int delta)
      throws SlickException {
    Entity sun = this.world.find("Sun");
    if (sun != null && sun.visible)
      this.visible = false;
    else
      this.visible = true;
  }
View Full Code Here

  public void update(GameContainer container, int delta)
      throws SlickException {
    super.update(container, delta);
    x += (speed * delta);

    Entity player = collide(Entity.PLAYER, x, y);
    if (player != null) {
      Angel angel = (Angel) player;
      if (normalPlayerSpeed == null) {
        // store the player speed and give him half the amount to slow
        // him down
View Full Code Here

    if (previousx != x || previousy != y)
      myLight.setLocation(x + StarCleaner.TILESIZE / 2, y
          + StarCleaner.TILESIZE / 2);

    // did we collect a star?
    Entity star = collide(Star.STAR_TYPE, x, y);
    if (star != null)
      pickupstarSnd.play();

    Entity sunOrMoon = collide(Sun.SUN_AND_MOON, x, y);

    // did we collide with a spike or a crow?
    if (collide(enemies, x, y) != null) {
      hitSnd.play();
      Globals.playerDead = true;
View Full Code Here

TOP

Related Classes of it.marteEngine.entity.Entity

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.