2021-12-31 22:14:22 +00:00
|
|
|
local playerfuncs = {}
|
|
|
|
playerfuncs.newPlayer = function(arg)
|
2022-07-03 18:00:30 +00:00
|
|
|
assert(arg.avatar)
|
|
|
|
assert(arg.name)
|
2021-12-31 22:14:22 +00:00
|
|
|
local playerTable = {}
|
2022-07-03 18:00:30 +00:00
|
|
|
playerTable.avatar = arg.avatar
|
|
|
|
playerTable.name = arg.name
|
2022-01-02 20:29:37 +00:00
|
|
|
playerTable.speed = {}
|
|
|
|
playerTable.speed.x = 0
|
|
|
|
playerTable.speed.y = 0
|
2022-12-04 10:08:48 +00:00
|
|
|
playerTable.x = 16
|
2022-01-02 20:29:37 +00:00
|
|
|
playerTable.y = 16
|
2022-01-09 09:20:54 +00:00
|
|
|
playerTable.flying = false
|
2021-12-31 22:14:22 +00:00
|
|
|
return playerTable
|
|
|
|
end
|
|
|
|
return playerfuncs
|