资源简介
发出一个游戏给大家下来玩,借鉴,参考 ,谢谢大家的支持!!!!

代码片段和文件信息
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DragonQuest.General;
using System.Drawing;
namespace DragonQuest
{
public class BloodBar : Element
{
//血条的单位长度
private const int WIDTH = 1;
//血条的高度
private const int HEIGHT = 10;
private int allLife nowLife;
public BloodBar(int x int y int allLife)
: base(x y)
{
this.allLife = allLife;
this.nowLife = allLife;
}
public int NowLife
{
set
{
if (nowLife > allLife)
{
allLife = nowLife;
}
nowLife = value;
}
}
public override void Draw(System.Drawing.Graphics g)
{
g.DrawString(“Life:“ new Font(“Arial“ 10f) new SolidBrush(Color.Red) x - 30 y - 3);
g.DrawRectangle(new Pen(Color.Red) x y WIDTH * allLife HEIGHT);
g.FillRectangle(new SolidBrush(Color.Red) x y WIDTH * nowLife HEIGHT);
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 36352 2010-12-22 11:22 完整版游戏\DragonQuest\bin\Debug\DragonQuest.exe
文件 132608 2010-12-22 11:22 完整版游戏\DragonQuest\bin\Debug\DragonQuest.pdb
文件 14328 2010-12-22 11:26 完整版游戏\DragonQuest\bin\Debug\DragonQuest.vshost.exe
文件 490 2007-07-21 01:33 完整版游戏\DragonQuest\bin\Debug\DragonQuest.vshost.exe.manifest
文件 31747 2010-12-22 11:22 完整版游戏\DragonQuest\bin\Debug\images\background.png
文件 35870 2010-12-22 11:22 完整版游戏\DragonQuest\bin\Debug\images\background1.png
文件 284 2010-12-22 11:22 完整版游戏\DragonQuest\bin\Debug\images\blast1_0.gif
文件 423 2010-12-22 11:22 完整版游戏\DragonQuest\bin\Debug\images\blast1_1.gif
文件 680 2010-12-22 11:22 完整版游戏\DragonQuest\bin\Debug\images\blast1_2.gif
文件 740 2010-12-22 11:22 完整版游戏\DragonQuest\bin\Debug\images\blast1_3.gif
文件 765 2010-12-22 11:22 完整版游戏\DragonQuest\bin\Debug\images\blast1_4.gif
文件 624 2010-12-22 11:22 完整版游戏\DragonQuest\bin\Debug\images\blast1_5.gif
文件 500 2010-12-22 11:22 完整版游戏\DragonQuest\bin\Debug\images\blast1_6.gif
文件 286 2010-12-22 11:22 完整版游戏\DragonQuest\bin\Debug\images\blast1_7.gif
文件 241 2010-12-22 11:22 完整版游戏\DragonQuest\bin\Debug\images\blast1_8.gif
文件 907 2010-12-22 11:22 完整版游戏\DragonQuest\bin\Debug\images\blast2_0.gif
文件 1224 2010-12-22 11:22 完整版游戏\DragonQuest\bin\Debug\images\blast2_1.gif
文件 5288 2010-12-22 11:22 完整版游戏\DragonQuest\bin\Debug\images\blast2_2.gif
文件 1971 2010-12-22 11:22 完整版游戏\DragonQuest\bin\Debug\images\blast2_3.gif
文件 6458 2010-12-22 11:22 完整版游戏\DragonQuest\bin\Debug\images\blast2_4.gif
文件 8367 2010-12-22 11:22 完整版游戏\DragonQuest\bin\Debug\images\blast2_5.gif
文件 9076 2010-12-22 11:22 完整版游戏\DragonQuest\bin\Debug\images\blast2_6.gif
文件 8988 2010-12-22 11:22 完整版游戏\DragonQuest\bin\Debug\images\blast2_7.gif
文件 3592 2010-12-22 11:22 完整版游戏\DragonQuest\bin\Debug\images\blast2_8.gif
文件 22019 2010-12-22 11:22 完整版游戏\DragonQuest\bin\Debug\images\blast3_0.gif
文件 19907 2010-12-22 11:22 完整版游戏\DragonQuest\bin\Debug\images\blast3_1.gif
文件 19907 2010-12-22 11:22 完整版游戏\DragonQuest\bin\Debug\images\blast3_2.gif
文件 18945 2010-12-22 11:22 完整版游戏\DragonQuest\bin\Debug\images\blast3_3.gif
文件 18945 2010-12-22 11:22 完整版游戏\DragonQuest\bin\Debug\images\blast3_4.gif
文件 14283 2010-12-22 11:22 完整版游戏\DragonQuest\bin\Debug\images\blast3_5.gif
............此处省略158个文件信息
相关资源
- asp.net C#购物车源代码
- C#实时网络流量监听源码
- C#百度地图源码
- Visual C#.2010从入门到精通配套源程序
- C# 软件版本更新
- C#屏幕软键盘源码,可以自己定制界面
- 智慧城市 智能家居 C# 源代码
- c#获取mobile手机的IMEI和IMSI
- C#实现简单QQ聊天程序
- 操作系统 模拟的 欢迎下载 C#版
- C#写的计算机性能监控程序
- 用C#实现邮件发送,有点类似于outlo
- MVC model层代码生成器 C#
- c#小型图书销售系统
- C# Socket Server Client 通讯应用 完整的服
- c# winform 自动登录 百度账户 源代码
- C#编写的16进制计算器
- C#TCP通信协议
- C# 数据表(Dataset)操作 合并 查询一
- C#语音识别系统speechsdk51,SpeechSDK51L
- 数据库备份还原工具1.0 C# 源码
-
[免费]xm
lDocument 节点遍历C# - EQ2008LEDc#开发实例
- DirectX.Capturec# winform 操作摄像头录像附
- c# 实现的最大最小距离方法对鸢尾花
- C#版保龄球记分代码
- C#自定义控件
- 基于c#的实验室设备管理系统621530
- C# 使用ListView控件实现图片浏览器(源
- C#简单窗体聊天程序
评论
共有 条评论