home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Games #12
/
GEGA012.iso
/
eroticos
/
spankthebooty.swf
/
scripts
/
__Packages
/
Game.as
< prev
next >
Wrap
Text File
|
2005-10-13
|
969b
|
44 lines
class Game extends MovieClip
{
function Game()
{
super();
ScoreKeeper.reset();
}
function start()
{
var _loc1_ = this;
_loc1_.console_mc.setSpeed(0);
_loc1_.hand_mc.show();
_loc1_.score_mc.hide();
Soundmanager.setMusicLow();
}
function wak(speed)
{
var _loc2_ = this;
var _loc3_ = speed;
_loc2_.hand_mc.hide();
_loc2_.console_mc.setWakSpeed(_loc3_);
ScoreKeeper.addScore(_loc3_);
var max = _loc2_.console_mc.getMaxSpeed();
var _loc1_ = Math.max(Math.min(Math.ceil(3 * _loc3_ / max),3),1);
if(_loc1_ > 1)
{
SoundManager.wak();
}
_loc2_.bottom_mc.wak(_loc1_);
}
function end()
{
if(ScoreKeeper.getNumScores() >= 3)
{
Soundmanager.setMusicHigh();
this._parent.gotoAndStop("endgame");
}
else
{
this.start();
}
}
}