PlaneGame/Player.cs

(开头部分) 4KB

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

using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using System.Windows.Forms;

namespace PlaneGame
{
    public class Player:Plane
    {
        private int expolecount = 0;
        private bool _expole = false;
        private bool _planeflag = false;
        Bitmap player = global::PlaneGame.Properties.Resources.ship;
        Bitmap exp = global::PlaneGame.Properties.Resources.flame;

        /// <summary>
        /// 判断是否结束爆炸
        /// </summary>
        public bool expole
        {
            get { return _expole; }
            set { _expole = value; }
        }

        /// <summary>
        /// 飞机刷新延迟
        /// </summary>
        public bool planeflag
        {
            get { return _planeflag; }
            set { _planeflag = value; }
        }       

        /// <summary>
        /// 玩家子弹移动
        /// </summary>
        public void PlaybulletMove(bullet[] Playbullet,PaintEventArgs e)
        {
            for (int i = 0; i < Playbullet.Length; i++)
            {
                if (Playbullet[i] != null)
                {

                    Playbullet[i].bulltet_y = Playbullet[i].bulltet_y - Playbullet[i].Spleed;

                    if (Playbullet[i].bulltet_y <= 0)
                    {
                        Playbullet[i] = null;
                    }
                    else
                    {
                        e.Graphics.DrawImage(Playbullet[i].Style, Playbullet[i].bulltet_x, Playbullet[i].bulltet_y, new Rectangle(0, 0, Playbullet[i].width, Playbullet[i].height), GraphicsUnit.Pixel);
                    }
                }
            }
        }         
             
        /// <summary>
        /// 更新玩家
后面还有 70 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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