home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Esportes / VirtualCurling.swf / scripts / frame_61 / DoAction.as
Encoding:
Text File  |  2005-08-08  |  623 b   |  32 lines

  1. waiting = false;
  2. ends_message = "END: " + end_no;
  3. score_message = ends_message + totals_message;
  4. ball = 1;
  5. while(totalballs >= ball)
  6. {
  7.    in_zone[ball] = true;
  8.    realx[ball] = -999 * ball;
  9.    realy[ball] = -999 * ball;
  10.    stone_status[ball] = "bright";
  11.    ball++;
  12. }
  13. stoneboard.display_stones();
  14. player_no = 1;
  15. first_play = "computer";
  16. stone_in_use = 0;
  17. if(end_no == 2)
  18. {
  19.    if(user_score < computer_score)
  20.    {
  21.       trace("computer 1st");
  22.       player_no = 1;
  23.       first_play = "computer";
  24.    }
  25.    else
  26.    {
  27.       trace("human 1st");
  28.       player_no = 0;
  29.       first_play = "user";
  30.    }
  31. }
  32.