示例#1
0
        public void LoadContent(IContentLoader contentLoader)
        {
            _bulletSprite = contentLoader.Load <Texture2D>("Graphics/Entities/player_bullet");
            _hitboxSprite = contentLoader.Load <Texture2D>("Graphics/Pictures/player_hitbox");

            _lifeIcon = contentLoader.Load <Texture2D>("Graphics/Pictures/life_icon");

            _bulletTimeBarLeft    = contentLoader.Load <Texture2D>("Graphics/Pictures/gauge_left");
            _bulletTimeBarContent = contentLoader.Load <Texture2D>("Graphics/Pictures/gauge_middle");
            _bulletTimeBarRight   = contentLoader.Load <Texture2D>("Graphics/Pictures/gauge_right");

            _shootSound = contentLoader.Load <SoundEffect>(@"Audio/SE/hit");
            _deadSound  = contentLoader.Load <SoundEffect>(@"Audio/SE/dead");

            Ship = new ShipView(Program.system);
            Ship.LoadContent(contentLoader);
        }
示例#2
0
 public void LoadContent(IContentLoader provider)
 {
     enemy = new ShipView(Program.system);
     enemy.LoadContent(provider);
 }