//private SpriteSheet _spriteSheet; public ScaledBFR(string craftDirectory, DVector2 position, DVector2 velocity, double propellantMass = 2814000) : base(craftDirectory, position, velocity, 0, propellantMass, "Its/booster.png") { //StageOffset = new DVector2(0, 28.5); StageOffset = new DVector2(0, 43.5); Engines = new IEngine[19]; for (int i = 0; i < 19; i++) { double engineOffsetX = (i - 9.5) / 9.5; var offset = new DVector2(engineOffsetX * Width * 0.34, Height * 0.48); Engines[i] = new Raptor40(i, this, offset); //Engines[i] = new Raptor50(i, this, offset); } //_spriteSheet = new SpriteSheet("Textures/Spacecraft/Its/booster.png", 4, 12); string texturePath = "Its/scaledBFR.png"; string fullPath = Path.Combine("Textures/Spacecrafts", texturePath); this.Texture = new Bitmap(fullPath); }
public ITSBooster(string craftDirectory, DVector2 position, DVector2 velocity, double propellantMass = 6700000) : base(craftDirectory, position, velocity, 0, propellantMass, "Its/booster.png") { StageOffset = new DVector2(0, 59.5); Engines = new IEngine[42]; for (int i = 0; i < 42; i++) { double engineOffsetX = (i - 21.0) / 21.0; var offset = new DVector2(engineOffsetX * Width * 0.34, Height * 0.48); Engines[i] = new Raptor40(i, this, offset); } _spriteSheet = new SpriteSheet("Textures/Spacecraft/Its/booster.png", 4, 12); }