Added Nuke Item

This commit is contained in:
Licht 2014-11-18 13:34:31 +01:00
parent 388417ea3e
commit 1759efd694
3 changed files with 24 additions and 2 deletions

BIN
res/images/items/item5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@ -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;
}
}

View File

@ -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) {
}
}