using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace 鸟
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
//创建游戏区
Panel gm = new Panel();
//创建管子
Timer guan = new Timer();
//创建鸟
PictureBox bird = new PictureBox();
//创建鸟飞计时器
Timer fly = new Timer();
//管子移动
Timer move = new Timer();
//释放管子装在这里
List<PictureBox> gz = new List<PictureBox>();
//创建得分
Label df = new Label();
//随机
Random r = new Random();
private void Form1_Load(object sender, EventArgs e)
{
this.Size = new Size(500, 500);
this.Location = new Point(Screen.PrimaryScreen.Bounds.Width / 2 - this.Width / 2, Screen.PrimaryScreen.Bounds.Height / 2 - this.Height / 2);
//创建游戏区
gm.Size = n