[comp.binaries.amiga] DEMOlition

kyrimis@princeton.UUCP (Kriton Kyrimis) (07/10/87)

#! /bin/sh
# This is a shell archive, meaning:
# 1. Remove everything above the #! /bin/sh line.
# 2. Save the resulting text in a file.
# 3. Execute the file with /bin/sh (not csh) to create the files:
#	README
#	DEMOlition.info.uue
#	DEMOlition.uue
# This archive created: Sat Jul  4 02:07:56 1987
export PATH; PATH=/bin:$PATH
echo shar: extracting "'README'" '(1135 characters)'
if test -f 'README'
then
	echo shar: will not over-write existing file "'README'"
else
cat << \SHAR_EOF > 'README'
DEMOlition - A display hack inspired by a  demo  seen  on  a  BBC
	     micro a long time ago.

The program is best run with a few windows open on the  workbench
screen.  To  stop  it, bring the workbench screen to the front by
typing A-N or by dragging DEMOlition's screen from the title bar,
and click the mouse on DEMOlition's close gadget.

This demo just screams (pardon the pun)  for  sound.  After  some
initial  attempts  (and lots of Guru meditations), I decided that
it would be best to post the code without sound,  and  hope  that
some Amiga guru (the nice kind) will take a liking to the program
and add the sound him/herelf.

The program compiles successfully with Manx 16 bits. I've no idea
what it does with Lattice.

ACKNOWLEDGEMENT:
I used Stephen Coy's "Melt" demo as a template, to make a copy of
the Workbench screen and handle the close gadget. Only the action
code is different. Stephen placed no restriction on the usage  of
his  code,  so  it  is  only  fair  that  I  should not place any
restrictions in mine. Use, abuse, modify or mutilate  it  as  you
see fit.

Enjoy!

	Kriton Kyrimis	(princeton!kyrimis)
SHAR_EOF
if test 1135 -ne "`wc -c < 'README'`"
then
	echo shar: error transmitting "'README'" '(should have been 1135 characters)'
fi
fi # end of overwriting check
echo shar: extracting "'DEMOlition.info.uue'" '(520 characters)'
if test -f 'DEMOlition.info.uue'
then
	echo shar: will not over-write existing file "'DEMOlition.info.uue'"
else
cat << \SHAR_EOF > 'DEMOlition.info.uue'
begin 777 DEMOlition.info
MXQ   0           #( $  $  ,  0 @Z/                          
M     _P              $\    /                       R !   @ B
M][@#      #__<__]]]  (     'W$  __@/_??=0 "       !  (      
M $  @       0 "       !  (       $          0 "          (  
M        @         "       X  (      #@  @         #__X___P  
M                                                       !\/\@
M0\     88S#&8    0Q@.<0@   !C'P_P"    &,8#;$     9AC,,     #
G\/\P            #@         .                        
 
end
SHAR_EOF
if test 520 -ne "`wc -c < 'DEMOlition.info.uue'`"
then
	echo shar: error transmitting "'DEMOlition.info.uue'" '(should have been 520 characters)'
fi
fi # end of overwriting check
echo shar: extracting "'DEMOlition.uue'" '(9501 characters)'
if test -f 'DEMOlition.uue'
then
	echo shar: will not over-write existing file "'DEMOlition.uue'"
else
cat << \SHAR_EOF > 'DEMOlition.uue'
begin 777 DEMOlition
M   #\P         #          (   8"    M@    $   /I   & D[Z"BA&
M;V]"87(  $1%34]L:71I;VX  $Y5_^@O!$ZZ"+(@;(*Z*V@ +O_\(&W__#EH
M  B  B!M__PY:  *@ 0@;?_\.6@ #( &(&W__#EH  Z ""!M__PY: !,@ Y(
M;( "3KH7+EA/*4""MF8*2'H CDZZ"3983R\L@K9.NA<L6$\@+(*VT+P   !4
M*4""OB L@K;0O    "PI0(+"(&R"OBMH  3_]"!L@KHB:  N*VD 6/_X0J=(
M> #_2'@ P# L@ A(P"\ ,BR !DC!+P%"IT*G+RW_]$*G0J<O+?_X3KH5Z$_O
M "PO+(*V3KH6R%A/81Y.N@C2*!].74YU4V-R965N(&]P96X@9F%I;&5D(0!.
M5?_V(&R"MC H  Q50#E @K(@;(*V,"@ #E5 .4""M# L@K)(P"\ 3KH6AEA/
M.4""KCE @J8P+(*T2, O $ZZ%G!83SE @K Y0(*H2'@  TZZ%EY83SM __@Y
M?  !@JHY?  !@JQ(>  #+RR"ODZZ%8Y03TZZ!-P@;(*Z+R@ 5DZZ%.A83RM 
M__I*K?_Z9R @;?_Z.V@ %O_^+RW_^DZZ%.Y83PQM @#__F8$3EU.=4ZZ!7 P
M+?_X2,!@  1Z,"R"IM!L@JHY0(*N,"R"J)!L@JPY0(*P,"R"KK!L@K)O0CM\
M  /_^#\\ !!.NA7$5$]3@"\ /SP $$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( *0E1@"<2'@#[4AZ #A.N@=D
M4$\E0 "@+P1.N@B\6$\O+(+.3KH'BEA/0JR"SF" :6-O;BYL:6)R87)Y %=)
M3D1/5P J "!O  0@"$H89OR1P" (4X!.=4Y5  !(;("^/RT "$ZZ  A<3TY=
M3G5.50  +P0X+0 (+RT "C\$3KH ,%Q/N'P "F8D(&T "A H  Q(@ @   =G
M%#\\__\O+0 *3KH ]EQ/*!].74YU8/A.50  +PHD;0 *(%*QZ@ $91@P+0 (
MP'P _S\ +PI.N@#*7$\D7TY=3G4@4E*2$"T "1" 2(# ? #_8.A.50  +PI!
M[("H)$@@2M7\    %B\(81!83T'L@F"UR&7J)%].74YU3E4  $CG"" D;0 (
M>  @"F8*</],WP003EU.=4HJ  QG4@@J  ( #&<,/SS__R\*851<3S@ $"H 
M#4B /P!.N@6&5$^(0 @J  $ #&<*+RH "$ZZ C!83P@J  4 #&<4+RH $DZZ
M U983R\J !).N@(46$]"DD*J  1"J@ (0BH ## $8(Y.5?_^2.<(("1M  A!
M^O]$*4B"D @J  0 #&<*</],WP003EU.=0@J  ( #&<P(!*0J@ (.  _!"\J
M  @0*@ -2( _ $ZZ Q103[!$9Q (Z@ $  Q"DD*J  1P_V# #&W__P ,9A (
MJ@ "  Q"DD*J  1P &"H2JH "&8(+PI.N@":6$\,:@ ! !!F*AMM  W__S\\
M  %(;?__$"H #4B /P!.N@*V4$^P?  !9J P+0 ,8 #_:B2J  @P*@ 02,#0
MJ@ ()4  ! CJ  ( #"!24I(0+0 -$(!(@,!\ /]@ /\^3E4  "\*0>R J"1(
M2BH #&<8U?P    60>R"8+7(90AP "1?3EU.=6#B0I)"J@ $0JH "" *8.I.
M5?_\+PHD;0 (/SP$ $ZZ ,!43RM __QF&#5\  $ $" *T+P    .)4  ""1?
M3EU.=35\!   $ CJ  $ #"5M__P "! J  U(@#\ 3KH!=E1/2D!G!@ J (  
M#&#.3E4  $CG # D;()F8!0F4B J  10@"\ +PI.N@2T4$\D2R *9NA"K()F
M3-\, $Y=3G5.50  +PI!^O_&*4B"E$*G("T "%" +P!.N@1B4$\D0$J 9@AP
M "1?3EU.=22L@F8E;0 (  0I2H)F( I0@&#F3E4  '  ,"T ""\ 8;)83TY=
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
M      /R   #Z@   )D            "  $    /          0         
M     !X M  *__\   (    0#@              #                   
M     0  __T    !  0 ___^     0 # /___P    $  @#___W__O__    
M 0#_     0 "  , ! #___\    !  ( ___^     0 # /___0    $ ! #_
M                 0     !                      $!     0      
M               ! @    $                                     
M                                                            
M                                                            
M                                                            
M                                                            
M                                                            
M                                                            
M                                                            
M                                                %         /L
D     @         4    .@        /R   #ZP    $   /R
 
end
SHAR_EOF
if test 9501 -ne "`wc -c < 'DEMOlition.uue'`"
then
	echo shar: error transmitting "'DEMOlition.uue'" '(should have been 9501 characters)'
fi
fi # end of overwriting check
#	End of shell archive
eosuosu