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.
15 lines
310 B
15 lines
310 B
--! file: player.lua
|
|
Player = Object:extend()
|
|
|
|
function Player:new()
|
|
self.x = 100
|
|
self.y = 100
|
|
self.health = 100
|
|
end
|
|
|
|
function Player:update(dt) end
|
|
|
|
function Player:draw()
|
|
local vert = { self.x, self.y, (self.x - 50), (self.y - 50), (self.x + 50), (self.y - 50) }
|
|
love.graphics.polygon("fill", vert)
|
|
end
|
|
|