예제 #1
0
        public DuckIndicator(string name, int x)
        {
            Name     = name;
            _duckhud = new Sprite();
            _duckhud.LoadContent("duckhud");

            _duckmiss = new Sprite();
            _duckmiss.LoadContent("duckhudmiss");

            _duckshot = new Sprite();
            _duckshot.LoadContent("duckhudshot");

            _currentSprite = _duckhud;
            State          = DuckIndicatorStateEnum.None;

            _x         = x;
            _y         = 950;
            _duckhud.X = _x;
            _duckhud.Y = _y;

            _duckmiss.X = _x;
            _duckmiss.Y = _y;

            _duckshot.X = _x;
            _duckshot.Y = _y;
        }
예제 #2
0
        public MenuCursor()
        {
            Name       = "crosshair";
            _crosshair = new Sprite();
            _crosshair.LoadContent("crosshair");

            SoundEffectPlayer.LoadSoundEffect("gunsound");
        }
예제 #3
0
 private static void LoadBlockContent(SpriteBatch batch, ContentManager content)
 {
     BlockA.LoadContent(batch, content.Load <Texture2D>("Blocks"));
     BlockB.LoadContent(batch, content.Load <Texture2D>("Blocks"));
     BlockC.LoadContent(batch, content.Load <Texture2D>("Blocks"));
     BlockList.Add(BlockA);
     BlockList.Add(BlockB);
     BlockList.Add(BlockC);
 }
예제 #4
0
        public BulletIndicator(string name, int x)
        {
            Name         = name;
            _bulletFired = new Sprite();
            _bulletFired.LoadContent("bulletspent");

            _bulletNotFired = new Sprite();
            _bulletNotFired.LoadContent("bullet");

            _currentSprite = _bulletFired;
            State          = BulletIndicatorStateEnum.NotFired;

            _x             = x;
            _y             = 950;
            _bulletFired.X = _x;
            _bulletFired.Y = _y;

            _bulletNotFired.X = _x;
            _bulletNotFired.Y = _y;
        }
예제 #5
0
 public Background()
 {
     Name        = "background";
     _background = new Sprite();
     _background.LoadContent("background");
 }