Beispiel #1
0
        private BalloonSprite(BalloonSprite original, long number, float scale, BaseLevel level)
            : base(original.Image, original.PositionCenter, scale)
        {
            this.level = level;

            this.Number = number;
            this.Speed  = -this.level.NextSpeed();

            this.Mask  = this.level.NextColor();
            this.Layer = original.Layer + ((number % 10) / 100.0f);

            this.leftMaxPositionX  = this.SourceOriginScaled.X;
            this.rightMaxPositionX = MainGame.WindowSize.X - this.leftMaxPositionX;

            this.Move(this.level.NextStart(this.leftMaxPositionX), this.SourceOriginScaled.Y);

            this.startPositionX = this.PositionCenter.X;
        }
 private BalloonSprite(BalloonSprite original)
     : base(original.Image, original.Destination.Location)
 {
 }