private void FormaRazno_Load(object sender, EventArgs e) { if (id == 1) { System.Media.SoundPlayer pesna = new System.Media.SoundPlayer(Properties.Resources.Tom_und_Jerry_german_Intro); pesna.Play(); } anim1 = new Animacija(new Bitmap[] {Properties.Resources.prasalnik_000, Properties.Resources.prasalnik_001,Properties.Resources.prasalnik_002, Properties.Resources.prasalnik_003,Properties.Resources.prasalnik_004, Properties.Resources.prasalnik_005,Properties.Resources.prasalnik_006, Properties.Resources.prasalnik_007,Properties.Resources.prasalnik_008, Properties.Resources.prasalnik_009,Properties.Resources.prasalnik_010, Properties.Resources.prasalnik_011,Properties.Resources.prasalnik_012, Properties.Resources.prasalnik_013}); anim4 = new Animacija(new Bitmap[] {Properties.Resources.prasalnik_013, Properties.Resources.prasalnik_012,Properties.Resources.prasalnik_011, Properties.Resources.prasalnik_010,Properties.Resources.prasalnik_009, Properties.Resources.prasalnik_008,Properties.Resources.prasalnik_007, Properties.Resources.prasalnik_006,Properties.Resources.prasalnik_005, Properties.Resources.prasalnik_004,Properties.Resources.prasalnik_003, Properties.Resources.prasalnik_002,Properties.Resources.prasalnik_001, Properties.Resources.prasalnik_000}); anim2 = new Animacija(new Bitmap[] { Properties.Resources.bp1, Properties.Resources.bp2, Properties.Resources.bp3 }); anim3 = new Animacija(new Bitmap[] { Properties.Resources.sansa_001,Properties.Resources.sansa_002, Properties.Resources.sansa_003,Properties.Resources.sansa_004, Properties.Resources.sansa_005}); anim5 = new Animacija(new Bitmap[] {Properties.Resources.izvicnik_000, Properties.Resources.izvicnik_001,Properties.Resources.izvicnik_002, Properties.Resources.izvicnik_003,Properties.Resources.izvicnik_004, Properties.Resources.izvicnik_005,Properties.Resources.izvicnik_006, Properties.Resources.izvicnik_007,Properties.Resources.izvicnik_008, Properties.Resources.izvicnik_009,Properties.Resources.izvicnik_010, Properties.Resources.izvicnik_011,Properties.Resources.izvicnik_012, Properties.Resources.izvicnik_013}); anim6 = new Animacija(new Bitmap[] {Properties.Resources.izvicnik_013, Properties.Resources.izvicnik_012,Properties.Resources.izvicnik_011, Properties.Resources.izvicnik_010,Properties.Resources.izvicnik_009, Properties.Resources.izvicnik_008,Properties.Resources.izvicnik_007, Properties.Resources.izvicnik_006,Properties.Resources.izvicnik_005, Properties.Resources.izvicnik_004,Properties.Resources.izvicnik_003, Properties.Resources.izvicnik_002,Properties.Resources.izvicnik_001, Properties.Resources.izvicnik_000}); anim7 = new Animacija(new Bitmap[] { Properties.Resources.iz_001,Properties.Resources.iz_002, Properties.Resources.iz_003,Properties.Resources.iz_004, Properties.Resources.iz_005}); timer1.Start(); }
public Igrach(Animacija c, string i, bool n,Point p,Image m,Image g) { golema = g; mala = m; coveche = c; ime = i; Nared = n; pozicija = p; parking = 0; zatvor = 0; zemjishta = new List<Grad>(); money = 100000; brPole = 0; }
public Form1(string ime, string moeIme) { tekovno = ime; InitializeComponent(); lista = new ListaIgraci(); kockaVrednost = 0; DoubleBuffered = true; tekKocka1 = null; karticki = new List<Karticka>(); karticki1 = new List<Karticka>(); Karticka k0 = new Karticka("Роденден ви е., Банката ве наградува со 3 000.", (float)3000, 0); Karticka k1 = new Karticka("Наследувате од далечен роднина., Подигнете 7 000.", (float)7000, 1); Karticka k2 = new Karticka("Добитник сте на стипендија., Подигнете 5 500.", (float)5500, 2); Karticka k3 = new Karticka("Осигурувањето ви истекло., Морате да платете 2 000.", (float)-2000, 3); Karticka k4 = new Karticka("Сте уплатиле за патување., Платете 8 000.", (float)-8000, 4); Karticka k5 = new Karticka("Автомобилот ви се расипал., Платете 4 000 за поправка.", (float)-4000, 5); Karticka k6 = new Karticka("Потребен ви е нов почеток., Вратете се на СТАРТ!", (float)0, 6); Karticka k7 = new Karticka("Го прекршивте законот., Морате да одите во затвор!", (float)0, 7); Karticka k8 = new Karticka("Возачката ви истекла., платете 4 000 за нова", (float)-4000, 9); Karticka k9 = new Karticka("Добивте егзотично патување., Посетете го Дубаи!", (float)0, 8); tabla = new List<Pole>(); listaDrzavi = new List<Drzava>(); Drzava d1 = new Drzava(); d1.Ime = "Македонија"; Grad g1 = new Grad(); g1.Ime = "Крива Паланка"; g1.Opis = "Крива Паланка е град сместен во североисточниот дел на Република Македонија"; g1.Cena = 16000; g1.Danok = g1.Cena * 3 / 10; g1.Slika = new Bitmap(Properties.Resources.KP); d1.Gradovi.Add(g1); Grad g2 = new Grad(); g2.Ime = "Гостивар"; g2.Opis = "Гостивар е град сместен Западниот дел на Македонија"; g2.Cena = 18000; g2.Danok = g2.Cena * 3 / 10; g2.Slika = new Bitmap(Properties.Resources.GV); d1.Gradovi.Add(g2); listaDrzavi.Add(d1); Drzava d2 = new Drzava(); d2.Ime = "Франција"; Grad g3 = new Grad(); g3.Ime = "Париз"; g3.Opis = "Париз е град сместен во северниот дел Франција на бреговите на реката Сена"; g3.Cena = 12000; g3.Danok = g3.Cena * 3 / 10; g3.Slika = new Bitmap(Properties.Resources.PARIZ); d2.Gradovi.Add(g3); Grad g4 = new Grad(); g4.Ime = "Марсеј"; g4.Opis = "Марсеј е град кој лежи на Лионскиот залив во Франција"; g4.Cena = 10000; g4.Danok = g4.Cena * 3 / 10; g4.Slika = new Bitmap(Properties.Resources.MARSEJ); d2.Gradovi.Add(g4); Grad g5 = new Grad(); g5.Ime = "Лион"; g5.Opis = "Лион е град во источниот дел на Средна Франција"; g5.Cena = 11000; g5.Danok = g5.Cena * 3 / 10; g5.Slika = new Bitmap(Properties.Resources.LION); d2.Gradovi.Add(g5); listaDrzavi.Add(d2); Drzava d3 = new Drzava(); Grad g6 = new Grad(); g6.Ime = "Лондон"; g6.Opis = "Лондон е главен град на Англија и Обединетото Кралство"; g6.Cena = 15000; g6.Danok = g6.Cena * 3 / 10; g6.Slika = new Bitmap(Properties.Resources.London); d3.Gradovi.Add(g6); Grad g7 = new Grad(); g7.Ime = "Манчестер"; g7.Opis = "Манчестер е град во Англија и Велика Британија"; g7.Cena = 13000; g7.Danok = g7.Cena * 3 / 10; g7.Slika = new Bitmap(Properties.Resources.MSTER); d3.Gradovi.Add(g7); listaDrzavi.Add(d3); Drzava d4 = new Drzava(); Grad g8 = new Grad(); g8.Ime = "Абу Даби"; g8.Opis = "Абу Даби е главен град и втор најголем град во Обединетите Арапски Емирати."; g8.Cena = 17000; g8.Danok = g8.Cena * 3 / 10; g8.Slika = new Bitmap(Properties.Resources.aBUDABI); d4.Gradovi.Add(g8); Grad g9 = new Grad(); g9.Ime = "Дубаи"; g9.Opis = "Дубаи е еден од седумте емирати во Обединетите Арапски Емирати.Тој се наоѓа јужно од Персискиот Залив на Арапскиот Полуостров."; g9.Cena = 19000; g9.Danok = g9.Cena * 3 / 10; g9.Slika = new Bitmap(Properties.Resources.DUBAI); d4.Gradovi.Add(g9); listaDrzavi.Add(d4); Drzava d5 = new Drzava(); d5.Ime = "Германија"; Grad g10 = new Grad(); g10.Ime = "Минхен"; g10.Opis = "Минхен е главен град на германската покраина Баварија. Градот лежи на реката Изар, северно од Баварските Алпи. "; g10.Cena = 15000; g10.Danok = g10.Cena * 3 / 10; g10.Slika = new Bitmap(Properties.Resources.MINEHN); d5.Gradovi.Add(g10); Grad g11 = new Grad(); g11.Ime = "Франкфурт"; g11.Opis = "Франкфурт е најголемиот град во германската покраина Хесен и петти по големина во Германија, со 672.000 жители."; g11.Cena = 14000; g11.Danok = g11.Cena * 3 / 10; g11.Slika = new Bitmap(Properties.Resources.FFF); d5.Gradovi.Add(g11); Grad g12 = new Grad(); g12.Ime = "Берлин"; g12.Opis = "Берлин главен град на Германија и една од нејзините шеснаесет покраини. Со население од 3.45 милиони жители, Берлин е најголемиот град во Германија. "; g12.Cena = 16000; g12.Danok = g12.Cena * 3 / 10; g12.Slika = new Bitmap(Properties.Resources.BERLIN); d5.Gradovi.Add(g12); listaDrzavi.Add(d5); Drzava d6 = new Drzava(); d6.Ime = "Италија"; Grad g13 = new Grad(); g13.Ime = "Милано"; g13.Opis = "Милано е вториот најголем град во Италија и главен град на регионот Ломбардија. Самиот град има население од околу 1,35 милиони"; g13.Cena = 10000; g13.Danok = g13.Cena * 3 / 10; g13.Slika = new Bitmap(Properties.Resources.MILANO); d6.Gradovi.Add(g13); Grad g14 = new Grad(); g14.Ime = "Рим"; g14.Opis = "Рим е град и посебна општина во Италија. Рим е главен град на Италија како и главен град на Лацио."; g14.Cena = 11000; g14.Danok = g14.Cena * 3 / 10; g14.Slika = new Bitmap(Properties.Resources.RIM); d6.Gradovi.Add(g14); listaDrzavi.Add(d6); Karticka k10 = new Karticka("Старт", (float)0, 10); Karticka k11 = new Karticka("Затвор", (float)0, 11); Karticka k12 = new Karticka("Паркинг", (float)0, 12); Karticka k13 = new Karticka("Бингооооо", (float)0, 13); Karticka k14 = new Karticka("Оди во затвор", (float)0, 14); Karticka k15 = new Karticka("Данок", (float)0, 15); karticki.Add(k0); karticki.Add(k1); karticki.Add(k2); karticki.Add(k3); karticki.Add(k4); karticki.Add(k5); karticki.Add(k6); karticki.Add(k7); karticki.Add(k8); karticki.Add(k9); karticki1.Add(k10); karticki1.Add(k11); karticki1.Add(k12); karticki1.Add(k13); karticki1.Add(k14); karticki1.Add(k15); tabla.Add(karticki1[0]);//Start tabla.Add(d1.Gradovi[0]);//Kriva Palanka tabla.Add(d1.Gradovi[1]);//Gostivar tabla.Add(d2.Gradovi[0]);//Paris tabla.Add(d2.Gradovi[1]);//Marsej tabla.Add(karticki[0]);//Iznenaduvanje1 tabla.Add(d2.Gradovi[2]);//Lion tabla.Add(karticki1[1]);//Zatvor tabla.Add(d3.Gradovi[0]);//London tabla.Add(karticki[1]);//Sansa1 tabla.Add(karticki1[2]);//Bingo tabla.Add(d3.Gradovi[1]);//Manchester tabla.Add(karticki1[3]);//Parking tabla.Add(d4.Gradovi[0]);//Abu Dhabi tabla.Add(d4.Gradovi[1]);//Dubai tabla.Add(karticki[2]);//Sansa 2 tabla.Add(d5.Gradovi[0]);//Minhen tabla.Add(d5.Gradovi[1]);//Frankfurt tabla.Add(d5.Gradovi[2]);//Berlin tabla.Add(karticki1[4]);//Odi vo zatvor tabla.Add(d6.Gradovi[0]);//Milano tabla.Add(karticki[3]);//Iznenaduvanje 3 tabla.Add(karticki1[5]);//Danok tabla.Add(d6.Gradovi[1]);//Rim //kocka animacija = new Animacija(new Bitmap[] { Properties.Resources.frame_000,Properties.Resources.frame_001, Properties.Resources.frame_002,Properties.Resources.frame_003,Properties.Resources.frame_004,Properties.Resources.frame_005, Properties.Resources.frame_006, Properties.Resources.frame_007,Properties.Resources.frame_008, Properties.Resources.frame_009,}); kocki = new Bitmap[]{Properties.Resources._1,Properties.Resources._2,Properties.Resources._3,Properties.Resources._4, Properties.Resources._5,Properties.Resources._6}; coveche = new Bitmap[] { Properties.Resources.c1, Properties.Resources.c2, Properties.Resources.c3, Properties.Resources.c4, Properties.Resources.c5, Properties.Resources.c6, Properties.Resources.c7, Properties.Resources.c8, Properties.Resources.c9, Properties.Resources.c10, Properties.Resources.c11, Properties.Resources.c12, Properties.Resources.c13, Properties.Resources.c14, Properties.Resources.c15, Properties.Resources.c16, Properties.Resources.c17, Properties.Resources.c18, Properties.Resources.c19, }; Animacija covecheSkok = new Animacija(coveche); coveche2 = new Bitmap[]{Properties.Resources.cc1, Properties.Resources.cc2, Properties.Resources.cc3, Properties.Resources.cc4, Properties.Resources.cc5, Properties.Resources.cc6, Properties.Resources.cc7, Properties.Resources.cc8, Properties.Resources.cc9, Properties.Resources.cc10, Properties.Resources.cc11, Properties.Resources.cc12, Properties.Resources.cc13, Properties.Resources.cc14, Properties.Resources.cc15, Properties.Resources.cc16, Properties.Resources.cc17, Properties.Resources.cc18, Properties.Resources.cc19, }; Animacija covecheSkok2 = new Animacija(coveche2); if (tekovno.CompareTo("Дени") == 0) { if (moeIme == "") { igrach1 = new Igrach(covecheSkok, "Дени", false, new Point(230, 0), Properties.Resources.c1, Properties.Resources.popu); igrach2 = new Igrach(covecheSkok2, "Вики", true, new Point(240, 0), Properties.Resources.cc1, Properties.Resources.popu___Copy); } else { igrach1 = new Igrach(covecheSkok, moeIme, false, new Point(230, 0), Properties.Resources.c1, Properties.Resources.popu); igrach2 = new Igrach(covecheSkok2, "Вики", true, new Point(240, 0), Properties.Resources.cc1, Properties.Resources.popu___Copy); } } else { if (moeIme == "") { igrach2 = new Igrach(covecheSkok, "Дени", true, new Point(240, 0), Properties.Resources.c1, Properties.Resources.popu); igrach1 = new Igrach(covecheSkok2, "Вики", false, new Point(230, 0), Properties.Resources.cc1, Properties.Resources.popu___Copy); } else { igrach2 = new Igrach(covecheSkok, "Дени", true, new Point(240, 0), Properties.Resources.c1, Properties.Resources.popu); igrach1 = new Igrach(covecheSkok2, moeIme, false, new Point(230, 0), Properties.Resources.cc1, Properties.Resources.popu___Copy); } } sledna = 265; lblIme1.Text = igrach1.ime; lblIme2.Text = igrach2.ime; MoneyC1.Text = igrach1.GiveMeMoney(); MoneyC2.Text = igrach2.GiveMeMoney(); lista.Add(igrach1); lista.Add(igrach2); }
private void Pochetna_Load(object sender, EventArgs e) { pesna = new System.Media.SoundPlayer(Properties.Resources.Monopoly_Deluxe_Music_2); pesna.Play(); this.BackgroundImage = Properties.Resources.finkifinki; sliki = new Bitmap[] {Properties.Resources.finkifinki, Properties.Resources.finki1, Properties.Resources.nie, Properties.Resources.value,Properties.Resources.dice}; slideShow = new Animacija(sliki); }
private void textBox1_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Left) { tekovna = coveche2; imetekovno = ime2; precrtaj(); } if (e.KeyCode == Keys.Right) { tekovna = coveche1; imetekovno = ime1; precrtaj(); } }
private void NewGame_MouseDown(object sender, MouseEventArgs e) { if (this.play.Contains(e.Location)) { Form1 f = new Form1(imetekovno, textBox1.Text); f.Show(); this.Hide(); } else if (this.left.Contains(e.Location)) { tekovna = coveche2; imetekovno = ime2; precrtaj(); } else if (this.back.Contains(e.Location)) { Pochetna p = new Pochetna(2); p.Show(); this.Hide(); } else if (this.right.Contains(e.Location)) { tekovna = coveche1; imetekovno = ime1; precrtaj(); } }
private void NewGame_Load(object sender, EventArgs e) { g = this.CreateGraphics(); play = new Rectangle(new Point(500, 450), new Size(110, 40)); left = new Rectangle(new Point(500, 350), new Size(40, 40)); right = new Rectangle(new Point(325, 350), new Size(40, 40)); back = new Rectangle(new Point(270, 450), new Size(110, 40)); b = new Bitmap(this.Width, this.Height); obj = Graphics.FromImage(b); slikiCoveche1 = new Bitmap[] { Properties.Resources.c1, Properties.Resources.c2, Properties.Resources.c3, Properties.Resources.c4, Properties.Resources.c5, Properties.Resources.c6, Properties.Resources.c7, Properties.Resources.c8, Properties.Resources.c9, Properties.Resources.c10, Properties.Resources.c11, Properties.Resources.c12, Properties.Resources.c13, Properties.Resources.c14, Properties.Resources.c15, Properties.Resources.c16, Properties.Resources.c17, Properties.Resources.c18, Properties.Resources.c19}; slikiCoveche2 = new Bitmap[] { Properties.Resources.cc1, Properties.Resources.cc2, Properties.Resources.cc3, Properties.Resources.cc4, Properties.Resources.cc5, Properties.Resources.cc6, Properties.Resources.cc7, Properties.Resources.cc8, Properties.Resources.cc9, Properties.Resources.cc10, Properties.Resources.cc11, Properties.Resources.cc12, Properties.Resources.cc13, Properties.Resources.cc14, Properties.Resources.cc15, Properties.Resources.cc16, Properties.Resources.cc17, Properties.Resources.cc18, Properties.Resources.cc19}; coveche1 = new Animacija(slikiCoveche1); coveche2 = new Animacija(slikiCoveche2); tekovna = coveche1; ime1 = "Дени"; ime2 = "Вики"; imetekovno = ime1; }