Loading app/src/main/java/com/example/a8_bitinvader/Enemy.java +3 −3 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ public class Enemy extends Sprite{ //initialize the Xval,Yval. and inital position public Enemy(int PosX, int PosY, int theXVal, int theYVal, int img ) { super(PosX,PosY,img); super(PosX,PosY); XVal = theXVal; YVal = theYVal; } Loading @@ -13,8 +13,8 @@ public class Enemy extends Sprite{ //this updates the location of the sprite @Override public void updateLocation(){ x += XVal; y += YVal; xPos += XVal; yPos += YVal; } Loading Loading
app/src/main/java/com/example/a8_bitinvader/Enemy.java +3 −3 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ public class Enemy extends Sprite{ //initialize the Xval,Yval. and inital position public Enemy(int PosX, int PosY, int theXVal, int theYVal, int img ) { super(PosX,PosY,img); super(PosX,PosY); XVal = theXVal; YVal = theYVal; } Loading @@ -13,8 +13,8 @@ public class Enemy extends Sprite{ //this updates the location of the sprite @Override public void updateLocation(){ x += XVal; y += YVal; xPos += XVal; yPos += YVal; } Loading