Added Nuke Item
This commit is contained in:
parent
388417ea3e
commit
1759efd694
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue