/[cuyo]/cuyo/data/breakout.ld
ViewVC logotype

Diff of /cuyo/data/breakout.ld

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by caeles, Wed Jul 6 16:02:42 2005 UTC revision 1.7 by caeles, Sun Nov 27 02:57:04 2005 UTC
# Line 316  BreakOut = { Line 316  BreakOut = {
316            erstes_stein == 8 -> getroffen@(-1,-1)=1;            erstes_stein == 8 -> getroffen@(-1,-1)=1;
317          };          };
318          if erstes_schlaeger -> {          if erstes_schlaeger -> {
319            if turn@0!=0 -> {bonus(10); message("Angeschnitten!");};            if turn@@0!=0 -> {bonus(10); message("Angeschnitten!");};
320            getroffen@0=1;            getroffen@@0=1;
321            getroffen@1=1;            getroffen@@1=1;
322          };          };
323        };        };
324      };      };
# Line 351  BreakOut = { Line 351  BreakOut = {
351        if loc_y==19 && loc_x==straf_x@ ->        if loc_y==19 && loc_x==straf_x@ ->
352          {kind=gras; farbe=3; frei=0; straf_x@=-1;};          {kind=gras; farbe=3; frei=0; straf_x@=-1;};
353    
354        if (getroffen@0 || getroffen@1)        if (getroffen@@0 || getroffen@@1)
355            && loc_x+loc_x@0==8..10 && loc_y+loc_y@0<=19            && loc_x+loc_x@@0==8..10 && loc_y+loc_y@@0<=19
356            && loc_y<=17 && frei ->            && loc_y<=17 && frei ->
357          kind=stuetze;          kind=stuetze;
358    
# Line 366  BreakOut = { Line 366  BreakOut = {
366          ball_x=ball_x@;          ball_x=ball_x@;
367          ball_y=ball_y@;          ball_y=ball_y@;
368          ball_richt=ball_richt@;          ball_richt=ball_richt@;
369          schlaeger_xx_alt = schlaeger_xx_alt@0;          schlaeger_xx_alt = schlaeger_xx_alt@@0;
370          schlaeger_yy_alt = schlaeger_yy_alt@0;          schlaeger_yy_alt = schlaeger_yy_alt@@0;
371    
372          #          #
373          # Bewegen und kollidieren mit Schläger          # Bewegen und kollidieren mit Schläger
374          #          #
375    
376          schlaeger_xx = (loc_xx@0+loc_xx@1)/2;          schlaeger_xx = (loc_xx@@0+loc_xx@@1)/2;
377          schlaeger_yy = (loc_yy@0+loc_yy@1)/2;          schlaeger_yy = (loc_yy@@0+loc_yy@@1)/2;
378          if schlaeger_xx_alt == -1 -> {          if schlaeger_xx_alt == -1 -> {
379            schlaeger_xx_alt = schlaeger_xx;            schlaeger_xx_alt = schlaeger_xx;
380            schlaeger_yy_alt = schlaeger_yy;            schlaeger_yy_alt = schlaeger_yy;
381          };          };
382    
383          if schlaeger_richt@0==0 # Schläger ist waagerecht          if schlaeger_richt@@0==0 # Schläger ist waagerecht
384            -> switch {            -> switch {
385              turn@0 == 0 -> {              turn@@0 == 0 -> {
386                schlaeger_x1 = loc_xx@0+5;                schlaeger_x1 = loc_xx@@0+5;
387                schlaeger_y1 = loc_yy@0+16;                schlaeger_y1 = loc_yy@@0+16;
388                schlaeger_x2 = loc_xx@0+32;                schlaeger_x2 = loc_xx@@0+32;
389                schlaeger_y2 = loc_yy@0+23;                schlaeger_y2 = loc_yy@@0+23;
390                schlaeger_x3 = loc_xx@1+27;                schlaeger_x3 = loc_xx@@1+27;
391                schlaeger_y3 = loc_yy@1+16;                schlaeger_y3 = loc_yy@@1+16;
392                schlaeger_x4 = loc_xx@1+0;                schlaeger_x4 = loc_xx@@1+0;
393                schlaeger_y4 = loc_yy@1+9;                schlaeger_y4 = loc_yy@@1+9;
394                schlaeger_richt = 23;                schlaeger_richt = 23;
395              };              };
396              turn@0 == 1 -> {              turn@@0 == 1 -> {
397                schlaeger_x1 = loc_xx@0+10;                schlaeger_x1 = loc_xx@@0+10;
398                schlaeger_y1 = loc_yy@0+6;                schlaeger_y1 = loc_yy@@0+6;
399                schlaeger_x2 = loc_xx@1+1;                schlaeger_x2 = loc_xx@@1+1;
400                schlaeger_y2 = loc_yy@1+6;                schlaeger_y2 = loc_yy@@1+6;
401                schlaeger_x3 = loc_xx@1+22;                schlaeger_x3 = loc_xx@@1+22;
402                schlaeger_y3 = loc_yy@1+26;                schlaeger_y3 = loc_yy@@1+26;
403                schlaeger_x4 = loc_xx@0+31;                schlaeger_x4 = loc_xx@@0+31;
404                schlaeger_y4 = loc_yy@0+26;                schlaeger_y4 = loc_yy@@0+26;
405                schlaeger_richt = 20;                schlaeger_richt = 20;
406              };              };
407              turn@0 == 2 -> {              turn@@0 == 2 -> {
408                schlaeger_x1 = loc_xx@0+6;                schlaeger_x1 = loc_xx@@0+6;
409                schlaeger_y1 = loc_yy@0+10;                schlaeger_y1 = loc_yy@@0+10;
410                schlaeger_x2 = loc_xx@0+26;                schlaeger_x2 = loc_xx@@0+26;
411                schlaeger_y2 = loc_yy@0+31;                schlaeger_y2 = loc_yy@@0+31;
412                schlaeger_x3 = loc_xx@1+26;                schlaeger_x3 = loc_xx@@1+26;
413                schlaeger_y3 = loc_yy@1+22;                schlaeger_y3 = loc_yy@@1+22;
414                schlaeger_x4 = loc_xx@1+6;                schlaeger_x4 = loc_xx@@1+6;
415                schlaeger_y4 = loc_yy@1+1;                schlaeger_y4 = loc_yy@@1+1;
416                schlaeger_richt = 22;                schlaeger_richt = 22;
417              };              };
418            }            }
419            else switch {            else switch {
420              turn@0 == 0 -> {              turn@@0 == 0 -> {
421                schlaeger_x1 = loc_xx@1+16;                schlaeger_x1 = loc_xx@@1+16;
422                schlaeger_y1 = loc_yy@1+27;                schlaeger_y1 = loc_yy@@1+27;
423                schlaeger_x2 = loc_xx@1+23;                schlaeger_x2 = loc_xx@@1+23;
424                schlaeger_y2 = loc_yy@1+0;                schlaeger_y2 = loc_yy@@1+0;
425                schlaeger_x3 = loc_xx@0+16;                schlaeger_x3 = loc_xx@@0+16;
426                schlaeger_y3 = loc_yy@0+5;                schlaeger_y3 = loc_yy@@0+5;
427                schlaeger_x4 = loc_xx@0+9;                schlaeger_x4 = loc_xx@@0+9;
428                schlaeger_y4 = loc_yy@0+32;                schlaeger_y4 = loc_yy@@0+32;
429                schlaeger_richt = 5;                schlaeger_richt = 5;
430              };              };
431              turn@0 == 1 -> {              turn@@0 == 1 -> {
432                schlaeger_x1 = loc_xx@1+6;                schlaeger_x1 = loc_xx@@1+6;
433                schlaeger_y1 = loc_yy@1+22;                schlaeger_y1 = loc_yy@@1+22;
434                schlaeger_x2 = loc_xx@0+6;                schlaeger_x2 = loc_xx@@0+6;
435                schlaeger_y2 = loc_yy@0+31;                schlaeger_y2 = loc_yy@@0+31;
436                schlaeger_x3 = loc_xx@0+26;                schlaeger_x3 = loc_xx@@0+26;
437                schlaeger_y3 = loc_yy@0+10;                schlaeger_y3 = loc_yy@@0+10;
438                schlaeger_x4 = loc_xx@1+26;                schlaeger_x4 = loc_xx@@1+26;
439                schlaeger_y4 = loc_yy@1+1;                schlaeger_y4 = loc_yy@@1+1;
440                schlaeger_richt = 2;                schlaeger_richt = 2;
441              };              };
442              turn@0 == 2 -> {              turn@@0 == 2 -> {
443                schlaeger_x1 = loc_xx@1+10;                schlaeger_x1 = loc_xx@@1+10;
444                schlaeger_y1 = loc_yy@1+26;                schlaeger_y1 = loc_yy@@1+26;
445                schlaeger_x2 = loc_xx@1+31;                schlaeger_x2 = loc_xx@@1+31;
446                schlaeger_y2 = loc_yy@1+6;                schlaeger_y2 = loc_yy@@1+6;
447                schlaeger_x3 = loc_xx@0+22;                schlaeger_x3 = loc_xx@@0+22;
448                schlaeger_y3 = loc_yy@0+6;                schlaeger_y3 = loc_yy@@0+6;
449                schlaeger_x4 = loc_xx@0+1;                schlaeger_x4 = loc_xx@@0+1;
450                schlaeger_y4 = loc_yy@0+26;                schlaeger_y4 = loc_yy@@0+26;
451                schlaeger_richt = 4;                schlaeger_richt = 4;
452              };              };
453            };            };
# Line 536  BreakOut = { Line 536  BreakOut = {
536          # Variablen zurückgeben          # Variablen zurückgeben
537          #          #
538    
539          schlaeger_xx_alt@0=schlaeger_xx;          schlaeger_xx_alt@@0=schlaeger_xx;
540          schlaeger_yy_alt@0=schlaeger_yy;          schlaeger_yy_alt@@0=schlaeger_yy;
541          schlaeger_xx_alt@1=schlaeger_xx;          schlaeger_xx_alt@@1=schlaeger_xx;
542          schlaeger_yy_alt@1=schlaeger_yy;          schlaeger_yy_alt@@1=schlaeger_yy;
543    
544          ball_x@=ball_x;          ball_x@=ball_x;
545          ball_y@=ball_y;          ball_y@=ball_y;

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26