Fixed some naming conventions
This commit is contained in:
parent
51af2be9c6
commit
a3a8d690e5
Binary file not shown.
After Width: | Height: | Size: 967 B |
|
@ -0,0 +1,18 @@
|
||||||
|
package de.teamteamteam.spacescooter.entity.item;
|
||||||
|
|
||||||
|
import de.teamteamteam.spacescooter.entity.Player;
|
||||||
|
|
||||||
|
public class ItemOneUp extends Item {
|
||||||
|
|
||||||
|
public static int chance = 4;
|
||||||
|
|
||||||
|
public ItemOneUp(int x, int y) {
|
||||||
|
super(x, y);
|
||||||
|
this.setImage("images/items/itemOneUp.png");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void itemCollected(Player player) {
|
||||||
|
player.setShieldPoints(player.getShieldPoints() + 5);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue