Player kann nicht mehr in die interfaceBar fliegen
This commit is contained in:
parent
6b4a159cab
commit
5eec7ff7df
|
@ -38,7 +38,7 @@ public class Player extends ShootingEntity implements KeyboardListener {
|
||||||
if(this.canMove()) {
|
if(this.canMove()) {
|
||||||
super.update();
|
super.update();
|
||||||
int offset = 3;
|
int offset = 3;
|
||||||
if(Keyboard.isKeyDown(KeyEvent.VK_UP) && this.getY() > 0) {
|
if(Keyboard.isKeyDown(KeyEvent.VK_UP) && this.getY() > 51) {
|
||||||
this.transpose(0, -1 * offset);
|
this.transpose(0, -1 * offset);
|
||||||
}
|
}
|
||||||
if(Keyboard.isKeyDown(KeyEvent.VK_DOWN) && this.getY() < (GameConfig.windowHeight - this.getImage().getHeight())) {
|
if(Keyboard.isKeyDown(KeyEvent.VK_DOWN) && this.getY() < (GameConfig.windowHeight - this.getImage().getHeight())) {
|
||||||
|
|
|
@ -10,7 +10,7 @@ public class StaticValue {
|
||||||
public static int ShieldPoints = 100;
|
public static int ShieldPoints = 100;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Values for the Shop
|
* Values for the shop
|
||||||
*/
|
*/
|
||||||
public static int schaden = 0;
|
public static int schaden = 0;
|
||||||
public static int schild = 0;
|
public static int schild = 0;
|
||||||
|
|
|
@ -26,7 +26,7 @@ public class EnemyThree extends Enemy{
|
||||||
this.setHealthPoints(15);
|
this.setHealthPoints(15);
|
||||||
this.setCollisionDamage(10);
|
this.setCollisionDamage(10);
|
||||||
this.setScore(30);
|
this.setScore(30);
|
||||||
this.setPosition(GameConfig.windowWidth, Random.nextInt(GameConfig.windowHeight - this.getHeight()));
|
this.setPosition(GameConfig.windowWidth, Random.nextInt(GameConfig.windowHeight - this.getHeight() - 50) +50);
|
||||||
this.newY = this.getY();
|
this.newY = this.getY();
|
||||||
this.entityIterator = Screen.currentScreen.createEntityIterator();
|
this.entityIterator = Screen.currentScreen.createEntityIterator();
|
||||||
}
|
}
|
||||||
|
|
|
@ -81,7 +81,6 @@ public class ShopScreen extends Screen {
|
||||||
StaticValue.ShootDamage += 5;
|
StaticValue.ShootDamage += 5;
|
||||||
StaticValue.schaden++;
|
StaticValue.schaden++;
|
||||||
Credits.setCredits(Credits.getCredits() - 5);
|
Credits.setCredits(Credits.getCredits() - 5);
|
||||||
System.out.println(schaden.getGekauft());
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
|
|
Loading…
Reference in New Issue