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.

22 lines
380 B

--! file enemy.lua
require("blaster")
Enemy = Object:extend()
function Enemy:new(x, y)
self.x = x
self.y = y
self.width = 30
self.height = 30
self.health = 100
end
function Enemy:draw()
--draw stuff
love.graphics.rectangle("line", self.x, self.y, self.width, self.height)
end
function Enemy:update(dt)
--movement
end
--shoot at the player a variable number of seconds