Exemple #1
0
 private void updateBTN_Click(object sender, EventArgs e)
 {
     //TODO
     SnakeGame.changeBackground(previewBox.BackgroundImage);
     GameInput.ChangeState(Keys.U, true);
     MessageBox.Show("تم تغيير الخريطة بنجاح");
 }
Exemple #2
0
 private void updateBTN_Click(object sender, EventArgs e)
 {
     //TODO
     SnakeGame.changeBackground(previewBox.BackgroundImage);
     GameInput.ChangeState(Keys.U, true);
     MessageBox.Show("Background has been updated, close this window to apply changes");
 }
Exemple #3
0
 private void Form1_KeyDown(object sender, KeyEventArgs e)
 {
     GameInput.ChangeState(e.KeyCode, true);
     if (GameInput.PressedKey(Keys.U))
     {
         canvas.BackgroundImage = background;
     }
 }
Exemple #4
0
 private void Form1_KeyUp(object sender, KeyEventArgs e)
 {
     GameInput.ChangeState(e.KeyCode, false);
 }
Exemple #5
0
 private void Form1_KeyDown(object sender, KeyEventArgs e)
 {
     GameInput.ChangeState(e.KeyCode, true);
 }