public void Load(ContentManager content) { texture = content.Load<Texture2D>("sprites/player"); sightTexture = content.Load<Texture2D>("gui/sight"); sprite = new AnimatedSprite(texture, 1, 8, 0.12); walkSound = content.Load<SoundEffect>("soundfx/walk").CreateInstance(); laughSound = content.Load<SoundEffect>("soundfx/male_laugh").CreateInstance(); }
public void Load(ContentManager cm) { texture = cm.Load<Texture2D>("sprites/ogre"); sightAreaTexture = cm.Load<Texture2D>("gui/sight"); healthTexture = cm.Load<Texture2D>("gui/rect"); sprite = new AnimatedSprite(texture, 1, 8, 0.12); SIZE = texture.Width / 8; laughSound = cm.Load<SoundEffect>("soundfx/male_laugh").CreateInstance(); }