Brought up to date with the private repository (feea4c7)

This commit is contained in:
S committed 2026-10-14 20:57:33 +03:00
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.horseRace
{
public class HorseRaceAIProfile
{
public var _jumpDetectionProbability:int;
public var _jumpDetectionDelay:Number;
public var _jumpDetectionDistance:Number;
public function HorseRaceAIProfile(param1:int, param2:Number, param3:int)
{
super();
_jumpDetectionProbability = param1;
_jumpDetectionDelay = param2;
_jumpDetectionDistance = param3;
}
}
}
@@ -0,0 +1,79 @@
package game.horseRace
{
import avatar.AvatarView;
import avatar.AvatarViewExt_Splash;
import com.sbi.graphics.LayerBitmap;
import flash.filters.GlowFilter;
public class HorseRaceAvatarView 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 HorseRaceAvatarView()
{
super();
}
public function InitHorseRaceAvatarView() : void
{
_layerAnim.avDefId = 23;
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);
_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,75 @@
package game.horseRace
{
public class HorseRaceData
{
public var _data:Object;
public var _facts:Array;
public var _audio:Array;
public function HorseRaceData()
{
super();
initLevelData();
}
public function initLevelData() : void
{
_facts = [{
"imageID":1484,
"text":11602
},{
"imageID":1485,
"text":11603
},{
"imageID":1486,
"text":11604
},{
"imageID":1487,
"text":11605
},{
"imageID":1488,
"text":11606
},{
"imageID":1489,
"text":11607
},{
"imageID":1490,
"text":11608
},{
"imageID":1491,
"text":11609
},{
"imageID":1492,
"text":11610
},{
"imageID":1493,
"text":11611
},{
"imageID":1494,
"text":11612
},{
"imageID":1495,
"text":11613
},{
"imageID":1496,
"text":11614
},{
"imageID":1497,
"text":11615
},{
"imageID":1498,
"text":11616
}];
_data = {
"tiles":[[600,0,400,0,100],[600,1,300,1,100],[600,0,300,1,100],[700,1,300,0,100],[500,0,300,0,100],[500,0,200,0,200],[200,1,200,1,500,2,100],[200,1,400,2,200,1,100],[300,1,300,0,50,0,100],[100,1,100,0,50],[100,0,100,1,50],[300,0,500,1,300],[200,0,25,0,200,0,200],[200,1,25,1,200,1,200],[200,2,200,2,100,2,200],[200,0,200,1,100,2,200],[200,0,200,1,100,2,200],[200,2,200,2,100,2,200],[700,0,500,0,300],[600,1,400,1,300],[700,0,500,1,300],[600,1,400,0,300],[600,0,400,0,200],[600,0,300,0,300],[300,1,400,2,200],[300,0,500,2,200],[400,1,400,1,150],[200,1,300,0,150],[200,0,300,1,150],[400,2,500,1,300],[300,0,225,0,300,0,300],[300,1,225,1,300,1,300],[300,2,300,2,200,2,300],[300,0,300,1,200,2,300],[350,2,300,1,200,0,300],[350,2,400,0,400,2,300]],
"proTracks":[[0,2,4,6,8,10,12,14,16],[1,3,5,7,9,11,13,15,17],[0,3,4,7,8,11,12,15,16],[1,2,5,6,9,10,13,14,17],[0,1,4,5,8,9,12,13,16],[2,3,6,7,10,11,14,15,17]],
"beginnerTracks":[[18,20,22,24,26,28,30,32,34],[19,21,23,25,27,29,31,33,35],[18,21,22,25,26,29,30,33,34],[19,20,23,24,27,28,31,32,35],[18,19,22,23,26,27,30,31,34],[20,21,24,25,28,29,32,33,35]]
};
_audio = ["aj_horsejump1.mp3","aj_horsejump2.mp3","aj_horseJump3.mp3","aj_horseTurbo.mp3","aj_horseWhine1.mp3","aj_horseWhine2.mp3","aj_horseWhine3.mp3","aj_horseWhine4.mp3","aj_popUp.mp3","aj_hoovesHay.mp3","aj_hoovesMud.mp3","aj_hoovesWater.mp3","aj_hoovesWeeds.mp3","aj_horse1.mp3","aj_horse2.mp3","aj_horse3.mp3","aj_PopUp_ReadySet.mp3","aj_PopUp_Go.mp3"];
}
}
}
@@ -0,0 +1,24 @@
package game.horseRace
{
public class HorseRaceHurdle
{
public var _type:int;
public var _class:int;
public var _width:int;
public var _x:int;
public function HorseRaceHurdle(param1:int, param2:int, param3:int, param4:int)
{
super();
_type = param1;
_class = param2;
_width = param3;
_x = param4;
}
}
}
@@ -0,0 +1,108 @@
package game.horseRace
{
import flash.display.MovieClip;
import flash.display.Sprite;
public class HorseRaceLaneTexture
{
public var _active:Array = [];
public var _inactive:Array = [];
public var _minSpacing:int;
public var _varSpacing:int;
public var _currentX:int;
public var _fixedWidth:int;
public var _theGame:HorseRace;
public function HorseRaceLaneTexture(param1:HorseRace, param2:String, param3:int, param4:int, param5:int, param6:int, param7:int = 0)
{
var _loc9_:int = 0;
var _loc8_:MovieClip = null;
super();
_theGame = param1;
_minSpacing = param5;
_varSpacing = param6;
_fixedWidth = param7;
_loc9_ = 0;
while(_loc9_ < param4)
{
_loc8_ = GETDEFINITIONBYNAME(param2);
_loc8_.y = param3;
_inactive.push(_loc8_);
_loc9_++;
}
}
public function reset() : void
{
var _loc1_:MovieClip = null;
_currentX = Math.random() * _varSpacing;
while(_active.length > 0)
{
_loc1_ = _active[0];
if(_loc1_.parent != null)
{
_loc1_.parent.removeChild(_loc1_);
}
_active.splice(0,1);
_inactive.push(_loc1_);
}
}
public function heartbeat(param1:Number, param2:Sprite) : void
{
var _loc4_:int = 0;
var _loc3_:MovieClip = null;
_loc4_ = _active.length - 1;
while(_loc4_ >= 0)
{
_loc3_ = _active[_loc4_];
if(_loc3_.x + param2.x < -_loc3_.width)
{
if(_loc3_.parent != null)
{
_loc3_.parent.removeChild(_loc3_);
}
_active.splice(0,1);
_inactive.push(_loc3_);
}
_loc4_--;
}
while(_inactive.length > 0 && _currentX + param2.x < 1100)
{
_loc3_ = _inactive[0];
_inactive.splice(0,1);
_active.push(_loc3_);
_loc3_.x = _currentX;
if(_currentX == 0)
{
_loc3_.setStart();
}
else if(_theGame._trackLength != 0 && _currentX >= _theGame._trackLength - _fixedWidth / 2)
{
_loc3_.setEnd();
}
else
{
_loc3_.randomize();
}
param2.addChildAt(_loc3_,0);
if(_fixedWidth > 0)
{
_currentX += _fixedWidth + _minSpacing + Math.random() * _varSpacing;
}
else
{
_currentX += _loc3_.width + _minSpacing + Math.random() * _varSpacing;
}
}
}
}
}
File diff suppressed because it is too large. Load diff