CN103577497A - System and method of two-way communication of online game client and web browser - Google Patents
System and method of two-way communication of online game client and web browser Download PDFInfo
- Publication number
- CN103577497A CN103577497A CN201210282612.5A CN201210282612A CN103577497A CN 103577497 A CN103577497 A CN 103577497A CN 201210282612 A CN201210282612 A CN 201210282612A CN 103577497 A CN103577497 A CN 103577497A
- Authority
- CN
- China
- Prior art keywords
- game
- module
- script
- logic
- main logic
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/448—Execution paradigms, e.g. implementations of programming paradigms
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention relates to a system and a method of two-way communication of an online game client and a web browser. The system comprises a game main logic module and a browser core module, and is characterized in that a script and game logic interaction module is added between the browser core module and the game main logic module; the script and game logic interaction module is used for converting the received corresponding browser web script information to information which can be identified by the game main logic module, and converting a game logic code which is transmitted by the game main logic module to the information which can be identified by the web browser core module. Through the structure of the system of two-way communication, the two-way communication of the game main logic module and the browser core module is realized.
Description
Technical field
The present invention relates to a kind of network and meet letter field, especially a kind of network game client and web browser both-way communication System and method for.
Background technology
At present on the market in the function of network game client built-in browser, and roughly can be divided into two classes:
One class is to use IE control or the similar techniques of Microsoft, outside game master plays up, provides one or more browser window display web pages.In this type of scheme, browser window is played up in essence and is departed from game, browser window cannot with game in interface scenario etc. produce correct hiding relation.Browser window seems and in fact, is all another layer covering on interface.The operation of interface can produce the unidirectional notice to browser, but browser cannot counter-notification game client.
Another kind of scheme is that the browser based on webkit kernel is embedded into main playing up in logic in game, and one or more games window display web pages are provided.In this type of scheme, browser window is as a part for interface, can with scene of game and the correct hiding relation of other generation of interfaces.With front a kind of scheme similarly, the operation of interface can produce the unidirectional notice to browser, but browser cannot counter-notification game client.
Existing two class browser internal resistance schemes above, all can only realize unidirectional from game client to browser simply leaks information, such as carrying out the operations such as page jump instruction, and browser cannot directly carry out reverse communication to game client, one time game client cannot directly respond and feed back browser operation result.
Therefore, how developing the scheme of embedded with network browser in a kind of network game client that can carry out both-way communication, is the problem that current those skilled in the art need to solve.
Summary of the invention
The present invention is directed to the deficiencies in the prior art, provide a kind of network game client and web browser can carry out the System and method for of both-way communication.
The present invention mainly realizes by technical scheme below: a kind of network game client and web browser both-way communication system, comprise game main logic module and browser kernel module, between described browser kernel module and described game main logic module, have additional a script and game logic interactive module;
The information that described script can be identified for the corresponding browsing device net page script information receiving being converted to game main logic module with game logic interactive module; And
For the game logic code corresponding conversion that described game main logic module is sent, be the information of web browser kernel module identification.
Preferably, in described browser kernel module, embed and have script engine module, described script engine module is for resolving script corresponding to webpage;
Described script engine module is connected with described game main logic module, and will described in be resolved to webpage script information and send to game main logic module.
Preferably, described script engine module is also connected with game logic interactive module with described script;
Described script engine module, for resolving the script of the described webpage being resolved to send to described script and game logic interactive module;
Described script and game logic interactive module, for the script information receiving is changed, be converted to the information corresponding with game identification code, and send to game main logic module;
Described game main logic module, for according to the game identification code of the corresponding browsing device net page script information receiving, calls corresponding browser information.
Preferably, described script and game logic interactive module, also carry out for setting up between game identification code and script information the mapping relations table that data type is mated, and call forwarding between game identification code and script information.
The present invention also provides a kind of network game client and web browser both-way communication method,
Script information in the corresponding webpage that reception browser kernel module sends;
The script information that script engine module parses receives; And
Script information in analyzing web page is sent to script and game logic interactive module;
Described script and game logic interactive module are converted to the script information receiving the game identification code of game main logic Module recognition, and send to game main logic module;
Described game main logic module, according to the game identification code of the corresponding webpage script information receiving, is called the corresponding web browser information that forwards.
Preferably, described script and game logic interactive module are converted to the script information receiving the game identification code of game main logic Module recognition, are specially:
According to described script information corresponding in the webpage receiving, search correspondence mappings relation table, described mapping relations table is the described script information of corresponding reception and the mapping table of the corresponding relation of the game identification code of game main logic Module recognition that described script is set up with game logic interactive module;
Determine the game identification code of the corresponding script information receiving in correspondence mappings table, and send to described game main logic module.
The invention has the beneficial effects as follows: by this both-way communication System and method for, realize the both-way communication of game main logic module and browser kernel module.In other words, game client can be realized complete intercommunication with built-in web browser, and making on the one hand must be switched to before this outer function of carrying out web page operation of game can seamlessly be integrated in game, strengthens user and experiences; In addition on the one hand, partial function exploitation can be put into web platform, then be integrated in client, realize the effect consistent with function in game.
Accompanying drawing explanation
Fig. 1 is the structural representation of main system of the present invention;
Fig. 2 is the process flow diagram of the inventive method.
Wherein, 1 is game main logic module, and 2 is browser kernel module, and 3 is rendering module, and 4 is load module, and 5 is script engine module, and 6 is script and game logic interactive module.
Embodiment
Below in conjunction with the drawings and specific embodiments, describe the present invention, but not as limitation of the invention.
As can be seen from Figure 1 a kind of network game client of the present invention and web browser both-way communication system, comprise game main logic module 1, browser kernel module 2, rendering module 3 and load module 4.Described rendering module 3 and load module 4 are placed between game main logic module 1 and browser kernel module 2; Wherein, browser kernel module 2 major functions be to be responsible for that processing page is resolved, plug-in unit is written into, the work such as typesetting and reception user input; Browser kernel module 2 realizes the demonstration of the page by rendering module 3 docking game main logic modules 1, browser kernel module 2 is realized and received user's operational order by load module 4 docking game main logic modules 1.In described browser kernel module 2, also embed and have a script engine module 5, and provide a script and game logic interactive module 6 between this script engine module 5 and game main logic module 1, and in this script and game logic interactive module 6, be built-in with data type adaptation module and data type is called forwarding module; The main script of being responsible for browser kernel module 2 of script engine 5 in this is resolved, and script and game logic interactive module 6 is main, be responsible for mutual between script engine module 5 and the code of game main logic module 1, script and 6 groundworks of game logic interactive module are carried out data type adaptation by data type adaptation module on the one hand between game main logic module 1 code and script engine 5, call forwarding module on the other hand between game main logic module 1 code and script engine 5, carry out the forwarding of calling of data by data type.
Described data type adaptation module is a kind of bi-directional type mapping table, and the adaptive work of data type between game main logic module 1 code and script engine module 5 is mainly to realize by this bi-directional type mapping table; And data type to call forwarding module be a kind of two-way sign map table, the data call forwarding work between game main logic module 1 code and script engine module 5 is by this two-way sign map relation table realization.
By this both-way communication system architecture, realize the both-way communication of game main logic module 1 and browser kernel module 2.In other words, game client can be realized complete intercommunication with built-in web browser, and making on the one hand must be switched to before this outer function of carrying out web page operation of game can seamlessly be integrated in game, strengthens user and experiences; In addition on the one hand, partial function exploitation can be put into web platform, then be integrated in client, realize the effect consistent with function in game.
As described in Figure 2, the process flow diagram for specific embodiment of the invention method, comprises the following steps:
S101: the script information in the corresponding webpage that reception browser kernel module sends;
S102: the script information that script engine module parses receives; And
S103: the script information in analyzing web page is sent to script and game logic interactive module;
S104: described script and game logic interactive module are converted to the script information receiving the game identification code of game main logic Module recognition, and send to game main logic module;
S105: described game main logic module, according to the game identification code of the corresponding webpage script information receiving, is called the corresponding web browser information that forwards.
Further, step S104: described script and game logic interactive module are converted to the script information receiving the game identification code of game main logic Module recognition, are specially:
According to described script information corresponding in the webpage receiving, search correspondence mappings relation table, described mapping relations table is the described script information of corresponding reception and the mapping table of the corresponding relation of the game identification code of game main logic Module recognition that described script is set up with game logic interactive module;
Determine the game identification code of the corresponding script information receiving in correspondence mappings table, and send to described game main logic module.
Below the present invention is described in detail, but apparent, those skilled in the art can carry out various changes and improvements, and does not deviate from the scope of the present invention that appended claims limits.
Claims (6)
1. a network game client and web browser both-way communication system, comprise game main logic module and browser kernel module, it is characterized in that, between described browser kernel module and described game main logic module, have additional a script and game logic interactive module;
The information that described script can be identified for the corresponding browsing device net page script information receiving being converted to game main logic module with game logic interactive module; And
For the game logic code corresponding conversion that described game main logic module is sent, be the information of web browser kernel module identification.
2. network game client according to claim 1 and web browser both-way communication system, is characterized in that, in described browser kernel module, embeds and have script engine module, and described script engine module is for resolving script corresponding to webpage;
Described script engine module is connected with described game main logic module, and will described in be resolved to webpage script information and send to game main logic module.
3. network game client according to claim 2 and web browser both-way communication system, is characterized in that, described script engine module is also connected with game logic interactive module with described script;
Described script engine module, for resolving the script of the described webpage being resolved to send to described script and game logic interactive module;
Described script and game logic interactive module, for the script information receiving is changed, be converted to the information corresponding with game identification code, and send to game main logic module;
Described game main logic module, for according to the game identification code of the corresponding browsing device net page script information receiving, calls corresponding browser information.
4. network game client according to claim 3 and web browser both-way communication system, it is characterized in that, described script and game logic interactive module, also for setting up between game identification code and script information, carry out the mapping relations table that data type is mated, and call forwarding between game identification code and script information.
5. network game client and a web browser both-way communication method, is characterized in that,
Script information in the corresponding webpage that reception browser kernel module sends;
The script information that script engine module parses receives; And
Script information in analyzing web page is sent to script and game logic interactive module;
Described script and game logic interactive module are converted to the script information receiving the game identification code of game main logic Module recognition, and send to game main logic module;
Described game main logic module, according to the game identification code of the corresponding webpage script information receiving, is called the corresponding web browser information that forwards.
6. network game client according to claim 5 and web browser both-way communication method, is characterized in that, described script and game logic interactive module are converted to the script information receiving the game identification code of game main logic Module recognition, are specially:
According to described script information corresponding in the webpage receiving, search correspondence mappings relation table, described mapping relations table is the described script information of corresponding reception and the mapping table of the corresponding relation of the game identification code of game main logic Module recognition that described script is set up with game logic interactive module;
Determine the game identification code of the corresponding script information receiving in correspondence mappings table, and send to described game main logic module.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210282612.5A CN103577497A (en) | 2012-08-10 | 2012-08-10 | System and method of two-way communication of online game client and web browser |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210282612.5A CN103577497A (en) | 2012-08-10 | 2012-08-10 | System and method of two-way communication of online game client and web browser |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103577497A true CN103577497A (en) | 2014-02-12 |
Family
ID=50049294
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210282612.5A Pending CN103577497A (en) | 2012-08-10 | 2012-08-10 | System and method of two-way communication of online game client and web browser |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103577497A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104679489A (en) * | 2013-12-02 | 2015-06-03 | 厦门极致互动网络技术有限公司 | System and method for internally setting web browser in online game client side |
CN104932931A (en) * | 2014-03-17 | 2015-09-23 | 腾讯科技(深圳)有限公司 | Method and device for processing information |
CN109740092A (en) * | 2018-12-26 | 2019-05-10 | 深圳市网心科技有限公司 | Browser, message treatment method, electronic equipment, device and storage medium |
CN112163177A (en) * | 2020-09-10 | 2021-01-01 | 上海连尚网络科技有限公司 | Processing method of web game, electronic device and computer readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1797412A (en) * | 2004-12-30 | 2006-07-05 | 中山大学 | Method for implementing multiple games on mobile digital terminal |
CN1920838A (en) * | 2005-08-25 | 2007-02-28 | 乐金电子(昆山)电脑有限公司 | Network game system and control method thereof |
US20100113145A1 (en) * | 2007-06-15 | 2010-05-06 | Tencent Technology (Shenzhen) Company Ltd. | Main controller, control method and management system of online game |
CN102262534A (en) * | 2011-07-12 | 2011-11-30 | 红石娱动网络科技(北京)有限公司 | System and method for developing computer online games based on Internet browser/server (B/S) structure |
-
2012
- 2012-08-10 CN CN201210282612.5A patent/CN103577497A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1797412A (en) * | 2004-12-30 | 2006-07-05 | 中山大学 | Method for implementing multiple games on mobile digital terminal |
CN1920838A (en) * | 2005-08-25 | 2007-02-28 | 乐金电子(昆山)电脑有限公司 | Network game system and control method thereof |
US20100113145A1 (en) * | 2007-06-15 | 2010-05-06 | Tencent Technology (Shenzhen) Company Ltd. | Main controller, control method and management system of online game |
CN102262534A (en) * | 2011-07-12 | 2011-11-30 | 红石娱动网络科技(北京)有限公司 | System and method for developing computer online games based on Internet browser/server (B/S) structure |
Non-Patent Citations (1)
Title |
---|
李广松 等: "基于Lua的网络游戏脚本系统设计", 《现代计算机》, 31 December 2009 (2009-12-31), pages 180 - 182 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104679489A (en) * | 2013-12-02 | 2015-06-03 | 厦门极致互动网络技术有限公司 | System and method for internally setting web browser in online game client side |
CN104932931A (en) * | 2014-03-17 | 2015-09-23 | 腾讯科技(深圳)有限公司 | Method and device for processing information |
CN104932931B (en) * | 2014-03-17 | 2019-05-03 | 腾讯科技(深圳)有限公司 | Handle the method and device of information |
CN109740092A (en) * | 2018-12-26 | 2019-05-10 | 深圳市网心科技有限公司 | Browser, message treatment method, electronic equipment, device and storage medium |
CN109740092B (en) * | 2018-12-26 | 2022-02-01 | 深圳市网心科技有限公司 | Browser system, message processing method, electronic device, and storage medium |
CN112163177A (en) * | 2020-09-10 | 2021-01-01 | 上海连尚网络科技有限公司 | Processing method of web game, electronic device and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105930467B (en) | A kind of information processing method and electronic equipment | |
CN102624697B (en) | A kind of Media method and system based on Quick Response Code | |
CN104679489A (en) | System and method for internally setting web browser in online game client side | |
CN108984174A (en) | Cross-platform application creation method, device, server and storage medium | |
CN103458087A (en) | Remote mobile phone test experiencing method based on RTMP | |
CN102520793A (en) | Gesture identification-based conference presentation interaction method | |
CN102323882A (en) | Data processing device and method applied to Web3D | |
CN103064667A (en) | Method for controlling hardware equipment based on JavaScript extension | |
CN103365621B (en) | Image processing method and device | |
CN103577497A (en) | System and method of two-way communication of online game client and web browser | |
CN100502309C (en) | Embedded Web network management system and its interaction method | |
CN109308175A (en) | The electronic device and method of Display on the same screen are carried out using mobile device and display equipment | |
CN102622395A (en) | Method, server and client for assisting in accessing to webpage by application virtualization | |
CN103607654A (en) | A mobile terminal auxiliary input apparatus based on a multi-screen cooperation system and a method | |
CN107506430A (en) | A kind of route control method and system based on mixed developing | |
CN108932413A (en) | A kind of digital signature generation method, device and storage medium | |
CN208985138U (en) | Electronic device, computer equipment and the data processing system of Display on the same screen | |
CN107861657A (en) | Touch signal processing method, system and device and electronic equipment | |
CN110807111A (en) | Three-dimensional graph processing method and device, storage medium and electronic equipment | |
CN104123155A (en) | Business system page layer development platform and method based on WEB | |
CN107292136A (en) | A kind of pdf document anti-counterfei waterprint embedding grammar and system based on micro services | |
CN104322008A (en) | Devices, systems, and methods for enriching communications | |
CN103051728A (en) | Remote-procedure calling method | |
WO2015200507A1 (en) | Mobile cast receivers for computing and entertainment devices | |
CN116880937A (en) | Desktop screen capturing data processing method, device, equipment and medium for interactive classroom |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: Xiamen Software Park View Road 360001 Fujian province No. 26 Room 204 two Applicant after: Xiamen ultimate interactive network technology Limited by Share Ltd Address before: Xiamen Software Park View Road 360001 Fujian province No. 26 Room 204 two Applicant before: XIAMEN JIZHI NETWORK TECHNOLOGY CO., LTD. |
|
COR | Change of bibliographic data | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20140212 |