Many people are obsessed with the game, and as a developer, like their own games nature is not in the minority. But the development of a bit of the scale of the game, in addition to the main game logic, also need a lot of data would be preserved. Now popular architecture is a data storage module separately into a service, and the front end through the socket communication. Socket is a popular course completion port technology. But the completion port is the realization of a basic data transceiving, truly, still need to define various communication protocol. Said communication protocol that it is necessary to mention the Google protobuf protocol. Google protobuf is the Google open a network communication protocol used for encoding and decoding tool library, use it to define the format, you can define a field protocol, by its own compiler generated code file for decoding (can generate many different language files). In simple terms, protobuf is the message content you want to send, efficient serialization and deserialization.
To summarize the above nonsense means: the game must use the completion port +google protobuf so that it will not appear too backward. ODBC API interface and access to the database, these constitute the basic technology of game background services under window. When these conditions are available. You can follow the prescribed order of the writing process. Of course, the formal start of architecture design documentation also needs to write before, but the amateur game, some steps may face. Here's to the steps:
The first step is to demand (game) sorting data to save, this step, to design a table structure and some storage process.
The second step is to communicate with the front end of the game logic module developers, define the communication protocol, which is to write protobuf documents. At the same time, Google comes with a tool to generate the corresponding.H and.Cc files (protobuf also support other languages).
The third step is to start writing code. Write code for it is nothing more than a package the completion port, and database access interface. After all the interfaces are sealed ends, next is the strength to live. According to a protobuf packet format into a SQL statement, it will execute after the write back a response packet (protobuf).
The above is a game program to process. So how to achieve rapid development?
The answer is, to be fast, be sure to make full use of network resources, to see what can be brought to use. Cost Niang, find Valley brother, check the open source, you will soon discover, the completion port, the online ODBC API what the interface has a good package, the direct use of it. While Google protobuf is open source directly to the official website. Things are looking after, will they fight a piece of it, these two or three days. And the database design and the protoBuf agreement prepared, as long as your game is not very complicated, still in the one or two day make. Then in the preliminary set architecture the last message ID switch and then, remove the protobuf package, spliced SQL statement? If you had OUT, write the code to a road, how many days to complete, plus round-trip debugging, changing demand, the whole down, 20 days are few, this is your game needs less complex cases.
It does not do to how to do! Not everybody is doing? Can to write protobuf file, write a description of the document, and then use a tool to generate I need code directly?
The answer is, not all right, why? In part because they have to write a description file of XML, and then load the
http://download.csdn.net/detail/yd_gxm/5044507 to use this library. Then... Then function is realized. Do not believe, do not believe you can download have a look. Have a look whether achieve a line of code not written a DBServer program.
Wrong place, also does not have a XML description file into.H.Cc tools. If there is such a tool, and it belongs to the micro intelligent development. But I think this "compiler" tool sooner or later.
分享到:
相关推荐
《Apress.Foundations.of.Atlas.Rapid.Ajax.Development.with.ASP.NET.2.0.May.2006》这本书是针对ASP.NET 2.0平台下使用Atlas框架进行快速Ajax开发的权威指南。Atlas是微软推出的一个早期的Ajax技术框架,它为Web...
Rapid Application Development with Mozilla, part of the Bruce Perens Open Source Series, is a concise guide for any programmer who wants to learn the versatility and compatibility of Mozilla, an open ...
You\'ll learn how to make the most of iterative development, model-driven architecture (MDA), code-generation tools, aspect-oriented programming (AOP), test-driven development, and much more....
Steve McConnell's books have always displayed a remarkable degree of ...Parts 1, 2 deal with the Strategy and Philosophy of rapid development, while part 3 covers Rapid develoment best practices
Rapid Development - Taming Wild Software Schedules - Part 4 (the last part) Total : 4 parts. <br>Steve McConnell\'s books have always displayed a remarkable degree of practicality and ...
Rapid Game Development Using Cocos2d-JS teaches you the overall architecture of Cocos2d-JS and explains the internal working of the framework.You will dive deep into sprites, the most important ...
A short book would have oversimplified things to the point of uselessness. <br>Organization of the book: Parts 1, 2 deal with the Strategy and Philosophy of rapid development, while part 3 ...
Rapid Game Development Using Cocos2d-JS teaches you the overall architecture of Cocos2d-JS and explains the internal working of the framework. You will dive deep into sprites, the most important ...
A short book would have oversimplified things to the point of uselessness. <br>Organization of the book: Parts 1, 2 deal with the Strategy and Philosophy of rapid development, while part 3 ...
#资源达人分享计划#
Combining the power of Qt and Python, PySide provides easy access to the Qt framework for Python developers and also acts as an excellent rapid application development platform. This book will take ...
《CodeIgniter for Rapid PHP Application Development》是一本优秀的入门书籍,由David Upton编写。本书深入浅出地介绍了如何利用CodeIgniter框架提高PHP编码效率。书中不仅涵盖了CI的基础知识和核心功能,还详细...
《快速软件开发:驯服...两份PDF文件——"Rapid Development - Taming Wild Software Schedules Steve McConnell.pdf" 和 "快速软件开发.pdf",应包含完整书籍的中文和英文版本,方便读者根据自己的语言偏好进行学习。
"John.Wiley.and.Sons.Rapid.Mobile.EnterpriseDevelopment.for.Symbian.OS.An.Introduction.to.OPL.Application.Design.and.Programming.May.2005.eBook-LinG.pdf"则是本书的主要内容,包含了完整的文本和可能的...
快速开发,或者称为Rapid Application Development (RAD),是一种软件开发方法论,旨在通过缩短开发周期,提高效率,尽快地提供可工作的软件产品。这个概念强调迭代和敏捷性,以适应不断变化的需求。在快速开发中,...
《Rapid Application Development with Mozilla 2003》是一本专注于利用Mozilla技术快速开发应用程序的专业书籍。这本书的核心内容是向读者介绍如何高效地利用Mozilla的开源框架和组件来构建跨平台的应用程序。...
MS Press - Rapid Development - Taming Wild Software Schedules.part2.rar
### 关键知识点概览 #### 一、Python编程基础...通过以上内容可以看出,《Rapid GUI Programming with Python and Qt》这本书全面覆盖了从基础到高级的GUI编程技术,无论是初学者还是有经验的开发者都能从中获益良多。