@@ -0,0 +1,773 @@
+//Created by Ammad Hashmi %5BSyrobia%5D www.syrobia.github.io%0A//package com.github.syrobia.tankinvaders.shipentity;%0A%0A//player actor%0Apublic class ShipEntity extends Entity %7B%0A%09//game of this entity%0A%09private Game game;%0A%09%0A%09//create entity%0A%09public ShipEntity(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%7D%0A%09%0A%09//ship move with game logic%0A%09public void move(long delta) %7B%0A%09%09//if on edge of left side, don't proceed (stay within window)%0A%09%09if ((dx %3C 0) && (x %3C 10)) %7B%0A%09%09%09return;%0A%09%09%7D%0A%09%09//same for right side%0A%09%09if ((dx %3E 0) && (x %3E 750)) %7B%0A%09%09%09return;%0A%09%09%7D%0A%09%09//normal movement%0A%09%09super.move(delta);%0A%09%7D%0A%09%0A%09//collision%0A%09public void collidedWith(Entity other) %7B%0A%09%09//if with alien, then death%0A%09%09if (other instanceof AlienEntity) %7B%0A%09%09%09game.notifyDeath();%0A%09%09%7D%0A%09%7D%0A%7D%0A

Create ShipEntity.java