예제 #1
0
 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);
 }
예제 #2
0
 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);
 }
예제 #3
0
 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);
 }
예제 #5
0
 public BidirectionalAccelerators(AccelerationUnit acceleration, VelocityUnit maxVelocity)
 {
     positive = new ConstantAccelerator(acceleration, maxVelocity);
     negative = new ConstantAccelerator(-acceleration, -maxVelocity);
 }
예제 #6
0
 public Kinematics(GameUnit position, VelocityUnit velocity)
 {
     this.position = position;
     this.velocity = velocity;
 }
예제 #7
0
 public Kinematics(GameUnit position, VelocityUnit velocity)
 {
     this.position = position;
     this.velocity = velocity;
 }
예제 #8
0
 public ConstantAccelerator(AccelerationUnit acceleration, VelocityUnit maxVelocity)
 {
     this.acceleration = acceleration;
     this.maxVelocity = maxVelocity;
 }