Armakuni

codice basic ottimizzato per F64

Feb 24th, 2019
455
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. 10rem f64
  2. 20zz=rnd(-ti)
  3. 30sc=0
  4. 40poke646,2:poke53280,2:poke53281,0
  5. 50 empt$=" "
  6. 60ln$="{cm +}"+empt$+"{cm +}"
  7. 70rc=7:sp=rc:lc=0:rp=0:dimc
  8. 80dimob
  9. 90dimpf$
  10. 100print"{clear}"
  11. 110v=53248
  12. 120pokev+21,4:poke53289,4:poke2042,13
  13. 130delta=3
  14. 140forn=0to62:readq:poke832+n,q:next
  15. 150x=165:y=50
  16. 160a=peek(56320)
  17. 170ifa<>127thendelta=delta+1:goto190
  18. 180ifa=127thendelta=delta-1.5
  19. 190ifdelta<3thendelta=3
  20. 200ifdelta>10thendelta=10
  21. 210ifa=126theny=y-delta:goto290
  22. 220ifa=125theny=y+delta:goto290
  23. 230ifa=123thenx=x-delta:goto290
  24. 240ifa=119thenx=x+delta:goto290
  25. 250ifa=122theny=y-delta:x=x-delta:goto290
  26. 260ifa=118theny=y-delta:x=x+delta:goto290
  27. 270ifa=121theny=y+delta:x=x-delta:goto290
  28. 280ifa=117theny=y+delta:x=x+delta
  29. 290ifx<20thenx=20:goto310
  30. 300ifx>255thenx=255
  31. 310ify<50theny=50:goto330
  32. 320ify>237theny=237
  33. 330pokev+4,x:pokev+5,y
  34. 340c=int(rnd(1)*3)+1
  35. 350iflc=0thenifc=1thensp=sp+1:rp=rp+1:goto370
  36. 360iflc=0thenifc=2thensp=sp-1:rp=rp+1
  37. 370iflc=1thensp=sp+1:rp=rp+1:goto400
  38. 380iflc=2thensp=sp-1:rp=rp+1:goto400
  39. 390iflc=3thenrp=rp+1
  40. 400ifsp<rcthensp=rc:goto420
  41. 410ifsp>2*rcthensp=2*rc
  42. 420pf$=""
  43. 430fort=1tosp:pf$=pf$+" ":nextt
  44. 440ob=int(rnd(1)*3)+1
  45. 450ifob<3orsc<6then?pf$+ln$:goto470
  46. 460ifob=3thenifsc>5thengosub510
  47. 470ifpeek(53279)=4goto550
  48. 480ifrp>rcthenrp=0:lc=c
  49. 490sc=sc+1
  50. 500goto160
  51. 510ob=int(rnd(1)*(len(ln$)-1))+1
  52. 520l$=left$(ln$,ob):r$=right$(ln$,len(ln$)-ob-1)
  53. 530?pf$+l$+"Q"+r$
  54. 540return
  55. 550print"{clear}"
  56. 560pokev+21,0
  57. 570restore
  58. 580?"fine corsa"
  59. 590?"linee superate:"+str$(sc):?"ancora?(y o n)"
  60. 600gety$:ify$=""goto600
  61. 610ify$="y"thengoto30
  62. 620end
  63. 630rem
  64. 640data0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  65. 650data0,0,0,255,255,255,73,0,146,38,0,100,16,0,8,8,24,16
  66. 660data4,36,32,2,36,64,1,36,128,0,153,0,0,66,0,0,36,0,0,24,0
Add Comment
Please, Sign In to add comment