Exemple #1
0
        // private SpriteSheet _spriteSheet;

        //public NGS1(string craftDirectory, DVector2 position, DVector2 velocity, double propellantMass = 1297000)
        public NGS1(string craftDirectory, DVector2 position, DVector2 velocity, double propellantMass = 1150000)
            : base(craftDirectory, position, velocity, 0, propellantMass, "NewGlenn/ngS1.png")
        {
            StageOffset = new DVector2(0, 31.8);

            _landingLegs = new[]
            {
                new NGLandingLeg(this, new DVector2(4.0, 23.6), true),
                new NGLandingLeg(this, new DVector2(-4.0, 23.6), false)
            };

            Engines = new IEngine[7];

            for (int i = 0; i < 7; i++)
            {
                double engineOffsetX = (i - 3.0) / 3.0;

                var offset = new DVector2(engineOffsetX * Width * 0.25, Height * 0.45);

                Engines[i] = new BE4(i, this, offset);
            }

            // _spriteSheet = new SpriteSheet("Textures/Spacecrafts/NewGlenn/ngS1.png", 9, 40);

            string fullPath = "Textures/Spacecrafts/NewGlenn/ngS1.png";

            this.Texture = new Bitmap(fullPath);
        }
Exemple #2
0
        public NGS1(string craftDirectory, DVector2 position, DVector2 velocity, double propellantMass = 1050000)
            : base(craftDirectory, position, velocity, 0, propellantMass, "NewGlenn/ngS1.png")
        {
            StageOffset = new DVector2(0, 28.4);

            _landingLegs = new[]
            {
                new NGLandingLeg(this, new DVector2(3.3, 19.8), true),
                new NGLandingLeg(this, new DVector2(-3.3, 19.8), false)
            };

            Engines = new IEngine[7];

            for (int i = 0; i < 7; i++)
            {
                double engineOffsetX = (i - 3.0) / 3.0;

                var offset = new DVector2(engineOffsetX * Width * 0.3, Height * 0.45);

                Engines[i] = new BE4(i, this, offset);
            }
        }