@@ -16,6 +16,7 @@ abstract class Enemy extends Entity {
|
||||
|
||||
// Standard guard health
|
||||
int health = 25;
|
||||
int damage = 10;
|
||||
bool isDying = false;
|
||||
|
||||
void takeDamage(int amount, int currentTime) {
|
||||
@@ -106,7 +107,7 @@ abstract class Enemy extends Entity {
|
||||
return true;
|
||||
}
|
||||
|
||||
void update({
|
||||
({Coordinate2D movement, double newAngle}) update({
|
||||
required int elapsedMs,
|
||||
required Coordinate2D playerPosition,
|
||||
required bool Function(int x, int y) isWalkable,
|
||||
|
||||
Reference in New Issue
Block a user