home *** CD-ROM | disk | FTP | other *** search
- 6 px=0
- 7 py=0
- 10 ox=x
- 20 oy=y
- 30 x=(peek(54297) and 127)
- 40 y=(peek(54298) and 127)
- 50 x = x - (x and 1)
- 60 y = y - (y and 1)
- 70 x=x/2
- 80 y=y/2
- 90 dx=x-ox
- 100 dy=y-oy
- 110 ifdx<-31 then px=px+64-dx:goto200
- 120 ifdy<-31 then py=py+64-dy:goto200
- 130 ifdx>31 then px=px-(64-dx):goto200
- 140 ifdy>31 then py=py-(64-dy):goto200
- 150 px=px+dx
- 160 py=py+dy
- 200 rem koordinaten stehen in px und py
- 910 printx,y,dx,dy,px,py
- 920 goto10
-