Exemplo n.º 1
0
        protected override void LoadContent()
        {
            spriteBatch = new SpriteBatch(GraphicsDevice);

            Player.LoadTexture(new Texture2D(GraphicsDevice, 100, 20, false, SurfaceFormat.Single));
            Ball.LoadTexture(new Texture2D(GraphicsDevice, 10, 10, false, SurfaceFormat.Single));

            Blocks.ForEach(b => b.LoadTexture(new Texture2D(GraphicsDevice, 200, 20, false, SurfaceFormat.Single)));
            Blocks.ForEach(b => Ball.AddSprite(b));
            Ball.AddSprite(Player);
        }