Development Guide: online game program Structure Design Based on Distributed Objects

Source: Internet
Author: User
[Editor's note] at present, the online gaming market is becoming increasingly fierce, and there are dozens of new online games each year. For a single player, you can download all of them and try it out. No matter whether the game is fun or not, whether it suits your taste or not, it takes a few hours to download and install it. If you don't like it, uninstall it, in the meantime, there may also be various problems. It takes time and effort and no players will do this.

Improve the game experience, ease of installation, and even do not need to be installed. Directly experiencing the advantages and disadvantages of a game in a game is the best way to promote the game by giving gamers a more intuitive experience than advertising. This should be a trend in game development. Easy to install, not to install, web games should be a development direction of the game.

Online Game Program Structure Design Based on Distributed Objects (1)-opening part

Web browsers and games are not a thing after all. HTML hypertext protocol (although supplemented by VB, JavaScript, and other scripting languages) is not fully applicable to online games. The analogy is to further emphasize the importance of Installation-free and easy-to-experience. Of course, Web technology is also evolving. Not only are online games running on many web browsers, but their graphics and image functions are also constantly enriched. This article will focus on the second part, this article discusses the development of web-related technologies.

Online Game Program Structure Design Based on Distributed Objects (2)-Development of web technology and Web games

The root cause of the rapid development of web technology is that distributed applications based on the bsstructure do not need to deploy other software on the client, reducing the release and maintenance costs. In addition, you can use a browser to browse various web pages, regardless of whether the Web server runs on Windows, UNIX, or other operating systems. None of us can deny that web technologies and browser applications will not develop so quickly without this feature. This feature drives the development of the entire Internet and promotes the research of various web-related technologies.

Online Game Program Structure Design Based on Distributed Objects (3)-Distributed Component Model DCOM/cobra

Distributed Component Technology is a CS structure. It emerged to simplify network programming and developers no longer need to worry about how to perform underlying communication. Currently, there are two representative types: DCOM and Cobra. DCOM uses the orpc mechanism. The COM server creates an object class instance. a com object can have multiple interfaces, representing different viewing angles and different object behaviors. The client obtains the pointer of the object interface and calls related methods through the pointer.

Online Game Program Structure Design Based on Distributed Objects (4)-SRP Distributed Object Concept

As a role in the game. The server and client coexist. The server is responsible for the logic of the role object and updating various attributes. The client is responsible for displaying the role object and interacting with the player. This should be a very typical distributed object mode. But does the current distributed object technology support this mode? The answer is no. Games developed using web service or cobra/DCOM are not supported. Therefore, the concept of distributed objects is still imperfect.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.