diff options
| author | cursed22bc <admin@pixeldawn.org> | 2026-03-10 19:27:58 +0200 |
|---|---|---|
| committer | cursed22bc <admin@pixeldawn.org> | 2026-03-10 19:27:58 +0200 |
| commit | 9d95968c3e732be915f10841d1d659e37b3b5d03 (patch) | |
| tree | 1932c4fef554a350303c75cda830503efdaa144c /enemy.lua | |
| parent | db9454cb632a3ba0b39018513b0d5bd444c8ffd3 (diff) | |
collision death state and basic HUD
Diffstat (limited to 'enemy.lua')
| -rw-r--r-- | enemy.lua | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -5,6 +5,7 @@ setmetatable(Enemy, { __index = Entity }) function Enemy.new(spawnX, spawnY, width, height, physicsWidth, physicsHeight) local self = setmetatable(Entity:new(spawnX or 0, spawnY or 0, width or 16, height or 16, physicsWidth or width or 8, physicsHeight or height or 8), Enemy) + self.isEnemy = true self.direction = math.random(1, 2) == 1 and 1 or -1 self.speed = 20 self.turnDelay = 0.35 |
