Fixed some naming conventions
This commit is contained in:
parent
51af2be9c6
commit
a3a8d690e5
BIN
res/images/items/itemOneUp.png
Normal file
BIN
res/images/items/itemOneUp.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 967 B |
18
src/de/teamteamteam/spacescooter/entity/item/ItemOneUp.java
Normal file
18
src/de/teamteamteam/spacescooter/entity/item/ItemOneUp.java
Normal file
@ -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
Block a user