mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-20 01:37:50 -05:00
Brought up to date with the private repository (feea4c7)
This commit is contained in:
1 parent
1aa738d692
commit
1b1df1ae48
7925 files changed
+2617237
-20
No files matched your search
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,21 @@
|
||||
package game.dolphinRace
|
||||
{
|
||||
public class DolphinRaceAIProfile
|
||||
{
|
||||
|
||||
public var _jumpDetectionProbability:int;
|
||||
|
||||
public var _jumpDetectionDelay:Number;
|
||||
|
||||
public var _jumpDetectionDistance:Number;
|
||||
|
||||
public function DolphinRaceAIProfile(param1:int, param2:Number, param3:int)
|
||||
{
|
||||
super();
|
||||
_jumpDetectionProbability = param1;
|
||||
_jumpDetectionDelay = param2;
|
||||
_jumpDetectionDistance = param3;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,80 @@
|
||||
package game.dolphinRace
|
||||
{
|
||||
import avatar.AvatarView;
|
||||
import avatar.AvatarViewExt_Splash;
|
||||
import com.sbi.graphics.LayerBitmap;
|
||||
import flash.filters.GlowFilter;
|
||||
|
||||
public class DolphinRaceAvatarView extends AvatarView
|
||||
{
|
||||
|
||||
private static const GLOW_LAND_DEFAULT_COLOR:int = 5586479;
|
||||
|
||||
private static const GLOW_OCEAN_DEFAULT_COLOR:int = 2775381;
|
||||
|
||||
private var _splash:AvatarViewExt_Splash;
|
||||
|
||||
private var _glow:GlowFilter;
|
||||
|
||||
public var _bInSplashVolume:Boolean;
|
||||
|
||||
private var _splashLiquid:String;
|
||||
|
||||
public function DolphinRaceAvatarView()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public function InitDolphinRaceAvatarView() : void
|
||||
{
|
||||
_layerAnim.avDefId = 19;
|
||||
var _loc1_:LayerBitmap = _layerAnim.bitmap;
|
||||
_loc1_.x = 0;
|
||||
_loc1_.y = 0;
|
||||
_glow = new GlowFilter(0,1,4,4,4);
|
||||
_layerAnim.bitmap.filters = [_glow];
|
||||
setBlendColor();
|
||||
_splash = new AvatarViewExt_Splash(this,_layerAnim.bitmap);
|
||||
_splash.showShadow(false);
|
||||
_bInSplashVolume = false;
|
||||
}
|
||||
|
||||
public function setBlendColor(param1:uint = 0, param2:uint = 4294967295) : void
|
||||
{
|
||||
var _loc3_:Array = null;
|
||||
if(param2 == 4294967295)
|
||||
{
|
||||
if(param1 == 0)
|
||||
{
|
||||
param2 = 5586479;
|
||||
}
|
||||
else
|
||||
{
|
||||
param2 = uint(param1 & 0xFFFFFF);
|
||||
}
|
||||
}
|
||||
if(_layerAnim.bitmap.filters != null && _layerAnim.bitmap.filters[0].color != param2)
|
||||
{
|
||||
_loc3_ = _layerAnim.bitmap.filters;
|
||||
_loc3_[0].color = param2;
|
||||
_layerAnim.bitmap.filters = _loc3_;
|
||||
}
|
||||
_layerAnim.bitmap.setBlendColor(param1);
|
||||
}
|
||||
|
||||
public function toggleSplash(param1:Boolean, param2:String = null) : void
|
||||
{
|
||||
_bInSplashVolume = param1;
|
||||
if(_bInSplashVolume)
|
||||
{
|
||||
_splashLiquid = param2;
|
||||
}
|
||||
}
|
||||
|
||||
public function heartbeat() : void
|
||||
{
|
||||
_splash.heartbeat(_bInSplashVolume,true,_splashLiquid,false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,235 @@
|
||||
package game.dolphinRace
|
||||
{
|
||||
import flash.events.Event;
|
||||
import flash.net.FileFilter;
|
||||
import flash.net.FileReference;
|
||||
import flash.net.URLLoader;
|
||||
import flash.utils.ByteArray;
|
||||
|
||||
public class DolphinRaceData
|
||||
{
|
||||
|
||||
public var _data:Object;
|
||||
|
||||
public var _facts:Array;
|
||||
|
||||
public var loadit:URLLoader;
|
||||
|
||||
public var MyFile:FileReference;
|
||||
|
||||
public function DolphinRaceData()
|
||||
{
|
||||
super();
|
||||
initLevelData();
|
||||
}
|
||||
|
||||
public function initLevelData() : void
|
||||
{
|
||||
_facts = [{
|
||||
"imageID":1738,
|
||||
"text":11408
|
||||
},{
|
||||
"imageID":1739,
|
||||
"text":11409
|
||||
},{
|
||||
"imageID":1740,
|
||||
"text":11410
|
||||
},{
|
||||
"imageID":1741,
|
||||
"text":11411
|
||||
},{
|
||||
"imageID":1742,
|
||||
"text":11412
|
||||
},{
|
||||
"imageID":1743,
|
||||
"text":11413
|
||||
},{
|
||||
"imageID":1744,
|
||||
"text":11414
|
||||
},{
|
||||
"imageID":1745,
|
||||
"text":11415
|
||||
},{
|
||||
"imageID":1746,
|
||||
"text":11416
|
||||
},{
|
||||
"imageID":1747,
|
||||
"text":11417
|
||||
},{
|
||||
"imageID":1748,
|
||||
"text":11418
|
||||
},{
|
||||
"imageID":1749,
|
||||
"text":11419
|
||||
},{
|
||||
"imageID":1750,
|
||||
"text":11420
|
||||
},{
|
||||
"imageID":1751,
|
||||
"text":11421
|
||||
},{
|
||||
"imageID":1752,
|
||||
"text":11422
|
||||
},{
|
||||
"imageID":1753,
|
||||
"text":11423
|
||||
},{
|
||||
"imageID":1754,
|
||||
"text":11424
|
||||
},{
|
||||
"imageID":1755,
|
||||
"text":11425
|
||||
},{
|
||||
"imageID":1756,
|
||||
"text":11426
|
||||
},{
|
||||
"imageID":1757,
|
||||
"text":11427
|
||||
},{
|
||||
"imageID":1758,
|
||||
"text":11428
|
||||
},{
|
||||
"imageID":1759,
|
||||
"text":11429
|
||||
},{
|
||||
"imageID":1760,
|
||||
"text":11430
|
||||
}];
|
||||
_data = {
|
||||
"hurdles":[[1,0,0],[1,1,0],[1,2,0],[1,3,0],[1,4,0],[2,0,0],[2,1,0],[2,2,0],[2,3,0],[2,4,0],[2,5,0],[2,7,0],[2,8,0],[2,9,0]],
|
||||
"tiles":[[600],[500,0,0,10],[500,1,0,13],[500,2],[500,3],[500,4],[500,5],[500,6],[500,7],[500,8],[500,9],[500,10],[500,11],[500,12],[500,13],[500,3,400,4,0,5,400,3,400,4,0,6,400,3,400,4,0,5],[500,0,50,0,0,10,50,0],[500,3,50,3,0,5,50,3],[500,4,50,4,0,6,50,4],[500,2,0,8,400,2,400,2,0,8],[300,3,300,3,0,10,0,9,300,3],[300,4,300,4,300,4],[1200],[200],[200,2,0,8,200,2,0,9,200,2,0,8,200,2,0,9],[300,3,300,4,300,3,300,4,300,3,300,4],[0,4,50,4,50,4],[300,3,300,4,300,3,250,4,50,4,50,4,250,3,300,4],[500,2,50,2,0,5,50,2],[500,8,100,4,100,4,100,4,100,8],[500,13,0,0],[500,12,0,4],[500,7,0,9,0,3],[500,13,0,1],[300,3,225,4,225,3,225,4,225,3,225,4],[300,2,0,8,300,3,0,7],[400,12,0,3,250,4,350,1,50,13,100,0,50,10,75,1],[0,4,50,4,50,4,200,2,200,0,0,9,0,10,250,13,150,2,300,4,50,4,50,4],[500,12,0,4]],
|
||||
"proTracks":[[0,19,23,20,21,1,29,1,29,20,33,31,32,31,30,23,34,1,34,1,0,26,23,26,23,26,23,1,0,26,16,0,24,24,25,1,34,16,18,1,23,38,23,37,0,36],[0,19,0,26,23,26,23,1,0,26,16,0,24,24,25,1,34,16,18,1,0,26,23,20,21,1,29,1,29,20,33,31,32,31,30,23,34,1,34,1,23,38,23,36,0,37],[0,35,35,19,0,26,23,26,23,1,0,26,16,0,35,24,35,25,1,34,16,18,1,0,26,23,20,21,1,29,1,28,23,38,23,36,0,37,29,20,33,31,32,31,30,23,34,1,34,1],[0,19,0,20,21,1,29,1,29,20,33,31,32,31,30,23,34,1,34,1,0,35,35,0,26,23,26,23,26,23,1,0,26,16,0,35,24,35,25,1,34,16,18,1,23,38,23,37,0,36],[0,19,0,35,24,35,25,1,34,16,18,1,20,21,1,23,29,1,0,35,35,0,26,23,26,23,26,23,1,0,26,16,29,20,33,31,32,31,30,23,34,1,34,1,23,38,23,36,0,37]],
|
||||
"beginnerTracks":[[0,19,15,2,15,1,15,16,0,24,24,23,20,21,20,14,0,18,1,15,18,1,23,13,23,1,23,38,23,36,0,37],[0,19,23,20,21,20,14,0,15,2,15,1,15,16,0,13,23,1,23,38,23,36,0,37,23,24,24,18,1,15,18,1,28],[0,24,3,4,5,6,25,23,24,20,27,23,1,28,13,23,24,18,16,25,19,15,2,15,1,13,23,1,23,38,23,37,0,36],[0,19,23,20,21,20,14,0,15,2,15,1,15,16,0,24,24,25,1,25,16,18,1,28,23,38,23,36,0,37,13,23,1],[0,19,23,0,24,24,25,1,25,16,18,12,0,21,20,14,0,25,2,25,1,27,16,28,13,23,1,23,38,23,36,0,37]]
|
||||
};
|
||||
}
|
||||
|
||||
public function getArrayStartIndex(param1:String, param2:int) : int
|
||||
{
|
||||
while(param1.charAt(param2) != "[" && param2 < param1.length)
|
||||
{
|
||||
param2++;
|
||||
}
|
||||
return param2 + 1;
|
||||
}
|
||||
|
||||
public function getArrayEndIndex(param1:String, param2:int) : int
|
||||
{
|
||||
var _loc5_:String = null;
|
||||
var _loc3_:int = 0;
|
||||
var _loc4_:Boolean = false;
|
||||
while(!_loc4_)
|
||||
{
|
||||
if(param2 >= param1.length)
|
||||
{
|
||||
param2 = -1;
|
||||
_loc4_ = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
_loc5_ = param1.charAt(param2);
|
||||
if(_loc5_ == "[")
|
||||
{
|
||||
_loc3_++;
|
||||
}
|
||||
else if(_loc5_ == "]")
|
||||
{
|
||||
if(_loc3_ == 0)
|
||||
{
|
||||
_loc4_ = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
_loc3_--;
|
||||
}
|
||||
}
|
||||
if(!_loc4_)
|
||||
{
|
||||
param2++;
|
||||
}
|
||||
}
|
||||
}
|
||||
return param2;
|
||||
}
|
||||
|
||||
public function parseArray(param1:Array, param2:String, param3:String) : void
|
||||
{
|
||||
var _loc8_:int = 0;
|
||||
var _loc10_:int = 0;
|
||||
var _loc13_:* = null;
|
||||
var _loc4_:int = 0;
|
||||
var _loc7_:int = 0;
|
||||
var _loc12_:String = null;
|
||||
var _loc9_:Array = null;
|
||||
var _loc5_:Array = null;
|
||||
var _loc6_:int = 0;
|
||||
var _loc11_:int = param2.indexOf(param3);
|
||||
_loc8_ = getArrayStartIndex(param2,_loc11_);
|
||||
if(_loc8_ < param2.length)
|
||||
{
|
||||
_loc10_ = getArrayEndIndex(param2,_loc8_);
|
||||
if(_loc10_ != -1)
|
||||
{
|
||||
while(_loc8_ < _loc10_)
|
||||
{
|
||||
_loc4_ = getArrayStartIndex(param2,_loc8_);
|
||||
if(_loc4_ < _loc10_ && _loc4_ < param2.length)
|
||||
{
|
||||
_loc7_ = getArrayEndIndex(param2,_loc4_);
|
||||
if(_loc7_ != -1)
|
||||
{
|
||||
_loc12_ = param2.substring(_loc4_,_loc7_);
|
||||
_loc9_ = _loc12_.split(",");
|
||||
_loc5_ = [];
|
||||
_loc6_ = 0;
|
||||
while(_loc6_ < _loc9_.length)
|
||||
{
|
||||
_loc5_.push(int(_loc9_[_loc6_]));
|
||||
_loc6_++;
|
||||
}
|
||||
param1.push(_loc5_);
|
||||
}
|
||||
_loc8_ = _loc7_;
|
||||
}
|
||||
else
|
||||
{
|
||||
_loc8_ = _loc4_;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function loadFromFile() : void
|
||||
{
|
||||
MyFile = new FileReference();
|
||||
MyFile.addEventListener("select",selectHandler);
|
||||
var _loc2_:Array = [];
|
||||
var _loc1_:FileFilter = new FileFilter("Text Files (*.txt)","*.txt");
|
||||
_loc2_.push(_loc1_);
|
||||
MyFile.browse(_loc2_);
|
||||
}
|
||||
|
||||
private function selectHandler(param1:Event) : void
|
||||
{
|
||||
MyFile.addEventListener("complete",onFileLoaded);
|
||||
MyFile.load();
|
||||
}
|
||||
|
||||
public function onFileLoaded(param1:Event) : void
|
||||
{
|
||||
var _loc3_:FileReference = param1.target as FileReference;
|
||||
var _loc2_:ByteArray = _loc3_["data"];
|
||||
var _loc4_:String = _loc2_.toString();
|
||||
_data = {};
|
||||
_data.hurdles = [];
|
||||
_data.tiles = [];
|
||||
_data.proTracks = [];
|
||||
_data.beginnerTracks = [];
|
||||
parseArray(_data.hurdles,_loc4_,"hurdles:");
|
||||
parseArray(_data.tiles,_loc4_,"tiles:");
|
||||
parseArray(_data.proTracks,_loc4_,"proTracks:");
|
||||
parseArray(_data.beginnerTracks,_loc4_,"beginnerTracks:");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,323 @@
|
||||
package game.dolphinRace
|
||||
{
|
||||
import flash.display.MovieClip;
|
||||
|
||||
public class DolphinRaceHurdle
|
||||
{
|
||||
|
||||
private static const DOLPHINOBSTACLE_0:String = "o_0";
|
||||
|
||||
private static const DOLPHINOBSTACLE_1:String = "o_1";
|
||||
|
||||
private static const DOLPHINOBSTACLE_2:String = "o_2";
|
||||
|
||||
private static const DOLPHINOBSTACLE_3:String = "o_3";
|
||||
|
||||
private static const DOLPHINOBSTACLE_4:String = "o_4";
|
||||
|
||||
private static const DOLPHINOBSTACLE_1_2:String = "o_1_2";
|
||||
|
||||
private static const DOLPHINOBSTACLE_1_3:String = "o_1_3";
|
||||
|
||||
private static const DOLPHINOBSTACLE_2_3:String = "o_2_3";
|
||||
|
||||
private static const DOLPHINOBSTACLE_0_1_2:String = "o_0_1_2";
|
||||
|
||||
private static const DOLPHINOBSTACLE_2_3_4:String = "o_2_3_4";
|
||||
|
||||
private static const DOLPHINRING_1:String = "o1";
|
||||
|
||||
private static const DOLPHINRING_2:String = "o2";
|
||||
|
||||
public static const DR_HURDLE_TYPE_RING:int = 1;
|
||||
|
||||
public static const DR_HURDLE_TYPE_OBSTACLE:int = 2;
|
||||
|
||||
public static const DR_OBSTACLE_CLASS_DOUBLE_HIGH:int = 0;
|
||||
|
||||
public static const DR_OBSTACLE_CLASS_HIGH:int = 1;
|
||||
|
||||
public static const DR_OBSTACLE_CLASS_MIDDLE:int = 2;
|
||||
|
||||
public static const DR_OBSTACLE_CLASS_LOW:int = 3;
|
||||
|
||||
public static const DR_OBSTACLE_CLASS_DOUBLE_LOW:int = 4;
|
||||
|
||||
public static const DR_OBSTACLE_CLASS_HIGH_MIDDLE:int = 5;
|
||||
|
||||
public static const DR_OBSTACLE_CLASS_HIGH_LOW:int = 6;
|
||||
|
||||
public static const DR_OBSTACLE_CLASS_MIDDLE_LOW:int = 7;
|
||||
|
||||
public static const DR_OBSTACLE_CLASS_DOUBLEHIGH_HIGH_MIDDLE:int = 8;
|
||||
|
||||
public static const DR_OBSTACLE_CLASS_DOUBLELOW_LOW_MIDDLE:int = 9;
|
||||
|
||||
public static const DR_RING_MODIFIER_1:int = 0;
|
||||
|
||||
public static const DR_RING_MODIFIER_2:int = 1;
|
||||
|
||||
public static const DR_RING_CLASS_DOUBLEHIGH:int = 0;
|
||||
|
||||
public static const DR_RING_CLASS_HIGH:int = 1;
|
||||
|
||||
public static const DR_RING_CLASS_MIDDLE:int = 2;
|
||||
|
||||
public static const DR_RING_CLASS_LOW:int = 3;
|
||||
|
||||
public static const DR_RING_CLASS_DOUBLELOW:int = 4;
|
||||
|
||||
public var _spawnX:Number;
|
||||
|
||||
public var _x:Number;
|
||||
|
||||
public var _y:Number;
|
||||
|
||||
public var _y2:Number;
|
||||
|
||||
public var _width:Number;
|
||||
|
||||
public var _height:Number;
|
||||
|
||||
public var _height2:Number;
|
||||
|
||||
public var _type:int;
|
||||
|
||||
public var _class:int;
|
||||
|
||||
public var _modifier:int;
|
||||
|
||||
private var _lanesHit:Array;
|
||||
|
||||
public var _debugmc:MovieClip;
|
||||
|
||||
private var _theGame:DolphinRace;
|
||||
|
||||
public function DolphinRaceHurdle(param1:DolphinRace, param2:int, param3:int, param4:int, param5:int, param6:MovieClip, param7:MovieClip)
|
||||
{
|
||||
super();
|
||||
_theGame = param1;
|
||||
_lanesHit = [false,false,false,false];
|
||||
_type = param2;
|
||||
_class = param3;
|
||||
_modifier = param4;
|
||||
_spawnX = param5;
|
||||
if(_type == 1)
|
||||
{
|
||||
_width = 20;
|
||||
setHurdle(param7);
|
||||
_y = param7.y + param7.collision.y - param7.collision.height / 2;
|
||||
_height = param7.collision.height;
|
||||
switch(_class)
|
||||
{
|
||||
case 0:
|
||||
_y -= 144;
|
||||
break;
|
||||
case 1:
|
||||
_y -= 54;
|
||||
break;
|
||||
case 2:
|
||||
_y += 56;
|
||||
break;
|
||||
case 3:
|
||||
_y += 156;
|
||||
break;
|
||||
case 4:
|
||||
_y += 246;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
setHurdle(param6);
|
||||
_width = param6.collision.width;
|
||||
_y = param6.y + param6.collision.y - param6.collision.height / 2;
|
||||
_height = param6.collision.height;
|
||||
_y2 = param6.y + param6.collision2.y - param6.collision2.height / 2;
|
||||
_height2 = param6.collision2.height;
|
||||
}
|
||||
_x = param5 - _width / 2;
|
||||
}
|
||||
|
||||
public function getLeftEdgeX() : Number
|
||||
{
|
||||
switch(_type - 1)
|
||||
{
|
||||
case 0:
|
||||
return _x - _width / 2;
|
||||
case 1:
|
||||
return _x - _width / 2;
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
public function getRightEdgeX() : Number
|
||||
{
|
||||
switch(_type - 1)
|
||||
{
|
||||
case 0:
|
||||
return _x - _width / 2 + _width;
|
||||
case 1:
|
||||
return _x - _width / 2 + _width;
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
public function testCollision(param1:Number, param2:Number, param3:Number, param4:Number, param5:int, param6:Boolean) : int
|
||||
{
|
||||
var _loc8_:Number = NaN;
|
||||
var _loc7_:Number = NaN;
|
||||
if(_lanesHit[param5] == false)
|
||||
{
|
||||
switch(_type - 1)
|
||||
{
|
||||
case 0:
|
||||
_loc8_ = _x - _width / 2;
|
||||
_loc7_ = _y - _height / 2;
|
||||
if(param1 > _loc8_ && param1 < _loc8_ + _width || param1 + param2 > _loc8_ && param1 + param2 < _loc8_ + _width || param1 < _loc8_ && param1 + param2 > _loc8_ + _width)
|
||||
{
|
||||
if(param3 > _loc7_ && param3 < _loc7_ + _height && (param3 + param4 > _loc7_ && param3 + param4 < _loc7_ + _height))
|
||||
{
|
||||
_lanesHit[param5] = true;
|
||||
if(param6)
|
||||
{
|
||||
_theGame._soundMan.playByName(_theGame._soundNameAJDRRingStinger);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
_loc8_ = _x - _width / 2;
|
||||
_loc7_ = _y;
|
||||
if(param1 > _loc8_ && param1 < _loc8_ + _width || param1 + param2 > _loc8_ && param1 + param2 < _loc8_ + _width || param1 < _loc8_ && param1 + param2 > _loc8_ + _width)
|
||||
{
|
||||
if(param3 > _loc7_ && param3 < _loc7_ + _height || param3 + param4 > _loc7_ && param3 + param4 < _loc7_ + _height || param3 < _loc7_ && param3 + param4 > _loc7_ + _height)
|
||||
{
|
||||
_lanesHit[param5] = true;
|
||||
if(param6)
|
||||
{
|
||||
playHitSound(1);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
_loc7_ = _y2;
|
||||
if(param3 > _loc7_ && param3 < _loc7_ + _height2 || param3 + param4 > _loc7_ && param3 + param4 < _loc7_ + _height2 || param3 < _loc7_ && param3 + param4 > _loc7_ + _height2)
|
||||
{
|
||||
_lanesHit[param5] = true;
|
||||
if(param6)
|
||||
{
|
||||
playHitSound(2);
|
||||
}
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
private function playHitSound(param1:int) : void
|
||||
{
|
||||
switch(_class)
|
||||
{
|
||||
case 0:
|
||||
_theGame._soundMan.playByName(_theGame["_soundNameAJDRImpSeagull" + (Math.floor(Math.random() * 3) + 1)]);
|
||||
break;
|
||||
case 1:
|
||||
_theGame._soundMan.playByName(_theGame["_soundNameAJDRImpSeagull" + (Math.floor(Math.random() * 3) + 1)]);
|
||||
break;
|
||||
case 2:
|
||||
_theGame._soundMan.playByName(_theGame["_soundNameAJDRImpBuoySmall" + (Math.floor(Math.random() * 2) + 1)]);
|
||||
break;
|
||||
case 3:
|
||||
_theGame._soundMan.playByName(_theGame._soundNameAJDRBallChain);
|
||||
break;
|
||||
case 4:
|
||||
_theGame._soundMan.playByName(_theGame._soundNameAJDRRockslide);
|
||||
break;
|
||||
case 5:
|
||||
_theGame._soundMan.playByName(_theGame._soundNameAJDRImpBuoyMed);
|
||||
break;
|
||||
case 6:
|
||||
if(param1 == 1)
|
||||
{
|
||||
_theGame._soundMan.playByName(_theGame["_soundNameAJDRImpSeagull" + (Math.floor(Math.random() * 3) + 1)]);
|
||||
}
|
||||
else
|
||||
{
|
||||
_theGame._soundMan.playByName(_theGame._soundNameAJDRBallChain);
|
||||
}
|
||||
break;
|
||||
case 7:
|
||||
if(param1 == 1)
|
||||
{
|
||||
_theGame._soundMan.playByName(_theGame._soundNameAJDRBallChain);
|
||||
}
|
||||
else
|
||||
{
|
||||
_theGame._soundMan.playByName(_theGame["_soundNameAJDRImpBuoySmall" + (Math.floor(Math.random() * 2) + 1)]);
|
||||
}
|
||||
break;
|
||||
case 8:
|
||||
_theGame._soundMan.playByName(_theGame._soundNameAJDRImpBuoyLarge);
|
||||
break;
|
||||
case 9:
|
||||
_theGame._soundMan.playByName(_theGame._soundNameAJDRRockslide);
|
||||
}
|
||||
}
|
||||
|
||||
public function setHurdle(param1:MovieClip) : void
|
||||
{
|
||||
_debugmc = param1;
|
||||
switch(_type - 1)
|
||||
{
|
||||
case 0:
|
||||
switch(_modifier)
|
||||
{
|
||||
case 0:
|
||||
param1.gotoAndPlay("o1");
|
||||
break;
|
||||
case 1:
|
||||
param1.gotoAndPlay("o2");
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
switch(_class)
|
||||
{
|
||||
case 0:
|
||||
param1.gotoAndPlay("o_0");
|
||||
break;
|
||||
case 1:
|
||||
param1.gotoAndPlay("o_1");
|
||||
break;
|
||||
case 2:
|
||||
param1.gotoAndPlay("o_2");
|
||||
break;
|
||||
case 3:
|
||||
param1.gotoAndPlay("o_3");
|
||||
break;
|
||||
case 4:
|
||||
param1.gotoAndPlay("o_4");
|
||||
break;
|
||||
case 5:
|
||||
param1.gotoAndPlay("o_1_2");
|
||||
break;
|
||||
case 6:
|
||||
param1.gotoAndPlay("o_1_3");
|
||||
break;
|
||||
case 7:
|
||||
param1.gotoAndPlay("o_2_3");
|
||||
break;
|
||||
case 8:
|
||||
param1.gotoAndPlay("o_0_1_2");
|
||||
break;
|
||||
case 9:
|
||||
param1.gotoAndPlay("o_2_3_4");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user