Анимация(circumcisio)

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

Реклама

Мы в соцсетях

tw tg yt gt