public Play() { InitializeComponent(); rows = 10; columns = 10; offset = 20; comboTimerTicks = 0; time = 120; freezeSeconds = 0; squareWidth = Resources._1.Width + 5; this.CenterToScreen(); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.Height = 8 * offset + rows * squareWidth; this.Width = 3 * offset + columns * squareWidth - 15; this.BackColor = System.Drawing.Color.Black; this.DoubleBuffered = true; comboScore = false; bombWeaponSelected = false; cutWeaponSelected = false; freezeWeaponSelected = false; bombUsed = false; cutUsed = false; freezeUsed = false; nosTimer.Start(); font = new Fonts("lgs.ttf", 28); sMatrix = new SquaresMatrix(rows, columns, squareWidth, offset); bomb = new Square(80 + rows * squareWidth, offset + 150, squareWidth); bomb.image = Resources.bomb; bomb.imageSelected = Resources.bomb_selected; bomb.imageDefault = Resources.no_bomb; cut = new Square(80 + rows * squareWidth, offset + 195, squareWidth); cut.image = Resources.cut_sword; cut.imageSelected = Resources.cut_sword_selected; cut.imageDefault = Resources.no_sword; freeze = new Square(80 + rows * squareWidth, offset + 240, squareWidth); freeze.image = Resources.freeze_time; freeze.imageSelected = Resources.no_freeze_time; mute = new Square(80 + rows * squareWidth, this.Width - squareWidth - offset - 5, squareWidth); mute.image = Resources.volume; mute.imageSelected = Resources.volume_off; }