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.speed = 5
|
|
|
|
self.acc = 0
|
|
|
|
self.accIncr = 0.1
|
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
|