home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMOS PD CD
/
amospdcd.iso
/
sourcecode
/
procedures
/
wavy1.amos
/
wavy1.amosSourceCode
< prev
Wrap
AMOS Source Code
|
1993-03-07
|
1KB
|
49 lines
Hide On
WAVY_BOB1
Procedure WAVY_BOB1
MXSCREEN=3
For I=0 To MXSCREEN
Screen Open I,320,200,16,Lowres
Flash Off
Curs Off
Cls 0
Autoback 0
Palette $0,$11,$22,$33,$44,$55,$66,$77,$88,$99,$AA,$BB,$CC,$DD,$EE,$FF
Screen Hide I
Next
'
' Main loop
SCR=0 : COUNT=0 : T#=0 : P#=0.003
R1=110 : R2=55 : XCEN=151 : YCEN=87 : TW#=2*Pi# : I#=Pi#/64 : I2#=Pi#/20
R3=65 : R4=85 : SET#=Pi#/1.3 : NUM=1
TEMP=0
For T#=0 To 1*TW# Step I#
Screen Hide SCR
Add SCR,1,0 To MXSCREEN
Screen Show SCR : Screen To Front SCR : Screen SCR
X1#=R3*Cos(T#+SET#/0.2)+XCEN
Y1#=R4*Sin(T#)+YCEN
Paste Bob X1#,Y1#,NUM
X2#=R1*Cos(T#)+XCEN
Y2#=R2*Sin(T#)+YCEN
Paste Bob X2#,Y2#,NUM
X3#=R3*Cos(T#+SET#*0.2)+XCEN
Y3#=R4*Sin(T#)+YCEN
Paste Bob X3#,Y3#,NUM
If TEMP=1
Add NUM,1,1 To 8
TEMP=0
Else
TEMP=1
End If
Next T#
For LOP=1 To 500
Screen Hide SCR
Add SCR,1,0 To MXSCREEN
Screen Show SCR : Screen SCR
Wait 2
Next LOP
While Screen<>-1
Screen Close Screen
Wend
End Proc