演出を拡張 (#626)
This commit is contained in:
parent
e988b5415a
commit
fe37e0a9a0
@ -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 |
Loading…
x
Reference in New Issue
Block a user