CN105933788A - HTML5 game control method, device and terminal - Google Patents
HTML5 game control method, device and terminal Download PDFInfo
- Publication number
- CN105933788A CN105933788A CN201610236999.9A CN201610236999A CN105933788A CN 105933788 A CN105933788 A CN 105933788A CN 201610236999 A CN201610236999 A CN 201610236999A CN 105933788 A CN105933788 A CN 105933788A
- Authority
- CN
- China
- Prior art keywords
- html5
- html5 game
- game control
- terminal
- android
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/478—Supplemental services, e.g. displaying phone caller identification, shopping application
- H04N21/4781—Games
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/81—Monomedia components thereof
- H04N21/8166—Monomedia components thereof involving executable data, e.g. software
- H04N21/8173—End-user applications, e.g. Web browser, game
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses an HTML5 game control method, and the method is based on an Android system environment. The method comprises the steps: receiving a key instruction sent by a remote controller; recognizing the operation of the key instruction; converting the operation into an execution operation corresponding to an HTML5 game, and controlling the HTML5 game through employing the execution operation. The method can achieve a purpose of controlling the HTML5 game at an Android terminal through remote control equipment, and does not need to make any modification for the program of the HTML5 game. The invention also discloses an HTML5 game control device and terminal.
Description
Technical field
The present invention relates to communication technical field, particularly to a kind of HTML5 game control method, device and
Terminal.
Background technology
At present, the software run on Android terminal such as Android TV or Android Set Top Box is usual
It is the primary Android application program write of Java, and does not has HTML5 to play.Android can be used at present
WebView (network view) webpage control or packaging browser run HTML5 game, the party
Although method can make HTML5 game run on TV, but still can not solve operation on TV and ask
Topic, the game of HTML5 is to use the method touching click to operate, and can not touch click on TV,
Can only be operated by remote control panel, thus cause HTML5 game not play on TV.Existing skill
Art is HTML5 game is transplanted to Android on, and comes by code reality in the aspect of Android
Now with the interactive operation of remote controller, this scheme need to be played transplanting, and engineering is loaded down with trivial details, and has hardware compatibility to ask
Topic, and also the code played is modified after transplanting successfully, feasibility is the highest.
Therefore, as why not, the code of game itself is made any amendment, it is possible to utilize remote control equipment pair
HTML5 game is controlled, and is those skilled in the art's technical issues that need to address.
Summary of the invention
It is an object of the invention to provide a kind of HTML5 game control method, the method can be at Android
In terminal, realization controls the purpose of HTML5 game with remote control equipment, and need not the journey to game itself
Sequence makes any amendment;It is a further object of the present invention to provide a kind of HTML5 game control device and terminal.
For solving above-mentioned technical problem, the present invention provides a kind of HTML5 game control method, based on
Android system environment, including:
Receive the key command that remote control equipment sends;
Identify the operation of described key command;
Described operation is converted to that HTML5 game is corresponding performs operation, and it is right to utilize described execution to operate
HTML5 game is controlled.
Wherein, described described operation is converted to HTML5 game corresponding performs operation, including:
By inquiry operation conversion map tables of data, determine described operation corresponding perform operation.
Wherein, also include:
Periodically described operation conversion map tables of data is updated operation.
Wherein, before the key command that described reception remote controller sends, including:
WebView webpage control load operating HTML5 is utilized to play.
The present invention provides a kind of HTML5 game control device, based on android system environment, including:
Receiver module, for receiving the key command that remote control equipment sends;
Identification module, for identifying the operation of described key command;
Modular converter, for described operation being converted to, HTML5 game is corresponding performs operation, and utilizes
HTML5 game is controlled by described execution operation.
Wherein, described modular converter includes:
Query unit, by inquiry operation conversion map tables of data, determines the execution that described operation is corresponding
Operation;
Converting unit, is used for utilizing described execution operation to be controlled HTML5 game.
Wherein, also include:
More new module, is updated operation for periodically to described operation conversion map tables of data.
Wherein, also include:
Load-on module, is used for utilizing WebView webpage control load operating HTML5 to play.
The present invention also provides for a kind of terminal, including the HTML5 game control device described in any of the above-described item.
Wherein, described terminal is specially Android TV or Android Set Top Box.
HTML5 game control method provided by the present invention, based on android system environment, including: connect
Receive the key command that remote controller sends;Identify the operation of described key command;Described operation is converted to
HTML5 game is corresponding performs operation, and utilizes described execution operation to be controlled HTML5 game;
The method can manipulate the purpose of HTML5 game by realization remote control equipment in Android terminal, and
It is not required to the program of game itself is made any amendment;The present invention also provides for a kind of HTML5 game control
Device processed and terminal.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to reality
Execute the required accompanying drawing used in example or description of the prior art to be briefly described, it should be apparent that below,
Accompanying drawing in description is only embodiments of the invention, for those of ordinary skill in the art, not
On the premise of paying creative work, it is also possible to obtain other accompanying drawing according to the accompanying drawing provided.
The flow chart of the HTML5 game control method that Fig. 1 is provided by the embodiment of the present invention;
The structured flowchart of the HTML5 game control device that Fig. 2 is provided by the embodiment of the present invention;
The structured flowchart of another HTML5 game control device that Fig. 3 is provided by the embodiment of the present invention;
The structured flowchart of the another HTML5 game control device that Fig. 4 is provided by the embodiment of the present invention.
Detailed description of the invention
The core of the present invention is to provide a kind of HTML5 game control method, and the method can be at Android
In terminal, realization controls the purpose of HTML5 game with remote control equipment, and need not the journey to game itself
Sequence makes any amendment;Another core of the present invention is to provide a kind of HTML5 game control device and terminal.
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with this
Accompanying drawing in bright embodiment, is clearly and completely described the technical scheme in the embodiment of the present invention,
Obviously, described embodiment is a part of embodiment of the present invention rather than whole embodiments.Based on
Embodiment in the present invention, those of ordinary skill in the art are obtained under not making creative work premise
The every other embodiment obtained, broadly falls into the scope of protection of the invention.
Refer to the flow process of the HTML5 game control method that Fig. 1, Fig. 1 are provided by the embodiment of the present invention
Figure;The method may include that
The key command that S100, reception remote control equipment send;
S110, identify the operation of described key command;
S120, described operation is converted to HTML5 game corresponding performs operation, and utilize described execution
Operate and HTML5 game is controlled.
Wherein, the method running environment is based on android system environment, such as, operate in Android system
On system TV or on android system Set Top Box;First receiving user uses remote control equipment to send manipulation
The key command of HTML5 game;Identify the operation that the key command received is corresponding again, such as upwards button
Instruction, down button instructs, and key command to the left, to the right key command represent rising respectively, decline,
Advance, the operation of retrogressing;After the operation that key range instruction is corresponding, need operation is converted to HTML5
Play and corresponding perform operation, be i.e. converted into HTML5 game and can identify the operation of execution, utilize this to hold
HTML5 game is controlled by row operation accordingly.
Here can be by operation is carried out with concrete execution operation sequence code during conversion
Association, determines the corresponding operation sequence code that performs by this operation, and utilization correspondence performs operation sequence code
HTML5 game is controlled accordingly;Or operation is carried out mapping storage, profit with performing operation
Carry out inquiry with mapping table and determine that this operation correspondence performs operation, utilize correspondence to perform operation to HTML5
Game controls accordingly;Or carry out mapping storage with performing operation sequence code address by operation,
Utilize mapping table to carry out inquiry and determine that this operation correspondence performs operation sequence code address, utilize correspondence to perform
HTML5 game is controlled by operation sequence code accordingly.Preferably, described by described operation conversion
May include that for the HTML5 corresponding execution operation of game
By inquiry operation conversion map tables of data, determine described operation corresponding perform operation.
Preferably, the method can also include:
Periodically described operation conversion map tables of data is updated operation.
Wherein, along with the renewal of HTML5 game, or the change of user operation habits, in remote control equipment
Execution operation corresponding to the operation that represents of key command it may happen that change, therefore, in order to ensure to use
The accuracy of family operation, needs in real time or regularly operation conversion map tables of data is updated operation.
This renewal operation can include revising corresponding relation, deletes corresponding relation, increases corresponding relation etc..The most logical
Cross above-mentioned renewal operation and can improve the accuracy of user operation, improve Consumer's Experience.
Wherein, running HTML5 game in android system environment can be by using Android's
WebView webpage control or packaging browser run HTML5 game.Concrete the method is permissible
WebView webpage control load operating HTML5 is utilized to play.
The process that realizes of said method is described below by specific embodiment:
User is operation method on Android TV or Android Set Top Box;First pass through WebView
Webpage control load operating HTML5 plays;Game running state is represented by screen (such as video screen)
Individual user;User operation remote control equipment i.e. remote controller, the remote controller key that sets out instructs;Receive remote controller
Key command;The remote controller operation that will receive, is converted to perform operation accordingly to what HTML5 played,
HTML5 game is performed;HTML5 game performs the execution operational order provided, change game
State is presented to user;Triggered by this series of operational order, receive, change and perform, completing
HTML5 plays on the Android TV or Android Set Top Box, by remote control equipment to HTML5
The purpose that game is controlled.
Based on technique scheme, the HTML5 game control method that the embodiment of the present invention provides, based on
Android system environment, the method can be in Android terminal, such as Android TV or Android
Run HTML5 game on Set Top Box, directly use remote control equipment both can complete HTML5 game
Operation, and need not program code own to HTML5 game and make any amendment;Applicability is strong, behaviour
Make simplicity.
Embodiments provide HTML5 game control method, it is possible to realize using in Android terminal
The purpose of remote control equipment manipulation HTML5 game, and it is not required to the program of game itself is done any repairing
Change.
The HTML5 game control device and the terminal that there is provided the embodiment of the present invention below are introduced, hereafter
The HTML5 game control device and the terminal that describe can phases with above-described HTML5 game control method
Mutually to should refer to.
Refer to the structure of the HTML5 game control device that Fig. 2, Fig. 2 are provided by the embodiment of the present invention
Block diagram;This device may include that
Receiver module 100, for receiving the key command that remote control equipment sends;
Identification module 200, for identifying the operation of described key command;
Modular converter 300, for described operation being converted to, HTML5 game is corresponding performs operation, and
Utilize described execution operation that HTML5 game is controlled.
Optionally, described modular converter 300 may include that
Query unit, by inquiry operation conversion map tables of data, determines the execution that described operation is corresponding
Operation;
Converting unit, is used for utilizing described execution operation to be controlled HTML5 game.
Based on technique scheme, optionally, refer to Fig. 3, this device can also include:
More new module 400, is updated operation for periodically to described operation conversion map tables of data.
Based on above-mentioned any technical scheme, optionally, refer to this device of Fig. 4 can also include:
Load-on module 500, is used for utilizing WebView webpage control load operating HTML5 to play.
The present invention also provides for a kind of terminal, and the HTML5 game including above-mentioned any technical scheme controls dress
Put.Here terminal can be any Android terminal comprising above-mentioned HTML5 game control device.
Optionally, described terminal is specifically as follows Android TV or Android Set Top Box.
In specification, each embodiment uses the mode gone forward one by one to describe, and what each embodiment stressed is
With the difference of other embodiments, between each embodiment, identical similar portion sees mutually.Right
For device disclosed in embodiment, owing to it corresponds to the method disclosed in Example, so describe
Fairly simple, relevant part sees method part and illustrates.
Professional further appreciates that, respectively shows in conjunction with what the embodiments described herein described
The unit of example and algorithm steps, it is possible to electronic hardware, computer software or the two be implemented in combination in,
In order to clearly demonstrate the interchangeability of hardware and software, the most general according to function
Describe composition and the step of each example.These functions perform with hardware or software mode actually,
Depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can be to each specific
Should be used for use different methods to realize described function, but this realization is it is not considered that beyond this
The scope of invention.
The method described in conjunction with the embodiments described herein or the step of algorithm can directly use hardware,
The software module that processor performs, or the combination of the two implements.Software module can be placed in and deposit at random
Reservoir (RAM), internal memory, read-only storage (ROM), electrically programmable ROM, electric erasable can be compiled
Appointing well known in journey ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field
In the storage medium of other form of anticipating.
Above HTML5 game control method provided by the present invention, device and terminal are carried out detailed Jie
Continue.Principle and the embodiment of the present invention are set forth by specific case used herein, above reality
The explanation executing example is only intended to help to understand method and the core concept thereof of the present invention.It should be pointed out that, for
For those skilled in the art, under the premise without departing from the principles of the invention, it is also possible to right
The present invention carries out some improvement and modification, and these improve and modify the protection also falling into the claims in the present invention
In the range of.
Claims (10)
1. a HTML5 game control method, based on android system environment, it is characterised in that
Including:
Receive the key command that remote control equipment sends;
Identify the operation of described key command;
Described operation is converted to that HTML5 game is corresponding performs operation, and it is right to utilize described execution to operate
HTML5 game is controlled.
2. HTML5 game control method as claimed in claim 1, it is characterised in that described by institute
State operation to be converted to HTML5 game and corresponding perform operation, including:
By inquiry operation conversion map tables of data, determine described operation corresponding perform operation.
3. HTML5 game control method as claimed in claim 2, it is characterised in that also include:
Periodically described operation conversion map tables of data is updated operation.
4. the HTML5 game control method as described in any one of claims 1 to 3, it is characterised in that
Before the key command that described reception remote controller sends, including:
WebView webpage control load operating HTML5 is utilized to play.
5. a HTML5 game control device, based on android system environment, it is characterised in that
Including:
Receiver module, for receiving the key command that remote control equipment sends;
Identification module, for identifying the operation of described key command;
Modular converter, for described operation being converted to, HTML5 game is corresponding performs operation, and utilizes
HTML5 game is controlled by described execution operation.
6. HTML5 game control device as claimed in claim 5, it is characterised in that described conversion
Module includes:
Query unit, by inquiry operation conversion map tables of data, determines the execution that described operation is corresponding
Operation;
Converting unit, is used for utilizing described execution operation to be controlled HTML5 game.
7. HTML5 game control device as claimed in claim 6, it is characterised in that also include:
More new module, is updated operation for periodically to described operation conversion map tables of data.
8. the HTML5 game control device as described in any one of claim 5 to 7, it is characterised in that
Also include:
Load-on module, is used for utilizing WebView webpage control load operating HTML5 to play.
9. a terminal, it is characterised in that include the HTML5 game described in above-mentioned 5 to 8 any one
Control device.
10. terminal as claimed in claim 9, it is characterised in that described terminal is specially Android
TV or Android Set Top Box.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610236999.9A CN105933788A (en) | 2016-04-15 | 2016-04-15 | HTML5 game control method, device and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610236999.9A CN105933788A (en) | 2016-04-15 | 2016-04-15 | HTML5 game control method, device and terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105933788A true CN105933788A (en) | 2016-09-07 |
Family
ID=56839276
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610236999.9A Pending CN105933788A (en) | 2016-04-15 | 2016-04-15 | HTML5 game control method, device and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105933788A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130133013A1 (en) * | 2011-11-18 | 2013-05-23 | Baeguen KANG | Display device and method for providing content using the same |
US20130304584A1 (en) * | 2012-05-11 | 2013-11-14 | Sony Corporation | Method and apparatus for providing data to a user device |
CN103618936A (en) * | 2013-12-16 | 2014-03-05 | 乐视致新电子科技(天津)有限公司 | Smart television, as well as method and device for pre-downloading link pages in browser of smart television |
CN104093077A (en) * | 2013-10-29 | 2014-10-08 | 腾讯科技(深圳)有限公司 | Multi terminal interconnection method, device and system |
CN104394949A (en) * | 2012-05-02 | 2015-03-04 | 阿奎默有限公司 | Web-based game platform with mobile device motion sensor input |
CN104641357A (en) * | 2012-09-28 | 2015-05-20 | 索尼公司 | Information processing device, portable terminal, information processing method, program, and information processing system |
CN104941181A (en) * | 2015-06-18 | 2015-09-30 | 深圳市新众玩网络科技有限公司 | Method and device for achieving real-time game interaction between different intelligent terminals |
-
2016
- 2016-04-15 CN CN201610236999.9A patent/CN105933788A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130133013A1 (en) * | 2011-11-18 | 2013-05-23 | Baeguen KANG | Display device and method for providing content using the same |
CN104394949A (en) * | 2012-05-02 | 2015-03-04 | 阿奎默有限公司 | Web-based game platform with mobile device motion sensor input |
US20130304584A1 (en) * | 2012-05-11 | 2013-11-14 | Sony Corporation | Method and apparatus for providing data to a user device |
CN104641357A (en) * | 2012-09-28 | 2015-05-20 | 索尼公司 | Information processing device, portable terminal, information processing method, program, and information processing system |
CN104093077A (en) * | 2013-10-29 | 2014-10-08 | 腾讯科技(深圳)有限公司 | Multi terminal interconnection method, device and system |
CN103618936A (en) * | 2013-12-16 | 2014-03-05 | 乐视致新电子科技(天津)有限公司 | Smart television, as well as method and device for pre-downloading link pages in browser of smart television |
CN104941181A (en) * | 2015-06-18 | 2015-09-30 | 深圳市新众玩网络科技有限公司 | Method and device for achieving real-time game interaction between different intelligent terminals |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102760032B (en) | A kind of method of information processing and electronic equipment | |
CN106201241A (en) | The multi-screen display method of terminal screen, device and terminal | |
CN104468226A (en) | Nginx configuration method and device | |
CN105843873A (en) | System and method for managing data modeling | |
CN106215418A (en) | The display control method of a kind of application and device, terminal | |
CN104815439A (en) | Interactive method and system for game data between mobile terminal and devices | |
CN105323643A (en) | Control device for realizing fast switching of television channels and television applications | |
CN105903191A (en) | Data processing method and system across terminals | |
CN105792025A (en) | Device information obtaining method and terminal | |
CN104346216A (en) | Multi-mask execution method and equipment for electronic equipment | |
CN106681759A (en) | Software updating method and mobile terminal | |
CN105521603A (en) | Virtual input control method, apparatus and system for running games | |
CN104335190A (en) | Content delivery system, content delivery device, and content delivery method | |
CN105550017A (en) | Method, apparatus and system for performing virtual input control for application | |
CN103294532B (en) | The method of rapid implementation of matrix switch graphical control system | |
CN105933788A (en) | HTML5 game control method, device and terminal | |
CN106325851A (en) | Interactive remote cooperation method of Android application | |
CN103677936A (en) | Application version upgrading method and electronic device | |
CN105320502A (en) | Terminal and multi-window displaying method for terminal | |
CN105550046A (en) | Virtual control method, device and system | |
CN106569829B (en) | Method for realizing switching of working modes of touch screen, touch screen device and head-mounted equipment | |
CN104793848A (en) | Information processing method and electronic equipment | |
CN105391810B (en) | Terminal equipment interface device | |
CN108958586A (en) | A kind of method and apparatus controlling downloading task | |
CN105307018A (en) | Display method and display device of disk volume label |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160907 |
|
RJ01 | Rejection of invention patent application after publication |