示例#1
0
        public Cloud(int skyLayers, Limits generationLimits)
            : base(Randomize.Vector2(generationLimits), Color.White, 0, Randomize.Decimal(minScale, maxScale), Randomize.SpriteEffects())
        {
            initializeRotation();

            leftToRight = Randomize.Boolean();
            layer       = Randomize.Integer(skyLayers) + 1;
        }
示例#2
0
        private void initializeRotation()
        {
            base.Rotation = Randomize.Decimal(minRotation, maxRotation);

            if (Randomize.Boolean() == true)
            {
                base.Rotation += Maths.PI;
            }
        }
示例#3
0
        private void updateColor()
        {
            if (isShining == false)
            {
                if (Randomize.Boolean(startShineProbability) == true)
                {
                    base.Color = Color.White;

                    isShining = true;
                }
            }
            else
            {
                if (Randomize.Boolean(endShineProbability) == true)
                {
                    base.Color = defaultColor;

                    isShining = false;
                }
            }
        }