Guest User

Untitled

a guest
Dec 4th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  If a<50 or a>1000 or b<80 or b>700 then
  2.             print "vor vor if-anweisung"
  3.  
  4.             If a<>0 and b<>0 then
  5.                 pset (a,b),bckcl
  6.                 draw string (340,50),str(pu),bckcl
  7.                 pu=pu-10
  8.                 draw string (340,50),str(pu),lttcl3
  9.                 print "li vor subtraktion:";li
  10.                 li=li-1
  11.                 print "li nach subtraktion:";li
  12.                 Print "nach li=li-1"
  13.                 sleep
  14.                
  15.                 'Völlig abgrdreht: Ich fühle mich vom Compiler veraeppelt.
  16.                 'Lebensabzug li=li-1 ausgeführt, aber keine frontlinenr-Operationen.
  17.                 'wegoptimiert????
  18.  
  19.                
  20.                 snline(frontlinenr,2)=a
  21.                 snline(frontlinenr,3)=b
  22.                
  23.                 'Der Ort des letzten Punktes wird zum Endpunkt, sonst kommt die Linie durcheinander
  24.                 'Operation muss vor einem Sprung zum Label outofb geschehen, da bei outofb die Variablen
  25.                 'a und b umdefiniert werden
  26.                 '
  27.                 'Problem:Frontlinenr wird scheinbar nicht erhöht, wenn Schlange auftrifft
  28.                
  29.                 If li<=0 then
  30.                     draw string (470,150),"THE END 2",lttcl2
  31.                     if ch=2 and le=0 then goto tet2
  32.                         sleep 2000
  33.                         print "vor sprungbefehl goto tet"
  34.                         sleep
  35.                         goto tet
  36.                         print "nach sprungbefehl goto tet"
  37.                         sleep
  38.                     end if
  39.                     line (51,81)-(999,699),bckcl,BF
  40.                     for i=1 to l
  41.                         pset (ca(i),cb(i)),lttcl2
  42.                     next
  43.                     line (ba,bb)-(ba+big,bb+big),lttcl2,bF
  44.                         print "vor sprungbefehl goto outofb"
  45.                         sleep
  46.                         goto outofb
  47.                         print "nach sprungbefehl goto outofb"
  48.                         sleep
  49.                 end if
  50.                
  51.                
  52.                 a=500
  53.                 b=500
  54.                
  55.                 print "vor if-anweisung"
  56.                
  57.                 'Das Linienmanagement muss eine neue Linie anlegen
  58.                 if frontlinenr<(MAXLINES-MAXLINESSECURITYAMOUNT) then
  59.                     print "frontlinenr nach aufprall erhoeht von ";frontlinenr;
  60.                     frontlinenr=frontlinenr+1
  61.                     print " auf ";frontlinenr;
  62.                     sleep 10000,1
  63.                     sleep 5000
  64.                     snline(frontlinenr,0)=a
  65.                     snline(frontlinenr,1)=b
  66.                 elseif snline (0,0)=0 then
  67.                     print "frontlinenr nach aufprall geaendert von ";frontlinenr;
  68.                     frontlinenr=0
  69.                     print " auf ";frontlinenr;
  70.                     sleep 10000,1
  71.                     sleep 5000
  72.                     snline(frontlinenr,0)=a
  73.                     snline(frontlinenr,1)=b
  74.                 else
  75.                     Print "Fehler beim Linienmanagement! Zu viele Linien. Taste druecken zum Beenden."
  76.                     sleep 10000,1
  77.                     sleep 10000
  78.                     end
  79.                 end if
  80.                 snline(frontlinenr,2)=a
  81.                 snline(frontlinenr,3)=b
  82.                 snline(frontlinenr,4)=c
  83.             end if
  84.         end if
Add Comment
Please, Sign In to add comment