CDN加速镜像 | 设为首页 | 加入收藏夹
当前位置: 首页 资源下载 源码下载 游戏 其他智力游戏

文件名称: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

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 搜珍网是交换下载平台,只提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。更多...
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或换浏览器;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*快速评论: 推荐 一般 有密码 和说明不符 不是源码或资料 文件不全 不能解压 纯粹是垃圾
*内  容:
*验 证 码:
搜珍网 www.dssz.com