Compare commits

...

3 Commits

Author SHA1 Message Date
Jill 7020620496 release info setup 2022-10-17 13:13:32 +03:00
Jill 6d75cade25 make eternalfile delete the notedata 2022-10-16 23:48:16 +03:00
Jill ede5d69c8c players module 2022-10-16 23:39:24 +03:00
5 changed files with 53 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
release.lua

View File

@ -750,6 +750,10 @@
self:luaeffect('Update')
end
if not pcall(function() oat._release = require('release') end) then
oat._release = require('release_blank')
end
local success, result = pcall(function()
require('main')
end)

12
release_blank.lua Normal file
View File

@ -0,0 +1,12 @@
-- If fields of this are missing, you likely forgot to run update-release.sh
-- If they're missing and you're an end user, you likely downloaded an unstable release through the repository
return {
branch = 'unknown',
commit = 'unknown',
version = 'unknown',
name = 'uranium',
prettyName = 'Uranium Template',
homeURL = 'https://git.oat.zone/oat/uranium-template'
}

View File

@ -1,4 +1,13 @@
require('stdlib.players')
return function()
if P1 then
P1:SetNoteDataFromLua({})
end
if P2 then
P2:SetNoteDataFromLua({})
end
function uranium.update()
if b >= 1 then
GAMESTATE:SetSongBeat(b % 1)

27
stdlib/players.lua Normal file
View File

@ -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