home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 18
/
CD_ASCQ_18_111294_W.iso
/
dos
/
graphic
/
datashow
/
examples.exe
/
XMAS.SHW
< prev
next >
Wrap
Text File
|
1994-11-01
|
886b
|
54 lines
COLOR BACKGROUND 0
COLOR FOREGROUND 15
COLOR ATTRIBUTE 15
SCREEN WIPE RIGHT
SHOW SCREEN "XMAS.SCR" TXT
VARIABLE CREATE count TYPE NUMBER 1
VARIABLE CREATE x TYPE NUMBER 1
VARIABLE CREATE y TYPE NUMBER 1
VARIABLE CREATE char TYPE STRING " "
VARIABLE CREATE def TYPE NUMBER 0
VARIABLE CREATE hit TYPE NUMBER 0
MARK 1
MATH x = RANDOM(79)
MATH y = RANDOM(24)
IF x IN 1 15 DO JUMPMARK 2
IF x IN 58 79 DO JUMPMARK 3
JUMPMARK 1
MARK 2
IF y IN 7 10 DO
GOXY x y WRITE char
MATH hit = 1
END
JUMPMARK 4
MARK 3
IF y IN 3 7 DO
GOXY x y WRITE char
MATH hit = 1
END
MARK 4
IF hit EQ 0 DO JUMPMARK 1
MATH hit = 0
IF def EQ 1 DO
MATH def = 0
VARIABLE VALUE char " "
ELSE
MATH def = 1
VARIABLE VALUE char "°"
END
MATH count = count+1
IF count LT 100 DO JUMPMARK 1
MUSIC PROCESS "JINGLE.SND" SND
WAIT 2
EFFECT GLITTER