SimpleGame

所属分类:游戏
开发工具:C#
文件大小:264KB
下载次数:1
上传日期:2013-05-26 23:12:50
上 传 者acao1234
说明:   游戏控制 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 (14848, 2008-12-02)
SimpleGame\SimpleGame\TankGame1\Base\BattleObject.cs (464, 2008-12-06)
SimpleGame\SimpleGame\TankGame1\Base\LifeObject.cs (4624, 2008-12-06)
SimpleGame\SimpleGame\TankGame1\bin\Debug\audio\explode.WAV (22930, 2008-11-04)
SimpleGame\SimpleGame\TankGame1\bin\Debug\FeatherskyGameEngine.dll (58880, 2008-12-08)
SimpleGame\SimpleGame\TankGame1\bin\Debug\FeatherskyGameEngine.pdb (151040, 2008-12-08)
SimpleGame\SimpleGame\TankGame1\bin\Debug\flie (0, 2008-11-08)
SimpleGame\SimpleGame\TankGame1\bin\Debug\Interop.SpeechLib.dll (163840, 2008-11-18)
SimpleGame\SimpleGame\TankGame1\bin\Debug\pic\bullet_down.gif (855, 2008-03-22)
SimpleGame\SimpleGame\TankGame1\bin\Debug\pic\bullet_left.gif (839, 2008-03-22)
SimpleGame\SimpleGame\TankGame1\bin\Debug\pic\bullet_right.gif (839, 2008-03-22)
SimpleGame\SimpleGame\TankGame1\bin\Debug\pic\bullet_up.gif (852, 2008-03-22)
SimpleGame\SimpleGame\TankGame1\bin\Debug\pic\explode.gif (4942, 2008-03-25)
SimpleGame\SimpleGame\TankGame1\bin\Debug\pic\flower.gif (1132, 2008-11-07)
SimpleGame\SimpleGame\TankGame1\bin\Debug\pic\tank_down.gif (1305, 2008-03-22)
SimpleGame\SimpleGame\TankGame1\bin\Debug\pic\tank_left.gif (1276, 2008-03-22)
SimpleGame\SimpleGame\TankGame1\bin\Debug\pic\tank_right.gif (1265, 2008-03-22)
SimpleGame\SimpleGame\TankGame1\bin\Debug\pic\tank_up.gif (1305, 2008-03-22)
SimpleGame\SimpleGame\TankGame1\bin\Debug\pic\Thumbs.db (163840, 2008-11-19)
SimpleGame\SimpleGame\TankGame1\bin\Debug\pic\tree.gif (3098, 2008-11-06)
SimpleGame\SimpleGame\TankGame1\bin\Debug\pic\turtle_left.gif (2428, 2008-11-19)
SimpleGame\SimpleGame\TankGame1\bin\Debug\TankGame.vshost.exe (14328, 2008-04-05)
SimpleGame\SimpleGame\TankGame1\bin\Debug\TankGame.vshost.exe.manifest (490, 2007-07-21)
SimpleGame\SimpleGame\TankGame1\bin\Debug\TankGame1.exe (13824, 2013-01-13)
SimpleGame\SimpleGame\TankGame1\bin\Debug\TankGame1.pdb (54784, 2013-01-13)
SimpleGame\SimpleGame\TankGame1\bin\Debug\TankGame1.vshost.exe (11592, 2013-01-20)
SimpleGame\SimpleGame\TankGame1\bin\Debug\TankGame1.vshost.exe.manifest (490, 2009-06-11)
SimpleGame\SimpleGame\TankGame1\ForTankGame\Bullet.cs (1685, 2008-12-08)
SimpleGame\SimpleGame\TankGame1\ForTankGame\Config.cs (237, 2008-03-31)
SimpleGame\SimpleGame\TankGame1\ForTankGame\MouseObject.cs (1404, 2008-12-06)
SimpleGame\SimpleGame\TankGame1\ForTankGame\StillObject.cs (1804, 2008-12-06)
SimpleGame\SimpleGame\TankGame1\ForTankGame\Tank.cs (3276, 2008-12-06)
SimpleGame\SimpleGame\TankGame1\ForTankGame\游戏编程说明.txt (1039, 2008-12-06)
SimpleGame\SimpleGame\TankGame1\GameForm.cs (2488, 2008-12-08)
SimpleGame\SimpleGame\TankGame1\GameForm.Designer.cs (1688, 2008-12-06)
SimpleGame\SimpleGame\TankGame1\GameForm.resx (5814, 2008-12-02)
SimpleGame\SimpleGame\TankGame1\obj\Debug\ResolveAssemblyReference.cache (6115, 2013-01-13)
SimpleGame\SimpleGame\TankGame1\obj\Debug\SimpleGame.csproj.FileListAbsolute.txt (1546, 2013-01-20)
SimpleGame\SimpleGame\TankGame1\obj\Debug\SimpleGame.csproj.GenerateResource.Cache (850, 2008-12-08)
SimpleGame\SimpleGame\TankGame1\obj\Debug\TankGame.GameForm.resources (180, 2013-01-13)
... ...

近期下载者

相关文件


收藏者