C# Yaptığım Başarılı bir Oyun Örneği Versiyon-1

ürfet34
04-01-2009, 19:08   |  #1  
OP Yıllanmış Üye
Teşekkür Sayısı: 0
154 mesaj
Kayıt Tarihi:Kayıt: Tem 2008

Merhaba;
Arkadaşlar C# Yapıtım Basit bir oyun örneği yöntuşları ile sağa, sola, ileri, geri, gibi hareket ettirebilitoruz :)

Kodumuz

[ Tüm kodu seç ] [ Yeni Pencerede Göster ]
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace My_browser_V1 { public partial class Form3 : Form { public Form3() { InitializeComponent(); } private void Form3_Load(object sender, EventArgs e) { } private void Form3_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Left) { pictureBox1.Left = pictureBox1.Left - 2; } else if (e.KeyCode == Keys.Right) pictureBox1.Left = pictureBox1.Left + 2; else if (e.KeyCode == Keys.Up) pictureBox1.Top = pictureBox1.Top - 5; else if (e.KeyCode == Keys.Down) pictureBox1.Top = pictureBox1.Top + 5; if (pictureBox1.Left == pictureBox2.Left) { MessageBox.Show("Puan Aldın"); } else if (e.KeyCode == Keys.A) { Label lbl = new Label(); lbl.Text = "====>"; lbl.Left = pictureBox1.Right+15; lbl.ForeColor = Color.Red; this.Controls.Add(lbl); } } } }

Uygulamayı :: İNDİRİN ::

Son Düzenleme: ürfet34 ~ 04 Ocak 2009 19:14
Kapalı Hesap (91855)
04-01-2009, 19:36   |  #2  
Kapalı Hesap
Teşekkür Sayısı: 27
2,006 mesaj
Kayıt Tarihi:Kayıt: Eki 2008

rapiddden başka upload yapıcak yer bulamadınız mı yaw ?

ürfet34
05-01-2009, 15:48   |  #3  
OP Yıllanmış Üye
Teşekkür Sayısı: 0
154 mesaj
Kayıt Tarihi:Kayıt: Tem 2008

neden ?