示例#1
0
        public Main()
        {
            InitializeComponent();
            this.Location = new Point(Screen.AllScreens[0].Bounds.Width / 2 - this.Size.Width / 2, 0);
            console = new Console(this);
            console.Show();

            graphics = new GraphicsCore(this);
            game = new Game();
        }
 public GraphicsCore(Form form)
 {
     Instance = this;
     BufferedGraphicsContext = BufferedGraphicsManager.Current;
     buffer = BufferedGraphicsContext.Allocate(form.CreateGraphics(), form.ClientRectangle);
 }