设为首页 收藏本站
查看: 647|回复: 0

Windows Phone 7 XNA游戏开发必知

[复制链接]

尚未签到

发表于 2015-5-14 09:28:16 | 显示全部楼层 |阅读模式
XNA Game Studio 4.0 is a game development product that Microsoft built on top of Microsoft Visual Studio 2010 and includes in the Windows Phone Developer Tools, giving game developers the power and simplicity of the C# language and the .NET libraries. XNA Game Studio 4.0 includes the XNA Framework and XNA Framework Content Pipeline:
  XNA Framework – A collection of application programming interfaces (APIs) that greatly simplifies common game development tasks, such as graphical rendering and timing, audio playback, input processing, and more
XNA Framework Content Pipeline –An easy and flexible way to import three-dimensional (3D) models, textures, sounds, and other assets into your game
  
XNA Game Studio基础:
While this game will be composed of a single game screen, other games could be composed of several screens, each representing a different level. You can create multiple levels by reusing game screens while slightly altering the game logic.
一个游戏通常有三种状态:
Loading:系统读取资源,初始化与游戏相关的变量,处理其他必须的预备工作,此状态一般只在游戏生命周期中发生一次,更复杂的游戏也许需要在更多的关卡或舞台初始化时分步进行。
Update :系统更新游戏世界状态,包括计算角色实体新位置,更新它们的位置和动作,重新计算分数,处理其他相关的游戏逻辑,这些更新在游戏引擎为活动状态时经常发生。
Draw :系统将Update状态里计算出来的改变绘制到输出图形设备上,绘制在游戏引擎为活动态时经常发生。
  在XNA框架中,更新和绘制舞台的频率在PC 或 Xbox 360®上是60次每秒(60帧), 在Zune®, Zune HD, 或 Windows Phone 7 设备上是最多30帧。
  
  
GameplayScreen and Game Classes
Technically, the game’s update and drawing logic is contained in the GameplayScreen class. However, the GameplayScreen does not directly handle all of the work, as some of the work is the responsibility of the relevant game classes.
Let us review some of the game classes and their intended purpose:
◦       Player: The player class represents the two players participating in the game and is responsible for drawing each player’s associated catapult on the screen. Two different sub-classes of the Player class actually represent each of the players. The Human class represents the human player and contains additional logic for handling input and providing visual feedback; the AI class represents the computer player and contains additional logic for automatically aiming and firing at the opposing human player.
◦       Catapult: The catapult class encapsulates all the drawing and logic related to one of the catapults in the game. The class keeps track of its associated catapult’s state and animates it according to that state.This class wil be used for both player and AI
◦       Projectile: This class represents a projectile fired by one of the catapults. It is responsible for rendering the projectile and updating its position, but not for determining whether the projectile has hit anything, because this is the job of the Catapult class.
◦       Animation: This helper class displays animations.
◦       AudioManager: This helper class plays sounds.
  

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-66803-1-1.html 上篇帖子: Windows phone 7 31天学习 8:Choosers 下篇帖子: Windows 7 通过无线网卡,模拟Wifi,实现手机,电脑等无线设备共享上网
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表