Exemplo n.º 1
0
 private void MainForm_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.A)
     {
         MVC.Instance().callAction(1, MainGameControl.ID_KeyRight).ExecuteResult();
     }
 }
Exemplo n.º 2
0
        public MainForm()
        {
            InitializeComponent();

            TetrisInstance.model.configure();
            TetrisInstance.view.configure(this);
            TetrisInstance.control.configure();

            MVC.Instance().configure(1, new MainGameControl(), new MainGameModel(), new MainGameView(this));
            MVC.Instance().callAction(1, MainGameControl.ID_START);
        }
Exemplo n.º 3
0
 private void button_debug1_Click(object sender, EventArgs e)
 {
     MVC.Instance().callAction(1, MainGameControl.ID_STOP).ExecuteResult();
 }