added hitbox of ITiles to entities
This commit is contained in:
@@ -86,6 +86,7 @@ public class Entity {
|
|||||||
panel.collisionH.checkObject(this, false);
|
panel.collisionH.checkObject(this, false);
|
||||||
panel.collisionH.checkEntity(this, panel.npc);
|
panel.collisionH.checkEntity(this, panel.npc);
|
||||||
panel.collisionH.checkEntity(this, panel.monster);
|
panel.collisionH.checkEntity(this, panel.monster);
|
||||||
|
panel.collisionH.checkEntity(this, panel.iTile);
|
||||||
boolean contactPlayer = panel.collisionH.checkPlayer(this);
|
boolean contactPlayer = panel.collisionH.checkPlayer(this);
|
||||||
|
|
||||||
if(this.type == EntityType.MONSTER && contactPlayer) damagePlayer(attack);
|
if(this.type == EntityType.MONSTER && contactPlayer) damagePlayer(attack);
|
||||||
|
|||||||
Reference in New Issue
Block a user