Graphical Window Sprites

version 1 by Erik Temple

  • Home page
  • Beginning
  • Previous
  • Next



  • Part 10 - Timer-based drawing

    The current timer-based drawing rule is a rule that varies. The current timer-based drawing rule is the standard placement rule.

    A sprite-background drawing rule (this is the redirect drawing to timer rule):
        activate the timer.

    To activate the/-- timer:
        (- glk_request_timer_events(1); -)

    To deactivate the/-- timer:
        (- glk_request_timer_events(0); -)

    A glulx timed activity rule (this is the redirect drawing from timer rule):
        deactivate timer;
        follow the current timer-based drawing rule.