資源簡介
關于坦克大戰(FANROY):
由于做了幾天后公司又有的新項目,所以就沒時間再繼續下去了,現在聯通試例程序和源碼發布出來。
游戲使用C#開發的,主要是使用GDI+和多線程完成的,雖然還有些不足的地方,不過也不影響玩坦克大戰第一關
快捷鍵:
W:上
S:下
A:坐
D:右
J:子彈/確認
Enter:確認
F1:重新開始游戲
注意:現在只能加載第一幅地圖,也就是1.map(當然,你也可以編輯地圖),以后有時間再加功能,感興趣的朋友也可以自己往下面寫功能(不過不好意思的是由于時間關系,我的注釋并不是很多)
有什么問題可以加QQ:409131517 (請“好心人”不要套我的QQ密碼,我既不是會員,也不是紅綠藍鉆),另外我希望此程序僅用來進行學習交流

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Text;
using?System.Threading;
namespace?TankMe
{
????public?class?Buff
????{
????????private?int?_speed;//對象移動速度
????????private?int?_bulletspeed;//子彈移動速度
????????private?int?_bulledlevel?=?1;//子彈等級?1、2、3、4
????????private?int?_blood=1;//血
????????private?int?_life=1;//生命
????????private?bool?_visible=false;//是否隱身
????????public?delegate?void?LifeChangedHandle(int?life);
????????public?event?LifeChangedHandle?LifeChangedEvent;
????????public?delegate?void?BloodChangeHandle();
????????public?event?BloodChangeHandle?BloodChangeEvent;
????????public?delegate?void?DieHandle();
????????public?event?DieHandle?DieEvent;
????????///?
????????///?對象的速度
????????///?
????????public?int?Speed
????????{
????????????get?{?return?_speed;?}
????????????set?{?_speed?=?value;?}
????????}
????????///?
????????///?對象的子彈速度
????????///?
????????public?int?BulletSpeed
????????{
????????????get?{?return?_bulletspeed;?}
????????????set?{?_bulletspeed?=?value;?}
????????}
????????///?
????????///?子彈等級1234?
????????///?
????????public?int?BulledLevel
????????{
????????????get?{?return?_bulledlevel;?}
????????????set
????????????{
????????????????if?(value?<=?4)
????????????????{
????????????????????_bulledlevel?=?value;
????????????????}
????????????}
????????}
????????///?
????????///?血值
????????///?
????????public?int?Blood
????????{
????????????get?{?return?_blood;?}
????????????set?
????????????{
????????????????_blood?=?value;
????????????????if?(_blood?<=?0)
????????????????{
????????????????????if?(DieEvent?!=?null)
????????????????????{
????????????????????????DieEvent();
????????????????????}
????????????????}
????????????????else
????????????????{
????????????????????if?(BloodChangeEvent?!=?null)
????????????????????{
????????????????????????BloodChangeEvent();
????????????????????}
????????????????}
????????????}
????????}
????????///?
????????///?生命
????????///?
????????public?int?Life
????????{
????????????get?{?return?_life;?}
????????????set
????????????{
????????????????_life?=?value;
????????????????if?(LifeChangedEvent?!=?null)
????????????????{
????????????????????LifeChangedEvent(_life);
????????????????}
????????????}
????????}
????????///?
????????///?隱身
????????///?
????????public?bool?Visible
????????{
????????????get?{?return?_visible;?}
????????????set?{?_visible?=?value;?}
????????}
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????5474??2011-10-29?01:32??C#?坦克大戰\Code\TankMe\TankMe\bin\Debug\Maps\1.map
?????文件???????4751??2011-10-27?11:33??C#?坦克大戰\Code\TankMe\TankMe\bin\Debug\Sounds\a5.mp3
?????文件???????5479??2011-10-27?11:33??C#?坦克大戰\Code\TankMe\TankMe\bin\Debug\Sounds\a6.mp3
?????文件???????5791??2011-10-27?11:34??C#?坦克大戰\Code\TankMe\TankMe\bin\Debug\Sounds\a7.mp3
?????文件???????5999??2011-10-27?11:34??C#?坦克大戰\Code\TankMe\TankMe\bin\Debug\Sounds\a8.mp3
?????文件??????13837??2011-10-27?17:17??C#?坦克大戰\Code\TankMe\TankMe\bin\Debug\Sounds\die.mp3
?????文件???????5791??2011-10-27?11:34??C#?坦克大戰\Code\TankMe\TankMe\bin\Debug\Sounds\die1.mp3
?????文件???????5999??2011-10-27?11:34??C#?坦克大戰\Code\TankMe\TankMe\bin\Debug\Sounds\die2.mp3
?????文件???????8828??2011-10-27?11:34??C#?坦克大戰\Code\TankMe\TankMe\bin\Debug\Sounds\fire.mp3
?????文件???????8828??2011-10-27?11:34??C#?坦克大戰\Code\TankMe\TankMe\bin\Debug\Sounds\hit.mp3
?????文件???????1775??2011-10-26?14:12??C#?坦克大戰\Code\TankMe\TankMe\bin\Debug\Sounds\move.mp3
?????文件??????18988??2011-10-27?11:33??C#?坦克大戰\Code\TankMe\TankMe\bin\Debug\Sounds\stage.mp3
?????文件??????75368??2011-10-26?14:12??C#?坦克大戰\Code\TankMe\TankMe\bin\Debug\Sounds\start.mp3
?????文件???????5479??2011-10-27?11:33??C#?坦克大戰\Code\TankMe\TankMe\bin\Debug\Sounds\steel.mp3
?????文件??????11747??2011-10-27?16:03??C#?坦克大戰\Code\TankMe\TankMe\bin\Debug\Sounds\steel2.mp3
?????文件???????4751??2011-10-27?11:33??C#?坦克大戰\Code\TankMe\TankMe\bin\Debug\Sounds\wall.mp3
?????文件?????430080??2011-10-29?17:27??C#?坦克大戰\Code\TankMe\TankMe\bin\Debug\TankMe.exe
?????文件?????220672??2011-10-29?17:27??C#?坦克大戰\Code\TankMe\TankMe\bin\Debug\TankMe.pdb
?????文件???????5632??2011-10-26?07:11??C#?坦克大戰\Code\TankMe\TankMe\bin\Debug\TankMe.vshost.exe
?????文件???????7020??2011-10-31?09:10??C#?坦克大戰\Code\TankMe\TankMe\bin\x86\Debug\Maps\1.map
?????文件???????1944??2011-10-30?22:55??C#?坦克大戰\Code\TankMe\TankMe\bin\x86\Debug\Maps\111\1.map
?????文件???????1676??2011-10-31?16:30??C#?坦克大戰\Code\TankMe\TankMe\bin\x86\Debug\Maps\111\1a.map
?????文件???????5474??2011-10-29?01:32??C#?坦克大戰\Code\TankMe\TankMe\bin\x86\Debug\Maps\111\9.map
?????文件???????2070??2011-10-31?11:09??C#?坦克大戰\Code\TankMe\TankMe\bin\x86\Debug\Maps\1o.map
?????文件???????4751??2011-10-27?11:33??C#?坦克大戰\Code\TankMe\TankMe\bin\x86\Debug\Sounds\a5.mp3
?????文件???????5479??2011-10-27?11:33??C#?坦克大戰\Code\TankMe\TankMe\bin\x86\Debug\Sounds\a6.mp3
?????文件???????5791??2011-10-27?11:34??C#?坦克大戰\Code\TankMe\TankMe\bin\x86\Debug\Sounds\a7.mp3
?????文件???????5999??2011-10-27?11:34??C#?坦克大戰\Code\TankMe\TankMe\bin\x86\Debug\Sounds\a8.mp3
?????文件??????13837??2011-10-27?17:17??C#?坦克大戰\Code\TankMe\TankMe\bin\x86\Debug\Sounds\die.mp3
?????文件???????5791??2011-10-27?11:34??C#?坦克大戰\Code\TankMe\TankMe\bin\x86\Debug\Sounds\die1.mp3
............此處省略226個文件信息
- 上一篇:基于ASP.NET的電影院購票系統
- 下一篇:ASP.Net課程設計考試管理系統
評論
共有 條評論