public void LoadContent(ContentManager Content) { texture= Content.Load<Texture2D>("Sprites/frontreel"); if (Options.hel_op == Options.Heli_c.Relistic) { texture = Content.Load<Texture2D>("Sprites/frontreel"); } else if (Options.hel_op == Options.Heli_c.Cartoon) { texture = Content.Load<Texture2D>("Sprites/bikeGuy"); } else if (Options.hel_op == Options.Heli_c.Semi) { texture = Content.Load<Texture2D>("Sprites/RetroGuy"); } p1 = new PlayerAnimation(); }
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(); }