Ejemplo n.º 1
0
        protected SpaceCraftPart(ISpaceCraft parent, string baseTexturePath)
        {
            var baseTexture = new Bitmap(baseTexturePath);

            _sootRenderer = new SootRenderer(baseTexture, baseTexturePath);

            _parent = parent;
        }
Ejemplo n.º 2
0
        protected F9S1Base(string craftDirectory, DVector2 position, DVector2 velocity, int block, double propellantMass, string texturePath, double finOffset = -17.6)
            : base(craftDirectory, position, velocity, 0, propellantMass, texturePath)
        {
            _gridFins = new[]
            {
                new GridFin(this, new DVector2(1.3, finOffset), block, true),
                new GridFin(this, new DVector2(-1.3, finOffset), block, false)
            };

            _landingLegs = new[]
            {
                new LandingLeg(this, new DVector2(1.0, 21), block, true),
                new LandingLeg(this, new DVector2(-1.0, 21), block, false)
            };

            _bodyRenderer = new SootRenderer(Texture, Path.Combine("Textures/Spacecrafts", texturePath));

            _engineSmoke = new Smoke(1000, Color.FromArgb(90, 130, 130, 130));
        }