player can now choose between different shields and weapons. added consumable items (healing potion)
This commit is contained in:
@@ -5,6 +5,7 @@ import de.miaurizius.jgame2d.core.enums.Direction;
|
||||
import de.miaurizius.jgame2d.core.GamePanel;
|
||||
import de.miaurizius.jgame2d.core.Utility;
|
||||
import de.miaurizius.jgame2d.core.enums.EntityType;
|
||||
import de.miaurizius.jgame2d.core.enums.GameState;
|
||||
|
||||
import javax.imageio.ImageIO;
|
||||
import java.awt.*;
|
||||
@@ -36,6 +37,7 @@ public class Entity {
|
||||
public boolean alive = true;
|
||||
public boolean dying;
|
||||
public boolean hpBarOn;
|
||||
public boolean consumable;
|
||||
|
||||
// COUNTER
|
||||
public int spriteCounter;
|
||||
@@ -62,6 +64,7 @@ public class Entity {
|
||||
public Entity currentShield;
|
||||
|
||||
// ITEM ATTRIBUTES
|
||||
public EntityType.WeaponType weaponType;
|
||||
public int attackValue;
|
||||
public int defenseValue;
|
||||
public String description;
|
||||
@@ -189,6 +192,8 @@ public class Entity {
|
||||
alive = false;
|
||||
}
|
||||
}
|
||||
public void use(Entity entity) {
|
||||
} //If entity is consumable
|
||||
|
||||
// SETTING THINGS UP
|
||||
BufferedImage parseSprite() {
|
||||
|
||||
Reference in New Issue
Block a user