文件名称:SimpleGame
-
所属分类:
- 标签属性:
- 上传时间:2013-05-27
-
文件大小:264.04kb
-
已下载: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
SimpleGame/SimpleGame/TankGame1/Base/BattleObject.cs
SimpleGame/SimpleGame/TankGame1/Base/LifeObject.cs
SimpleGame/SimpleGame/TankGame1/bin/Debug/audio/explode.WAV
SimpleGame/SimpleGame/TankGame1/bin/Debug/FeatherskyGameEngine.dll
SimpleGame/SimpleGame/TankGame1/bin/Debug/FeatherskyGameEngine.pdb
SimpleGame/SimpleGame/TankGame1/bin/Debug/flie
SimpleGame/SimpleGame/TankGame1/bin/Debug/Interop.SpeechLib.dll
SimpleGame/SimpleGame/TankGame1/bin/Debug/pic/bullet_down.gif
SimpleGame/SimpleGame/TankGame1/bin/Debug/pic/bullet_left.gif
SimpleGame/SimpleGame/TankGame1/bin/Debug/pic/bullet_right.gif
SimpleGame/SimpleGame/TankGame1/bin/Debug/pic/bullet_up.gif
SimpleGame/SimpleGame/TankGame1/bin/Debug/pic/explode.gif
SimpleGame/SimpleGame/TankGame1/bin/Debug/pic/flower.gif
SimpleGame/SimpleGame/TankGame1/bin/Debug/pic/tank_down.gif
SimpleGame/SimpleGame/TankGame1/bin/Debug/pic/tank_left.gif
SimpleGame/SimpleGame/TankGame1/bin/Debug/pic/tank_right.gif
SimpleGame/SimpleGame/TankGame1/bin/Debug/pic/tank_up.gif
SimpleGame/SimpleGame/TankGame1/bin/Debug/pic/Thumbs.db
SimpleGame/SimpleGame/TankGame1/bin/Debug/pic/tree.gif
SimpleGame/SimpleGame/TankGame1/bin/Debug/pic/turtle_left.gif
SimpleGame/SimpleGame/TankGame1/bin/Debug/TankGame.vshost.exe
SimpleGame/SimpleGame/TankGame1/bin/Debug/TankGame.vshost.exe.manifest
SimpleGame/SimpleGame/TankGame1/bin/Debug/TankGame1.exe
SimpleGame/SimpleGame/TankGame1/bin/Debug/TankGame1.pdb
SimpleGame/SimpleGame/TankGame1/bin/Debug/TankGame1.vshost.exe
SimpleGame/SimpleGame/TankGame1/bin/Debug/TankGame1.vshost.exe.manifest
SimpleGame/SimpleGame/TankGame1/ForTankGame/Bullet.cs
SimpleGame/SimpleGame/TankGame1/ForTankGame/Config.cs
SimpleGame/SimpleGame/TankGame1/ForTankGame/MouseObject.cs
SimpleGame/SimpleGame/TankGame1/ForTankGame/StillObject.cs
SimpleGame/SimpleGame/TankGame1/ForTankGame/Tank.cs
SimpleGame/SimpleGame/TankGame1/ForTankGame/游戏编程说明.txt
SimpleGame/SimpleGame/TankGame1/GameForm.cs
SimpleGame/SimpleGame/TankGame1/GameForm.Designer.cs
SimpleGame/SimpleGame/TankGame1/GameForm.resx
SimpleGame/SimpleGame/TankGame1/obj/Debug/ResolveAssemblyReference.cache
SimpleGame/SimpleGame/TankGame1/obj/Debug/SimpleGame.csproj.FileListAbsolute.txt
SimpleGame/SimpleGame/TankGame1/obj/Debug/SimpleGame.csproj.GenerateResource.Cache
SimpleGame/SimpleGame/TankGame1/obj/Debug/TankGame.GameForm.resources
SimpleGame/SimpleGame/TankGame1/obj/Debug/TankGame.Properties.Resources.resources
SimpleGame/SimpleGame/TankGame1/obj/Debug/TankGame1.exe
SimpleGame/SimpleGame/TankGame1/obj/Debug/TankGame1.pdb
SimpleGame/SimpleGame/TankGame1/Program.cs
SimpleGame/SimpleGame/TankGame1/Properties/AssemblyInfo.cs
SimpleGame/SimpleGame/TankGame1/Properties/Resources.Designer.cs
SimpleGame/SimpleGame/TankGame1/Properties/Resources.resx
SimpleGame/SimpleGame/TankGame1/Properties/Settings.Designer.cs
SimpleGame/SimpleGame/TankGame1/Properties/Settings.settings
SimpleGame/SimpleGame/TankGame1/SimpleGame.csproj
SimpleGame/SimpleGame/TankGame1/SimpleGame.csproj.user
SimpleGame/SimpleGame/TankGame1.sln
SimpleGame/SimpleGame/TankGame1.suo
SimpleGame/SimpleGame/游戏编程说明.txt
SimpleGame/SimpleGame/TankGame1/bin/Debug/audio
SimpleGame/SimpleGame/TankGame1/bin/Debug/pic
SimpleGame/SimpleGame/TankGame1/bin/Debug/unit
SimpleGame/SimpleGame/TankGame1/obj/Debug/TempPE
SimpleGame/SimpleGame/TankGame1/bin/Debug
SimpleGame/SimpleGame/TankGame1/obj/Debug
SimpleGame/SimpleGame/TankGame1/Base
SimpleGame/SimpleGame/TankGame1/bin
SimpleGame/SimpleGame/TankGame1/ForTankGame
SimpleGame/SimpleGame/TankGame1/obj
SimpleGame/SimpleGame/TankGame1/Properties
SimpleGame/SimpleGame/TankGame1
SimpleGame/SimpleGame
SimpleGame
SimpleGame/SimpleGame/TankGame1/Base/BattleObject.cs
SimpleGame/SimpleGame/TankGame1/Base/LifeObject.cs
SimpleGame/SimpleGame/TankGame1/bin/Debug/audio/explode.WAV
SimpleGame/SimpleGame/TankGame1/bin/Debug/FeatherskyGameEngine.dll
SimpleGame/SimpleGame/TankGame1/bin/Debug/FeatherskyGameEngine.pdb
SimpleGame/SimpleGame/TankGame1/bin/Debug/flie
SimpleGame/SimpleGame/TankGame1/bin/Debug/Interop.SpeechLib.dll
SimpleGame/SimpleGame/TankGame1/bin/Debug/pic/bullet_down.gif
SimpleGame/SimpleGame/TankGame1/bin/Debug/pic/bullet_left.gif
SimpleGame/SimpleGame/TankGame1/bin/Debug/pic/bullet_right.gif
SimpleGame/SimpleGame/TankGame1/bin/Debug/pic/bullet_up.gif
SimpleGame/SimpleGame/TankGame1/bin/Debug/pic/explode.gif
SimpleGame/SimpleGame/TankGame1/bin/Debug/pic/flower.gif
SimpleGame/SimpleGame/TankGame1/bin/Debug/pic/tank_down.gif
SimpleGame/SimpleGame/TankGame1/bin/Debug/pic/tank_left.gif
SimpleGame/SimpleGame/TankGame1/bin/Debug/pic/tank_right.gif
SimpleGame/SimpleGame/TankGame1/bin/Debug/pic/tank_up.gif
SimpleGame/SimpleGame/TankGame1/bin/Debug/pic/Thumbs.db
SimpleGame/SimpleGame/TankGame1/bin/Debug/pic/tree.gif
SimpleGame/SimpleGame/TankGame1/bin/Debug/pic/turtle_left.gif
SimpleGame/SimpleGame/TankGame1/bin/Debug/TankGame.vshost.exe
SimpleGame/SimpleGame/TankGame1/bin/Debug/TankGame.vshost.exe.manifest
SimpleGame/SimpleGame/TankGame1/bin/Debug/TankGame1.exe
SimpleGame/SimpleGame/TankGame1/bin/Debug/TankGame1.pdb
SimpleGame/SimpleGame/TankGame1/bin/Debug/TankGame1.vshost.exe
SimpleGame/SimpleGame/TankGame1/bin/Debug/TankGame1.vshost.exe.manifest
SimpleGame/SimpleGame/TankGame1/ForTankGame/Bullet.cs
SimpleGame/SimpleGame/TankGame1/ForTankGame/Config.cs
SimpleGame/SimpleGame/TankGame1/ForTankGame/MouseObject.cs
SimpleGame/SimpleGame/TankGame1/ForTankGame/StillObject.cs
SimpleGame/SimpleGame/TankGame1/ForTankGame/Tank.cs
SimpleGame/SimpleGame/TankGame1/ForTankGame/游戏编程说明.txt
SimpleGame/SimpleGame/TankGame1/GameForm.cs
SimpleGame/SimpleGame/TankGame1/GameForm.Designer.cs
SimpleGame/SimpleGame/TankGame1/GameForm.resx
SimpleGame/SimpleGame/TankGame1/obj/Debug/ResolveAssemblyReference.cache
SimpleGame/SimpleGame/TankGame1/obj/Debug/SimpleGame.csproj.FileListAbsolute.txt
SimpleGame/SimpleGame/TankGame1/obj/Debug/SimpleGame.csproj.GenerateResource.Cache
SimpleGame/SimpleGame/TankGame1/obj/Debug/TankGame.GameForm.resources
SimpleGame/SimpleGame/TankGame1/obj/Debug/TankGame.Properties.Resources.resources
SimpleGame/SimpleGame/TankGame1/obj/Debug/TankGame1.exe
SimpleGame/SimpleGame/TankGame1/obj/Debug/TankGame1.pdb
SimpleGame/SimpleGame/TankGame1/Program.cs
SimpleGame/SimpleGame/TankGame1/Properties/AssemblyInfo.cs
SimpleGame/SimpleGame/TankGame1/Properties/Resources.Designer.cs
SimpleGame/SimpleGame/TankGame1/Properties/Resources.resx
SimpleGame/SimpleGame/TankGame1/Properties/Settings.Designer.cs
SimpleGame/SimpleGame/TankGame1/Properties/Settings.settings
SimpleGame/SimpleGame/TankGame1/SimpleGame.csproj
SimpleGame/SimpleGame/TankGame1/SimpleGame.csproj.user
SimpleGame/SimpleGame/TankGame1.sln
SimpleGame/SimpleGame/TankGame1.suo
SimpleGame/SimpleGame/游戏编程说明.txt
SimpleGame/SimpleGame/TankGame1/bin/Debug/audio
SimpleGame/SimpleGame/TankGame1/bin/Debug/pic
SimpleGame/SimpleGame/TankGame1/bin/Debug/unit
SimpleGame/SimpleGame/TankGame1/obj/Debug/TempPE
SimpleGame/SimpleGame/TankGame1/bin/Debug
SimpleGame/SimpleGame/TankGame1/obj/Debug
SimpleGame/SimpleGame/TankGame1/Base
SimpleGame/SimpleGame/TankGame1/bin
SimpleGame/SimpleGame/TankGame1/ForTankGame
SimpleGame/SimpleGame/TankGame1/obj
SimpleGame/SimpleGame/TankGame1/Properties
SimpleGame/SimpleGame/TankGame1
SimpleGame/SimpleGame
SimpleGame
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.