home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Puzzle / neko_juppiki.swf / scripts / frame_2 / DoAction.as
Encoding:
Text File  |  2007-03-20  |  605 b   |  33 lines

  1. function initGame()
  2. {
  3.    this.mouse_press_flg = false;
  4.    this.stage_num = 1;
  5.    this.score = 0;
  6.    if(this.game_mode == 1)
  7.    {
  8.       this.neko = 10;
  9.    }
  10.    else
  11.    {
  12.       this.neko = 99;
  13.    }
  14.    this.dispScore();
  15. }
  16. function dispScore()
  17. {
  18.    this.mc_score.disp_num(this.score);
  19.    this.mc_hiscore.disp_num(this.hiscore);
  20. }
  21. function addScore(n)
  22. {
  23.    this.score += n;
  24.    if(this.score >= this.hiscore)
  25.    {
  26.       this.hiscore = this.score;
  27.    }
  28.    this.mc_score.disp_num(this.score);
  29.    this.mc_hiscore.disp_num(this.hiscore);
  30. }
  31. this.hiscore = 0;
  32. this.last_stage_num = 6;
  33.