提交 45219783 编写于 作者: ballballqwq's avatar ballballqwq

上传新文件

上级 0ffb74ea
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Threading;
namespace CannonPlane
{
class Bullet
{
public const int R = 3;
public const int speed = 10;
public int X { get; set; }
public int Y { get; set; }
public void Draw(Graphics e)
{
e.FillEllipse(new SolidBrush(Color.Gold), X, Y, R * 2, R * 2);
e.FillEllipse(new SolidBrush(Color.Black), X, Y+ speed, R * 2, R * 2);
}
public void Move()
{
Y = Y - speed;
}
public void Drawfe(Graphics e)
{
e.FillEllipse(new SolidBrush(Color.White), X, Y, R * 2*5, R * 2 * 5);
e.FillEllipse(new SolidBrush(Color.Black), X, Y - speed * 3, R * 2 * 5, R * 2 * 5);
}
public void Movefe()
{
Y = Y + speed*3;
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册