Ejemplo n.º 1
0
 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];
 }
Ejemplo n.º 2
0
 //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];
 }
Ejemplo n.º 3
0
 public static Vector2 GetStartingPos(ZoomLevels zoom, Jousters jouster)
 {
     return ZoomScaleAmount[zoom] * StartingPoses[zoom][jouster];
 }