Updates
This commit is contained in:
@@ -36,4 +36,38 @@ function foo()
|
||||
end
|
||||
v = Vector3(0, 1, 2)
|
||||
end
|
||||
foo()
|
||||
narration = {
|
||||
position = 1,
|
||||
narration_start = {
|
||||
"The party was hot, girls were sexy the wine, beer and whisky were in \
|
||||
enormous numbers. It was anniversary since you set sail with your friends. \
|
||||
The sea was calm and everything promised you another great night.",
|
||||
"The whole year with your friends on your ship over vast seas of the world in decay was almost over.\
|
||||
It was so good year full of adventure, romance, indecency and luxury.",
|
||||
"Your trusted friends decided that you have too much, they have too much of you and you owe them a lot.",
|
||||
"They found you drunk in your room and moved to the deck and used ropes to \
|
||||
restrain you and attach a bucket of stones or something else heavy to your body.",
|
||||
"After a few hours passed two strong people pulled you to the side and \
|
||||
dropped you into the sea. Last thing you heard before you hit the water was happy laugher..."
|
||||
},
|
||||
progress = function(this)
|
||||
if #this.narration_start < this.position then
|
||||
return ""
|
||||
end
|
||||
local ret = this.narration_start[this.position]
|
||||
this.position = this.position + 1
|
||||
return ret
|
||||
end,
|
||||
}
|
||||
setup_handler(function(event)
|
||||
print(event)
|
||||
if event == "startup" then
|
||||
main_menu()
|
||||
elseif event == "narration_progress" then
|
||||
narrate(narration:progress())
|
||||
|
||||
elseif event == "new_game" then
|
||||
narrate(narration:progress())
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user