1
0
mirror of synced 2025-02-07 06:41:24 +01:00

演出を拡張 (#626)

This commit is contained in:
Takkkom 2024-06-07 23:32:55 +09:00 committed by GitHub
parent e988b5415a
commit fe37e0a9a0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 19 additions and 0 deletions

View File

@ -18,9 +18,19 @@ local textureCount = 32
local frameRate = 24
local allfailed = false
local templateMoyai_y = -1080
function playEndAnime(player)
animeCounter = { 0, 0, 0, 0, 0 }
nowFrame = { 0, 0, 0, 0, 0 }
if player == 0 then
allfailed = true
elseif isClear[player] then
allfailed = false
end
end
function init()
@ -37,6 +47,7 @@ function init()
func:AddGraph(tostring(i) .. ".png")
end
func:AddGraph("TemplateMoyai.png")
end
function update(player)
@ -47,8 +58,16 @@ function update(player)
nowFrame[player + 1] = slideInFrame[player + 1] + fallFrame[player + 1]
if animeCounter[player + 1] > 1.1 and player == 0 then
templateMoyai_y = math.min(templateMoyai_y + (deltaTime * 5120), 0)
end
end
function draw(player)
func:DrawGraph(500, y[player + 1] - 10, tostring(nowFrame[player + 1]) .. ".png")
if allfailed and playerCount > 2 then
func:DrawGraph(0, templateMoyai_y, "TemplateMoyai.png")
end
end

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB