資源簡介
使用面向?qū)ο蟮乃枷耄ɡ^承和派生),并借助窗體重載OnPaint方法實現(xiàn)飛機、子彈、爆炸的繪制效果。代碼中使用大量注釋,以幫助讀者更好的理解代碼
【調(diào)試說明】
打開游戲后,回車即可開始游戲,上下左右鍵 用于 控制戰(zhàn)機方向
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Linq;
using?System.Text;
using?System.Drawing;
using?System.Windows.Forms;
namespace?Warcraft
{
????public?class?Airplane?:?baseClass
????{
????????#region?新增屬性
????????///?
????????///?是否存活
????????///?
????????public?bool?State?{?get;?set;?}
????????///?
????????///?生命值
????????///?
????????public?int?Life?{?get;?set;?}
????????///?
????????///?飛機類型
????????///?
????????public?int?Type?{?get;?set;?}
????????#endregion
????????#region?構(gòu)造函數(shù)
????????public?Airplane()
????????{
????????}
????????#endregion
????????#region?虛方法
????????///?
????????///?控制飛機移動
????????///?
????????protected?virtual?void?Move()
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????2312??2019-03-07?16:19??飛機\Warcraft\Airplane.cs
?????文件???????1002??2019-03-06?11:14??飛機\Warcraft\AirplaneDirection.cs
?????文件???????1624??2019-03-08?11:47??飛機\Warcraft\Background.cs
?????文件???????1952??2019-03-07?15:21??飛機\Warcraft\ba
?????文件??????22528??2019-03-19?17:49??飛機\Warcraft\bin\Debug\Warcraft.exe
?????文件??????71168??2019-03-19?17:49??飛機\Warcraft\bin\Debug\Warcraft.pdb
?????文件??????11600??2019-03-19?17:50??飛機\Warcraft\bin\Debug\Warcraft.vshost.exe
?????文件????????490??2018-04-12?07:35??飛機\Warcraft\bin\Debug\Warcraft.vshost.exe.manifest
?????文件????????177??2019-03-08?11:32??飛機\Warcraft\BoseAirplane.cs
?????文件???????4952??2019-03-08?08:59??飛機\Warcraft\Bullet.cs
?????文件???????3971??2019-03-15?20:30??飛機\Warcraft\ClassDiagram1.cd
?????文件???????4978??2019-03-08?08:59??飛機\Warcraft\EnemyPlane.cs
?????文件???????3307??2019-03-19?17:48??飛機\Warcraft\Equipment.cs
?????文件???????3303??2019-03-07?23:09??飛機\Warcraft\Explode.cs
?????文件????????570??2019-03-08?08:49??飛機\Warcraft\GameState.cs
?????文件????????679??2019-03-06?11:11??飛機\Warcraft\image\42.png
?????文件?????338150??2019-03-06?11:11??飛機\Warcraft\image\601c6a6627fee5110343bc3e50a11ee1.jpg
?????文件?????146334??2019-03-06?11:11??飛機\Warcraft\image\8d5cb4dcfa7e40e89c491402c0d743fe.jpg
?????文件?????192719??2019-03-06?11:11??飛機\Warcraft\image\915156cba3e1bf86137790606e0f53d9.jpg
?????文件?????142881??2019-03-06?11:11??飛機\Warcraft\image\989dcfa1b5fae71d110b65ced78a7a37.jpg
?????文件?????533336??2019-03-06?11:11??飛機\Warcraft\image\back1.png
?????文件??????11586??2019-03-06?11:11??飛機\Warcraft\image\bg.png
?????文件??????14020??2019-03-06?11:11??飛機\Warcraft\image\boss.png
?????文件???????1012??2019-03-06?11:11??飛機\Warcraft\image\bossbullet.png
?????文件????????861??2019-03-06?11:11??飛機\Warcraft\image\bullet.png
?????文件????????769??2019-03-06?11:11??飛機\Warcraft\image\bullet1.png
?????文件???????5300??2019-03-06?11:11??飛機\Warcraft\image\bulletbox1.png
?????文件???????5369??2019-03-06?11:11??飛機\Warcraft\image\bulletbox2.png
?????文件???????7348??2019-03-06?11:11??飛機\Warcraft\image\bulletbox3.png
?????文件?????117832??2019-03-06?11:11??飛機\Warcraft\image\ce115e3a131c0920dd590a3f9795ffef.jpg
............此處省略80個文件信息
- 上一篇:Unity太空射擊游戲源碼
- 下一篇:c#調(diào)用大漠插件
評論
共有 條評論