From ede5d69c8ca9c93b782f0129bcff637c3574f5c8 Mon Sep 17 00:00:00 2001 From: "Jill \"oatmealine\" Monoids" Date: Sun, 16 Oct 2022 23:39:22 +0300 Subject: [PATCH] players module --- stdlib/players.lua | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 stdlib/players.lua diff --git a/stdlib/players.lua b/stdlib/players.lua new file mode 100644 index 0000000..1518b43 --- /dev/null +++ b/stdlib/players.lua @@ -0,0 +1,27 @@ +local max_pn = 8 + +---@type Player[] +P = {} +-- for type declarations +---@type Player +P1 = nil +---@type Player +P2 = nil +---@type Player +P3 = nil +---@type Player +P4 = nil +---@type Player +P5 = nil +---@type Player +P6 = nil +---@type Player +P7 = nil +---@type Player +P8 = nil + +for pn = 1, max_pn do + local player = SCREENMAN('PlayerP' .. pn) + oat['P' .. pn] = player + P[pn] = player +end \ No newline at end of file