Ejemplo n.º 1
0
        public FormMarioPort()
        {
            //this.DoubleBuffered = true;

            screenBmp = new Bitmap(SCREEN_WIDTH, SCREEN_HEIGHT);

            SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
            SetStyle(ControlStyles.ResizeRedraw, true);
            SetStyle(ControlStyles.UserPaint, true);
            SetStyle(ControlStyles.AllPaintingInWmPaint, true);

            InitializeComponent();
            formRef  = this;
            graphics = CreateGraphics();

            thread = new Thread(new ThreadStart(Mario.main));
            thread.Start();
        }
Ejemplo n.º 2
0
 public FormMarioPort()
 {
     InitializeComponent();
      formRef = this;
      graphics = CreateGraphics();
      //Buffers.data = Buffers.GameData.Create();
      thread = new Thread(new ThreadStart(Mario.main));
      thread.Start();
      //Mario.main(new string[0]);
 }
Ejemplo n.º 3
0
 //OldExitProc: Pointer;
 public FormMarioPort()
 {
     InitializeComponent();
      formRef = this;
      graphics = CreateGraphics();
 }