public Jouster(Jousters thisJouster, V2 pos, ZoomLevels zoom) : base(ArtAssets.GetJousterShape(KarmaWorld.World.CurrentZoom, WorldData.ZoomScaleAmount[zoom]), (zoom == ZoomLevels.Five ? Single.PositiveInfinity : PhysData.Acceleration), PhysData.MaxSpeed) { Pos = pos; ThisJouster = thisJouster; Mass = PhysicsData.JousterStartingMass[zoom]; }
//Minigame-specific stuff. public JousterPhysicsData PhysicsData(Jousters jouster) { if (jouster == Jousters.Dischord && gamejam2014.PhysicsData.DischordSpecialPhysics.ContainsKey(CurrentZoom)) return gamejam2014.PhysicsData.DischordSpecialPhysics[CurrentZoom]; else return gamejam2014.PhysicsData.JoustingMinigamePhysics[CurrentZoom]; }
public static Vector2 GetStartingPos(ZoomLevels zoom, Jousters jouster) { return ZoomScaleAmount[zoom] * StartingPoses[zoom][jouster]; }