public void PuanVer(int satirSayisi) { this.SeviyeBasiSatirSayisi += satirSayisi; int puan = 0; switch (satirSayisi) { case 1: puan += TEK_SATIR_PUANI; break; case 2: puan += IKI_SATIR_PUANI; break; case 3: puan += UC_SATIR_PUANI; break; case 4: puan += DORT_SATIR_PUANI; break; } puan += (puan * this.Seviye); this.Puan += puan; if (Seviyeler.SeviyeArtsinMi(this.Seviye, this.SeviyeBasiSatirSayisi)) { this.SeviyeArttir(); } }
public void Yeni() { Panel.Controls.Clear(); Tablo = new Tablo(this, Panel, PnlSonrakiNesne); this.Seviye = 0; this.Puan = 0; this.SeviyeBasiSatirSayisi = 0; this.Timer.Interval = Seviyeler.SeviyeHiziAl(0, this.Seviye); this.Timer.Enabled = true; this.OynaniyorMu = true; }
public void SeviyeArttir() { this.SeviyeBasiSatirSayisi = 0; Seviye++; this.Timer.Interval = Seviyeler.SeviyeHiziAl(this.Timer.Interval, this.Seviye); }