PlantWar/Models/HeroBoom.cs
(完整代码) 971Busing PlantWar.Properties;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
namespace PlantWar.Models
{
class HeroBoom : Boom
{
private Image[] imgs = {
Resources.hero_blowup_n1,
Resources.hero_blowup_n2,
Resources.hero_blowup_n3,
Resources.hero_blowup_n4
};
public HeroBoom(int x, int y)
: base(x, y)
{ }
public override void Draw(Graphics g)
{
for (int i = 0; i < imgs.Length; i++)
{
g.DrawImage(imgs[i], this.X, this.Y,imgs[i].Width/2, imgs[i].Height / 2);
}
//绘制完成后 应该将爆炸的图片移除
SingleObject.GetSingle().RemoveGameObject(this);
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。