//public IList<Ship> Ships { get; set; } public MainMenuMode(ContentManager content) : base(content) { Particles = new ParticleEngine(); ////Ships = new List<Ship>(); ////Ships.Add(new Ship(new RotatableImage(){ToRender = ValorEngine.Packages["main"].LoadScript("Ship")})); ////Ships[0].PositionOnScreen = new Vector(ValorEngine.ViewWidth / 2, ValorEngine.ViewHeight / 2); ////((SourceImage)((AnimableSection)(Ships[0].ToRender.ToRender)).ToRender).Scale = .5f; }
public MainMenuMode() { Particles = new ParticleEngine(); var starField = Particles.Particles; for (int i = 0; i < ValorEngine.Width * 2.5f; i++) { starField.Add(CreateParticleAtSquareZ((float)(GraphicsHelper.Rand.NextDouble() * ValorEngine.Width), (float)(GraphicsHelper.Rand.NextDouble() * ValorEngine.Height))); } Ships = new List<Ship>(); Ships.Add(new Ship(new RotatableImage(){ToRender = ValorEngine.Packages["main"].LoadScript("Ship")})); Ships[0].PositionOnScreen = new Vector(ValorEngine.Width / 2, ValorEngine.Height / 2); ((SourceImage)((AnimableSection)(Ships[0].ToRender.ToRender)).ToRender).Scale = .5f; }