CN110339561A - A kind of shooting game optimization method, terminal and computer readable storage medium - Google Patents

A kind of shooting game optimization method, terminal and computer readable storage medium Download PDF

Info

Publication number
CN110339561A
CN110339561A CN201910458824.6A CN201910458824A CN110339561A CN 110339561 A CN110339561 A CN 110339561A CN 201910458824 A CN201910458824 A CN 201910458824A CN 110339561 A CN110339561 A CN 110339561A
Authority
CN
China
Prior art keywords
touch
shooting
real
terminal
initial position
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
Application number
CN201910458824.6A
Other languages
Chinese (zh)
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201910458824.6A priority Critical patent/CN110339561A/en
Publication of CN110339561A publication Critical patent/CN110339561A/en
Pending legal-status Critical Current

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/20Input arrangements for video game devices
    • A63F13/21Input arrangements for video game devices characterised by their sensors, purposes or types
    • A63F13/214Input arrangements for video game devices characterised by their sensors, purposes or types for locating contacts on a surface, e.g. floor mats or touch pads
    • A63F13/2145Input arrangements for video game devices characterised by their sensors, purposes or types for locating contacts on a surface, e.g. floor mats or touch pads the surface being also a display device, e.g. touch screens
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/40Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment
    • A63F13/42Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/80Special adaptations for executing a specific game genre or game mode
    • A63F13/837Shooting of targets
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/0418Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/10Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by input arrangements for converting player-generated signals into game device control signals
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/10Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by input arrangements for converting player-generated signals into game device control signals
    • A63F2300/1068Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by input arrangements for converting player-generated signals into game device control signals being specially adapted to detect the point of contact of the player on a surface, e.g. floor mat, touch pad
    • A63F2300/1075Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by input arrangements for converting player-generated signals into game device control signals being specially adapted to detect the point of contact of the player on a surface, e.g. floor mat, touch pad using a touch screen
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/80Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game specially adapted for executing a specific type of game
    • A63F2300/8076Shooting

Abstract

The embodiment of the invention discloses a kind of shooting game optimization methods, terminal and computer readable storage medium, it is slided for screen, the problem of factors such as player's hand shake cause firing direction to deviate, judge whether current touch-control sliding is that user is desired by whether dropping into be less than in second threshold preset range greater than first threshold at a distance from real-time position of touch and initial position of touch, if dropped within the scope of this, then touch-control sliding is not that user is desired, therefore, terminal will continue to be shot at real-time shooting point, it avoids the problem that because of the too sliding either hand effect of jitter shooting result of screen.The embodiment of the present invention also provides a kind of terminal and computer readable storage medium, based on the judgement to distance between real-time position of touch and initial position of touch, to determine whether current touch-control sliding is that user is desired, and then decide whether to determine shooting point shooting according to the real-time position of touch after sliding, enhance user experience.

Description

A kind of shooting game optimization method, terminal and computer readable storage medium
Technical field
The present invention relates to field of terminal technology, more specifically to a kind of shooting game optimization method, terminal and meter Calculation machine readable storage medium storing program for executing.
Background technique
Shooting game is a kind of game that gaming performance is determined based on player's shooting accuracy, if the shooting of player is quasi- True property is higher, then final gaming performance is also better.So player estimates ability, operational capacity in shooting course, it is right It is most important to win game winnings.But, other than the ability of player itself, it also will affect and penetrate there are also some other factors It hits as a result, if screen is relatively sliding, will also result in firing direction offset direction for example in shooting, this just influences whether that game is used The game experiencing at family, therefore, it is urgent to provide a kind of prioritization schemes of shooting game now, to avoid these factors from tying shooting The influence of fruit.
Summary of the invention
The technical problem to be solved in the present invention is that: a kind of prioritization scheme of shooting game is provided, the external world is avoided The problem of factor causes user's firing direction to deviate, and influences shooting result, for the technical problem, provide a kind of shooting game Optimization method, terminal and computer readable storage medium.
In order to solve the above technical problems, the present invention provides a kind of shooting game optimization method, shooting game optimization Method includes:
When shooting game application is run, detection shooting touch control operation, shooting touch control operation is used to indicate current controlled Emitter is shot at according to shooting point indicated by shooting touch control operation;
Determine the initial position of touch of shooting touch control operation Touch Screen;
The real-time position of touch of monitoring shooting touch control operation;
It determines whether the offset distance between real-time position of touch and initial position of touch is in preset range, presets model It encloses to be less than the range of second threshold greater than first threshold;
In the case where definitive result, which is, is, continues to determine the point of shooting in real time with initial position of touch and be shot at.
Optionally, determine whether the offset distance between real-time position of touch and initial position of touch is in preset range Later, further includes:
In the case where definitive result is no, the point of shooting in real time is determined with real-time position of touch and is shot at.
Optionally, determine whether the offset distance between real-time position of touch and initial position of touch is in preset range Before, further includes:
It determines and is currently in shooting optimization processing mode, and determine that current game user has and be shot at result The permission of optimization.
Optionally, determine that the initial position of touch for shooting touch control operation Touch Screen includes:
Distribute Action Down by dispathTouchEvent (touch event distribution) mechanism in terminal ccf layer (to press Sub-screen) event when, record Action Down event coordinate position as initial position of touch.
Optionally, the real-time position of touch of monitoring shooting touch control operation includes:
Whether monitoring terminal ccf layer passes through dispathTouchEvent mechanism distribution Action Move (sliding screen) Event;
If so, the corresponding coordinate position of record Action Move event is as real-time position of touch;
If it is not, the real-time position of touch for then shooting touch control operation is initial position of touch.
Optionally, shooting game optimization method further include:
Offsets when being shot at based on current controlled emitter determine corrected range;
Line displacement compensation actively is clicked through to real-time shooting according to corrected range.
Optionally, actively clicking through line displacement compensation to real-time shooting according to corrected range includes:
Control dispathTouchEvent actively distributes Action Move event;
Line displacement compensation is clicked through to real-time shooting according to corrected range according to Action Move event.
Optionally, control dispathTouchEvent actively distributes Action Move event and includes:
Control dispathTouchEvent periodically actively distributes Action Move event.
Further, the present invention also provides a kind of terminal, which includes processor, memory and communication bus;
Communication bus is for realizing the connection communication between processor and memory;
Processor is for executing one or more program stored in memory, to realize the shooting of as above any one The step of game optimization method.
Further, the present invention also provides a kind of computer readable storage medium, which is deposited One or more program is contained, one or more program can be executed by one or more processor, to realize as in power The step of shooting game optimization method of any one.
Beneficial effect
The embodiment of the present invention provides a kind of shooting game optimization method, terminal and computer readable storage medium, for The problem of factors such as screen sliding, the shake of player's hand cause firing direction to deviate, influence gaming performance, the embodiment of the present invention mentions The shooting game optimization method of confession, by the way that when shooting game application is run, detection is used to indicate current controlled transmitting dress The shooting touch control operation being shot at according to the point of shooting indicated by shooting touch control operation is set, and determines shooting touch control operation touch-control The initial position of touch of screen, then the real-time position of touch of touch control operation is shot in monitoring;Determine real-time position of touch and initial Whether the offset distance between position of touch is in preset range, in the case where definitive result, which is, is, continues initially to touch Control position determines that the point of shooting in real time is shot at.Since user is during operating controlled emitter progress game shooting, Because the too sliding either hand shake of screen causes real-time position of touch to deviate, in the case of this deviation, real-time position of touch and just There can be a certain distance between beginning position of touch, but distance will not be too far, therefore, in the present embodiment, pass through real-time touch-control position It sets whether to drop into be less than in second threshold preset range greater than first threshold at a distance from initial position of touch and judge currently Touch-control sliding whether be that user is desired, if dropped within the scope of this, the touch-control sliding be not that user is desired, because This, terminal will continue to be shot at real-time shooting point, avoid because of the too sliding either hand effect of jitter shooting result of screen The problem of, enhance the game experiencing of user.The embodiment of the present invention also provides a kind of terminal and computer readable storage medium, base In the judgement to distance between real-time position of touch and initial position of touch, to determine whether current touch-control sliding is user's institute's phase It hopes, and then decides whether to determine the point shooting of shooting in real time according to the real-time position of touch after sliding, enhance user experience.
Detailed description of the invention
Present invention will be further explained below with reference to the attached drawings and examples, in attached drawing:
The hardware structural diagram of Fig. 1 each embodiment one optional mobile terminal to realize the present invention.
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is a kind of flow chart of the shooting game optimization method provided in first embodiment of the invention;
Fig. 4 is a kind of human-computer interaction schematic diagram of the terminal provided in first embodiment of the invention;
Fig. 5 is that one kind of distance between the real-time position of touch and initial position of touch that provide in first embodiment of the invention is shown It is intended to;
Fig. 6 is that position of touch and initial position of touch offset distance are in pre- in real time shown in first embodiment of the invention If the shooting result schematic diagram outside range;
Fig. 7 is that position of touch and initial position of touch offset distance are in pre- in real time shown in first embodiment of the invention If the shooting result schematic diagram in range;
Fig. 8 is another human-computer interaction schematic diagram of the terminal provided in first embodiment of the invention;
Fig. 9 is a kind of flow chart that the terminal active correction that provides shoots a little in real time in first embodiment of the invention;
Figure 10 is a kind of flow chart of the shooting game optimization method provided in second embodiment of the invention;
Figure 11 is a kind of hardware structural diagram of the terminal provided in third embodiment of the invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, plate Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable Media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer etc. move The fixed terminals such as dynamic terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special Except element for moving purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting Dynamic terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1 Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram, Perhaps certain components or different component layouts are combined.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating Frequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102 Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need It to omit within the scope of not changing the essence of the invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103 Audio output relevant to the specific function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, disappears Breath receives sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model. Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition) The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071 Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel 1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it can The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example, External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place Managing device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, the communications network system that mobile terminal of the invention is based below into Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention, the communication network system System is the LTE system of universal mobile communications technology, which includes UE (User Equipment, the use of successively communication connection Family equipment) (the land Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers Such as the function of home location register (not shown) etc, and preserves some related service features, data rates etc. and use The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201 Address distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resource Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art should know the present invention is not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And the following new network system etc., herein without limitation.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the method for the present invention is proposed.
First embodiment
Cause user when operating shooting game in order to avoid sliding very much because of screen, firing direction offset occurs, or Smile shake when being due to user's operation causes firing direction to deviate, and the present embodiment provides a kind of shooting game optimization sides Method refers to the flow chart of the shooting game optimization method shown in Fig. 3:
S302: terminal is when shooting game application is run, detection shooting touch control operation.
In the present embodiment, when running shooting game application, terminal can detect shooting touch control operation.Shooting touching Control operation is the operation being shot at for controlling controlled emitter current in game application.Controlled transmitting described here Device can be " firearms ", " bow ", " crossbow " the even devices such as " catapult " and " javelin ", these devices in game and require use Then family run-home emits the devices such as " bullet ", " sword " and hits the mark, namely user is required to carry out fixed-point operation.So answering When it is realized that, the shooting game application in the present embodiment refers not only to " firearms " shooting game application, is also possible to other Shooting game application.
It should be appreciated that the shooting touch control operation that user issues to terminal, it will usually go out to shoot point to terminal is specified, Specify the firing direction of this shooting course.So the accuracy that user issues shooting touch control operation directly affects shooting As a result accuracy, if there is the offset other than user's subjective desire for some reason in the shooting touch control operation issued, Meeting influences shooting result so that firing direction offset.
Currently, for shooting game designed by the terminal with touch screen, substantially all using touch screen as operation Input unit, in this way, user is also substantially by carrying out touch control operation on touch screen to issue shooting touch control operation.? In the present embodiment, terminal can detect the touch control operation of user by the sensor being arranged in touch screen, determine under user Whether the touch control operation of hair is shooting touch control operation.
S304: terminal determines the initial position of touch of shooting touch control operation Touch Screen.
After terminal detects the shooting touch control operation in shooting game application, terminal can determine shooting touch-control behaviour Make the initial position of touch of touch screen, which that is to say user when being shot at touch control operation by touch screen Most start touch-control to the position of screen.In the present embodiment, initial position of touch is considered that user's control is controlled emitter The position that operation is actually wanted to when being shot at, can determine a shooting point according to the initial position of touch.
Optionally, in a kind of example of the present embodiment, terminal can pass through dispathTouchEvent in ccf layer When mechanism distributes Action Down event, the coordinate position of the Action Down event is recorded, the coordinate position recorded is i.e. For initial position of touch.
S306: the real-time position of touch of terminal monitoring shooting touch control operation.
It should be appreciated that user may not can guarantee during issuing a shooting touch control operation to terminal Constant is remained to the position of touch of touch screen in this shooting touch control operation, because there is too many factor that can penetrate in user The position of shooting touch control operation is influenced when hitting touch control operation.So in the present embodiment, for a shooting touch control operation For, other than initial position of touch, also have real-time position of touch.Real-time position of touch is that user is issuing shooting touching Control operates later real time position.Certainly, if user is after issuing shooting touch control operation, the position of finger and screen contact Just there is no crossing to change, then real-time position of touch is exactly initial position of touch.But if in the mistake for issuing shooting touch control operation Cheng Zhong occurred moving, and referred to a kind of signal shown in Fig. 4 after the initial position of touch 401 of gesture contact touch screen Figure, then the real-time position of touch for shooting touch control operation will be not equal to initial position of touch, but need to be worked as according to user's finger The preceding position contacted with screen determines.
In some examples of the present embodiment, issued receiving ccf layer by dispathTouchEvent mechanism Action Down event after, terminal can also continue to what detection block rack-layer was issued by dispathTouchEvent mechanism Action Move event, if terminal monitoring has issued Action by dispathTouchEvent mechanism to ccf layer Move event then illustrates that position movement has occurred in the shooting touch control operation of user, and therefore, terminal is available to arrive Action The corresponding real-time position of touch of Move event.If terminal does not monitor Action Move event always, terminal, which determines, to be used There is no movements substantially for the shooting touch control operation that family issues, and therefore, the coordinate of real-time position of touch records first before being The coordinate of beginning position of touch.
S308: terminal determines that the offset distance between real-time position of touch and initial position of touch is in preset range.
After determining real-time position of touch and initial position of touch, terminal can determine between the two positions away from From, namely determine issue shooting touch control operation since user touch-control to the position of screen to distance current position of touch Size.It is assumed herein that the coordinate value of initial position of touch A is (x0, y0), and the coordinate value of position of touch B is (x1, y1) in real time, Refer to a kind of schematic diagram of distance between the real-time position of touch B and initial position of touch A shown in Fig. 5, then, between AB away from From
After determining the distance between real-time position of touch and initial position of touch, terminal can be determined between the two Whether distance drops into preset range.In the present embodiment, the value of preset range is greater than first threshold, less than the second threshold Value.
It should be understood that if position of touch distance d between initial position of touch is more than or equal to second threshold in real time, Then illustrating user during being shot at touch control operation, position change is larger, belong to apparent change, and usual situation Under because sliding caused by screen is too sliding and finger shake be it is subtleer, will not be so obvious, therefore, in this reality It applies in example, if position of touch distance d between initial position of touch is more than or equal to second threshold in real time, this can be considered The sliding change of kind position is user's active, that is to say that user is desired.
In addition, this will be considered that if position of touch distance d between initial position of touch is less than or equal to first threshold in real time Position sliding in shooting touch control operation, which changes, to be not obvious, and will not influence final shooting result substantially, so, shooting is touched The case where distance d is less than or equal to first threshold between position of touch and initial position of touch in real time in control operation, in the present embodiment Terminal can not do shooting optimization processing.It should be appreciated that in the present embodiment, first threshold is that value is smaller. In some examples of the present embodiment, the value of first threshold can be 0.In this example, as long as terminal detects Any point offset has occurred relative to initial position of touch in real-time position of touch, can all determine that needs are shot at optimization Reason.
In the present embodiment, the size of first threshold and second threshold can be stored in advance in terminal, optionally, the first threshold At least one of value and second threshold can be arranged based on experience value by program staff, such as can be by terminal program personnel Setting is also possible to program staff's setting of game application.In some examples, when setting first threshold is with second threshold, Program staff may consider the factors such as the material of screen.
S310: terminal is continued to be determined the point of shooting in real time with initial position of touch and is shot at.
If by judgement, terminal determine real-time position of touch between initial position of touch at a distance from be greater than first threshold, Less than second threshold, then terminal can control is shot at the real-time shooting point that initial position of touch is determined, optionally, eventually End intercepts the Action Move event that ccf layer is issued by dispathTouchEvent mechanism, will shoot touch control operation process In sliding ignore, continue using the initial position of touch before sliding be used as when Forward Firing foundation.
That is, when terminal carries out assessing it in the size to distance between real-time position of touch and initial position of touch Afterwards, it is undesirable can to determine whether the sliding during shooting touch control operation belongs to user, and significantly affects shooting result Sliding, if it is determined that be, then terminal can formally be shot at when shielding, neglect the sliding so that sliding not The shooting result of user is impacted.
In some examples of the present embodiment, if the terminal determine that in real time between position of touch and initial position of touch away from From not within a preset range, for example, in real time position of touch between initial position of touch at a distance from be more than or equal to second threshold, or It is less than and is equal to first threshold, then terminal can not optimize processing to shooting result, namely mask frame rack-layer does not pass through The Action Move event that dispathTouchEvent mechanism issues, directly determines to shoot in real time according to real-time position of touch Then point is shot at according to the point of shooting in real time.Refer to two kinds of shooting result schematic diagrames shown in Fig. 6, Fig. 7: for the ease of It introduces, the shooting point determined according to initial position of touch is become into " initially shooting a little " here, in Fig. 6, because with Family issue shooting touch control operation when, real-time position of touch between initial position of touch at a distance from be greater than second threshold, therefore, Current real-time shooting point 62 has also offset from initial shooting point 61.But in the shooting result schematic diagram shown in Fig. 7, because penetrating Hit the real-time position of touch of touch control operation between initial position of touch at a distance from preset range, therefore, terminal is final In shooting result, the point of shooting in real time 72 is initial shooting point 71, in other words, the point of shooting in real time 72 and 71 weights of initial shooting point It closes.
In the present embodiment, whether dropped at a distance from initial position of touch greater than the first threshold by real-time position of touch Value, which is less than in second threshold preset range, judges whether current touch-control sliding is that user is desired, if dropping into the range Interior, then touch-control sliding is not that user is desired, and therefore, terminal will continue to be shot at initial shooting point, avoid because of Screen slides very much the problem of either hand effect of jitter shooting result, enhances the game experiencing of user.
Shooting game optimization method provided in this embodiment is mainly applied in shooting game application, but ability Field technique personnel, which should be appreciated that, is not that all shooting game applications require to be shot at optimization, so, at this In some examples of embodiment, an optimization list, which can be stored in advance, in terminal can recorde all fingers in the optimization list The shooting game application that fixed needs optimize.Mask frame rack-layer is determined the need in terminal to pass through Before the Action Move event that dispathTouchEvent mechanism issues, terminal can first monitor current foreground application. Current foreground application is judged whether in optimization list, if it is judged that being yes, it is determined that need to penetrate to currently running Hit class game application and be shot at optimization, if it is judged that be it is no, then explanation need not for currently running foreground application into Row shooting optimization processing.
In some examples of the present embodiment, " shooting optimization processing mode " is provided in terminal, when user is by opening After dynamic instruction starting shooting optimization processing mode, when terminal operating shooting game application, terminal can be before It gives an account of to continue and shooting result is optimized, refer to a kind of human-computer interaction schematic diagram of the terminal shown in Fig. 8.If user does not have Please terminal " shooting optimization processing mode ", then no matter user sliding whether occur during issuing shooting touch control operation inclined It moves, then terminal all can only determine shooting point in real time according to real-time position of touch.
In some examples of the present embodiment, terminal is inclined between the real-time position of touch of determination and initial position of touch Before distance is moved whether in preset range, it can also first determine whether current game user has and be shot at optimization operation Permission, only in the case where definitive result, which is, is, terminal just can be at a distance from real-time touch-control be located between initial position of touch Shooting result is optimized in the case where meeting the requirements, otherwise, is even handled between position and initial position of touch in real time Distance be greater than first threshold be less than second threshold, but terminal still processing will not be optimized to shooting result, in this feelings Under condition, terminal naturally also just It is not necessary to come size at a distance from determining real-time position of touch between initial position of touch, so, In these examples, terminal can judge whether the offset distance between real-time position of touch and initial position of touch is in default Just first determine whether current game user has shooting result optimization processing permission before in range.
In some examples of the present embodiment, demanding terminal is only opening optimization processing mode of shooting, and determination is worked as It, just can be at a distance from real-time position of touch be between initial position of touch when preceding game user has shooting result optimization permission Processing is optimized to shooting result in the case where in preset range, so, in these examples, terminal can judge Offset distance between real-time position of touch and initial position of touch just first determines current trip before whether being in preset range Whether play user has shooting result optimization processing permission, and determines whether terminal has currently had been switched on shooting optimization processing mould Formula.
In above-mentioned example, terminal is based primarily upon the mode of " ignoring sliding " to optimize to shooting result, at this In the other example of embodiment, terminal is in addition to optimizing shooting result based on the mode of " ignoring sliding ", also " active correction " can be carried out to firing operation, incorporated by reference to the flow chart shown in Fig. 9:
S902: offsets when being shot at based on current controlled emitter determine corrected range.
Since the controlled emitter in game application is to simulate equipment such as practical " firearms ", it is swum in shooting Play application in, be controlled emitter when being shot at, emission port caused by also simulating because of " kick " raise up ( I.e. shooting point raise up) etc. deviate.In order to reduce emission port bias effect brought by controlled emitter " recoil ", at these In the example for carrying out " active correction " to firing operation, terminal can be special according to offset of the emitter when being shot at is controlled Property determines corrected range.Under normal conditions, the size of corrected range and deviant of the controlled emitter in transmitting are similar, It is but contrary.In some examples, corrected range be equal to deviant, for example, a controlled emitter transmitting when, 2 pixels are deviated on emission port, then corrected range is also 2 pixels, but modified direction is downward.
It is understood that different controlled emitters has different offsets, by taking " firearms " as an example, " firearms " Type is different, then;Deviant, offset direction etc. all can be distinct, may be in each shooting with M4A16 rifle 8 pixels are deviated, but the offset of other " firearms " may not only 8 pixels.So determining current controlled transmitting dress When the corrected range set, need to be determined according to the offsets of current controlled emitter.
S904: line displacement compensation is actively clicked through to real-time shooting according to corrected range.
After determining corrected range, terminal actively can click through line displacement to real-time shooting according to corrected range and mend It repays.Continuing the offset characteristic to be controlled emitter is to be illustrated for shooting point offsets up 2 pixels: in controlled hair After injection device is according to shooting touch control operation, the real-time shooting point of controlled emitter has offset up two pixels, therefore, If user is without actively changing firing direction, when be shot at next time, terminal will be in current shooting point in real time On the basis of will in real time shooting point ordinate value reduce two pixels.
In some examples of the present embodiment, terminal can control dispathTouchEvent and actively distribute Action Move event, and line displacement compensation is clicked through to real-time shooting according to the corrected range according to Action Move event.
It is true although being deviated it is understood that controlled emitter can have the shooting point unrelated with user's operation On, this offset is not obvious, and big influence will not be caused to the shooting result of user in a short time, however, this Offset has build-up effect, once overlong time, then can significantly affect firing direction and shooting result, so, in the present embodiment Some examples in, terminal all will not click through line displacement compensation to real-time shooting after each shooting, but periodically It carries out.For example it is assumed that statistical result indicate the time it is every cross 100ms, be controlled emitter real-time shooting point will because of with user It operates unrelated shooting point offset and larger change occurs, then terminal can be using 100ms as a cycle, periodically basis Corrected range actively clicks through line displacement compensation to real-time shooting.So terminal can control dispathTouchEvent periodicity Actively distribute Action Move event and realize migration in ground.
Shooting game optimization method provided in this embodiment not only can avoid penetrating based on the mode of " ignoring sliding " Hitting the sliding that result is controlled by the user during by user's shooting touch control operation is influenced, moreover, it is also possible to according to currently quilt The offsets of control emitter to carry out active correction to the offset of real-time shooting point, to promote the accurate of user's shooting Property, enhance user's game experiencing.
Second embodiment
The advantages of in order to enable those skilled in the art to become apparent from shooting game optimization method provided by the present invention With details, the present embodiment will be described further shooting game optimization method in conjunction with example, it is assumed that the end in the present embodiment End is mobile phone, referring to Figure 10:
S1002: detection shooting touch control operation.
In the present embodiment, mobile phone can detect the touch control operation of user by the sensor being arranged in touch screen, Determine whether the touch control operation that user issues is shooting touch control operation.
S1004: Action Down event is distributed by dispathTouchEvent, and records Action Down event Corresponding position of touch is as initial position of touch.
After mobile phone detects the shooting touch control operation in shooting game application, mobile phone can determine shooting touch-control behaviour Make the initial position of touch of touch screen, in the present embodiment, the ccf layer of mobile phone can be distributed by dispathTouchEvent Action Down event, may be selected volume, and mobile phone records the corresponding position of touch of Action Down event as initial touch-control position It sets.
S1006: the Action Down event that monitoring is distributed by dispathTouchEvent.
In some examples of the present embodiment, issued receiving ccf layer by dispathTouchEvent mechanism Action Down event after, mobile phone can also continue to what detection block rack-layer was issued by dispathTouchEvent mechanism Action Move event, if mobile phone monitors that ccf layer has issued Action by dispathTouchEvent mechanism Move event then illustrates that position movement has occurred in the shooting touch control operation of user, and therefore, mobile phone is available to arrive Action The corresponding real-time position of touch of Move event.
S1008: judge whether to monitor Action Down event.
If the determination result is YES, then enter S1010, otherwise execute S1018.
If mobile phone does not monitor Action Move event always, mobile phone determines the shooting touch-control behaviour that user issues There is no movements substantially for work, therefore, the coordinate for the initial position of touch that the coordinate of real-time position of touch records before being.
S1010: determine the corresponding position of touch of Action Down event as real-time position of touch.
If mobile phone monitors that ccf layer has issued Action Move event by dispathTouchEvent mechanism, Illustrate that position movement has occurred in the shooting touch control operation of user, therefore, mobile phone is available corresponding to Action Move event Real-time position of touch.
S1012: the offset distance between real-time position of touch and initial position of touch is determined.
It is assumed that the coordinate value of the initial position of touch of mobile phone record is (x0, y0), and the coordinate value of position of touch B is in real time (x1, y1), then, distance between real-time position of touch and initial position of touch
S1014: judge whether offset distance is in preset range.
If the determination result is YES, then enter S1016, otherwise, into S1018.
It is calculated between real-time position of touch and initial position of touch after distance based on above-mentioned formula, mobile phone can be further Determine whether offset distance d is in preset range namely whether offset distance is greater than first threshold, is less than second threshold. If it is determined that offset distance is in preset range, then illustrate that the sliding for shooting touch control operation is not user it is contemplated that and should Sliding can significantly affect the shooting grade of user.If instead it is determined that offset distance except preset range, then illustrates shooting touching The sliding of control operation may be caused by user's active, be the desired sliding of user;Although may also slide not is to use Family subjective desire is desired, but the sliding can't significantly affect the shooting grade of user.
S1016: the point of shooting in real time is determined according to initial position of touch and is shot at.
If by judgement, mobile phone determine real-time position of touch between initial position of touch at a distance from be greater than first threshold, Less than second threshold, then mobile phone can control is shot at the real-time shooting point that initial position of touch is determined, optionally, hand Machine intercepts the Action Move event that ccf layer is issued by dispathTouchEvent mechanism, will shoot touch control operation process In sliding ignore, continue using the initial position of touch before sliding be used as when Forward Firing foundation.
S1018: the point of shooting in real time is determined according to real-time position of touch and is shot at.
If mobile phone determine real-time position of touch between initial position of touch at a distance from not within a preset range, for example, real When position of touch between initial position of touch at a distance from be more than or equal to second threshold, or be less than or equal to first threshold, then hand Machine can not optimize processing to shooting result, namely mask frame rack-layer is not issued by dispathTouchEvent mechanism Action Move event, directly determined to shoot point in real time according to real-time position of touch, then according in real time shooting point carry out Shooting.
In the present embodiment, mobile phone can not only optimize shooting result based on the mode of " ignoring sliding ", moreover, Can also " active correction " be carried out to firing operation:
Mobile phone can determine corrected range according to offset characteristic of the emitter when being shot at is controlled.It is determining to correct After distance, mobile phone actively can click through line displacement compensation to real-time shooting according to corrected range.Optionally, mobile phone can control DispathTouchEvent periodically actively distributes Action Move event, and according to Action Move event according to repairing Positive distance clicks through line displacement compensation to real-time shooting.
Shooting game optimization method provided in this embodiment, mobile phone pass through real-time position of touch and initial position of touch Whether distance, which drops into be less than in second threshold preset range greater than first threshold, is judged whether current touch-control sliding is to use Family is desired, if dropped within the scope of this, touch-control sliding is not that user is desired, and therefore, mobile phone will continue with first Beginning shooting point is shot at, and avoids the problem that enhancing user because screen is slided very much or hand effect of jitter shooting result Game experiencing.
Further, mobile phone can also be according to the offsets of current controlled emitter come periodically to penetrating in real time The offset hit a little carries out active correction, to promote the accuracy of user's shooting, enhances user's game experiencing.
3rd embodiment
The present embodiment will provide a kind of computer readable storage medium and a kind of terminal, first to the computer-readable storage Medium is introduced:
One or more computers for reading, compiling or executing for memory are stored in the computer readable storage medium Program, wherein just include shooting game optimize program, the display control program for processor execute to realize first or The shooting game optimization method provided in second embodiment.
Referring to Figure 11 provide terminal hardware structural diagram: terminal 11 include processor 111, memory 112 with And the communication bus 113 for connecting processor 111 Yu memory 112, wherein memory 112 can be stored with shooting to be aforementioned The computer readable storage medium of class game optimization program.The processor 111 of terminal 11 can execute storage in memory 112 and penetrate Class game optimization program is hit to realize the shooting game optimization method in previous embodiment:
When shooting game application is run, the detection shooting touch control operation of processor 111, shooting touch control operation is used to indicate Currently controlled emitter is shot at according to shooting point indicated by shooting touch control operation;
Processor 111 determines the initial position of touch of shooting touch control operation Touch Screen, and monitors shooting touch control operation Real-time position of touch.
Then, processor 111 determines whether the offset distance between real-time position of touch and initial position of touch is in pre- If in range, preset range is to be less than the range of second threshold greater than first threshold;
In the case where definitive result, which is, is, processor 111 continues to determine that the point of shooting in real time is gone forward side by side with initial position of touch Row shooting.
In a kind of example of the present embodiment, processor 111 is determined between real-time position of touch and initial position of touch After whether offset distance is in preset range, it can also be determined in the case where definitive result is no with real-time position of touch The point of shooting in real time is simultaneously shot at.
In a kind of example of the present embodiment, determine that the offset distance between real-time position of touch and initial position of touch is It is no in the preset range before, processor 111, which can also be determined first, to be currently in shooting optimization processing mode, and is determined and worked as Preceding game user has the permission for being shot at result optimizing.
Optionally, processor 111 can distribute Action by dispathTouchEvent mechanism in terminal ccf layer When Down event, the coordinate position of Action Down event is recorded as initial position of touch.
Optionally, the real-time position of touch of monitoring shooting touch control operation includes:
Processor 111 monitors whether terminal ccf layer passes through dispathTouchEvent mechanism distribution Action Move thing Part;If so, processor 111 records the corresponding coordinate position of Action Move event as real-time position of touch;If it is not, then The real-time position of touch that processor 111 shoots touch control operation is initial position of touch.
In a kind of example of the present embodiment, when processor 111 can be also shot at based on current controlled emitter Offsets determine corrected range, and actively click through line displacement compensation to real-time shooting according to corrected range.
Optionally, processor 111 controls dispathTouchEvent and actively distributes Action Move event, and according to Action Move event clicks through line displacement compensation to real-time shooting according to corrected range.
In a kind of example of the present embodiment, processor 111 controls dispathTouchEvent and periodically actively divides Send out Action Move event.
The terminal and computer readable storage medium of the present embodiment, by real-time position of touch and initial position of touch away from From whether dropping into be less than in second threshold preset range greater than first threshold and judge whether current touch-control sliding is user Desired, if dropped within the scope of this, touch-control sliding is not that user is desired, and therefore, terminal will continue with real-time Shooting point is shot at, and is avoided the problem that because the too sliding either hand effect of jitter shooting result of screen, enhances user's Game experiencing.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form, all of these belong to the protection of the present invention.

Claims (10)

1. a kind of shooting game optimization method, which is characterized in that the shooting game optimization method includes:
When shooting game application is run, detection shooting touch control operation, the shooting touch control operation is used to indicate current controlled Emitter is shot at according to shooting point indicated by the shooting touch control operation;
Determine the initial position of touch of the shooting touch control operation Touch Screen;
Monitor the real-time position of touch of the shooting touch control operation;
Determine whether the offset distance between the real-time position of touch and the initial position of touch is in preset range, institute Stating preset range is to be less than the range of second threshold greater than first threshold;
In the case where definitive result, which is, is, continues to determine the point of shooting in real time with the initial position of touch and be shot at.
2. shooting game optimization method as described in claim 1, which is characterized in that the determination real-time position of touch After whether the offset distance between the initial position of touch is in preset range, further includes:
In the case where definitive result is no, the point of shooting in real time is determined with the real-time position of touch and is shot at.
3. shooting game optimization method as described in claim 1, which is characterized in that the determination real-time position of touch Before whether the offset distance between the initial position of touch is in preset range, further includes:
It determines and is currently in shooting optimization processing mode, and determine that current game user has and be shot at result optimizing Permission.
4. shooting game optimization method as described in claim 1, which is characterized in that the determination shooting touch control operation The initial position of touch of Touch Screen includes:
The distribution of dispathTouchEvent mechanism is distributed by touch event in terminal ccf layer and presses sub-screen Action Down When event, the coordinate position of the Action Down event is recorded as the initial position of touch.
5. shooting game optimization method as described in claim 1, which is characterized in that the monitoring shooting touch control operation Real-time position of touch include:
Whether monitoring terminal ccf layer passes through dispathTouchEvent mechanism distribution sliding screen Action Move event;
If so, recording the corresponding coordinate position of the Action Move event as the real-time position of touch;
If it is not, then the real-time position of touch of the shooting touch control operation is the initial position of touch.
6. shooting game optimization method as described in any one in claim 1-5, which is characterized in that the shooting game is excellent Change method further include:
Offsets when being shot at based on the current controlled emitter determine corrected range;
Line displacement compensation actively is clicked through to the real-time shooting according to the corrected range.
7. shooting game optimization method as claimed in claim 6, which is characterized in that described according to the corrected range active Clicking through line displacement compensation to the real-time shooting includes:
It controls the dispathTouchEvent and actively distributes Action Move event;
Line displacement compensation is clicked through to the real-time shooting according to the corrected range according to the Action Move event.
8. shooting game optimization method as claimed in claim 7, which is characterized in that described in the control DispathTouchEvent actively distributes Action Move event
It controls the dispathTouchEvent and periodically actively distributes Action Move event.
9. a kind of terminal, which is characterized in that the terminal includes processor, memory and communication bus;
The communication bus is for realizing the connection communication between processor and memory;
The processor is for executing one or more program stored in memory, to realize as appointed in claim 1 to 8 The step of shooting game optimization method described in one.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage have one or Multiple programs, one or more of programs can be executed by one or more processor, to realize such as claim 1 to 8 Any one of described in shooting game optimization method the step of.
CN201910458824.6A 2019-05-29 2019-05-29 A kind of shooting game optimization method, terminal and computer readable storage medium Pending CN110339561A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910458824.6A CN110339561A (en) 2019-05-29 2019-05-29 A kind of shooting game optimization method, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910458824.6A CN110339561A (en) 2019-05-29 2019-05-29 A kind of shooting game optimization method, terminal and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN110339561A true CN110339561A (en) 2019-10-18

Family

ID=68174435

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910458824.6A Pending CN110339561A (en) 2019-05-29 2019-05-29 A kind of shooting game optimization method, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110339561A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111151002A (en) * 2019-12-30 2020-05-15 北京金山安全软件有限公司 Touch aiming method and device
CN112619163A (en) * 2020-12-22 2021-04-09 上海米哈游天命科技有限公司 Flight path control method and device, electronic equipment and storage medium
CN113274720A (en) * 2021-06-11 2021-08-20 焦作大学 Computer data acquisition method for virtual reality

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080070684A1 (en) * 2006-09-14 2008-03-20 Mark Haigh-Hutchinson Method and apparatus for using a common pointing input to control 3D viewpoint and object targeting
CN108815843A (en) * 2018-05-24 2018-11-16 网易(杭州)网络有限公司 The control method and device of virtual rocking bar
CN109011573A (en) * 2018-07-18 2018-12-18 网易(杭州)网络有限公司 A kind of shooting criterions method and apparatus in game
CN109324739A (en) * 2018-09-28 2019-02-12 腾讯科技(深圳)有限公司 Control method, device, terminal and the storage medium of virtual objects

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080070684A1 (en) * 2006-09-14 2008-03-20 Mark Haigh-Hutchinson Method and apparatus for using a common pointing input to control 3D viewpoint and object targeting
CN108815843A (en) * 2018-05-24 2018-11-16 网易(杭州)网络有限公司 The control method and device of virtual rocking bar
CN109011573A (en) * 2018-07-18 2018-12-18 网易(杭州)网络有限公司 A kind of shooting criterions method and apparatus in game
CN109324739A (en) * 2018-09-28 2019-02-12 腾讯科技(深圳)有限公司 Control method, device, terminal and the storage medium of virtual objects

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
执笔临旧憾: "《行星边际参数、作用机制及衍生技巧》", 《HTTPS://WWW.BILIBILI.COM/READ/MOBILE/1776150》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111151002A (en) * 2019-12-30 2020-05-15 北京金山安全软件有限公司 Touch aiming method and device
CN112619163A (en) * 2020-12-22 2021-04-09 上海米哈游天命科技有限公司 Flight path control method and device, electronic equipment and storage medium
CN113274720A (en) * 2021-06-11 2021-08-20 焦作大学 Computer data acquisition method for virtual reality

Similar Documents

Publication Publication Date Title
CN108043020A (en) Game gestural control method, dual-screen mobile terminal and computer readable storage medium
CN109218800A (en) A kind of barrage information display method, terminal and computer readable storage medium
CN108762876A (en) A kind of input method switching method, mobile terminal and computer storage media
CN108829328A (en) A kind of game operation method, terminal and computer readable storage medium
CN109165074A (en) Game screenshot sharing method, mobile terminal and computer readable storage medium
CN109284065A (en) Key false-touch prevention method, apparatus, mobile terminal and readable storage medium storing program for executing
CN109862433A (en) Generation method, device, terminal and the computer readable storage medium of game video
CN110339561A (en) A kind of shooting game optimization method, terminal and computer readable storage medium
CN108926840A (en) Game control method, mobile terminal and computer readable storage medium
CN110038296A (en) A kind of game control method, terminal and computer readable storage medium
CN108536367A (en) A kind of processing method, terminal and the readable storage medium storing program for executing of interaction page interim card
CN108881635A (en) Screen luminance adjustment method, mobile terminal and computer readable storage medium
CN109151162A (en) A kind of multi-panel screen interaction control method, equipment and computer readable storage medium
CN109692474A (en) Game control method, mobile terminal and readable storage medium storing program for executing based on mobile terminal
CN109032692A (en) A kind of interaction regulation method, equipment and computer readable storage medium
CN108771861A (en) A kind of game control method, mobile terminal and computer readable storage medium
CN108829302A (en) A kind of interaction regulation method, equipment and computer readable storage medium
CN107562303A (en) Element motion control method and device in display interface
CN109976641A (en) Operating method, terminal and computer readable storage medium based on screenshot picture
CN110052023A (en) Game control method, mobile terminal and computer readable storage medium
CN108536383A (en) A kind of game control method, equipment and computer readable storage medium
CN108234979A (en) A kind of image pickup method, mobile terminal and computer readable storage medium
CN110096173A (en) Method for controlling mobile terminal, mobile terminal and computer readable storage medium
CN110141851A (en) A kind of record screen method, apparatus and computer readable storage medium
CN110083423A (en) Interface jump method, terminal and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20191018