diff options
| author | Eltrac <hi@guhub.cn> | 2025-03-13 14:04:56 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-03-13 14:04:56 +0800 |
| commit | 5eb2eb9d6986bdd30c5f0cf65f7f08f96ce40d09 (patch) | |
| tree | fba255be7c2bbd97b1eabf8e5fc60d28359c715c /objects/Enemy.lua | |
| parent | c6e86ae57442b665d138bdb8bdbd2f7bbd9f5520 (diff) | |
feat: pokob show different appearances in each health state
Diffstat (limited to 'objects/Enemy.lua')
| -rw-r--r-- | objects/Enemy.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/objects/Enemy.lua b/objects/Enemy.lua index 6bb3fce..5ee8793 100644 --- a/objects/Enemy.lua +++ b/objects/Enemy.lua @@ -20,6 +20,7 @@ function Enemy:new(name, location) zoom = data.zoom or 1, speed = data.speed or nil, health = data.health or nil, + maxHealth = data.health or nil, stunned = false, frameTimer = FrameTimer:new(config.frameRate, (data.sprite and data.sprite.totalFrames) or 1), |
