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(); }
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]); }
//OldExitProc: Pointer; public FormMarioPort() { InitializeComponent(); formRef = this; graphics = CreateGraphics(); }