Rocket-Bytes/Source/Cutscenes.lua
2022-07-07 13:41:23 -06:00

26 lines
No EOL
642 B
Lua

import "CoreLibs/animation"
import "CoreLibs/animator"
import "CoreLibs/sprites"
local gfx <const> = playdate.graphics
local imgBigRocket = gfx.image.new("gfx/bigrocket")
local tabBigRocket = gfx.imagetable.new("gfx/bigrocketfire")
assert(imgBigRocket)
assert(tabBigRocket)
local animBigRocket = gfx.animation.loop.new(200,tabBigRocket)
local sprCutsceneBigRocket = gfx.sprite.new(tabBigRocket[1])
sprCutsceneBigRocket:setRotation(90)
sprCutsceneBigRocket:moveTo(0 - sprCutsceneBigRocket.height,120)
function beginStartCutscene()
mode = "startCutscene"
end
function updateStartCutscene()
gfx.clear()
gfx.sprite.update()
end