English 中文(简体)
将模型从游戏发展中的观点分离
原标题:Separating Model from View in game development

作为申请开发商,我花了很多时间,担心把业务逻辑与用户界面/观点分开。 但我注意到,在游戏发展中,这似乎不那么令人关切。 我经常看见Gis/Screen/Scene等充满游戏逻辑的课堂,或载有绘画方法的运动员/空间Ship/etc班。

从纯净观点看,航天器的行为和性质将与负责使该船登上舱位的物体分开(除非一米错误)。

我非常有兴趣听取人们对此的看法。 你们在游戏中遵守这些准则的程度如何?

问题回答

从逻辑、模型和其余部分中明确分开使用代码。 它尤其有助于你为其他业务系统撰写一个不同的发动机,因为如果代号为not<>,则几乎只有可能这样做。





相关问题
XML-RPC Standard and XML Data Type

I was looking at XML-RPC for a project. And correct me if I m wrong, but it seems like XML-RPC has no XML datatype. Are you supposed to pass as a string? or something else? Am I missing something? ...

Is it exists any "rss hosting" with API for creating feeds

I am creating a desktop app that will create some reports. I want to export these reports as RSS or ATOM feeds. I can easily create feeds with Rome lib for Java. But I have no idea how to spread them. ...

Improving Q-Learning

I am currently using Q-Learning to try to teach a bot how to move in a room filled with walls/obstacles. It must start in any place in the room and get to the goal state(this might be, to the tile ...

High-traffic, Highly-secure web API, what language? [closed]

If you were planning on building a high-traffic, very secure site what language would you use? For example, if you were planning on say building an authorize.net-scale site, that had to handle tons ...

Def, Void, Function?

Recently, I ve been learning different programming langages, and come across many different names to initalize a function construct. For instance, ruby and python use the def keyword, and php and ...

热门标签