home *** CD-ROM | disk | FTP | other *** search
/ Champak 110 / jogo-disk-110.iso / Games / tobby_sucuri.swf / scripts / frame_30 / DoAction.as
Text File  |  2008-11-12  |  2KB  |  74 lines

  1. function gameInit()
  2. {
  3.    this.stageNum = 1;
  4.    this.lastPoiCnt = 4;
  5. }
  6. function initDepth()
  7. {
  8.    var _loc1_ = this;
  9.    _loc1_.depthPoiWater = 1000;
  10.    _loc1_.depthKingyoShadow = 5000;
  11.    _loc1_.depthKingyoWater = 10000;
  12.    _loc1_.depthHamonEffect = 12000;
  13.    _loc1_.depthWaterEffect = 20000;
  14.    _loc1_.depthWaterEffect2 = 30001;
  15.    _loc1_.depthIremono = 30000;
  16.    _loc1_.depthPoi = 40000;
  17.    _loc1_.depthWindow = 50000;
  18.    _loc1_.depthInst = 60000;
  19. }
  20. function setMeido(n)
  21. {
  22.    var _loc1_ = this;
  23.    var _loc3_ = 100 - n;
  24.    var _loc2_ = Math.floor(2.55 * n);
  25.    _loc1_.meido.ra = _loc3_;
  26.    _loc1_.meido.rb = _loc2_;
  27.    _loc1_.meido.ga = _loc3_;
  28.    _loc1_.meido.gb = _loc2_;
  29.    _loc1_.meido.ba = _loc3_;
  30.    _loc1_.meido.bb = _loc2_;
  31.    _loc1_.meido.aa = 100;
  32.    _loc1_.meido.ab = 0;
  33. }
  34. function randomInt(maxNum)
  35. {
  36.    var _loc1_ = Math.random() * maxNum;
  37.    if(_loc1_ == 0)
  38.    {
  39.       _loc1_ = 1;
  40.    }
  41.    else
  42.    {
  43.       _loc1_ = Math.ceil(_loc1_);
  44.    }
  45.    return _loc1_;
  46. }
  47. this.limitLeft = 20;
  48. this.limitRight = 620;
  49. this.limitTop = 250;
  50. this.limitBottom = 455;
  51. this.cMode == "center";
  52. this.instDispFlg = false;
  53. this.commentAllDispFlg = false;
  54. this.windowFlg = false;
  55. this.SE_iremonoIn = new Sound(this);
  56. this.SE_iremonoIn.attachSound("SE_iremonoIn");
  57. this.SE_kingyoEscape = new Sound(this);
  58. this.SE_kingyoEscape.attachSound("SE_kingyoEscape");
  59. this.SE_poiWaterIn = new Sound(this);
  60. this.SE_poiWaterIn.attachSound("SE_poiWaterIn");
  61. this.SE_poiWaterOut = new Sound(this);
  62. this.SE_poiWaterOut.attachSound("SE_poiWaterOut");
  63. this.SE_over = new Sound(this);
  64. this.SE_over.attachSound("SE_over");
  65. this.SE_down = new Sound(this);
  66. this.SE_down.attachSound("SE_down");
  67. this.SE_dekeden = new Sound(this);
  68. this.SE_dekeden.attachSound("SE_dekeden");
  69. this.BGM_maturi = new Sound(this);
  70. this.BGM_maturi.attachSound("BGM_maturi");
  71. this.meido = new Object();
  72. this.setMeido(0);
  73. this.debugInFlg = false;
  74.