文件名称:SimpleGame
- 所属分类:
- 其他智力游戏
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2013-05-27
- 文件大小:
- 264kb
- 下载次数:
- 0次
- 提 供 者:
- 李**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
游戏控制 W,A,S,D, P
unit, pic, audio目录不可缺少
只用研究StillObject.cs Tank.cs GameForm.cs即可编程,非常简单
每一个类继承 LifeObject类 首先研究StillObject.cs
然后研究Tank.cs
其中重要的几点是
UnitID 表示物体对应的图片 放在pic目录下
Behave 每回合系统调用此函数执行物体自身的行为
Show 显示函数
RunInto 当物体撞上其他物体时,系统会调用此函数进行处理
Disppear 当物体消失,可调用此函数从游戏世界中退出
然后研究 GameForm 的 Initial 函数 加入你自己的物体即可
所有物体若要从游戏世界中退出 只需调用其Disappear()函数
举例在 GameForm 的ProcessCmdKey(ref Message msg, Keys keyData)中
flower.Disppear()
-Game Controls W, A, S, D, P unit, pic, audio catalog indispensable research StillObject.cs Tank.cs GameForm.cs only to programming, very simple class that inherits LifeObject each class and then study the first study StillObject.cs Tank.cs One of the important points are UnitID represent objects corresponding picture on pic directory Behave per round system calls this function to perform the behavior of the object itself functions RunInto Show Displays when an object hit other objects, the system will call this function processing Disppear when the object disappears, you can call this function to exit from the game world and then the Initial research GameForm function to add your own objects to all objects To exit from the game world simply call it Disappear () function is an example of ProcessCmdKey in GameForm (ref Message msg, Keys keyData) in flower.Disppear ()
(系统自动生成,下载前可以参看下载内容)
下载文件列表
SimpleGame\SimpleGame\SimpleGame.suo
..........\..........\TankGame1\Base\BattleObject.cs
..........\..........\.........\....\LifeObject.cs
..........\..........\.........\bin\Debug\audio\explode.WAV
..........\..........\.........\...\.....\FeatherskyGameEngine.dll
..........\..........\.........\...\.....\FeatherskyGameEngine.pdb
..........\..........\.........\...\.....\flie
..........\..........\.........\...\.....\Interop.SpeechLib.dll
..........\..........\.........\...\.....\pic\bullet_down.gif
..........\..........\.........\...\.....\...\bullet_left.gif
..........\..........\.........\...\.....\...\bullet_right.gif
..........\..........\.........\...\.....\...\bullet_up.gif
..........\..........\.........\...\.....\...\explode.gif
..........\..........\.........\...\.....\...\flower.gif
..........\..........\.........\...\.....\...\tank_down.gif
..........\..........\.........\...\.....\...\tank_left.gif
..........\..........\.........\...\.....\...\tank_right.gif
..........\..........\.........\...\.....\...\tank_up.gif
..........\..........\.........\...\.....\...\Thumbs.db
..........\..........\.........\...\.....\...\tree.gif
..........\..........\.........\...\.....\...\turtle_left.gif
..........\..........\.........\...\.....\TankGame.vshost.exe
..........\..........\.........\...\.....\TankGame.vshost.exe.manifest
..........\..........\.........\...\.....\TankGame1.exe
..........\..........\.........\...\.....\TankGame1.pdb
..........\..........\.........\...\.....\TankGame1.vshost.exe
..........\..........\.........\...\.....\TankGame1.vshost.exe.manifest
..........\..........\.........\ForTankGame\Bullet.cs
..........\..........\.........\...........\Config.cs
..........\..........\.........\...........\MouseObject.cs
..........\..........\.........\...........\StillObject.cs
..........\..........\.........\...........\Tank.cs
..........\..........\.........\...........\游戏编程说明.txt
..........\..........\.........\GameForm.cs
..........\..........\.........\GameForm.Designer.cs
..........\..........\.........\GameForm.resx
..........\..........\.........\obj\Debug\ResolveAssemblyReference.cache
..........\..........\.........\...\.....\SimpleGame.csproj.FileListAbsolute.txt
..........\..........\.........\...\.....\SimpleGame.csproj.GenerateResource.Cache
..........\..........\.........\...\.....\TankGame.GameForm.resources
..........\..........\.........\...\.....\TankGame.Properties.Resources.resources
..........\..........\.........\...\.....\TankGame1.exe
..........\..........\.........\...\.....\TankGame1.pdb
..........\..........\.........\Program.cs
..........\..........\.........\...perties\AssemblyInfo.cs
..........\..........\.........\..........\Resources.Designer.cs
..........\..........\.........\..........\Resources.resx
..........\..........\.........\..........\Settings.Designer.cs
..........\..........\.........\..........\Settings.settings
..........\..........\.........\SimpleGame.csproj
..........\..........\.........\SimpleGame.csproj.user
..........\..........\TankGame1.sln
..........\..........\TankGame1.suo
..........\..........\游戏编程说明.txt
..........\..........\TankGame1\bin\Debug\audio
..........\..........\.........\...\.....\pic
..........\..........\.........\...\.....\unit
..........\..........\.........\obj\Debug\TempPE
..........\..........\.........\bin\Debug
..........\..........\.........\obj\Debug
..........\..........\.........\Base
..........\..........\.........\bin
..........\..........\.........\ForTankGame
..........\..........\.........\obj
..........\..........\.........\Properties
..........\..........\TankGame1
..........\SimpleGame
SimpleGame