diff --git a/res/images/items/item5.png b/res/images/items/item5.png new file mode 100644 index 0000000..125f528 Binary files /dev/null and b/res/images/items/item5.png differ diff --git a/src/de/teamteamteam/spacescooter/entity/item/Item.java b/src/de/teamteamteam/spacescooter/entity/item/Item.java index 32177df..25342e0 100644 --- a/src/de/teamteamteam/spacescooter/entity/item/Item.java +++ b/src/de/teamteamteam/spacescooter/entity/item/Item.java @@ -48,7 +48,7 @@ public abstract class Item extends CollidableEntity { int auswahl = ItemChance.choose(); switch (auswahl) { case 0: - new TestItem1(x, y); + new TestItem5(x, y); break; case 1: new TestItem2(x, y); @@ -57,7 +57,10 @@ public abstract class Item extends CollidableEntity { new TestItem3(x, y); break; case 3: - new TestItem4(x, y);; + new TestItem4(x, y); + break; + case 4: + new TestItem1(x, y); break; } } diff --git a/src/de/teamteamteam/spacescooter/entity/item/TestItem5.java b/src/de/teamteamteam/spacescooter/entity/item/TestItem5.java new file mode 100644 index 0000000..5d0632a --- /dev/null +++ b/src/de/teamteamteam/spacescooter/entity/item/TestItem5.java @@ -0,0 +1,19 @@ +package de.teamteamteam.spacescooter.entity.item; + +import de.teamteamteam.spacescooter.entity.Player; + +public class TestItem5 extends Item { + +public static int chance = 2; + + public TestItem5(int x, int y) { + super(x, y); + this.setImage("images/items/item5.png"); + } + + @Override + public void itemCollected(Player player) { + + } + +}