Graphical Window Animation

version 3 by Erik Temple

  • Home page
  • Beginning
  • Previous
  • Next



  • Section 1 - Definitions

    Include (-
    Global animation = 0;
    Global loop = 0;
    Global repeat_frame = 0;
    -) before "Glulx.i6t".

    Include (-
    Global start_frame = 0;
    Global end_frame = 0;
    -)

    A glulx timed activity rule (this is the graphics update rule):
        perform graphics update. [This hooks into the HandleGlkEvent routine as provided by Glulx Entry Points.]

    To perform graphics update:
        (- GraphicsUpdate(); -)

    The current reel is a list of figure-names that varies. The current reel is {}.

    To empty the/-- current reel:
        now the current reel is {}.

    The current frame is a number that varies. The current frame is 0.

    To wait for the/-- animation to end:
        (- AnimEscDelay(); -)