home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-07-23 | 22.5 KB | 1,112 lines |
- * Example for SWBOX()
-
- set talk off
- startmode = -1
- mode = 4
- pause = 2*18
- call spparams with startmode
- call spcall with [SWSETVMODE]
- startmode = spreturnn
- clear
- ulx = 100
- uly = 60
- lrx = 200
- lry = 150
- color = 1
- fill = 1
- @2,2 say [Enter ULX: ] get ulx
- @3,2 say [Enter ULY: ] get uly
- @4,2 say [Enter LRX: ] get lrx
- @5,2 say [Enter LRY: ] get lry
- @6,2 say [Enter Color:] get color
- @7,2 say [Enter Fill: ] get fill
- read
- call spparams with mode
- call spcall with [SWSETVMODE]
- call spparams with ulx
- call spparams with uly
- call spparams with lrx
- call spparams with lry
- call spparams with color
- call spparams with fill
- call spcall with [SWBOX]
- call spparams with pause
- call spcall with [SWDELAY]
- call spparams with startmode
- call spcall with [SWSETVMODE]
-
-
- * Example for SWCIRCLE()
-
- set talk off
- startmode = -1
- mode = 4
- pause = 2*18
- call spparams with startmode
- call spcall with [SWSETVMODE]
- startmode = spreturnn
- clear
- ulx = 100
- uly = 60
- lrx = 200
- lry = 150
- color = 1
- fill = 1
- @2,2 say [Enter ULX: ] get ulx
- @3,2 say [Enter ULY: ] get uly
- @4,2 say [Enter LRX: ] get lrx
- @5,2 say [Enter LRY: ] get lry
- @6,2 say [Enter Color:] get color
- @7,2 say [Enter Fill: ] get fill
- read
- call spparams with mode
- call spcall with [SWSETVMODE]
- call spparams with ulx
- call spparams with uly
- call spparams with lrx
- call spparams with lry
- call spparams with color
- call spparams with fill
- call spcall with [SWBOX]
- call spparams with pause
- call spcall with [SWDELAY]
- call spparams with startmode
- call spcall with [SWSETVMODE]
-
-
- * Example for SWCOATSAY()
-
- set talk off
- startmode = -1
- mode = 4
- pause = 2*18
- call spparams with startmode
- call spcall with [SWSETVMODE]
- startmode = spreturnn
- clear
- row = 10
- column = 0
- color = 1
- string = space(40)
- @2,2 say [Enter Text:] get string
- read
- call spparams with mode
- call spcall with [SWSETVMODE]
- call spparams with row
- call spparams with column
- call spparams with color
- call spparams with string
- call spcall with [SWCOATSAY]
- call spparams with pause
- call spcall with [SWDELAY]
- call spparams with startmode
- call spcall with [SWSETVMODE]
-
-
- * Example for SWCOGET()
-
- set talk off
- startmode = -1
- mode = 4
- call spparams with startmode
- call spcall with [SWSETVMODE]
- startmode = spreturnn
- atsayrow = 5
- atsaycol = 1
- atsaycolor = 3
- atsaystring = "Enter Social Security #:"
- exitkey = 0
- getstatus = 0
- getrow = 5
- getcol = 27
- getlen = 11
- gettxtc = 2
- getcurc = 3
- getcurin = 1
- call spparams with mode
- call spcall with [SWSETVMODE]
- call spparams with atsayrow
- call spparams with atsaycol
- call spparams with atsaycolor
- call spparams with atsaystring
- call spcall with [SWCOATSAY]
- call spparams with getrow
- call spparams with getcol
- call spparams with getlen
- call spparams with gettxtc
- call spparams with getcurc
- call spparams with getcurin
- call spcall with [SWCOGET]
- usrinput = spreturnc
- call spcall with [SWCOGETER]
- getstatus = spreturnn
- call spcall with [SWCOGETXIT]
- exitkey = spreturnn
- call spparams with startmode
- call spcall with [SWSETVMODE]
- set talk on
- if(getstatus>=0)
- ?usrinput
- ?"Length of input string = ",getstatus
- ?"Code for key that caused exit = ",exitkey
- else
- ?"swcoget() returned "+str(getstatus,3,0)
- endif
-
-
- * Example for SWCOGETER()
-
- set talk off
- startmode = -1
- mode = 4
- call spparams with startmode
- call spcall with [SWSETVMODE]
- startmode = spreturnn
- atsayrow = 5
- atsaycol = 1
- atsaycolor = 3
- atsaystring = "Enter Social Security #:"
- exitkey = 0
- getstatus = 0
- getrow = 5
- getcol = 27
- getlen = 11
- gettxtc = 2
- getcurc = 3
- getcurin = 1
- call spparams with mode
- call spcall with [SWSETVMODE]
- call spparams with atsayrow
- call spparams with atsaycol
- call spparams with atsaycolor
- call spparams with atsaystring
- call spcall with [SWCOATSAY]
- call spparams with getrow
- call spparams with getcol
- call spparams with getlen
- call spparams with gettxtc
- call spparams with getcurc
- call spparams with getcurin
- call spcall with [SWCOGET]
- usrinput = spreturnc
- call spcall with [SWCOGETER]
- getstatus = spreturnn
- call spcall with [SWCOGETXIT]
- exitkey = spreturnn
- call spparams with startmode
- call spcall with [SWSETVMODE]
- set talk on
- if(getstatus>=0)
- ?usrinput
- ?"Length of input string = ",getstatus
- ?"Code for key that caused exit = ",exitkey
- else
- ?"swcoget() returned "+str(getstatus,3,0)
- endif
-
-
- * Example for SWCOGETXIT()
-
- set talk off
- startmode = -1
- mode = 4
- call spparams with startmode
- call spcall with [SWSETVMODE]
- startmode = spreturnn
- atsayrow = 5
- atsaycol = 1
- atsaycolor = 3
- atsaystring = "Enter Social Security #:"
- exitkey = 0
- getstatus = 0
- getrow = 5
- getcol = 27
- getlen = 11
- gettxtc = 2
- getcurc = 3
- getcurin = 1
- call spparams with mode
- call spcall with [SWSETVMODE]
- call spparams with atsayrow
- call spparams with atsaycol
- call spparams with atsaycolor
- call spparams with atsaystring
- call spcall with [SWCOATSAY]
- call spparams with getrow
- call spparams with getcol
- call spparams with getlen
- call spparams with gettxtc
- call spparams with getcurc
- call spparams with getcurin
- call spcall with [SWCOGET]
- usrinput = spreturnc
- call spcall with [SWCOGETER]
- getstatus = spreturnn
- call spcall with [SWCOGETXIT]
- exitkey = spreturnn
- call spparams with startmode
- call spcall with [SWSETVMODE]
- set talk on
- if(getstatus>=0)
- ?usrinput
- ?"Length of input string = ",getstatus
- ?"Code for key that caused exit = ",exitkey
- else
- ?"swcoget() returned "+str(getstatus,3,0)
- endif
-
-
- * Example for SWDELAY()
-
- set talk off
- clear
- ?[Delaying 1 Second]
- ?
- pause = 1*18
- call spparams with pause
- call spcall with [SWDELAY]
- ?[Delaying 2 Seconds]
- ?
- pause = 2*18
- call spparams with pause
- call spcall with [SWDELAY]
- ?[Delaying 3 Seconds]
- pause = 3*18
- call spparams with pause
- call spcall with [SWDELAY]
-
- * Example for SWFORSOUND()
-
- set talk off
- i = 1
- mode0 = 0
- mode1 = 1
- start = 200
- end = 1500
- posinc = 10
- neginc = -10
- loopcnt = 130
- dur = 500
- call spparams with mode1
- call spcall with [SWSETSOUND]
- do while i < 6
- call spparams with start
- call spparams with posinc
- call spparams with loopcnt
- call spparams with dur
- call spcall with [SWFORSOUND]
- call spparams with end
- call spparams with neginc
- call spparams with loopcnt
- call spparams with dur
- call spcall with [SWFORSOUND]
- i = i + 1
- enddo
- call spparams with mode0
- call spcall with [SWSETSOUND]
- wait
-
- * Example for SWGCLS()
-
- set talk off
- startmode = -1
- mode = 4
- pause = 2*18
- call spparams with startmode
- call spcall with [SWSETVMODE]
- startmode = spreturnn
- call spparams with mode
- call spcall with [SWSETVMODE]
- call spcall with [SWGCLS]
- call spparams with startmode
- call spcall with [SWSETVMODE]
-
-
- * Example for SWGETABORT()
-
- * Set F1 key to abort SWCOGET()
- *
- abortkey = 15104
- set talk off
- startmode = -1
- mode = 4
- call spparams with startmode
- call spcall with [SWSETVMODE]
- startmode = spreturnn
- atsayrow = 5
- atsaycol = 1
- atsaycolor = 3
- atsaystring = "Enter Social Security #:"
- exitkey = 0
- getstatus = 0
- getrow = 5
- getcol = 27
- getlen = 11
- gettxtc = 2
- getcurc = 3
- getcurin = 1
- call spparams with mode
- call spcall with [SWSETVMODE]
- call spparams with atsayrow
- call spparams with atsaycol
- call spparams with atsaycolor
- call spparams with atsaystring
- call spcall with [SWCOATSAY]
- call spparams with abortkey
- call spcall with [SWGETABORT]
- call spparams with getrow
- call spparams with getcol
- call spparams with getlen
- call spparams with gettxtc
- call spparams with getcurc
- call spparams with getcurin
- call spcall with [SWCOGET]
- usrinput = spreturnc
- call spcall with [SWCOGETER]
- getstatus = spreturnn
- call spcall with [SWCOGETXIT]
- exitkey = spreturnn
- call spparams with startmode
- call spcall with [SWSETVMODE]
- set talk on
- if(getstatus>=0)
- ?usrinput
- ?"Length of input string = ",getstatus
- ?"Code for key that caused exit = ",exitkey
- if(exitkey=abortkey)
- ?"F1 Key Pressed to exit."
- endif
- else
- ?"swcoget() returned "+str(getstatus,3,0)
- endif
-
- * Example for SWGETMAXC()
-
- set talk off
- startmode = -1
- mode = 4
- pause = 2*18
- call spparams with startmode
- call spcall with [SVSETMODE]
- startmode = spreturnn
- call spparams with mode
- call spcall with [SWSETVMODE]
- call spcall with [SWGETMAXC]
- maxc4 = spreturnn
- mode = 6
- call spparams with mode
- call spcall with [SWSETVMODE]
- call spcall with [SWGETMAXC]
- maxc6 = spreturnn
- call spparams with startmode
- call spcall with [SWSETVMODE]
- ?[Max color for mode 4: ]+str(maxc4,3,0)
- ?
- ?[Max color for mode 6: ]+str(maxc6,3,0)
- ?
- wait
-
-
- * Example for SWGETMAXX()
-
- set talk off
- startmode = -1
- mode = 4
- pause = 2*18
- call spparams with startmode
- call spcall with [SWSETVMODE]
- startmode = spreturnn
- call spparams with mode
- call spcall with [SWSETVMODE]
- call spcall with [SWGETMAXX]
- max4 = spreturnn
- call spcall with [SWGETMAXY]
- may4 = spreturnn
- mode = 6
- call spparams with mode
- call spcall with [SWSETVMODE]
- call spcall with [SWGETMAXX]
- max6 = spreturnn
- call spcall with [SWGETMAXY]
- may6 = spreturnn
- call spparams with startmode
- call spcall with [SWSETVMODE]
- ?[Max x vmode = 4: ]+str(max4,3,0)
- ?[Max y vmode = 4: ]+str(may4,3,0)
- ?
- ?[Max x vmode = 6: ]+str(max6,3,0)
- ?[Max y vmode = 6: ]+str(may6,3,0)
- ?
- wait
-
-
- * Example for SWGETMAXY()
-
-
- set talk off
- startmode = -1
- mode = 4
- pause = 2*18
- call spparams with startmode
- call spcall with [SWSETVMODE]
- startmode = spreturnn
- call spparams with mode
- call spcall with [SWSETVMODE]
- call spcall with [SWGETMAXX]
- max4 = spreturnn
- call spcall with [SWGETMAXY]
- may4 = spreturnn
- mode = 6
- call spparams with mode
- call spcall with [SWSETVMODE]
- call spcall with [SWGETMAXX]
- max6 = spreturnn
- call spcall with [SWGETMAXY]
- may6 = spreturnn
- call spparams with startmode
- call spcall with [SWSETVMODE]
- ?[Max x vmode = 4: ]+str(max4,3,0)
- ?[Max y vmode = 4: ]+str(may4,3,0)
- ?
- ?[Max x vmode = 6: ]+str(max6,3,0)
- ?[Max y vmode = 6: ]+str(may6,3,0)
- ?
- wait
-
-
- * Example for SWGETVMODE()
-
- clear
- call spcall with [SWGETVMODE]
- ?[Video mode is set to: ]+str(spreturnn,1,0)
- wait
-
-
- * Example for SWGETXORV()
-
- set talk off
- startmode = -1
- pause = 2*18
- call spparams with startmode
- call spcall with [SWSETVMODE]
- startmode = spreturnn
- row = 2
- column = 2
- color = 1
- mode = 19
- call spparams with mode
- call spcall with [SWSETVMODE]
- call spcall with [SWSETXORV]
- xorval = spreturn
- string = [XOR vale = ]+str(xorval,3,0)
- call spparams with row
- call spparams with column
- call spparams with color
- call spparams with string
- call spcall with [SWCOATSAY]
- call spparams with pause
- call spcall with [SWDELAY]
- call spparams with startmode
- call spcall with [SWSETVMODE]
-
-
- * Example for SWISEGA()
-
- set talk off
- startmode = -1
- pause = 2*18
- call spparams with startmode
- call spcall with [SWSETVMODE]
- startmode = spreturnn
- row = 2
- column = 2
- color = 1
- ism = .F.
- string = [Mode set to EGA]
- call spcall with [SWISEGA]
- ism = spreturn1
- if ism
- mode = 16
- call spparams with mode
- call spcall with [SWSETVMODE]
- call spparams with row
- call spparams with column
- call spparams with color
- call spparams with string
- call spcall with [SWCOATSAY]
- call spparams with pause
- call spcall with [SWDELAY]
- else
- ?[EGA not detected]
- endif
- call spparams with pause
- call spcall with [SWDELAY]
- call spparams with startmode
- call spcall with [SWSETVMODE]
-
-
- * Example for SWISHERC()
-
- set talk off
- startmode = -1
- pause = 2*18
- call spparams with startmode
- call spcall with [SWSETVMODE]
- startmode = spreturnn
- row = 2
- column = 2
- color = 1
- ism = .F.
- string = [Mode set to HERC]
- call spcall with [SWISHERC]
- ism = spreturn1
- if ism
- mode = 16
- call spparams with mode
- call spcall with [SWSETVMODE]
- call spparams with row
- call spparams with column
- call spparams with color
- call spparams with string
- call spcall with [SWCOATSAY]
- call spparams with pause
- call spcall with [SWDELAY]
- else
- ?[HERC not detected]
- endif
- call spparams with pause
- call spcall with [SWDELAY]
- call spparams with startmode
- call spcall with [SWSETVMODE]
-
-
- * Example for SWISVGA()
-
- set talk off
- startmode = -1
- pause = 2*18
- call spparams with startmode
- call spcall with [SWSETVMODE]
- startmode = spreturnn
- row = 2
- column = 2
- color = 1
- ism = .F.
- string = [Mode set to VGA]
- call spcall with [SWISVGA]
- ism = spreturn1
- if ism
- mode = 16
- call spparams with mode
- call spcall with [SWSETVMODE]
- call spparams with row
- call spparams with column
- call spparams with color
- call spparams with string
- call spcall with [SWCOATSAY]
- call spparams with pause
- call spcall with [SWDELAY]
- else
- ?[VGA not detected]
- endif
- call spparams with pause
- call spcall with [SWDELAY]
- call spparams with startmode
- call spcall with [SWSETVMODE]
-
-
- * Example for SWLINE()
-
-
- set talk off
- startmode = -1
- mode = 4
- pause = 2*18
- call spparams with startmode
- call spcall with [SWSETVMODE]
- startmode = spreturnn
- call spparams with mode
- call spcall with [SWSETVMODE]
- x1 = 0
- y1 = 0
- x2 = 319
- y2 = 199
- color = 1+128
- c = 1
- do while x1 <= 319
- call spparams with x1
- call spparams with y1
- call spparams with x2
- call spparams with y2
- call spparams with color
- call spcall with [SWLINE]
- x2=x2-1
- x1 = x1 + 1
- enddo
- call spparams with pause
- call spcall with [SWDELAY]
- call spparams with startmode
- call spcall with [SWSETVMODE]
-
-
- * Example for SWLINETO()
-
- set talk off
- startmode = -1
- mode = 4
- pause = 2*18
- call spparams with startmode
- call spcall with [SWSETVMODE]
- startmode = spreturnn
- call spparams with mode
- call spcall with [SWSETVMODE]
- x = 0
- y = 0
- color = 1
- call spparams with x
- call spparams with y
- call spcall with [SWSETORIGN]
- x = 300
- y = 90
- call spparams with x
- call spparams with y
- call spparams with color
- call spcall with [SWLINETO]
- x = 120
- y = 199
- call spparams with x
- call spparams with y
- call spparams with color
- call spcall with [SWLINETO]
- call spparams with pause
- call spcall with [SWDELAY]
- call spparams with startmode
- call spcall with [SWSETVMODE]
-
-
- * Example for SWPAINTREV()
-
-
- clear
- call spcall with [SWPAINTVER]
- ver = spreturnn
- call spcall with [SWPAINTREV]
- rev = spreturnn
- if rev < 10
- version = str(ver,2,0)+[.0]+str(rev,1,0)
- else
- version = str(ver,2,0)+[.]+str(rev,2,0)
- endif
- ?[Version: ]+version
- wait
-
-
- * Example for SWPAINTVER()
-
- clear
- call spcall with [SWPAINTVER]
- ver = spreturnn
- call spcall with [SWPAINTREV]
- rev = spreturnn
- if rev < 10
- version = str(ver,2,0)+[.0]+str(rev,1,0)
- else
- version = str(ver,2,0)+[.]+str(rev,2,0)
- endif
- ?[Version: ]+version
- wait
-
-
- * Example for SWPALETTE()
-
- set talk off
- startmode = -1
- mode = 4
- pause = 2*18
- one = 1
- zero = 0
- call spparams with startmode
- call spcall with [SWSETVMODE]
- startmode = spreturnn
- call spparams with mode
- call spcall with [SWSETVMODE]
- call spparams with one
- call spparams with one
- call spcall with [SWPALETTE]
- call spparams with one
- call spparams with zero
- call spcall with [SWPALETTE]
- cid = 0
- ulx = 100
- uly = 60
- lrx = 200
- lry = 150
- color = 1
- fill = 1
- call spparams with ulx
- call spparams with uly
- call spparams with lrx
- call spparams with lry
- call spparams with color
- call spparams with fill
- call spcall with [SWBOX]
- i = 2
- looppause = 9
- do while i <= 16
- call spparams with cid
- call spparams with i
- call spcall with [SWPALETTE]
- i = i + 1
- call spparams with looppause
- call spcall with [SWDELAY]
- enddo
- call spparams with pause
- call spcall with [SWDELAY]
- call spparams with startmode
- call spcall with [SWSETVMODE]
-
-
- * Example for SWPOPSLIDE()
-
- set talk off
- startmode = -1
- dfile = [d1.pcx]
- mode = 4
- pause = 2*18
- call spparams with startmode
- call spcall with [SWSETVMODE]
- startmode = spreturnn
- call spparams with mode
- call spcall with [SWSETVMODE]
- call spparams with dfile
- call spcall with [SWPOPSLIDE]
- call spparams with pause
- call spcall with [SWDELAY]
- call spparams with startmode
- call spcall with [SWSETVMODE]
-
-
- * Example for SWPRTSCRN()
-
- set talk off
- startmode = -1
- dfile = [d1.pcx]
- mode = 4
- pause = 2*18
- call spparams with startmode
- call spcall with [SWSETVMODE]
- startmode = spreturnn
- call spparams with mode
- call spcall with [SWSETVMODE]
- call spparams with dfile
- call spcall with [SWPOPSLIDE]
- call spcall with [SWPRTSCRN]
- call spparams with pause
- call spcall with [SWDELAY]
- call spparams with startmode
- call spcall with [SWSETVMODE]
-
-
- * Example for SWQDELAY()
-
- i = 500
- hold = 10
- do while i < 1000
- call spparams with i
- call spcall with [SWSOUNDON]
- call spparams with hold
- call spcall with [SWQDELAY]
- i = i + 10
- enddo
- call spcall with [SWSOUNDOFF]
-
-
- * Example for SWRAND()
-
- rand = 1
- i = 1
- call spparams with rand
- call spcall with [SWSRAND]
- do while i < 10
- call spcall with [SWRAND]
- rand = spreturnn
- ?i,rand
- i = i + 1
- enddo
-
-
- * Example for SWREADDOT()
-
- set talk off
- startmode = -1
- mode = 4
- pause = 2*18
- call spparams with startmode
- call spcall with [SWSETVMODE]
- startmode = spreturnn
- call spparams with mode
- call spcall with [SWSETVMODE]
- row = 10
- column = 0
- color = 1
- x = 100
- y = 100
- call spparams with x
- call spparams with y
- call spparams with color
- call spcall with [SWWRITEDOT]
- call spparams with x
- call spparams with y
- call spcall with [SWREADDOT]
- dot = spreturnn
- string = [Attribute Value of x = 100, y = 100
- :]+str(dot,3,0)
- call spparams with row
- call spparams with column
- call spparams with color
- call spparams with string
- call spcall with [SWCOATSAY]
- call spparams with pause
- call spcall with [SWDELAY]
- call spparams with startmode
- call spcall with [SWSETVMODE]
-
-
- * Example for SWSETORIGN()
-
- set talk off
- startmode = -1
- mode = 4
- pause = 2*18
- call spparams with startmode
- call spcall with [SWSETVMODE]
- startmode = spreturnn
- call spparams with mode
- call spcall with [SWSETVMODE]
- x = 0
- y = 0
- color = 1
- call spparams with x
- call spparams with y
- call spcall with [SWSETORIGN]
- x = 300
- y = 90
- call spparams with x
- call spparams with y
- call spparams with color
- call spcall with [SWLINETO]
- x = 120
- y = 199
- call spparams with x
- call spparams with y
- call spparams with color
- call spcall with [SWLINETO]
- call spparams with pause
- call spcall with [SWDELAY]
- call spparams with startmode
- call spcall with [SWSETVMODE]
-
-
- * Example for SWSETPOPXY()
-
- set talk off
- startmode = -1
- dfile = [d1.pcx]
- mode = 4
- pause = 2*18
- ulx = 20
- uly = 20
- lrx = 120
- lry = 120
- popopt = 0
- call spparams with startmode
- call spcall with [SWSETVMODE]
- startmode = spreturnn
- call spparams with mode
- call spcall with [SWSETVMODE]
- call spparams with popopt
- call spcall with [SWSETVMPOP]
- call spparams with ulx
- call spparams with uly
- call spparams with lrx
- call spparams with lry
- call spcall with [SWSETPOPXY]
- call spparams with dfile
- call spcall with [SWPOPSLIDE]
- call spparams with pause
- call spcall with [SWDELAY]
- call spparams with startmode
- call spcall with [SWSETVMODE]
-
-
- * Example for SWSETSOUND()
-
- set talk off
- i = 1
- mode0 = 0
- mode1 = 1
- start = 200
- end = 1500
- posinc = 10
- neginc = -10
- loopcnt = 130
- dur = 500
- call spparams with mode1
- call spcall with [SWSETSOUND]
- do while i < 6
- call spparams with start
- call spparams with posinc
- call spparams with loopcnt
- call spparams with dur
- call spcall with [SWFORSOUND]
- call spparams with end
- call spparams with neginc
- call spparams with loopcnt
- call spparams with dur
- call spcall with [SWFORSOUND]
- i = i + 1
- enddo
- call spparams with mode0
- call spcall with [SWSETSOUND]
- wait
-
- * Example for SWSETVMODE()
-
- set talk off
- startmode = -1
- mode = 4
- call spparams with startmode
- call spcall with [SWSETVMODE]
- startmode = spreturnn
- call spparams with mode
- call spcall with [SWSETVMODE]
- call spparams with startmode
- call spcall with [SWSETVMODE]
-
-
- * Example for SWSETVMPOP()
-
-
- set talk off
- startmode = -1
- dfile = [d1.pcx]
- mode = 4
- pause = 2*18
- ulx = 20
- uly = 20
- lrx = 120
- lry = 120
- popopt = 0
- call spparams with startmode
- call spcall with [SWSETVMODE]
- startmode = spreturnn
- call spparams with mode
- call spcall with [SWSETVMODE]
- call spparams with popopt
- call spcall with [SWSETVMPOP]
- call spparams with ulx
- call spparams with uly
- call spparams with lrx
- call spparams with lry
- call spcall with [SWSETPOPXY]
- call spparams with dfile
- call spcall with [SWPOPSLIDE]
- call spparams with pause
- call spcall with [SWDELAY]
- call spparams with startmode
- call spcall with [SWSETVMODE]
-
-
- * Example for SWSOUND()
-
- pause = 1
- color = 2
- x = 0
- y = 0
- i = 1
- call spparams with i
- call spcall with [SWSRAND]
- do while i < 100
- call spcall with [SWRAND]
- x = mod(spreturnn,1999)
- if x > 32
- call spparams with x
- call spparams with pause
- call spcall with [SWSOUND]
- endif
- i = i + 1
- enddo
-
-
- * Example for SWSOUNDOFF()
-
-
- i = 500
- hold = 10
- do while i < 1000
- call spparams with i
- call spcall with [SWSOUNDON]
- call spparams with hold
- call spcall with [SWQDELAY]
- i = i + 10
- enddo
- call spcall with [SWSOUNDOFF]
-
-
- * Example for SWSOUNDON()
-
- i = 500
- hold = 10
- do while i < 1000
- call spparams with i
- call spcall with [SWSOUNDON]
- call spparams with hold
- call spcall with [SWQDELAY]
- i = i + 10
- enddo
- call spcall with [SWSOUNDOFF]
-
- * Example for SWSOUNDOFF()
-
- rand = 1
- i = 1
- call spparams with rand
- call spcall with [SWSRAND]
- do while i < 10
- call spcall with [SWRAND]
- rand = spreturnn
- ?i,rand
- i = i + 1
- enddo
-
-
- * Example SWWRITEDOT()
-
- set talk off
- startmode = -1
- mode = 4
- pause = 2*18
- color = 1
- call spparams with startmode
- call spcall with [SWSETVMODE]
- startmode = spreturnn
- call spparams with mode
- call spcall with [SWSETVMODE]
- i = 1
- call spparams with i
- call spcall with [SWSRAND]
- do while i < 200
- call spcall with [SWRAND]
- x = mod(spreturnn,319)
- call spcall with [SWRAND]
- y = mod(spreturnn,199)
- call spparams with x
- call spparams with y
- call spparams with color
- call spcall with [SWWRITEDOT]
- i = i + 1
- enddo
- call spparams with startmode
- call spcall with [SWSETVMODE]
- !seealso: SWREADDOT()
-