George 的个人资料George's XNA Programming日志列表网络 工具 帮助

日志


1月31日

Why And When You May Need This

In the previous post I have mentioned the modular gaming framework. Well, in this post I will show you why and when you might need this.

Suppose you are building a casino game. Usually it will contain many games like BlackJack, Video Poker, Slots, Keno, Roulette, etc. Every time you add a new game, you need to compile the application and then your users have to download the updated software. Of course you can integrate some sort of updating functionality in the software but again this is not very comfortable.

Now imagine you have a MAINGAME.EXE executable (with all the rest of the necessary DLLs which are referenced in the project). And then you have one more DLL, say GAMES.DLL, which is NOT referenced in the project. In other words, the MAINGAME.EXE will load this module and use whatever games we have in it.

So here we have the first strong side of the modular approach - easy maintenance and upgrades.

Now we can move to a more serious example where the modular approach is not only desirable but is almost absolutely required.

Suppose you have a distributed, client/server based gaming application. A typical example would be a slot machine software where each slot machine is connected to a centralized server via TCP/IP network. Now imagine that these client terminals should be able to support such different games as slots, roulette, keno, etc. To make things even worse, imagine that you have hundreds of such gaming terminals scattered throughout a city or maybe even the whole country and what is the most important, imagine that the terminals have different owners/operators. If you release new games (and this is necessary to keep players happy) imagine how much effort (time, money, energy) will be associated with upgrading software on each terminal.

Again, you could introduce some sort of upgrade mechanism where the software downloads new files and so on and so on but compare this to the beauty of downloading the game only modules (and content by the way). In our scheme you would not even need to re-start the software. In other words, we can achieve upgrade with no downtime.

As we progress, I will provide additional scenarios where the above suggested approach is the way to go.

You should realize that this approach is quite specialized and not every (I would say not many) games will need it. However, again, there will be certain situations where you might need to use the suggested approach.

评论 (1)

请稍候...
很抱歉,您输入的评论太长。请缩短您的评论。
您没有输入任何内容,请重试。
很抱歉,我们当前无法添加您的评论。请稍后重试。
若要添加评论,需要您的家长授予您相应权限。请求权限
您的家长禁用了评论功能。
很抱歉,我们当前无法删除您的评论。请稍后重试。
您已超过了一天之内允许提供的评论数上限。请在 24 小时后重试。
因为我们的系统表明您可能在向其他用户提供垃圾评论,您的帐户已禁用了评论功能。如果您认为我们错误地禁用了您的帐户,请联系 Windows Live 支持部门
完成下面的安全检查,您提供评论的过程才能完成。
您在安全检查中键入的字符必须与图片或音频中的字符一致。

若要添加评论,请使用您的 Windows Live ID 登录(如果您使用过 Hotmail、Messenger 或 Xbox LIVE,您就拥有 Windows Live ID)。登录


还没有 Windows Live ID 吗?请注册

DAVID发表:
Great blog, take a look at some of my preferred sites about <a href="slotshttp://www.slotskings.com">slots</a> and <a href="video">http://www.streetslots.com">video slots</a>, <a href="casinohttp://www.megakings.com">casino</a>, <a href="play">http://www.play-bingo-online-slots.co.uk">play bingo online</a> and <a href="bingo">http://www.bingoonlinenews.com">bingo online</a>. Or if you prefer the <a href="casino">http://www.megakings.com">casino games</a> section then this is for you. Great of you to take the time to check these sites if you love <a href="Keno">http://www.laislacasino.com">Keno, Mah Jong and other casino online games</a>.
5 月 14 日

引用通告

此日志的引用通告 URL 是:
http://xnadev.spaces.live.com/blog/cns!8B6E83562E8DE240!115.trak
引用此项的网络日志