/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (ParticleEngine game = new ParticleEngine()) { game.Run(); } }
/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (ParticleEngine game = new ParticleEngine()) { game.Run(); } }
/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { // Create a new SpriteBatch, which can be used to draw textures. spriteBatch = new SpriteBatch(GraphicsDevice); List <Texture2D> texture = new List <Texture2D>(); texture.Add(Content.Load <Texture2D>("Circle")); texture.Add(Content.Load <Texture2D>("star")); texture.Add(Content.Load <Texture2D>("diamond")); particleEngine = new ParticleEngine(texture, new Vector2(400, 250)); // TODO: use this.Content to load your game content here }