Fix: Game crasht nicht mehr bei damage auf 0 Leben und PowerUps werden wieder gelöscht wenn sie den unteren Fensterrand
This commit is contained in:
@@ -34,8 +34,8 @@ public class PowerUps extends Actor
|
||||
|
||||
public void moveDown()
|
||||
{
|
||||
this.setLocation(this.getX(), this.getY()+2);
|
||||
if(this.getY()>=this.getWorld().getHeight())
|
||||
setLocation(this.getX(), this.getY()+2);
|
||||
if(this.getY() >= getWorld().getHeight()-1)
|
||||
{
|
||||
deleteAfterActCycle = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user