; AAP Demo Script
;
; This AAP-script shows a demo presentation
; of some pictures and animations
; of different sizes and screenmodes
;
; if you have 1.5MB of Ram or more you can preload and play
; the whole presentation in your RAM.
; All you need to do is to select the icon of this script
; and then shift-double-click the AAP icon.
;

_PIC_TIME 400              ;pictures are displayed for 100 jiffies

_BEG_LOOP 1000
  _SPEED                   ;use the timing stored in the anim files
  Anim.countdown           ;playing our first animation
  _PAUSE 10

  pic.pencil.LO            ;display a single picture


  ; Now we want to show brushes that are smaller than the full display
  ; therefore we set view ofsets to center the brushes on the screen
  _VIEW_DX 80
  _VIEW_DY 30

  Brush.night.HI
  Brush.Karen.HAMLC

  ; reset the view ofsets
  _VIEW_DX
  _VIEW_DY

  ;
  ; The following part of the AAP-script shows smooth joined animation
  ; playback.
  ; (for more details see AAP.doc file)
  ;

  _SPEED 12                   ;set timing to 12 jiffies per second
                              ;(ignoring the stored timing information)
  Anim.Hans+Liesl.1.HI -M2    ;play the anim 2 times
                              ;M == show the last 2 frames at last loop
                              ;(this are usually deltas to frame#0 and #1)

  _SPEED 9                    ;now speed up
  Anim.Hans+Liesl.1.HI -JM6   ;J == skip over frame#0 and #1 at 1.st loop

  _SPEED 6                    ;speed up again
  Anim.Hans+Liesl.1.HI -JM8

  _SPEED 4
                     ;J == skip #0, #1 at 1.loop and
                     ;C == skip the last 2 frames at last loop
                     ;     (this are usually detas to frame#0 and #1)

  Anim.Hans+Liesl.2.HI -JC1
  _PAUSE 300


_END_LOOP
