26 lines
642 B
Lua
26 lines
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
|