/** * Request that this alien moved based on time elapsed * * @param delta The time that has elapsed since last move */ public void move(long delta) { // if we have reached the left hand side of the screen and // are moving left then request a logic update // if ((dx < 0) && (x < 10)) { // game.updateLogic(); // } // // and vice vesa, if we have reached the right hand side of // // the screen and are moving right, request a logic update // if ((dx > 0) && (x > 750)) { // game.updateLogic(); // } game.updateLogic(); // proceed with normal move super.move(delta); }