10 GELLOAD "a","file:///E:/kosmos1.png"
20 X%=0:Y%=0
100 IF LEFT(0)<>0 THEN X%=X%+5:NAP%=2:GOSUB 1000
101 IF RIGHT(0)<>0 THEN X%=X%-5:NAP%=4:GOSUB 1000
102 IF UP(0)<>0 THEN Y%=Y%+5:NAP%=1:GOSUB 1000
103 IF DOWN(0)<>0 THEN Y%=Y%-5:NAP%=3:GOSUB 1000
110 SLEEP 30:GOTO 100
1000 IF NAP%=4 AND X%<-79 THEN X%=0
1001 IF NAP%=2 AND X%>-1 THEN X%=-80
1002 IF NAP%=3 AND Y%<-79 THEN Y%=0
1003 IF NAP%=1 AND Y%>-1 THEN Y%=-80
1004 DRAWGEL "a",X%,Y%
1010 RETURN
