home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Aventura / pendekar.swf / scripts / frame_1 / DoAction.as
Text File  |  2006-05-08  |  955b  |  38 lines

  1. function init()
  2. {
  3.    if(runOnce)
  4.    {
  5.       return undefined;
  6.    }
  7.    this.runOnce = true;
  8.    trace("> Initializing Pencak Silat 4.0 engine...");
  9.    _quality = "high";
  10.    getUrl("FSCommand:showmenu", "false");
  11.    this.player1Invincible = false;
  12.    this.player1 = "mPendekar";
  13.    this.player1Left = 37;
  14.    this.player1Right = 39;
  15.    this.player1Jump = 83;
  16.    this.player1Duck = 40;
  17.    this.player1Attack = 65;
  18.    this.player1Special = 68;
  19.    this.player1Lives = 5;
  20.    this.currentLevel = 0;
  21.    this.levelPracticeClear = true;
  22.    this.level01Clear = false;
  23.    this.level02Clear = false;
  24.    this.level03Clear = false;
  25.    this.level04Clear = false;
  26.    this.challenge01Clear = false;
  27.    this.challenge02Clear = false;
  28.    this.difficulty = "normal";
  29.    this.gameType = 0;
  30.    this.sfx = true;
  31.    this.music = true;
  32.    this.voice = true;
  33.    this.cheats_inv = false;
  34.    this.cheats_imp = false;
  35. }
  36. this.onLoad = init();
  37. stop();
  38.