home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 4: Demo 1
/
almathera_demo1.bin
/
amos
/
screens.amos
/
screens.amosSourceCode
Wrap
AMOS Source Code
|
1995-03-16
|
776b
|
33 lines
Colour 0,$0 : Colour 2,$FFF
Cls 2
Pen 0 : Paper 2
Locate 2,10 : Print " Sizes of Screens available"
ST:
Pen 0 : Paper 2
Locate 2,2 : Print Space$(30)
Locate 2,2 : Input "Enter width of Screen ";W$
W=Val(W$)
Locate 2,2 : Print Space$(30)
Locate 2,2 : Input "Enter Depth of Screen ";D$
D=Val(D$)
Curs Off : Flash Off
Screen Open 2,W,D,4,N
Limit Mouse 110,45 To W+130,D+55
Colour 0,$0 : Colour 1,$FFF
Cls 1
Ink 0
For X=0 To W Step 50
For Y=0 To D Step 50
Box X,Y To X+50,Y+50
Next Y
Next X
Pen 0 : Paper 1
Locate 2,20 : Print "1 2 3 4 5 6 "
Locate 21,3 : Print "1" : Locate 21,9 : Print "2"
Locate 21,15 : Print "3" : Locate 21,27 : Print "5"
MA:
While Mouse Key=0 : Wend
X=X Screen(X Mouse) : Y=Y Screen(Y Mouse)
C=X/3 : E=Y/2
Screen Offset 2,C,E
Goto MA