Exemplo n.º 1
0
        public override void LoadContent()
        {
            individualTexture    = ScreenManager.Content.Load <Texture2D>("point");
            bigIndividualTexture = ScreenManager.Content.Load <Texture2D>("beebig");
            superAgentTexture    = ScreenManager.Content.Load <Texture2D>("Backgrounds/gray");

            debugComponent = ScreenManager.Game.Services.GetService(typeof(IDebugScreen)) as IDebugScreen;
            controlClient  = ScreenManager.Game.Services.GetService(typeof(IControlClient)) as IControlClient;

            Camera = new SwarmsCamera(ScreenManager.GraphicsDevice);
            Border = new Border(ScreenManager);
            base.LoadContent();
        }
Exemplo n.º 2
0
 public void Draw(SpriteBatch spritebatch, SwarmsCamera camera)
 {
     for (int i = 0; i < borderWalls.Count; i++)
     {
         spritebatch.Draw(borderTexture, new Rectangle(
             borderWalls[i].GetX(),
             borderWalls[i].GetY(), (int)borderWalls[i].GetWidth(), (int)borderWalls[i].GetHeight()),
             null,
             Color.Gray,
             0f,
             new Vector2(0,0),
             SpriteEffects.None, 0);
     }
 }
Exemplo n.º 3
0
 public void Draw(SpriteBatch spritebatch, SwarmsCamera camera)
 {
     for (int i = 0; i < borderWalls.Count; i++)
     {
         spritebatch.Draw(borderTexture, new Rectangle(
             borderWalls[i].GetX(),
             borderWalls[i].GetY(), (int)borderWalls[i].GetWidth(), (int)borderWalls[i].GetHeight()),
             null,
             Color.Gray,
             0f,
             new Vector2(0,0),
             SpriteEffects.None, 0);
     }
 }
Exemplo n.º 4
0
        public override void LoadContent()
        {
            individualTexture = ScreenManager.Content.Load<Texture2D>("point");
            bigIndividualTexture = ScreenManager.Content.Load<Texture2D>("beebig");
            superAgentTexture = ScreenManager.Content.Load<Texture2D>("Backgrounds/gray");

            debugComponent = ScreenManager.Game.Services.GetService(typeof(IDebugScreen)) as IDebugScreen;
            controlClient = ScreenManager.Game.Services.GetService(typeof(IControlClient)) as IControlClient;

            Camera = new SwarmsCamera(ScreenManager.GraphicsDevice);
            Border = new Border(ScreenManager);
            base.LoadContent();
        }