########################################################### # DC Animator 2 Demo # by Loren Peace # 11/10/99 # booyaka.com ########################################################### draw_frame( 1 ); # show "welcome to demo" frame draw_frame( 2 ); # show "this is a beep" frame play_sound( 1, 3, 4 ); # play sound 1 (beep) three times with a delay of four slide_left_black; slide_left_white; draw_frame( 3 ); # show "press a or b" frame invert_screen(); loop: if_buttons_goto( A, a_hit ); # goto a_hit if A pressed if_buttons_goto( B, b_hit ); # goto b_hit if B pressed goto( loop ); # go back to loop until A or B is pressed a_hit: draw_frame( 4 ); # show "you pressed A" frame goto( about ); b_hit: draw_frame( 5 ); # show "you pressed B" frame goto( about ); about: draw_frame( 6 ); # show "about box" frame while_buttons_wait( A ); # wait till A is released until_buttons_wait( A ); # wait till A is pressed exit;