Анимация(circumcisio)
- 10 GELLOAD "down","Down.png"
- 20 GELLOAD "up","Up.png"
- 30 GELLOAD "right","Right.png"
- 40 GELLOAD "left","Left.png"
- 50 SPRITEGEL "hero","down"
- 60 X%=100:Y%=120
- 70 SPRITEMOVE "hero",X%,Y%:REPAINT:SLEEP 20
- 80 IF DOWN(0) THEN SPRITEGEL "hero","down":Y%=Y%+1
- 90 IF UP(0) THEN SPRITEGEL "hero","up":Y%=Y%-1
- 100 IF LEFT(0) THEN SPRITEGEL "hero","left":X%=X%-1
- 110 IF RIGHT(0) THEN SPRITEGEL "hero","right":X%=X%+1
- 120 IF X%<0 THEN X%=0
- 130 IF Y%<0 THEN Y%=0
- 140 GOTO 70
Укороченый код Анимация в 4 стороны.