home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 110
/
jogo-disk-110.iso
/
Games
/
tobby_sucuri.swf
/
scripts
/
frame_30
/
DoAction.as
Wrap
Text File
|
2008-11-12
|
2KB
|
74 lines
function gameInit()
{
this.stageNum = 1;
this.lastPoiCnt = 4;
}
function initDepth()
{
var _loc1_ = this;
_loc1_.depthPoiWater = 1000;
_loc1_.depthKingyoShadow = 5000;
_loc1_.depthKingyoWater = 10000;
_loc1_.depthHamonEffect = 12000;
_loc1_.depthWaterEffect = 20000;
_loc1_.depthWaterEffect2 = 30001;
_loc1_.depthIremono = 30000;
_loc1_.depthPoi = 40000;
_loc1_.depthWindow = 50000;
_loc1_.depthInst = 60000;
}
function setMeido(n)
{
var _loc1_ = this;
var _loc3_ = 100 - n;
var _loc2_ = Math.floor(2.55 * n);
_loc1_.meido.ra = _loc3_;
_loc1_.meido.rb = _loc2_;
_loc1_.meido.ga = _loc3_;
_loc1_.meido.gb = _loc2_;
_loc1_.meido.ba = _loc3_;
_loc1_.meido.bb = _loc2_;
_loc1_.meido.aa = 100;
_loc1_.meido.ab = 0;
}
function randomInt(maxNum)
{
var _loc1_ = Math.random() * maxNum;
if(_loc1_ == 0)
{
_loc1_ = 1;
}
else
{
_loc1_ = Math.ceil(_loc1_);
}
return _loc1_;
}
this.limitLeft = 20;
this.limitRight = 620;
this.limitTop = 250;
this.limitBottom = 455;
this.cMode == "center";
this.instDispFlg = false;
this.commentAllDispFlg = false;
this.windowFlg = false;
this.SE_iremonoIn = new Sound(this);
this.SE_iremonoIn.attachSound("SE_iremonoIn");
this.SE_kingyoEscape = new Sound(this);
this.SE_kingyoEscape.attachSound("SE_kingyoEscape");
this.SE_poiWaterIn = new Sound(this);
this.SE_poiWaterIn.attachSound("SE_poiWaterIn");
this.SE_poiWaterOut = new Sound(this);
this.SE_poiWaterOut.attachSound("SE_poiWaterOut");
this.SE_over = new Sound(this);
this.SE_over.attachSound("SE_over");
this.SE_down = new Sound(this);
this.SE_down.attachSound("SE_down");
this.SE_dekeden = new Sound(this);
this.SE_dekeden.attachSound("SE_dekeden");
this.BGM_maturi = new Sound(this);
this.BGM_maturi.attachSound("BGM_maturi");
this.meido = new Object();
this.setMeido(0);
this.debugInFlg = false;