vision/captain/player.lua

17 lines
277 B
Lua
Raw Normal View History

2022-10-13 16:06:52 +02:00
Player = Object.extend(Object)
function Player:new()
self.name = "";
self.shipName = ""
self.image = nil
2022-10-13 18:18:27 +02:00
self.ship = nil
self.px = 0
self.py = 0
self.rot = 0
self.acc = 0
2022-10-15 17:39:32 +02:00
self.death = false
2022-10-13 16:06:52 +02:00
end
2022-10-13 18:18:27 +02:00
function Player:getShipname()
return self.ship.name
end