Ana içeriğe atla

Kayıtlar

c# proje ödevi etiketine sahip yayınlar gösteriliyor

C# - Düşen Şeker Vurma Oyunu

KODLAR using System ; using System.Collections.Generic ; using System.ComponentModel ; using System.Data ; using System.Drawing ; using System.Linq ; using System.Text ; using System.Threading.Tasks ; using System.Windows.Forms ; namespace WindowsFormsApp2 { public partial class Form1 : Form { public Form1 () { InitializeComponent(); } Graphics tuval; Pen kalem = new Pen(Color.Black , 3 ); int x, y, x1= 0 , y1= 0 , x2 = 0 , y2 = 0 ,xk; bool atis = false ; int px1, px2, px3, px4; int py1, py2, py3, py4; Random Rastgele = new Random(); int puanlama = 0 ; private void pictureBox1_Click ( object sender, EventArgs e) { x = Cursor.Position.X; y = Cursor.Position.Y; Point P = PointToScreen( new Point(pictureBox1.Bounds.Left, pictureBox1.Bounds.Top)); xk = x - P.X; x1 = Co