FormMian.cs

(开头部分) 7KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

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 FormMian : Form
    {
        public FormMian()
        {
            InitializeComponent();
            this.SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer | ControlStyles.ResizeRedraw, true);//图片缓冲
            Bird birdH = new Bird();
            birdH.Picture = ResourceClass.RedBird;
            birdH.Width = 70;
            birdH.Height = 70;
            birdH.Y = 100;
            birdH.X = 200;
            birds.Add(birdH);

            Bird birdL = new Bird();
            birdL.Picture = ResourceClass.BlueBird;
            birdL.Width = 70;
            birdL.Height = 70;
            birdL.X = 300;
            birdL.Y = 100;
         //   birds.Add(birdL);

            Rectangle load1 = new Rectangle(0,711,ResourceClass.Load.Width,ResourceClass.Load.Height);
            Rectangle load2 = new Rectangle(ResourceClass.Load.Width, 711, ResourceClass.Load.Width, ResourceClass.Load.Height);
            loads.Add(load1);
            loads.Add(load2);

            Post post = new Post();
            post.Width = ResourceClass.top.Width;
            post.Height = ResourceClass.top.Height;
            post.X = this.Width;
            post.Y = -(rd.Next(0, ResourceClass.top.Height))+70 - kj;
            post.Image = ResourceClass.top;
            post.IsTop = 1;
            posts.Add(post);

            Post post1 = new Post();
            post1.Width = ResourceClass.top.Width;
            post1.Height = ResourceClass.top.Height;
            post1.X = this.Width;
            post1.Y = post.Y+post.Height+kj;
            post1.Image = ResourceClass.down;
            post1.IsTop = 0;
            posts.Add(post1);
        }
        List<Bird> birds = new List<Bird>();
        List<Rectangle> loads = new List<Rectangle>();
        List<Post> posts = new List<Post>();
后面还有 135 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。