NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

static void Main(string[] args)
{
Console.CursorVisible = false;
//değişkenler
int guc = 3;
int cevik = 3;
int nam = 3;
int para = 200;
// ana ayar
plmenu:
Console.Title = "Mount & Blades : Console Special Edition";
Console.BackgroundColor = ConsoleColor.DarkYellow;
Console.Clear();
Console.ForegroundColor = ConsoleColor.White;
Console.WriteLine("Mount & Blades : Console Special Edition");
Console.WriteLine();
Console.WriteLine("Başlamak için 'P' gir");
Console.WriteLine();
ConsoleKeyInfo ckey = Console.ReadKey();
if (ckey.Key == ConsoleKey.P)
{
oyun(guc, cevik, nam, para);
}
else
{
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("nGeçersiz komut.");
System.Threading.Thread.Sleep(1000);
goto plmenu;
}
}
private static void oyun(int guc, int cevik, int nam, int para)
{
int gun = 1;
int yil = 1586;
int yemek = 20;
secim:
Console.Clear();
Console.WriteLine("KARAKTER SEÇİMİ: ");
Console.WriteLine();
Console.WriteLine("Senin baban...");
Console.WriteLine();
Console.WriteLine("1) Bir marangozdu.");
Console.WriteLine("2) Bir göçebeydi.");
Console.WriteLine("3) Bir askerdi.");
Console.WriteLine("4) Bir hırsızdı.");
Console.WriteLine();
Console.Write("Seçimin: ");
ConsoleKeyInfo ckey2 = Console.ReadKey();
if (ckey2.Key == ConsoleKey.NumPad1)
{
guc += 10;


}
else if (ckey2.Key == ConsoleKey.NumPad2)
{
cevik += 10;


}
else if (ckey2.Key == ConsoleKey.NumPad3)
{
nam += 10;

}
else if (ckey2.Key == ConsoleKey.NumPad4)
{
para += 1000;

}
else
{
goto secim;
}
secim2:
Console.Clear();
Console.WriteLine("KARAKTER SEÇİMİ: ");
Console.WriteLine();
Console.WriteLine("Gençken sen...");
Console.WriteLine();
Console.WriteLine("1) Bir kuyumcunun çırağıydın.");
Console.WriteLine("2) Bir gezgin şairdin.");
Console.WriteLine("3) Bir hırsızdın.");
Console.WriteLine("4) Bir ameleydin.");
Console.WriteLine();
Console.Write("Seçimin: ");
ConsoleKeyInfo ckey3 = Console.ReadKey();
if (ckey3.Key == ConsoleKey.NumPad1)
{
para += 1000;


}
else if (ckey3.Key == ConsoleKey.NumPad2)
{
nam += 10;


}
else if (ckey3.Key == ConsoleKey.NumPad3)
{
cevik += 10;

}
else if (ckey3.Key == ConsoleKey.NumPad4)
{
guc += 10;

}
else
{
goto secim2;
}
//for (int i = 0; i < 20; i++)
//{
// Console.Clear();
// if (i % 2 == 0)
// {
// Console.WriteLine("OYUN YÜKLENİYOR.");
// System.Threading.Thread.Sleep(500);
// }
// else
// {
// Console.WriteLine("OYUN YÜKLENİYOR..");
// System.Threading.Thread.Sleep(500);
// }
//}
int koylu_a = 0;
int basit_a = 0;
int okcu_a = 0;
int guclu_a = 0;
int silahli_a = 0;
int asker = 0;
//
//
// OYUN EKRANI
//
//
//
oyunekran:
int ordugucuana = koylu_a;
ordugucuana = ordugucuana + (basit_a * 4);
ordugucuana = ordugucuana + (okcu_a * 4);
ordugucuana = ordugucuana + (guclu_a * 8);
ordugucuana = ordugucuana + (silahli_a * 16);
Console.Clear();
//****************************************************************************
// OYUN ANA EKRANI
//****************************************************************************
Console.ForegroundColor = ConsoleColor.DarkRed;
Console.WriteLine("GÜN: {0}, YIL: {1}", gun, yil);
Console.ForegroundColor = ConsoleColor.White;
Console.WriteLine();
Console.WriteLine("Gruptaki Asker: {0}, Kalan Yiyecek: {1}, Ordu Gücün: {2}", asker, yemek,ordugucuana);
Console.WriteLine();
Console.WriteLine("Oyun Bilgileri için 'I' bas.");
Console.WriteLine("Markete gitmek için 'A' bas.");
Console.WriteLine("Sonraki güne gitmek için 'G' tuşuna bas.");
Console.WriteLine("Mekanları gezmek için 'M' tuşuna bas.");
Console.WriteLine("Savaş başlatmak için 'S' tuşuna bas.");
ConsoleKeyInfo islemkey = Console.ReadKey();
if (islemkey.Key == ConsoleKey.I)
{
oyunekranbilgi:
Console.Clear();
Console.ForegroundColor = ConsoleColor.White;
Console.WriteLine("> BİLGİLERİN: ");
Console.ForegroundColor = ConsoleColor.Blue;
Console.WriteLine();
Console.WriteLine("Paran: " + para);
Console.WriteLine("Çevikliğin: " + cevik);
Console.WriteLine("Gücün: " + guc);
Console.WriteLine("Namın: " + nam);
Console.WriteLine();
Console.ForegroundColor = ConsoleColor.White;
Console.WriteLine("> ASKERLERİN: ");
Console.WriteLine();
Console.ForegroundColor = ConsoleColor.Blue;
Console.WriteLine("Köylü Asker: " + koylu_a);
Console.WriteLine("Basit Asker: " + basit_a);
Console.WriteLine("Okçu Asker: " + okcu_a);
Console.WriteLine("Güçlü Asker: " + guclu_a);
Console.WriteLine("Silahlı Asker: " + silahli_a);
Console.WriteLine();
Console.ForegroundColor = ConsoleColor.White;
Console.WriteLine("Geri Dönmek için 'G' bas.");
ConsoleKeyInfo geridonkey = Console.ReadKey();
if (geridonkey.Key == ConsoleKey.G)
{
goto oyunekran;
}
else
{
goto oyunekranbilgi;
}
Console.ReadKey();
}
//****************************************************************************
// SATIN ALMA MENÜSÜ
//****************************************************************************
else if (islemkey.Key == ConsoleKey.A)
{
asker:
Console.Clear();
Console.ForegroundColor = ConsoleColor.White;
Console.WriteLine("> SATIN ALMA MENÜSÜ: ");
Console.ForegroundColor = ConsoleColor.Blue;
Console.WriteLine();
Console.WriteLine("1) Köylü asker: 50$");
Console.WriteLine("2) Basit asker: 100$");
Console.WriteLine("3) Okçu asker: 150$");
Console.WriteLine("4) Güçlü asker: 200$");
Console.WriteLine("5) Silahlı asker: 250$");
Console.WriteLine("6) 10 Yiyecek: 125$");
Console.WriteLine();
Console.ForegroundColor = ConsoleColor.White;
Console.WriteLine("Asker almak için sayıları kullan veya geri Dönmek için 'G' bas.");
Console.WriteLine("Paran: {0}",para);
ConsoleKeyInfo islemasker = Console.ReadKey();
if (islemasker.Key == ConsoleKey.G)
{
goto oyunekran;
}
else if (islemasker.Key == ConsoleKey.NumPad1)
{
if (para >= 50)
{
para -= 50;
Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine("Bir köylü asker satın aldın!");
asker++;
koylu_a += 1;
System.Threading.Thread.Sleep(500);
goto asker;
}
else
{
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("Paran yetersiz!");
System.Threading.Thread.Sleep(500);
goto asker;
}
}
else if (islemasker.Key == ConsoleKey.NumPad2)
{
if (para >= 100)
{
para -= 100;
Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine("Bir basit asker satın aldın!");
asker++;
basit_a += 1;
System.Threading.Thread.Sleep(500);
goto asker;
}
else
{
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("Paran yetersiz!");
System.Threading.Thread.Sleep(500);
goto asker;
}
}
else if (islemasker.Key == ConsoleKey.NumPad3)
{
if (para >= 150)
{
para -= 150;
Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine("Bir okçu asker satın aldın!");
asker++;
okcu_a += 1;
System.Threading.Thread.Sleep(500);
goto asker;
}
else
{
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("Paran yetersiz!");
System.Threading.Thread.Sleep(500);
goto asker;
}
}
else if (islemasker.Key == ConsoleKey.NumPad4)
{
if (para >= 200)
{
para -= 200;
Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine("Bir güçlü asker satın aldın!");
asker++;
guclu_a += 1;
System.Threading.Thread.Sleep(500);
goto asker;
}
else
{
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("Paran yetersiz!");
System.Threading.Thread.Sleep(500);
goto asker;
}
}
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.