diff options
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 |
