CN104383681B - Method for controlling game program, device and mobile terminal - Google Patents

Method for controlling game program, device and mobile terminal Download PDF

Info

Publication number
CN104383681B
CN104383681B CN201410582317.0A CN201410582317A CN104383681B CN 104383681 B CN104383681 B CN 104383681B CN 201410582317 A CN201410582317 A CN 201410582317A CN 104383681 B CN104383681 B CN 104383681B
Authority
CN
China
Prior art keywords
user
screen
time period
viewing area
preset time
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.)
Active
Application number
CN201410582317.0A
Other languages
Chinese (zh)
Other versions
CN104383681A (en
Inventor
汪俊明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410582317.0A priority Critical patent/CN104383681B/en
Publication of CN104383681A publication Critical patent/CN104383681A/en
Application granted granted Critical
Publication of CN104383681B publication Critical patent/CN104383681B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the present invention provides a kind of method for controlling game program, device and mobile terminal, by the process run at game process, detects the touch pressure that user carries out operating on the screen of the mobile terminal, and gathers user's face-image before screen; Judge whether touch pressure is less than or equal to preset pressure threshold value in the first continuous preset time period, and judge whether user's sight line is positioned at outside the viewing area of screen in the first continuous preset time period according to face-image; If touch pressure is less than or equal to preset pressure threshold value in the first continuous preset time period and user's sight line is positioned at outside the viewing area of screen in the first continuous preset time period, then time-out process is carried out to game process.Can find out, in the process, mobile terminal can judge that user is the need of carrying out suspension of game play operation, and carry out game according to judged result and control, click specific button without the need to user and carry out pausing operation, for user, control mode is very flexible.

Description

Method for controlling game program, device and mobile terminal
Technical field
The embodiment of the present invention relates to the communication technology, particularly relates to a kind of method for controlling game program of the strong class of operation game that can be applicable on control mobile terminal, device and mobile terminal.
Background technology
Along with gradually becoming strong of mobile terminal function, the development of games based on mobile terminal becomes very burning hot.In recent years, adopt touch-screen as the intelligent terminal of man-machine interaction mode, such as smart mobile phone, panel computer etc., and allowed terminal use can operate game more quickly and easily, obtain good Consumer's Experience.
Moving game can comprise network edition game and standalone version game.For network edition game, game client can be downloaded to mobile terminal this locality by internet by terminal use, and user can be played by game client logging in network server; For standalone version game, the application program of whole game can be downloaded to mobile terminal this locality by internet by terminal use, can play when without the need to networking.In the prior art, no matter be network edition game or standalone version game, it all comprises the game of strong class of operation.So-called strong class of operation game, is terminal use and points in game process and must be permanently connected to the game that terminal screen just can complete manipulation.
The manipulation process of this strong class of operation game easily causes terminal use tired, when terminal use needs a rest, the finger suspension of game play key place moved on terminal screen is needed to click the pausing operation that this button just can complete game process, for user, operation underaction.
Summary of the invention
The embodiment of the present invention provides a kind of method for controlling game program, device and mobile terminal, can be used for making user carry out pausing operation to game process flexibly and easily.
Embodiment of the present invention first aspect provides a kind of method for controlling game program, and described method is for controlling the strong class of operation game on mobile terminal, and described method comprises:
In the process that game process runs, detect the touch pressure of user at the enterprising line operate of the screen of described mobile terminal, and gather the face-image of user before described screen;
Judge whether described touch pressure is less than or equal to preset pressure threshold value in the first continuous preset time period, and judge whether user's sight line is positioned at outside the viewing area of described screen in the described first continuous preset time period according to described face-image;
If described touch pressure is less than or equal to preset pressure threshold value in the first continuous preset time period and described user's sight line is positioned at outside the viewing area of described screen in the described first continuous preset time period, then time-out process is carried out to described game process.
Optionally, described method also comprises:
If described touch pressure is less than or equal to preset pressure threshold value in the first continuous preset time period but described user's sight line is positioned at the viewing area of described screen in the described first continuous preset time period, then described game process is processed slowly;
Or,
If described touch pressure is greater than preset pressure threshold value in the first continuous preset time period but described user's sight line is positioned at outside the viewing area of described screen in the described first continuous preset time period, then described game process is processed slowly.
Optionally, described to described game process carry out time-out process after, also comprise:
Judge whether described touch pressure is more than or equal to described preset pressure threshold value in the second continuous preset time period, and judge whether user's sight line is positioned at the viewing area of described screen in the described second continuous preset time period according to described face-image;
If described touch pressure is more than or equal to described preset pressure threshold value in the second continuous preset time period and described user's sight line is positioned at the viewing area of described screen in the described second continuous preset time period, then start treatment is carried out to described game process.
Optionally, describedly judge whether user's sight line is positioned at outside the viewing area of described screen, comprising according to described face-image:
Calculate the size of described face-image, judge whether the area of described face-image is less than or equal to described preset area threshold value, if be less than or equal to described preset area threshold value, then determine that described user's sight line is positioned at outside the viewing area of described screen, otherwise, determine that described user's sight line is positioned at the viewing area of described screen;
Or,
According to described face-image, determine the face of user and the angle of described screen, judge whether described angle is more than or equal to described predetermined angle threshold value, if be more than or equal to described predetermined angle threshold value, then determine that described user's sight line is positioned at outside the viewing area of described screen, otherwise, determine that described user's sight line is positioned at the viewing area of described screen;
Or,
Image recognition is carried out to described face-image, obtain the eye visual line characteristics of user, according to the eye visual line characteristics of described user, determine the sight line transmission point on the screen of user, judge whether described transmission point is positioned at the viewing area of described screen, if described transmission point is positioned at the viewing area of described screen, then determine that described user's sight line is positioned at the viewing area of described screen, otherwise determine that described user's sight line is positioned at outside the viewing area of described screen.
Embodiment of the present invention second aspect provides a kind of game process control device, and described device is for controlling the strong class of operation game on mobile terminal, and described device comprises:
Acquisition module, in the process run at game process, detects the touch pressure of user at the enterprising line operate of the screen of described mobile terminal, and gathers the face-image of user before described screen;
First judge module, for judging whether described touch pressure is less than or equal to preset pressure threshold value in the first continuous preset time period, and judge whether user's sight line is positioned at outside the viewing area of described screen in the described first continuous preset time period according to described face-image;
First processing module, if be less than or equal to preset pressure threshold value for described touch pressure in the first continuous preset time period and described user's sight line is positioned at outside the viewing area of described screen in the described first continuous preset time period, then time-out process is carried out to described game process.
Optionally, described device also comprises:
Second processing module, if be less than or equal to preset pressure threshold value for described touch pressure in the first continuous preset time period but described user's sight line is positioned at the viewing area of described screen in the described first continuous preset time period, then described game process is processed slowly; Or, if described touch pressure is greater than preset pressure threshold value in the first continuous preset time period but described user's sight line is positioned at outside the viewing area of described screen in the described first continuous preset time period, then described game process is processed slowly.
Optionally, described device also comprises:
Second judge module, for judging whether described touch pressure is more than or equal to described preset pressure threshold value in the second continuous preset time period, and judge whether user's sight line is positioned at the viewing area of described screen in the described second continuous preset time period according to described face-image;
3rd processing module, if be more than or equal to described preset pressure threshold value for described touch pressure in the second continuous preset time period and described user's sight line is positioned at the viewing area of described screen in the described second continuous preset time period, then start treatment is carried out to described game process.
Optionally, described first judge module is specifically for calculating the size of described face-image, judge whether the area of described face-image is less than or equal to described preset area threshold value, if be less than or equal to described preset area threshold value, then determine that described user's sight line is positioned at outside the viewing area of described screen, otherwise, determine that described user's sight line is positioned at the viewing area of described screen; Or, according to described face-image, determine the face of user and the angle of described screen, judge whether described angle is more than or equal to described predetermined angle threshold value, if be more than or equal to described predetermined angle threshold value, then determine that described user's sight line is positioned at outside the viewing area of described screen, otherwise, determine that described user's sight line is positioned at the viewing area of described screen; Or, image recognition is carried out to described face-image, obtain the eye visual line characteristics of user, according to the eye visual line characteristics of described user, determine the sight line transmission point on the screen of user, judge whether described transmission point is positioned at the viewing area of described screen, if described transmission point is positioned at the viewing area of described screen, then determine that described user's sight line is positioned at the viewing area of described screen, otherwise determine that described user's sight line is positioned at outside the viewing area of described screen.
The embodiment of the present invention third aspect provides a kind of mobile terminal, comprises the game process control device as described in any one of second aspect.
The method for controlling game program that the embodiment of the present invention provides, device and mobile terminal, by the process run at game process, detect the touch pressure that user carries out operating on the screen of the mobile terminal, and gather the face-image of user before described screen; Then, judge whether touch pressure is less than or equal to preset pressure threshold value in the first continuous preset time period, and judge whether user's sight line is positioned at outside the viewing area of described screen in the described first continuous preset time period according to face-image; If judged result is: touch pressure is less than or equal to preset pressure threshold value in the first continuous preset time period and user's sight line is positioned at outside the viewing area of screen in the first continuous preset time period, then time-out process is carried out to described game process.Can find out, in the process, mobile terminal can judge that user is the need of carrying out suspension of game play operation, carry out game according to judged result and control (whether carrying out suspension of game play), click specific button without the need to user and carry out pausing operation, it is for user, and control mode is very flexible.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The structural representation of the mobile terminal that Fig. 1 applies for the present invention;
Fig. 2 is the flow chart of method for controlling game program embodiment one of the present invention;
Fig. 3 is the flow chart of method for controlling game program embodiment two of the present invention;
Fig. 4 is the flow chart of method for controlling game program embodiment three of the present invention;
Fig. 5 is the structural representation of game process control device embodiment one of the present invention;
Fig. 6 is the structural representation of game process control device embodiment two of the present invention;
Fig. 7 is the structural representation of game process control device embodiment three of the present invention;
Shown in Fig. 8 is the block diagram of the part-structure of the mobile phone relevant to the mobile terminal that the embodiment of the present invention provides.
Detailed description of the invention
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Term " first ", " second ", " the 3rd " " 4th " etc. (if existence) in description of the present invention and claims and above-mentioned accompanying drawing are for distinguishing similar object, and need not be used for describing specific order or precedence.Should be appreciated that the data used like this can be exchanged in the appropriate case, so as embodiments of the invention described herein such as can with except here diagram or describe those except order implement.In addition, term " comprises " and " having " and their any distortion, intention is to cover not exclusive comprising, such as, contain those steps or unit that the process of series of steps or unit, method, system, product or equipment is not necessarily limited to clearly list, but can comprise clearly do not list or for intrinsic other step of these processes, method, product or equipment or unit.
The structural representation of the mobile terminal that Fig. 1 applies for the present invention, as shown in Figure 1, the mobile terminal of the present embodiment can comprise: processor 11, such as CPU, memory 12, at least one communication bus 13 and the operating system 14 operated on hardware.Communication bus 13 is for realizing the communication connection between element.Memory 12 may comprise high-speed RAM memory, also may also comprise nonvolatile memory NVM, such as at least one magnetic disc store, can store various program in memory, for completing various processing capacity and realizing the method step of the present embodiment.
It will be appreciated by persons skilled in the art that mobile terminal shown in Fig. 1 can also comprise all the other various possible element, such as antennas, wireless communication module etc., the present invention does not limit.And the mobile terminal of the present embodiment can be such as the various mobile terminal such as smart mobile phone, panel computer, and the present invention does not limit equally.Mobile terminal can be installed the game of strong class of operation, this strong class of operation game, both can be the game that mobile terminal carries when dispatching from the factory, also can be that user downloads the game be installed on mobile terminal from internet, the game that can also to be user subsidiary in this APP when downloading certain application program (APP), the source that the present embodiment is played to strong class of operation and form do not limit.The related program code of this strong class of operation game can be stored in the memory 12 of mobile terminal shown in Fig. 1.
When user needs to play games, can at the enterprising line operate of the touch screen of mobile terminal, such as click game icon, processor 11 can obtain this operational order, from memory 12, transfer the application program of corresponding game according to this operational order, thus carry out the relevant treatment of game process.
With embodiment particularly, technical scheme of the present invention is described in detail below.These specific embodiments can be combined with each other below, may repeat no more for same or analogous concept or process in some embodiment.
Below, Fig. 2 ~ Fig. 4 is the different embodiment that method for controlling game program of the present invention is corresponding.
Fig. 2 is the flow chart of method for controlling game program embodiment one of the present invention, as shown in Figure 2, the method for the present embodiment, may be used for the strong class of operation game on the mobile terminal shown in control chart 1, the method for the present embodiment can comprise:
S201: in the process that game process runs, detect the touch pressure that user carries out operating on the screen of the mobile terminal, and gather the face-image of user before described screen.
Particularly, detect the touch pressure that user carries out operating on the screen of the mobile terminal, can be detected by pressure sensor or other pressure sensing devices.Usually, when the touch pressure only having user to carry out operating on the screen of the mobile terminal is greater than preset pressure threshold value, is just effective operation, carries out the response corresponding to operation.
Gather the face-image of user before the screen of mobile terminal, can be gathered by camera or other image acquisition equipments.Usually, user is when playing the game on mobile terminal, and sight line is for falling on the screen of the mobile terminal.By gathering user's face-image before screen, the present invention can judge whether sight line falls on the screen of the mobile terminal.
S202: judge whether touch pressure is less than or equal to preset pressure threshold value in the first continuous preset time period, and judge whether user's sight line is positioned at outside the viewing area of screen in the first continuous preset time period according to face-image.
First continuous arranging of preset time period can rule of thumb be arranged, such as: when touch pressure is all less than or equal to preset pressure threshold value in continuous 20 seconds, usual user is in other things of operation, and sight line is all positioned at outside the viewing area of screen for continuous 20 seconds, and usual user is in other things of concern; When touch pressure is less than or equal to preset pressure threshold value in continuous 3 seconds, usual user may just carry out rest hand a little, does not want to suspend game, and sight line is positioned at outside the viewing area of screen in continuous 3 seconds, usual user may be rest eyes a little, does not want to suspend game; Therefore, one rational first continuous preset time period rule of thumb can be set, more be close to the true object of user.For how obtaining one more rational first continuous preset time period, the present invention is not restricted this.
S203: if touch pressure is less than or equal to preset pressure threshold value in the first continuous preset time period and user's sight line is positioned at outside the viewing area of screen in the first continuous preset time period, then carry out time-out process to game.
By analyzing the game operation custom of a large number of users, its analysis result shows, when user needs to suspend the long-term rest of game in game process, its touch pressure on screen is less than or equal to preset pressure threshold value in the first continuous preset time period and user's sight line is positioned at outside the viewing area of screen in the first continuous preset time period.The present embodiment, when touch pressure is less than or equal to preset pressure threshold value and user's sight line is positioned at outside the viewing area of screen in the first continuous preset time period in the first continuous preset time period, then carries out time-out process to game.
The present embodiment, by the process run at game process, detects the touch pressure that user carries out operating on the screen of the mobile terminal, and gathers the face-image of user before described screen; Then, judge whether touch pressure is less than or equal to preset pressure threshold value in the first continuous preset time period, and judge whether user's sight line is positioned at outside the viewing area of described screen in the described first continuous preset time period according to face-image; If judged result is: touch pressure is less than or equal to preset pressure threshold value in the first continuous preset time period and user's sight line is positioned at outside the viewing area of screen in the first continuous preset time period, then time-out process is carried out to described game process.Can find out, in the process, mobile terminal can judge that user is the need of carrying out suspension of game play operation, carry out game according to judged result and control (whether carrying out suspension of game play), click specific button without the need to user and carry out pausing operation, it is for user, and control mode is very flexible.
Fig. 3 is the flow chart of method for controlling game program embodiment two of the present invention, Fig. 3 is on basis embodiment illustrated in fig. 2, further, example shown in Fig. 2 is supplemented, or, be described in detail the some of them specific implementation of some step embodiment illustrated in fig. 2, as indicated at 3, the method for the present embodiment is as follows:
S301: in the process that game process runs, detect the touch pressure that user carries out operating on the screen of the mobile terminal, and gather user's face-image before screen.
This step is similar with S201, describes in detail see S201, repeats no more herein.
S302: judge whether touch pressure is less than or equal to preset pressure threshold value in the first continuous preset time period, and judge whether user's sight line is positioned at outside the viewing area of screen in the first continuous preset time period according to face-image.If so, perform S303, if not, perform S304.
This step is similar with S202, describes in detail see S202, repeats no more herein.
In addition, judge that user's sight line specific implementation whether be positioned at outside the viewing area of described screen includes but not limited to following three kinds of modes according to face-image:
The first implementation: the size calculating face-image, judge whether the area of face-image is less than or equal to preset area threshold value, if be less than or equal to preset area threshold value, then determine that user's sight line is positioned at outside the viewing area of screen, otherwise, determine that user's sight line is positioned at the viewing area of screen.
Wherein, preset area threshold value can be arranged based on experience value, when the size of the face-image obtained is greater than preset area threshold value, the sight line of user is positioned at the viewing area of screen, such as, when the face of user faces the screen of mobile terminal, the area of the face-image of acquisition is maximum; When the size of the face-image obtained is less than or equal to preset area threshold value, the sight line of user is positioned at outside the viewing area of screen, such as: when user facing away from the screen of mobile terminal, the area of the face-image obtained is minimum of a value 0, when user tiltedly faces toward the screen of mobile terminal, the area of the face-image of acquisition is between maximum and minimum of a value.Therefore, can determine whether user's sight line is positioned at outside the viewing area of screen according to the size of the face-image obtained.
The second implementation: according to face-image, determine the face of user and the angle of screen, judge whether angle is more than or equal to predetermined angle threshold value, if be more than or equal to predetermined angle threshold value, then determine that user's sight line is positioned at outside the viewing area of screen, otherwise, determine that user's sight line is positioned at the viewing area of screen.
Wherein, predetermined angle threshold value can rule of thumb be arranged, and generally can be set to 90 degree.
The third implementation: image recognition is carried out to face-image, obtain the eye visual line characteristics of user, according to the eye visual line characteristics of user, determine the transmission point of the sight line of user on screen, judge whether transmission point is positioned at the viewing area of screen, if transmission point is positioned at the viewing area of screen, then determine that user's sight line is positioned at the viewing area of screen, otherwise determine that user's sight line is positioned at outside the viewing area of screen.
Certainly, except above-mentioned three kinds of implementations, can also adopt other eyeball tracking technology, determine that user realizes whether being positioned at outside the viewing area of screen, to this, the present invention is not restricted.
S303: time-out process is carried out to game process.
Namely, touch pressure in the first continuous preset time period, be less than or equal to preset pressure threshold value and described user's sight line is positioned at outside the viewing area of screen in the first continuous preset time period time, to game process carry out time-out process.
S304: judge whether touch pressure is less than or equal to preset pressure threshold value in the first continuous preset time period, or, judge whether user's sight line is positioned at outside the viewing area of screen in the first continuous preset time period according to face-image.If so, perform S305, if not, perform S306.
By analyzing the game operation custom of a large number of users, its analysis result shows, if user is only that touch pressure is less than or equal to preset pressure threshold value within a period of time, illustrates that user is only that finger needs take a break; Or be only that sight line is positioned at (namely sight line leaves viewing area) outside the viewing area of screen within a period of time, illustrate that user is only that eyes need to take a break.
S305: game process is processed slowly.
Namely, below in two kinds of situations, game process is processed slowly, the first situation: if touch pressure is less than or equal to preset pressure threshold value in the first continuous preset time period but user's sight line is positioned at the viewing area of screen in the described first continuous preset time period, then game process is processed slowly.The second situation: if touch pressure is greater than preset pressure threshold value in the first continuous preset time period but user's sight line is positioned at outside the viewing area of screen in the first continuous preset time period, then game process is processed slowly.
In above-mentioned two situations, user just finger needs takes a break or eyes need to take a break, may will soon proceed game, now without the need to suspending game, therefore, the schedule speed of the current game process run is processed slowly, the display at a slow speed of the similar video of this processing procedure.
S306: game process continues.
Namely, game process normally runs, and does not carry out time-out process, does not also process slowly.
The present embodiment, by judging that touch pressure is less than or equal to preset pressure threshold value in the first continuous preset time period, and judge that user's sight line is positioned at outside the viewing area of screen in the first continuous preset time period according to face-image, when above-mentioned two conditions meet simultaneously, time-out process is carried out to game process, when meeting one of them, and, when not meeting another, game process is processed slowly; When two conditions do not meet, game process continues.Can find out, in the process, mobile terminal can judge that user is the need of carrying out suspension of game play operation, carry out game according to judged result and control (whether carrying out suspension of game play), click specific button without the need to user and carry out pausing operation, it is for user, and control mode is very flexible.
Fig. 4 is the flow chart of method for controlling game program embodiment three of the present invention, Fig. 4 is on Fig. 2 or basis embodiment illustrated in fig. 3, after carrying out time-out process, how again game process to be carried out to the process of start treatment to game process, as shown in Figure 4, the method for the present embodiment is as follows:
S401: judge whether touch pressure is more than or equal to preset pressure threshold value in the second continuous preset time period, and judge whether user's sight line is positioned at the viewing area of screen in the second continuous preset time period according to face-image; If so, perform S402, if not, perform S403.
Wherein, the setting of the second continuous preset time period can be arranged based on experience value, generally, arrange the second continuous preset time period than first continuous preset time period short.
When judging that touch pressure is more than or equal to preset pressure threshold value in the second continuous preset time period, and judge that user's sight line is positioned at the viewing area of screen in the second continuous preset time period according to face-image, then illustrate that user has prepared to continue to start to play games.
S402: start treatment is carried out to game process.
Namely, touch pressure is more than or equal to preset pressure threshold value in the second continuous preset time period and user's sight line is positioned at the viewing area of screen in the second continuous preset time period, carries out start treatment to game process.
S403: game process is not processed.
Namely, game process is still in halted state.
The present embodiment, by after game process process suspension process, in the second continuous preset time period, preset pressure threshold value whether is more than or equal to according to touch pressure, and judge whether user's sight line is positioned at the viewing area of screen in the second continuous preset time period according to face-image, determine whether user prepares to continue to start game, when touch pressure is more than or equal to preset pressure threshold value and user's sight line is positioned at the viewing area of screen in the second continuous preset time period in the second continuous preset time period, start treatment is carried out to game process, thus make user get final product fast quick-recovery game process after long-term rest.
Fig. 5 ~ Fig. 7 is the different embodiment that game process control device of the present invention is corresponding below.Game process control device is corresponding with above-described method for controlling game program, and both can be cross-referenced.
Fig. 5 is the structural representation of game process control device embodiment one of the present invention, device shown in Fig. 5 is for controlling the strong class of operation game on mobile terminal, the device of the present embodiment comprises: acquisition module 501, first judge module 502 and the first processing module 503, wherein, acquisition module 501 is in the process run at game process, detect the touch pressure of user at the enterprising line operate of the screen of above-mentioned mobile terminal, and gather the face-image of user before above-mentioned screen; According to above-mentioned face-image, first judge module 502 for judging whether above-mentioned touch pressure is less than or equal to preset pressure threshold value in the first continuous preset time period, and judges whether user's sight line is positioned at outside the viewing area of above-mentioned screen in the above-mentioned first continuous preset time period; If the first processing module 503 is less than or equal to preset pressure threshold value for above-mentioned touch pressure in the first continuous preset time period and above-mentioned user's sight line is positioned at outside the viewing area of above-mentioned screen in the above-mentioned first continuous preset time period, then time-out process is carried out to above-mentioned game process.
The device of the present embodiment, corresponding can be used for the technical scheme performing embodiment of the method shown in Fig. 2, and it is similar that it realizes principle, repeats no more herein.The present embodiment, in the process run at game process, is detected the touch pressure that user carries out operating on the screen of the mobile terminal, and gathers the face-image of user before above-mentioned screen by acquisition module; First judge module judges whether touch pressure is less than or equal to preset pressure threshold value in the first continuous preset time period, and judges whether user's sight line is positioned at outside the viewing area of above-mentioned screen in the above-mentioned first continuous preset time period according to face-image; First processing module touch pressure in the first continuous preset time period, be less than or equal to preset pressure threshold value and user's sight line is positioned at outside the viewing area of screen in the first continuous preset time period time, to above-mentioned game process carry out time-out process.Can find out, in the process, mobile terminal can judge that user is the need of carrying out suspension of game play operation, carry out game according to judged result and control (whether carrying out suspension of game play), click specific button without the need to user and carry out pausing operation, it is for user, and control mode is very flexible.
Fig. 6 is the structural representation of game process control device embodiment two of the present invention, Fig. 6 is on basis embodiment illustrated in fig. 5, further, also comprise the second processing module 504, wherein, if the second processing module 504 is less than or equal to preset pressure threshold value for above-mentioned touch pressure in the first continuous preset time period but above-mentioned user's sight line is positioned at the viewing area of above-mentioned screen in the above-mentioned first continuous preset time period, then above-mentioned game process is processed slowly; Or, if above-mentioned touch pressure is greater than preset pressure threshold value in the first continuous preset time period but above-mentioned user's sight line is positioned at outside the viewing area of above-mentioned screen in the above-mentioned first continuous preset time period, then above-mentioned game process is processed slowly.
Wherein, first judge module 502 is specifically for calculating the size of above-mentioned face-image, judge whether the area of above-mentioned face-image is less than or equal to above-mentioned preset area threshold value, if be less than or equal to above-mentioned preset area threshold value, then determine that above-mentioned user's sight line is positioned at outside the viewing area of above-mentioned screen, otherwise, determine that above-mentioned user's sight line is positioned at the viewing area of above-mentioned screen; Or, according to above-mentioned face-image, determine the face of user and the angle of above-mentioned screen, judge whether above-mentioned angle is more than or equal to above-mentioned predetermined angle threshold value, if be more than or equal to above-mentioned predetermined angle threshold value, then determine that above-mentioned user's sight line is positioned at outside the viewing area of above-mentioned screen, otherwise, determine that above-mentioned user's sight line is positioned at the viewing area of above-mentioned screen; Or, image recognition is carried out to above-mentioned face-image, obtain the eye visual line characteristics of user, according to the eye visual line characteristics of above-mentioned user, determine the transmission point of the sight line of user on above-mentioned screen, judge whether above-mentioned transmission point is positioned at the viewing area of above-mentioned screen, if above-mentioned transmission point is positioned at the viewing area of above-mentioned screen, then determine that above-mentioned user's sight line is positioned at the viewing area of above-mentioned screen, otherwise determine that above-mentioned user's sight line is positioned at outside the viewing area of above-mentioned screen.
The device of the present embodiment, corresponding can be used for the technical scheme performing embodiment of the method shown in Fig. 3, and it realizes principle and technique effect is similar, repeats no more herein.
Fig. 7 is the structural representation of game process control device embodiment three of the present invention, Fig. 7 is on basis embodiment illustrated in fig. 6, further, also comprise the second judge module 505 and the 3rd processing module 506, wherein, according to above-mentioned face-image, second judge module 505 for judging whether above-mentioned touch pressure is more than or equal to above-mentioned preset pressure threshold value in the second continuous preset time period, and judges whether user's sight line is positioned at the viewing area of above-mentioned screen in the above-mentioned second continuous preset time period; If the 3rd processing module 506 is more than or equal to above-mentioned preset pressure threshold value for above-mentioned touch pressure in the second continuous preset time period and above-mentioned user's sight line is positioned at the viewing area of above-mentioned screen in the above-mentioned second continuous preset time period, then start treatment is carried out to above-mentioned game process.
The device of the present embodiment, corresponding can be used for the technical scheme performing embodiment of the method shown in Fig. 4, and it realizes principle and technique effect is similar, repeats no more herein.
The embodiment of the present invention also provides a kind of mobile terminal, and comprise game process control device shown in above-mentioned Fig. 5 to Fig. 7, the introduction of game process control device can refer to and describes above, repeats no more herein.
The mobile terminal that the embodiment of the present invention provides can mobile phone, panel computer, PDA (PersonalDigitalAssistant, personal digital assistant) etc., take mobile terminal as mobile phone be example: shown in Fig. 8 is the block diagram of the part-structure of the mobile phone relevant to the mobile terminal that the embodiment of the present invention provides.With reference to figure 8, mobile phone comprises: radio frequency (RadioFrequency, RF) parts such as circuit 1110, memory 1120, input block 1130, display unit 1140, sensor 1150, voicefrequency circuit 1160, Wireless Fidelity (wirelessfidelity, WiFi) module 1170, processor 1180 and power supply 1190.It will be understood by those skilled in the art that the handset structure shown in Fig. 8 does not form the restriction to mobile phone, the parts more more or less than diagram can be comprised, or combine some parts, or different parts are arranged.
Concrete introduction is carried out below in conjunction with Fig. 8 each component parts to mobile phone:
RF circuit 1110 can be used for receiving and sending messages or in communication process, the reception of signal and transmission, especially, after being received by the downlink information of base station, process to processor 1180; In addition, the up data of design are sent to base station.Usually, RF circuit includes but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (LowNoiseAmplifier, LNA), duplexer etc.In addition, RF circuit 110 can also by radio communication and network and other devices communicatings.Above-mentioned radio communication can use arbitrary communication standard or agreement, include but not limited to global system for mobile communications (GlobalSystemofMobilecommunication, GSM), general packet radio service (GeneralPacketRadioService, GPRS), CDMA (CodeDivisionMultipleAccess, CDMA), WCDMA (WidebandCodeDivisionMultipleAccess, WCDMA), Long Term Evolution (LongTermEvolution, LTE)), Email, Short Message Service (ShortMessagingService, SMS) etc.
Memory 1120 can be used for storing software program and module, and processor 1180 is stored in software program and the module of memory 1120 by running, thus performs various function application and the data processing of mobile phone.Memory 1120 mainly can comprise storage program district and store data field, and wherein, storage program district can store operating system, application program (such as sound-playing function, image player function etc.) etc. needed at least one function; Store data field and can store the data (such as voice data, phone directory etc.) etc. created according to the use of mobile phone.In addition, memory 1120 can comprise high-speed random access memory, can also comprise nonvolatile memory, such as at least one disk memory, flush memory device or other volatile solid-state parts.
Input block 1130 can be used for the numeral or the character information that receive input, and generation arranges with the user of mobile phone 1100 and function controls the input of relevant key signals.Particularly, input block 1130 can comprise contact panel 1131 and other input equipments 1132.Contact panel 1131, also referred to as touch-screen, user can be collected or neighbouring touch operation (such as user uses any applicable object or the operations of annex on contact panel 1131 or near contact panel 1131 such as finger, stylus) thereon, and drive corresponding jockey according to the formula preset.Optionally, contact panel 1131 can comprise touch detecting apparatus and touch controller two parts.Wherein, touch detecting apparatus detects the touch orientation of user, and detects the signal that touch operation brings, and sends signal to touch controller; Touch controller receives touch information from touch detecting apparatus, and converts it to contact coordinate, then gives processor 1180, and the order that energy receiving processor 1180 is sent also is performed.In addition, the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave can be adopted to realize contact panel 1131.Except contact panel 1131, input block 1130 can also comprise other input equipments 1132.Particularly, other input equipments 1132 can include but not limited to one or more in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc.
Display unit 1140 can be used for the various menus showing information or the information being supplied to user and the mobile phone inputted by user.Display unit 1140 can comprise display floater 1141, optionally, the form such as liquid crystal display (LiquidCrystalDisplay, LCD), Organic Light Emitting Diode (OrganicLight-EmittingDiode, OLED) can be adopted to configure display floater 1141.Further, contact panel 1131 can cover display floater 1141, when contact panel 1131 detects thereon or after neighbouring touch operation, send processor 1180 to determine the type of touch event, on display floater 1141, provide corresponding vision to export with preprocessor 1180 according to the type of touch event.Although in fig. 8, contact panel 1131 and display floater 1141 be as two independently parts to realize input and the input function of mobile phone, but in certain embodiments, can by integrated to contact panel 1131 and display floater 1141 and realize the input and output function of mobile phone.
Mobile phone 1100 also can comprise at least one sensor 1150, such as optical sensor, motion sensor and other sensors.Particularly, optical sensor can comprise ambient light sensor and proximity transducer, and wherein, ambient light sensor the light and shade of environmentally light can regulate the brightness of display floater 1141, proximity transducer when mobile phone moves in one's ear, can cut out display floater 1141 and/or backlight.As the one of motion sensor, accelerometer sensor can detect the size of all directions (are generally three axles) acceleration, size and the direction of gravity can be detected time static, can be used for identifying the application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating) of mobile phone attitude, Vibration identification correlation function (such as pedometer, knock) etc.; As for mobile phone also other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, do not repeat them here.
Voicefrequency circuit 1160, loudspeaker 1161, microphone 1162 can provide the COBBAIF between user and mobile phone.Voicefrequency circuit 1160 can by receive voice data conversion after the signal of telecommunication, be transferred to loudspeaker 1161, by loudspeaker 1161 be converted to voice signal export; On the other hand, the voice signal of collection is converted to the signal of telecommunication by microphone 1162, voice data is converted to after being received by voicefrequency circuit 1160, after again voice data output processor 1180 being processed, through RF circuit 1110 to send to such as another mobile phone, or export voice data to memory 1120 to process further.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user to send and receive e-mail by WiFi module 1170, browse webpage and access streaming video etc., and its broadband internet wireless for user provides is accessed.Although Fig. 8 shows WiFi module 1170, be understandable that, it does not belong to must forming of mobile phone 1100, can omit in the scope of essence not changing invention as required completely.
Processor 1180 is control centres of mobile phone, utilize the various piece of various interface and the whole mobile phone of connection, software program in memory 1120 and/or module is stored in by running or performing, and call the data be stored in memory 1120, perform various function and the process data of mobile phone, thus integral monitoring is carried out to mobile phone.Optionally, processor 1180 can comprise one or more processing unit; Preferably, processor 1180 accessible site application processor and modem processor, wherein, application processor mainly processes operating system, user interface and application program etc., and modem processor mainly processes radio communication.Be understandable that, above-mentioned modem processor also can not be integrated in processor 1180.
Mobile phone 1100 also comprises the power supply 1190 (such as battery) of powering to all parts, preferably, power supply can be connected with processor 1180 logic by power-supply management system, thus realizes the functions such as management charging, electric discharge and power managed by power-supply management system.
Although not shown, mobile phone 1100 can also comprise camera, bluetooth module etc., does not repeat them here.
In embodiments of the present invention, processor 1180 included by this mobile terminal also has following functions: in the process that game process runs, detect the touch pressure of user at the enterprising line operate of the screen of above-mentioned mobile terminal, and gather the face-image of user before above-mentioned screen; Judge whether above-mentioned touch pressure is less than or equal to preset pressure threshold value in the first continuous preset time period, and judge whether user's sight line is positioned at outside the viewing area of above-mentioned screen in the above-mentioned first continuous preset time period according to above-mentioned face-image; If above-mentioned touch pressure is less than or equal to preset pressure threshold value in the first continuous preset time period and above-mentioned user's sight line is positioned at outside the viewing area of above-mentioned screen in the above-mentioned first continuous preset time period, then time-out process is carried out to above-mentioned game process.
When being above-mentioned mobile phone about mobile terminal of the present invention, how mobile phone controls game process, see the detailed description of above-mentioned method for controlling game program embodiment, can repeat no more herein.
One of ordinary skill in the art will appreciate that: all or part of step realizing above-mentioned each embodiment of the method can have been come by the hardware that programmed instruction is relevant.Aforesaid program can be stored in a computer read/write memory medium.This program, when performing, performs the step comprising above-mentioned each embodiment of the method; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium.
Last it is noted that above each embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to foregoing embodiments to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein some or all of technical characteristic; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.

Claims (9)

1. a method for controlling game program, is characterized in that, described method is for controlling the strong class of operation game on mobile terminal, and described method comprises:
In the process that game process runs, detect the touch pressure of user at the enterprising line operate of the screen of described mobile terminal, and gather the face-image of user before described screen;
Judge whether described touch pressure is less than or equal to preset pressure threshold value in the first continuous preset time period, and judge whether user's sight line is positioned at outside the viewing area of described screen in the described first continuous preset time period according to described face-image;
If described touch pressure is less than or equal to preset pressure threshold value in the first continuous preset time period and described user's sight line is positioned at outside the viewing area of described screen in the described first continuous preset time period, then time-out process is carried out to described game process.
2. method according to claim 1, is characterized in that, also comprises:
If described touch pressure is less than or equal to preset pressure threshold value in the first continuous preset time period but described user's sight line is positioned at the viewing area of described screen in the described first continuous preset time period, then described game process is processed slowly;
Or,
If described touch pressure is greater than preset pressure threshold value in the first continuous preset time period but described user's sight line is positioned at outside the viewing area of described screen in the described first continuous preset time period, then described game process is processed slowly.
3. method according to claim 1, is characterized in that, described to described game process carry out time-out process after, also comprise:
Judge whether described touch pressure is more than or equal to described preset pressure threshold value in the second continuous preset time period, and judge whether user's sight line is positioned at the viewing area of described screen in the described second continuous preset time period according to described face-image;
If described touch pressure is more than or equal to described preset pressure threshold value in the second continuous preset time period and described user's sight line is positioned at the viewing area of described screen in the described second continuous preset time period, then start treatment is carried out to described game process.
4. the method according to any one of claims 1 to 3, is characterized in that, describedly judges whether user's sight line is positioned at outside the viewing area of described screen in the described first continuous preset time period, comprising according to described face-image:
Calculate the size of described face-image, judge whether the area of described face-image is less than or equal to described preset area threshold value, if be less than or equal to described preset area threshold value, then determine that described user's sight line is positioned at outside the viewing area of described screen, otherwise, determine that described user's sight line is positioned at the viewing area of described screen;
Or,
According to described face-image, determine the face of user and the angle of described screen, judge whether described angle is more than or equal to described predetermined angle threshold value, if be more than or equal to described predetermined angle threshold value, then determine that described user's sight line is positioned at outside the viewing area of described screen, otherwise, determine that described user's sight line is positioned at the viewing area of described screen;
Or,
Image recognition is carried out to described face-image, obtain the eye visual line characteristics of user, according to the eye visual line characteristics of described user, determine the sight line transmission point on the screen of user, judge whether described transmission point is positioned at the viewing area of described screen, if described transmission point is positioned at the viewing area of described screen, then determine that described user's sight line is positioned at the viewing area of described screen, otherwise determine that described user's sight line is positioned at outside the viewing area of described screen.
5. a game process control device, is characterized in that, described device is for controlling the strong class of operation game on mobile terminal, and described device comprises:
Acquisition module, in the process run at game process, detects the touch pressure of user at the enterprising line operate of the screen of described mobile terminal, and gathers the face-image of user before described screen;
First judge module, for judging whether described touch pressure is less than or equal to preset pressure threshold value in the first continuous preset time period, and judge whether user's sight line is positioned at outside the viewing area of described screen in the described first continuous preset time period according to described face-image;
First processing module, if be less than or equal to preset pressure threshold value for described touch pressure in the first continuous preset time period and described user's sight line is positioned at outside the viewing area of described screen in the described first continuous preset time period, then time-out process is carried out to described game process.
6. device according to claim 5, is characterized in that, also comprises:
Second processing module, if be less than or equal to preset pressure threshold value for described touch pressure in the first continuous preset time period but described user's sight line is positioned at the viewing area of described screen in the described first continuous preset time period, then described game process is processed slowly; Or, if described touch pressure is greater than preset pressure threshold value in the first continuous preset time period but described user's sight line is positioned at outside the viewing area of described screen in the described first continuous preset time period, then described game process is processed slowly.
7. device according to claim 6, is characterized in that, also comprises:
Second judge module, for judging whether described touch pressure is more than or equal to described preset pressure threshold value in the second continuous preset time period, and judge whether user's sight line is positioned at the viewing area of described screen in the described second continuous preset time period according to described face-image;
3rd processing module, if be more than or equal to described preset pressure threshold value for described touch pressure in the second continuous preset time period and described user's sight line is positioned at the viewing area of described screen in the described second continuous preset time period, then start treatment is carried out to described game process.
8. the device according to any one of claim 5 ~ 7, it is characterized in that, described first judge module is specifically for calculating the size of described face-image, judge whether the area of described face-image is less than or equal to described preset area threshold value, if be less than or equal to described preset area threshold value, then determine that described user's sight line is positioned at outside the viewing area of described screen, otherwise, determine that described user's sight line is positioned at the viewing area of described screen; Or, according to described face-image, determine the face of user and the angle of described screen, judge whether described angle is more than or equal to described predetermined angle threshold value, if be more than or equal to described predetermined angle threshold value, then determine that described user's sight line is positioned at outside the viewing area of described screen, otherwise, determine that described user's sight line is positioned at the viewing area of described screen; Or, image recognition is carried out to described face-image, obtain the eye visual line characteristics of user, according to the eye visual line characteristics of described user, determine the sight line transmission point on the screen of user, judge whether described transmission point is positioned at the viewing area of described screen, if described transmission point is positioned at the viewing area of described screen, then determine that described user's sight line is positioned at the viewing area of described screen, otherwise determine that described user's sight line is positioned at outside the viewing area of described screen.
9. a mobile terminal, is characterized in that, comprises the game process control device described in any one of claim 5 ~ 8.
CN201410582317.0A 2014-10-27 2014-10-27 Method for controlling game program, device and mobile terminal Active CN104383681B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410582317.0A CN104383681B (en) 2014-10-27 2014-10-27 Method for controlling game program, device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410582317.0A CN104383681B (en) 2014-10-27 2014-10-27 Method for controlling game program, device and mobile terminal

Publications (2)

Publication Number Publication Date
CN104383681A CN104383681A (en) 2015-03-04
CN104383681B true CN104383681B (en) 2016-03-30

Family

ID=52601693

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410582317.0A Active CN104383681B (en) 2014-10-27 2014-10-27 Method for controlling game program, device and mobile terminal

Country Status (1)

Country Link
CN (1) CN104383681B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104808796A (en) * 2015-05-08 2015-07-29 四川天上友嘉网络科技有限公司 Control method for mobile phone game
CN104793872A (en) * 2015-05-08 2015-07-22 四川天上友嘉网络科技有限公司 Mobile phone game pause control method
CN104793960A (en) * 2015-05-08 2015-07-22 四川天上友嘉网络科技有限公司 Automatic mobile phone game pause method
CN105094428A (en) * 2015-07-20 2015-11-25 努比亚技术有限公司 Intelligent terminal and processing method for preventing intelligent terminal against misoperation
CN105739669B (en) * 2016-01-27 2019-06-11 宇龙计算机通信科技(深圳)有限公司 Terminal control method and terminal control mechanism
CN105721939A (en) * 2016-04-29 2016-06-29 乐视控股(北京)有限公司 Video playing method and device
WO2018027488A1 (en) * 2016-08-08 2018-02-15 吕秋萍 Method for pushing ownership information about automatic game pause technology, and control system
WO2018027487A1 (en) * 2016-08-08 2018-02-15 吕秋萍 Method for automatically pausing game, and control system
WO2018027486A1 (en) * 2016-08-08 2018-02-15 吕秋萍 Method for collecting data of automatic game pause technology, and control system
TWI651120B (en) * 2017-09-01 2019-02-21 玩猴遊戲股份有限公司 Game control method and electronic device
CN107767839B (en) * 2017-10-20 2020-01-31 Oppo广东移动通信有限公司 Brightness adjusting method and related product
CN109597562A (en) * 2018-11-30 2019-04-09 深圳市七熊科技有限公司 A kind of multipoint operation processing method and its system for single-touch screen
JP7075909B2 (en) * 2019-03-29 2022-05-26 本田技研工業株式会社 Vehicle control system
CN111462557B (en) * 2020-04-09 2022-03-01 中国人民解放军陆军军医大学第二附属医院 Cardiovascular disease clinical case breakthrough game type teaching application system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000176155A (en) * 1998-12-18 2000-06-27 Enix Corp Video game device and storage medium storing program
US8645985B2 (en) * 2005-09-15 2014-02-04 Sony Computer Entertainment Inc. System and method for detecting user attention
JP5001412B2 (en) * 2010-09-03 2012-08-15 株式会社コナミデジタルエンタテインメント GAME DEVICE, GAME CONTROL METHOD, AND PROGRAM
WO2013094778A1 (en) * 2011-12-19 2013-06-27 Empire Technology Development Llc Pause and resume schemes for gesture-based game
US9471763B2 (en) * 2012-05-04 2016-10-18 Sony Interactive Entertainment America Llc User input processing with eye tracking

Also Published As

Publication number Publication date
CN104383681A (en) 2015-03-04

Similar Documents

Publication Publication Date Title
CN104383681B (en) Method for controlling game program, device and mobile terminal
CN103455407A (en) Mobile terminal CPU (Central Processing Unit) occupation rate monitoring method and device and mobile terminal
CN104780164A (en) Method and device for operating game client
CN104954402A (en) Application recommending method, system and apparatus
CN103500063A (en) Virtual keyboard display method and device and terminal
CN102929503A (en) Method and terminal for selecting files
CN104598476A (en) Message aggregation display method and information display method and relevant device
CN103399633A (en) Wireless remote control method and mobile terminal
CN102833419B (en) Method and terminal for controlling screen state
CN103530520A (en) Method and terminal for obtaining data
CN104980455A (en) Multi-terminal data synchronization method based on cloud storage, device and system thereof
CN105208458A (en) Virtual frame display method and device
CN105224556A (en) Waterfall stream interface display packing and device
CN104657666A (en) Method and device for optimizing terminal operation environment
CN104915091A (en) Method and device for displaying status bar prompt message
CN104133757A (en) Method for obtaining memory information and terminal
CN104954159A (en) Network information statistics method and device
CN103605532A (en) Program control method, device and system
CN105094501A (en) Display method, device and system for messages in mobile terminal
CN104850274A (en) Method and device for realizing key function by infrared induction
CN103546632B (en) A kind of quarter-bell ringing method for mobile terminal, device and mobile terminal
WO2014194759A1 (en) A method, apparatus, and system for controlling voice data transmission
CN105653220B (en) Screen data display method and device in remote control
CN104253870A (en) Method and device for controlling data access period
CN105227598A (en) A kind of resource sharing method, device and system stored based on cloud

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant