home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMOS PD CD
/
amospdcd.iso
/
501-525
/
apd504
/
3d_display_switch_demo.amos
/
3d_display_switch_demo.amosSourceCode
Wrap
AMOS Source Code
|
2014-06-18
|
1KB
|
87 lines
'
'********************************************
'
' 3D SCREEN DISPLAY
' -----------------
' SWITCH DEMO
' -----------
'
' By Malcolm Lavery 1993
'
'********************************************
'
'
Screen Open 0,640,256,16,Hires
Palette $0,$FFF,,,,$DDD,$AAA,$555,$F00,$F0,$F
Curs Off : Cls 0 : Flash Off
'
'
'
'
_3D[0,0,640,250,0]
_3D[4,4,311,241,0]
_3D[100,100,30,30,0]
'
'
Ink 0,6
Text 75,90,"Click mouse"
Text 75,145,"In the box"
'
'
'
Reserve Zone 1
'
'
Set Zone 1,100,100 To 130,130
'
'
'
Do
'
'
If Mouse Click and Mouse Zone=1
'
_3D[100,100,30,30,1]
Bell
Wait 10
_3D[100,100,30,30,0]
'
End If
'
'
Loop
'
'
'
'
Procedure _3D[X,Y,WIDTH,HEIGHT,IN_OUT]
'
'
'
If IN_OUT=0
HILIGHT=5
SHADOW=7
End If
'
'
If IN_OUT=1
HILIGHT=7
SHADOW=5
End If
'
'
Ink HILIGHT
Draw X,Y To X+WIDTH,Y
Draw X,Y To X,Y+HEIGHT
'
Ink SHADOW
Draw X+WIDTH,Y To X+WIDTH,Y+HEIGHT
Draw X+WIDTH,Y+HEIGHT To X,Y+HEIGHT
'
Ink 6
Bar X+1,Y+1 To X+WIDTH-1,Y+HEIGHT-1
'
'
'
End Proc