Graphical Window Sprites

version 1 by Erik Temple

  • Home page
  • Beginning
  • Previous
  • Next



  • Part 4 - Preload sprite sizes

    When play begins:
        If using the preloaded sprites option:
            follow the preload sprites rule.

    This is the preload sprites rule:
        Let L be the list of sprites;
        repeat with current-sprite running through L:
            let cur-sprite be sprite-identity of current-sprite;
            let temp be the image-width of cur-sprite;
            change the sprite-width of the current-sprite to temp;
            let temp be the image-height of cur-sprite;
            change the sprite-height of the current-sprite to temp.