public Bullet() { super(AssetLoader.getInstance().getImage("bullet")); m = World.getInstance().getEntityManager(); }
/** use this for level collision ect. */ public void checkForUnwantedContacts(Contact contact) { Entity other = getOtherEntity(contact); if (other == null) { World.getInstance().getEntityManager().removeEntity(this); } }
@Override void enter() { timer = 500; Astronaut astronaut = World.getInstance().getAstronaut(); target = astronaut.getPosition().sub(getPosition()).normalise().scale(ATTACKSPEED); }