diff --git a/index.html b/index.html index 20a85b7..3e9850e 100644 --- a/index.html +++ b/index.html @@ -693,12 +693,12 @@ rb:removeAt(-1) -- rb = { 2 ,4,5}, rb:get() == 2

sequence.lua offers basic support for automated switching of Scenes. You can use it to add intros and cutscenes to your games.

sequence.lua defines two types: Scene and Sequence. A Sequence - holds several Scenes, but one Scene can belong to different Sequences - (but it should not due to side effects).

+ holds several Scenes, but one Scene can belong to different Sequences + (but due to side effects it shouldn't).

The module consists of the following: - Add scenes + @@ -709,7 +709,7 @@ rb:removeAt(-1) -- rb = { 2 ,4,5}, rb:get() == 2
Sequence(...)Create new sequence
sequence:add(...)
sequence:add(...)Add scenes
sequence:select(k)Select scene manually
sequence:rewind()Rewind sequence
sequence:prevSceneManually select previous scene
scene:isFinished()Indicate end of scene

A Scene defines three callback functions. Do not try to - access them yourself; let Sequence do the job: + access them yourself. Let Sequence do the job:
scene:draw():Draw contents on screen (mandatory)
scene:update(dt):Update scene (optional)