Twinkling Stars

From Wiki of ZZT
Jump to navigation Jump to search

This code allows for the illusion of twinkling stars. You can make a number of stars with various numbers of /i's after #char 32, with at least 3 lines different from each other, to better simulate an entire field of twinkling stars. The 'animation' can be slowed down by setting the #cycle to 2 or 3, or by adding additional /i lines between the different #char commands.

Caution: overuse of objects with the #cycle 1 command can EASILY overload the ZZT engine; even if the game is emulated at maximum speed on a fast computer.

  • #cycle 1
  • :twinkle
  • /i
  • /i
  • #char 250
  • /i
  • #char 43
  • /i
  • #char 88
  • /i
  • #char 197
  • /i
  • #char 88
  • /i
  • #char 43
  • /i
  • #char 250
  • /i
  • #char 32
  • /i
  • /i
  • /i
  • #twinkle