public Form1(Difficulty dif, Boolean arcadeGame, StartForm f, Player p) { InitializeComponent(); pen = new Pen(Color.BlanchedAlmond, 10); matrixPen = new Pen(Color.Bisque, 3); // za crtanje na pravoagolnichinjata mainGridPen = new Pen(Color.RoyalBlue, 10); // za crtanje na glavniot pravoagolnik level = 1; arcade = arcadeGame; difficulty = dif; ended = false; random = new Random(); blocks = new List <Block>(); lastPressed = Direction.NONE; goodProjectiles = new List <Projectile>(); badProjectiles = new List <Projectile>(); ImgTank = Resources.tankBottom; ImgBlock = Resources.grassUnscaled; DoubleBuffered = true; bounds = new Rectangle(6, 6, this.Bounds.Width - 28, this.Bounds.Height - 50); doubleBuffer = new Bitmap(Width, Height); graphics = CreateGraphics(); setAllTimers(); this.f = f; this.p = p; if (arcade == false) { newGame(difficulty, level); } else { newArcadeGame(); } }
public ShootTheBox(StartForm form, Player player) { InitializeComponent(); DoubleBuffered = true; f = form; this.player = player; newGame(); }
public SettingsForm(StartForm f, Player p) { InitializeComponent(); label1.BackColor = Color.Transparent; radioButton1.BackColor = Color.Transparent; radioButton2.BackColor = Color.Transparent; radioButton3.BackColor = Color.Transparent; radioButton4.BackColor = Color.Transparent; radioButton5.BackColor = Color.Transparent; pictureBox1.BackColor = Color.Transparent; pictureBox2.BackColor = Color.Transparent; this.f = f; this.p = p; }
public Instructions(StartForm f, Player pl) { InitializeComponent(); sf = f; p = pl; }