@@ -0,0 +1,1007 @@
+//Created by Ammad Hashmi %5BSyrobia%5D www.syrobia.github.io%0A//package com.github.syrobia.tankinvaders.alienentity;%0A%0A//alien entity%0Apublic class AlienEntity extends Entity %7B%0A%09//horizontal speed%0A%09private double moveSpeed = 75;%0A%09//entity in this game%0A%09private Game game;%0A%09%0A%09//create entity%0A   %09public AlienEntity(Game game,String ref,int x,int y) %7B%0A%09%09super(ref,x,y);%0A%09%09%0A%09%09this.game = game;%0A%09%09dx = -moveSpeed;%0A%09%7D%0A%0A%09//move with game logic%0A%09public void move(long delta) %7B%0A%09%09//when on left side, use game logic to switch movement%0A%09%09if ((dx %3C 0) && (x %3C 10)) %7B%0A%09%09%09game.updateLogic();%0A%09%09%7D%0A%09%09//other way around%0A%09%09if ((dx %3E 0) && (x %3E 750)) %7B%0A%09%09%09game.updateLogic();%0A%09%09%7D%0A%09%09%0A%09%09//normal movement%0A%0A%09%09super.move(delta);%0A%09%7D%0A%09%0A%09//game logic%0A%09public void doLogic() %7B%0A%09%09//swap movement and down a row%0A%09%09dx = -dx;%0A%09%09y += 10;%0A%09%09%0A      //if reach bottom then player death%0A%09%09if (y %3E 570) %7B%0A%09%09%09game.notifyDeath();%0A%09%09%7D%0A%09%7D%0A%09%0A%09//collision%0A%09public void collidedWith(Entity other) %7B%0A%09%09// collisions with aliens are handled elsewhere%0A%0A%09%7D%0A%7D%0A

Create AlienEntity.java