add death animation to dying monsters
This commit is contained in:
@@ -11,7 +11,6 @@ import java.awt.*;
|
||||
public class Player extends Entity {
|
||||
|
||||
KeyHandler keyH;
|
||||
|
||||
public final int screenX;
|
||||
public final int screenY;
|
||||
|
||||
@@ -156,7 +155,7 @@ public class Player extends Entity {
|
||||
panel.monster[index].life -= 1;
|
||||
panel.playSE(5);
|
||||
panel.monster[index].invincible = true;
|
||||
if(panel.monster[index].life <= 0) panel.monster[index] = null;
|
||||
if(panel.monster[index].life <= 0) panel.monster[index].dying = true;
|
||||
}
|
||||
|
||||
public void interactNPC(int index) {
|
||||
|
||||
Reference in New Issue
Block a user