コード例 #1
0
        public TicTacToe()
        {
            graphics = new GraphicsDeviceManager(this);
            graphics.PreferredBackBufferWidth  = 800;
            graphics.PreferredBackBufferHeight = 600;

            IsMouseVisible = true;

            Content.RootDirectory = "Content";

            stateManager = new StateManager(this);

            button = new Button(0, 0, "Button1");

            gameObjects = new Dictionary <string, GameObject>()
            {
                { "Button1", button }
            };

            ComponentLocator.RegisterGameObjects(gameObjects);
        }