home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Falcon 030 Power 2
/
F030_POWER2.iso
/
ST_STE
/
MAGS
/
ICTARI03.ARJ
/
ictari.03
/
STOS
/
DROID.ASC
< prev
next >
Wrap
Text File
|
1987-04-22
|
635b
|
23 lines
10 rem this routine uses the droid sprites
20 rem and the dungeon type background
30 rem from the demo disc
40 cls
50 limit sprite 25,0 to 275,200
60 mode 0 : flash off : hide
70 get palette (10)
80 screen copy 10 to physic : screen copy 10 to back
90 rem move sprite by redrawing it
100 X=100 : Y=80 : YNEW=80
110 if jleft then XNEW=XNEW-2
120 if jright then XNEW=XNEW+2
130 gosub 170
140 sprite 1,XNEW,YNEW,9
150 wait vbl
160 goto 110
170 if jup and P=0 then P=1
180 if P=1 and y sprite(1)=40 then P=2
190 if P=2 and y sprite(1)=80 then P=0
200 if P=1 then YNEW=YNEW-1
210 if P=2 then YNEW=YNEW+1
220 return