A Little Space Game made in Love2D
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
719 B

--! file: e-fighter.lua
require("entities.enemy")
local E_Fighter = Enemy:extend()
function E_Fighter:new(x, y, radius, playableArea)
E_Fighter.super.new(x, y, radius, playableArea)
self.image = love.graphics.newImage("/assets/enemy/e-fighter.png")
self.type = "enemy fighter"
self.health = 10
self.speed = 70
self.scoreValue = 100
self.fireRate = 1
self.height = 22
self.width = 24
self.x_offset = 18
self.y_offset = 20
end
function E_Fighter:draw()
love.graphics.draw(
self.image,
self.x,
self.y,
3.14159,
1,
1,
(self.x_offset + self.width * 2 - 4),
(self.y_offset + self.height * 2)
)
for _, v in ipairs(self.enemyBullets) do
v:draw()
end
end
function E_Fighter:update() end