public DeathCloudParticle(ContentManager Content,
     GameUnit centerX, GameUnit centerY,
     VelocityUnit speed, DegreesUnit angle)
 {
     this.centerX = centerX - Units.HalfTile;
     this.centerY = centerY - Units.HalfTile;
     this.speed = speed;
     offset = new PolarVector(0, angle);
     sprite = new AnimatedSprite(Content, SpriteName,
         Units.TileToPixel(SourceX), Units.TileToPixel(SourceY),
         Units.TileToPixel(SourceWidth), Units.TileToPixel(SourceHeight),
         Fps, NumFrames);
 }
 public DeathCloudParticle(ContentManager Content,
                           GameUnit centerX, GameUnit centerY,
                           VelocityUnit speed, DegreesUnit angle)
 {
     this.centerX = centerX - Units.HalfTile;
     this.centerY = centerY - Units.HalfTile;
     this.speed   = speed;
     offset       = new PolarVector(0, angle);
     sprite       = new AnimatedSprite(Content, SpriteName,
                                       Units.TileToPixel(SourceX), Units.TileToPixel(SourceY),
                                       Units.TileToPixel(SourceWidth), Units.TileToPixel(SourceHeight),
                                       Fps, NumFrames);
 }
 public ConstantAccelerator(AccelerationUnit acceleration, VelocityUnit maxVelocity)
 {
     this.acceleration = acceleration;
     this.maxVelocity  = maxVelocity;
 }
 public BidirectionalAccelerators(AccelerationUnit acceleration, VelocityUnit maxVelocity)
 {
     positive = new ConstantAccelerator(acceleration, maxVelocity);
     negative = new ConstantAccelerator(-acceleration, -maxVelocity);
 }
Exemple #5
0
 public BidirectionalAccelerators(AccelerationUnit acceleration, VelocityUnit maxVelocity)
 {
     positive = new ConstantAccelerator(acceleration, maxVelocity);
     negative = new ConstantAccelerator(-acceleration, -maxVelocity);
 }
Exemple #6
0
 public Kinematics(GameUnit position, VelocityUnit velocity)
 {
     this.position = position;
     this.velocity = velocity;
 }
Exemple #7
0
 public Kinematics(GameUnit position, VelocityUnit velocity)
 {
     this.position = position;
     this.velocity = velocity;
 }
 public ConstantAccelerator(AccelerationUnit acceleration, VelocityUnit maxVelocity)
 {
     this.acceleration = acceleration;
     this.maxVelocity = maxVelocity;
 }