home *** CD-ROM | disk | FTP | other *** search
/ Geek Games #12 / GEGA012.iso / eroticos / spankthebooty.swf / scripts / __Packages / Game.as < prev    next >
Text File  |  2005-10-13  |  969b  |  44 lines

  1. class Game extends MovieClip
  2. {
  3.    function Game()
  4.    {
  5.       super();
  6.       ScoreKeeper.reset();
  7.    }
  8.    function start()
  9.    {
  10.       var _loc1_ = this;
  11.       _loc1_.console_mc.setSpeed(0);
  12.       _loc1_.hand_mc.show();
  13.       _loc1_.score_mc.hide();
  14.       Soundmanager.setMusicLow();
  15.    }
  16.    function wak(speed)
  17.    {
  18.       var _loc2_ = this;
  19.       var _loc3_ = speed;
  20.       _loc2_.hand_mc.hide();
  21.       _loc2_.console_mc.setWakSpeed(_loc3_);
  22.       ScoreKeeper.addScore(_loc3_);
  23.       var max = _loc2_.console_mc.getMaxSpeed();
  24.       var _loc1_ = Math.max(Math.min(Math.ceil(3 * _loc3_ / max),3),1);
  25.       if(_loc1_ > 1)
  26.       {
  27.          SoundManager.wak();
  28.       }
  29.       _loc2_.bottom_mc.wak(_loc1_);
  30.    }
  31.    function end()
  32.    {
  33.       if(ScoreKeeper.getNumScores() >= 3)
  34.       {
  35.          Soundmanager.setMusicHigh();
  36.          this._parent.gotoAndStop("endgame");
  37.       }
  38.       else
  39.       {
  40.          this.start();
  41.       }
  42.    }
  43. }
  44.