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 Scene
s, but one Scene
can belong to different Sequences
- (but it should not due to side effects).
Scene
s, but one Scene
can belong to different Sequence
s
+ (but due to side effects it shouldn't).
The module consists of the following:
Sequence(...) | Create new sequence |
sequence:add(...) | Add scenes|
sequence:add(...) | Add scenes |
sequence:select(k) | Select scene manually |
sequence:rewind() | Rewind sequence |
sequence:prevScene | Manually 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) |