flickyclone/enemy.lua

14 lines
335 B
Lua

local helpers = require("helpers")
local Entity = require("entity")
local Enemy = Entity:extend()
function Enemy:draw()
self.__super.draw(self)
local rect = self:get_rect()
love.graphics.setColor(0.9, 0, 0.2)
love.graphics.rectangle("fill", helpers.round(rect.x), helpers.round(rect.y), rect.w, rect.h)
end
return Enemy