Ejemplo n.º 1
0
        /*
         * static ChessGame()
         * {
         *  GameContent.OnLoadContent += delegate (ContentManager content)
         *  {
         *      whitePieces = new ColourPieces(content, "white");
         *      blackPieces = new ColourPieces(content, "black");
         *      warning = content.Load<SoundEffect>("Chess/LightWarning");
         *  };
         * }
         */

        static ChessGame()
        {
            whitePieces = new ColourPieces(Main.main.Content, "white");
            blackPieces = new ColourPieces(Main.main.Content, "black");
            warning     = Main.main.Content.Load <SoundEffect>("Chess/LightWarning");
        }
Ejemplo n.º 2
0
 static DraughtsGame()
 {
     whitePieces = new ColourPieces(Main.main.Content, "White");
     blackPieces = new ColourPieces(Main.main.Content, "Black");
 }