home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 May / Chip_2003-05_cd1.bin / oddech / flashgame / veonix.swf / scripts / frame_46 / DoAction.as
Text File  |  2003-03-14  |  917b  |  60 lines

  1. numrigeliminate++;
  2. numrigbonus++;
  3. if(numrigbonus == 1)
  4. {
  5.    punti = 50;
  6. }
  7. else if(numrigbonus == 2)
  8. {
  9.    punti = 100;
  10. }
  11. else if(numrigbonus == 3)
  12. {
  13.    punti = 250;
  14. }
  15. else if(numrigbonus == 4)
  16. {
  17.    punti = 500;
  18. }
  19. punteggio += punti;
  20. if(punti != 0)
  21. {
  22.    setProperty(scrittapunti2, _X, sfasoriz + posx + (Math.floor(maxcol / 2) - 1) * larg);
  23.    setProperty(scrittapunti2, _Y, sfasvert + posy + (cicloriga + 1) * alt);
  24.    scrittapunti2.play();
  25. }
  26. if(0 < numrigrimanenti)
  27. {
  28.    numrigrimanenti--;
  29. }
  30. i = cicloriga;
  31. while(0 < i)
  32. {
  33.    j = maxcol - 1;
  34.    while(j >= 0)
  35.    {
  36.       matsfondo[i][j] = matsfondo[i - 1][j];
  37.       j--;
  38.    }
  39.    i--;
  40. }
  41. j = 0;
  42. while(j < maxcol)
  43. {
  44.    matsfondo[0][j] = 0;
  45.    j++;
  46. }
  47. i = 0;
  48. while(i < cicloriga + 1)
  49. {
  50.    j = 0;
  51.    while(j < maxcol)
  52.    {
  53.       Matimage(i,j,matsfondo[i][j]);
  54.       j++;
  55.    }
  56.    i++;
  57. }
  58. cicloriga++;
  59. gotoAndPlay(42);
  60.