public void LoadContent(ContentManager Content) { boom = new ParticleSystem(Content.Load<Texture2D>("Sprites/dropboxplosion"), this.Position); boom.init(); // boom.transparency = 1f; }
public void LoadContent(ContentManager Content, Viewport viewport) { splosions = new ParticleSystem(Content.Load<Texture2D>("Sprites/particle"), this.Position); splosions.init(); text = new Text(Content, this.Position, "200"); origin.X = texture.Width / 2; origin.Y = texture.Height / 2; screenpos = new Vector2(viewport.Width / 2, viewport.Height / 2); p1 = new PlayerAnimation(); }