add new samples

This commit is contained in:
Evgeny
2022-08-15 10:05:48 +03:00
parent 030facc285
commit a6e081c988
3 changed files with 133 additions and 0 deletions

37
samples/star-wars.lua Normal file
View File

@@ -0,0 +1,37 @@
local text = [[
It is a period of civil war.
Rebel spaceships, striking
from a hidden base, have won
their first victory against
the evil Galactic Empire.
During the battle, Rebel
spies managed to steal secret
plans to the Empire's
ultimate weapon, the DEATH
STAR, an armored space
station with enough power to
destroy an entire planet.
Pursued by the Empire's
sinister agents, Princess
Leia races home aboard her
starship, custodian of the
stolen plans that can save
her people and restore
freedom to the galaxy....
]]
function on_resume()
ui:show_text("Start")
end
function on_click()
local tab = {}
for i=1,text:len() do
table.insert(tab, "%%txt%%"..text:sub(1, i))
end
morph:change_text_seq(1, tab, 100)
end