poppy-client/lua/player.lua

17 lines
371 B
Lua
Raw Permalink Normal View History

local playerfuncs = {}
playerfuncs.newPlayer = function(arg)
2022-07-03 18:00:30 +00:00
assert(arg.avatar)
assert(arg.name)
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
return playerTable
end
return playerfuncs