public override void LoadContents(ContentManager contents) { _sprite = contents.Load <Texture2D>(BULLET_PATH); _s_fire.LoadContents(contents, SOUND_FIRE); _s_fire.Play(); base.LoadContents(contents); }
public override void LoadContents(ContentManager contents) { _contents = contents; _font = contents.Load <SpriteFont>("font"); _backgroud = contents.Load <Texture2D>(DEFAULT_BUTTON_PATH); _hoverEffect.LoadContents(_contents, HOVER_EFFECT_PATH); base.LoadContents(contents); }
public BulletController(ContentManager contents) : base(contents) { _bullets = new Dictionary <int, GameObject>(); _s_fire = new SEffect(); _s_fire.LoadContents(contents, SOUND_FIRE); }
public override bool LoadContents() { playButton = _contents.Load <Texture2D>("menu"); exitButton = _contents.Load <Texture2D>("menu"); soundButton = _contents.Load <Texture2D>("menu"); backgroundMenu = _contents.Load <Texture2D>("mBackground"); font = _contents.Load <SpriteFont>("menufont"); sBG.LoadContents(_contents, "sBG"); sE.LoadContents(_contents, "s_menu_1"); //sBG.Play(); return(true); }
public void LoadContents(ContentManager contents) { _contents = contents; _explosion.LoadContents(_contents, EXPLOSION_PATH); }
public override void LoadContents(ContentManager contents) { _sprite = contents.Load <Texture2D>(""); _effectCollision.LoadContents(contents, ""); }
public override void LoadContents(ContentManager contents) { tankImage = contents.Load <Texture2D>("tank"); tankRec = new Rectangle((int)tankPosition.X, (int)tankPosition.Y, tankImage.Width, tankImage.Height); sEff.LoadContents(contents, "s_tank_1"); }