X-Git-Url: http://git.purplebirdman.com/lightcycles-love.git/blobdiff_plain/52c63ed28d216d4764339b13535a9d8a4b5cdb4f..8f054564538fd6e9b63f6d84796710232ba31908:/player.lua diff --git a/player.lua b/player.lua index 387b54f..ed4f210 100644 --- a/player.lua +++ b/player.lua @@ -1,7 +1,7 @@ require 'vec2' Player = {} -Player.name = 'player' +Player.name = 'none' Player.color = {255, 0, 0} Player.width = 5 Player.height = 5 @@ -30,6 +30,10 @@ function Player:new(o) return o end +function Player:__tostring() + return self.name +end + function Player:drawPath() if #self.path >= 4 then love.graphics.setLineWidth(2)