Esempio n. 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;
        }
Esempio n. 2
0
        private void initializeRotation()
        {
            base.Rotation = Randomize.Decimal(minRotation, maxRotation);

            if (Randomize.Boolean() == true)
            {
                base.Rotation += Maths.PI;
            }
        }
Esempio n. 3
0
        public Star(int starsTypes, Time time, Vector2 fulcrum, Limits generationLimits)
            : base(Randomize.Vector2(generationLimits), defaultColor, Randomize.RadiansAngle(), Randomize.Decimal(minScale, maxScale), Randomize.SpriteEffects())
        {
            isShining = false;

            Type = Randomize.Integer(starsTypes);

            initializeDefaultAttributes(time.Radians, fulcrum);
        }