A shooting game aiming point depicting method, device and computer readable storage medium
By acquiring and parsing the game status at different stages of a shooting game, integrating the aiming interface and the shooting result interface, and identifying and extracting the crosshair area and color, a custom crosshair style can be designed, solving the problem of different user requirements for shooting crosshair styles and improving the shooting game experience.
Patent Information
- Application Number
- CN202210587240.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-27
- Publication Date
- 2025-10-14
- Estimated Expiration
- 2042-05-27
AI Technical Summary
In existing shooting games, users have different requirements and preferences for shooting crosshairs, which affects the shooting game experience, especially the shooting performance of professional players.
By acquiring and parsing the game status at different stages of the shooting game, integrating the aiming interface and the shooting result interface, identifying and extracting the crosshair area and color, and realizing the customized design of the crosshair style.
It improves the aiming and shooting experience of shooting games, allowing users to obtain and design crosshair shooting materials on their own, and improves the overall experience of shooting games.
Smart Images

Figure CN114931751B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of mobile communications, and in particular to a method and device for depicting a crosshair in a shooting game, and a computer-readable storage medium. Background Art
[0002] With the continuous development of smart terminal devices, users' demands for a higher gaming experience are also increasing. In particular, in current shooting games, the shooting experience based on the shooting crosshairs significantly affects the shooting experience. However, each user has different requirements and preferences for the shooting crosshairs style. For professional players, the shooting crosshair icon design can also significantly affect the final shooting results. Therefore, how to improve the user's aiming and shooting experience in a specific shooting game has become a technical problem that needs to be solved urgently. Summary of the Invention
[0003] In order to solve the above technical defects in the prior art, the present invention proposes a shooting game crosshair drawing method, which includes:
[0004] When it is detected that the game type of the current game is a shooting game, the current game running state is obtained, and when the game running state is a shooting preparation stage, the current shooting operation state and shooting display state are obtained.
[0005] When the shooting operation state is the aiming stage, the current aiming interface is obtained as the first shooting display state. When the shooting operation state is the shooting stage, the current aiming interface is updated as the second display state. When the shooting operation state is the shooting end stage, the current shooting result interface is obtained as the third display state.
[0006] The third display state is analyzed, and when the shooting result meets a preset condition, the first display state and the second display state are integrated to obtain an aiming image.
[0007] When the shooting operation state is at the end stage, a crosshair area and a crosshair color within the crosshair area are determined in the aiming image, and contour recognition and extraction of a crosshair pattern in the aiming image are performed according to the crosshair color.
[0008] Optionally, when detecting that the game type of the current game is a shooting game, obtaining the current game running state, and when the game running state is a shooting preparation stage, starting to obtain the current shooting operation state and shooting display state, includes:
[0009] Analyze the game running status to obtain current operation instructions and interface content.
[0010] The triggering moment of the shooting action is determined according to the operation instruction, and the preparation moment of the shooting action is determined according to the interface content.
[0011] Optionally, when detecting that the game type of the current game is a shooting game, obtaining the current game running state, and when the game running state is a shooting preparation stage, starting to obtain the current shooting operation state and shooting display state, further includes:
[0012] The time interval between the triggering moment and the preparation moment is used as the shooting preparation stage.
[0013] The touch control instruction of the shooting action and the execution state of the touch control instruction are used as the shooting operation state, and the aiming interface of the shooting action and the change state of the aiming interface are used as the shooting display state.
[0014] Optionally, when the shooting operation state is the aiming stage, the current aiming interface is obtained as a first shooting display state; when the shooting operation state is the shooting stage, the current aiming interface is updated as a second display state; when the shooting operation state is the shooting end stage, the current shooting result interface is obtained as a third display state, including:
[0015] During the aiming stage, if the interface size or interface area of the aiming interface changes, the first shooting display state is acquired.
[0016] During the shooting phase, if the shooting operation state meets the preset first shooting condition, the second shooting display state when the aiming interface is updated is obtained.
[0017] Optionally, when the shooting operation state is the aiming stage, the current aiming interface is obtained as a first shooting display state; when the shooting operation state is the shooting stage, the current aiming interface is updated as a second display state; when the shooting operation state is the shooting end stage, the current shooting result interface is obtained as a third display state, further comprising:
[0018] Identify and determine a shooting result interface for providing feedback on the shooting operation.
[0019] At the end of the shooting, if the shooting operation state meets the preset second shooting condition, the third shooting display state when the shooting result interface is updated is obtained.
[0020] Optionally, when the shooting operation state is in the aiming stage, a current aiming interface is acquired as a first shooting display state, when the shooting operation state is in the shooting stage, the current aiming interface is updated as a second display state, and when the shooting operation state is in the shooting end stage, a current shooting result interface is acquired as a third display state, and the method further comprises:
[0021] The shooting type and the shooting frequency of a current shooting action are acquired, and preset shooting type and shooting frequency are taken as the first shooting condition.
[0022] The difference ratio of a current shooting consumption value and a shooting hit value is acquired, and a preset difference ratio is taken as the second shooting condition.
[0023] Optionally, the third display state is analyzed, and when the shooting result meets a preset condition, the first display state and the second display state are integrated to obtain an aiming image, and the method further comprises:
[0024] When the shooting operation state meets the second shooting condition, the aiming interface that exists in the first display state and is changed and the aiming interface that exists in the second display state and is updated are integrated.
[0025] The aiming interface that exists in the first display state and is changed and the aiming interface that exists in the second display state and is updated are combined as an image set of the aiming image.
[0026] Optionally, when the shooting operation state is in the end stage, a center area and a center color in the center area in the aiming image are determined, and according to the center color, the center style in the aiming image is recognized and extracted, and the method further comprises:
[0027] At least one aiming image is selected from the image set according to the category of the aiming image, the center area is recognized in the aiming image, and the unique center color in the center area is determined.
[0028] According to the center color, the center style in the aiming image is recognized and extracted, and a non-center area is transparently processed to obtain at least one category of center pattern.
[0029] The application further provides a shooting game center drawing device, which comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program is executed by the processor to implement the steps of the shooting game center drawing method.
[0030] The present invention also proposes a computer-readable storage medium, which stores a shooting game crosshair drawing program. When the shooting game crosshair drawing program is executed by a processor, the steps of the shooting game crosshair drawing method as described in any one of the above items are implemented.
[0031] The present invention implements a shooting game crosshair depiction method, device, and computer-readable storage medium. Upon detecting that the current game type is a shooting game, the method obtains the current game running state. When the game running state is the shooting preparation phase, the method begins to obtain the current shooting operation state and shooting display state. When the shooting operation state is the aiming phase, the method obtains the current aiming interface as a first shooting display state. When the shooting operation state is the shooting phase, the method updates the current aiming interface as a second display state. When the shooting operation state is the shooting end phase, the method obtains the current shooting result interface as a third display state. The method analyzes the third display state and, when the shooting result meets a preset condition, combines the first and second display states to obtain an aiming image. When the shooting operation state is the end phase, the method determines the crosshair region and the crosshair color within the crosshair region in the aiming image, and performs contour recognition and extraction of the crosshair pattern in the aiming image based on the crosshair color. This method implements a user-friendly shooting game crosshair depiction solution, allowing users to obtain crosshair shooting materials based on the shooting game and customize the crosshair design, greatly improving the aiming and shooting experience in shooting games. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The present invention will be further described below with reference to the accompanying drawings and embodiments, in which:
[0033] Figure 1 This is a hardware structure diagram of a mobile terminal according to the present invention;
[0034] Figure 2 This is a diagram of a communication network system architecture provided by an embodiment of the present invention;
[0035] Figure 3 is a flow chart of a first embodiment of a method for drawing a crosshair in a shooting game according to the present invention;
[0036] Figure 4 is a flow chart of a second embodiment of a method for drawing a crosshair in a shooting game according to the present invention;
[0037] Figure 5 is a flow chart of a third embodiment of a method for drawing a crosshair in a shooting game according to the present invention;
[0038] Figure 6 is a flow chart of a fourth embodiment of a method for drawing a crosshair in a shooting game according to the present invention;
[0039] Figure 7 is a flow chart of a fifth embodiment of a method for drawing a crosshair in a shooting game according to the present invention;
[0040] Figure 8 is a flow chart of a sixth embodiment of a method for drawing a crosshair in a shooting game according to the present invention;
[0041] Figure 9 is a flow chart of a seventh embodiment of a method for drawing a crosshair in a shooting game according to the present invention;
[0042] Figure 10 4 is a flow chart of an eighth embodiment of a method for drawing a crosshair in a shooting game according to the present invention. DETAILED DESCRIPTION
[0043] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0044] In the subsequent description, suffixes such as "module," "component," or "unit" used to represent elements are only used to facilitate the description of the present invention and have no specific meaning. Therefore, "module," "component," or "unit" can be used interchangeably.
[0045] The terminal can be implemented in various forms. For example, the terminal described in the present invention may include mobile terminals such as mobile phones, tablet computers, laptop computers, PDAs, portable media players (PMPs), navigation devices, wearable devices, smart bracelets, pedometers, etc., as well as fixed terminals such as digital TVs and desktop computers.
[0046] The following description will be made by taking a mobile terminal as an example. It will be understood by those skilled in the art that, in addition to components specifically used for mobile purposes, the configuration according to the embodiments of the present invention can also be applied to fixed type terminals.
[0047] See also Figure 1 , which is a schematic diagram of the hardware structure of a mobile terminal for implementing various embodiments of the present invention. The mobile terminal 100 may include: an RF (Radio Frequency) unit 101, a WiFi module 102, an audio output unit 103, an A / V (audio / video) input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111. Those skilled in the art will understand that Figure 1The structure of the mobile terminal shown in the figure does not constitute a limitation to the mobile terminal. The mobile terminal may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0048] The following combination Figure 1 A detailed introduction to the various components of the mobile terminal:
[0049] The RF unit 101 can be used to send and receive information or receive signals during calls. Specifically, it receives downlink information from the base station and transmits it to the processor 110 for processing. It also transmits uplink data to the base station. Typically, the RF unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low-noise amplifier, a duplexer, and more. Furthermore, the RF unit 101 can communicate with the network and other devices via wireless communication. The above-mentioned wireless communications may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA2000 (Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution), etc.
[0050] WiFi is a short-range wireless transmission technology. Mobile terminals can help users send and receive emails, browse web pages, and access streaming media through the WiFi module 102. It provides users with wireless broadband Internet access. Figure 1 The WiFi module 102 is shown, but it is understandable that it is not an essential component of the mobile terminal and can be omitted as needed without changing the essence of the invention.
[0051] The audio output unit 103 can convert audio data received by the RF unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output it as sound when the mobile terminal 100 is in a call signal reception mode, a talk mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Furthermore, the audio output unit 103 can also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, or the like.
[0052] The A / V input unit 104 is used to receive audio or video signals. The A / V input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042. The GPU 1041 processes image data of still images or videos captured by an image capture device (e.g., a camera) in video capture mode or image capture mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the GPU 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the RF unit 101 or the WiFi module 102. The microphone 1042 may receive sound (audio data) in operating modes such as a phone call mode, a recording mode, and a voice recognition mode, and may process such sound into audio data. In the phone call mode, the processed audio (voice) data may be converted into a format that can be transmitted to a mobile communication base station via the RF unit 101. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to eliminate (or suppress) noise or interference generated during the reception and transmission of audio signals.
[0053] The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 1061 and / or the backlight when the mobile terminal 100 is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that can be configured in the mobile phone, such as fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be described here.
[0054] The display unit 106 is configured to display information input by a user or information provided for the user. The display unit 106 can include a display panel 1061, which can be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
[0055] The user input unit 107 can be configured to receive input digital or character information, and to generate key signal input with respect to user's setting of functions performed in the mobile terminal and the like. Specifically, the user input unit 107 can include a touch panel 1071 and another input device 1072. The touch panel 1071, also called a touch screen, can collect touch operations of a user on or proximity thereto (e.g., operations by a user using a finger, a pen, or the like, or any suitable object or accessory on or in proximity to the touch panel 1071), and drive a corresponding connection device according to a pre-set program. The touch panel 1071 can include a touch detecting device and a touch controller. The touch detecting device detects a user's touch position and detects a signal resulting from a touch operation, and transmits the signal to the touch controller. The touch controller receives touch information from the touch detecting device, converts it into touch coordinates, and transmits the touch coordinates to the processor 110, and can receive commands from the processor 110 and execute them. In addition, the touch panel 1071 can be implemented in various types such as a resistive type, a capacitive type, an infrared type, a surface acoustic wave type, and the like. In addition to the touch panel 1071, the user input unit 107 can include the other input device 1072. Specifically, the other input device 1072 can include one or more of, but is not limited to, a physical keypad, function keys (e.g., a volume control button, a switch button, or the like), a track ball, a mouse, a joystick, or the like.
[0056] Further, the touch panel 1071 can cover the display panel 1061, and when the touch panel 1071 detects a touch operation on or in proximity thereto, can transmit the same to the processor 110 to determine a type of the touch event, and then the processor 110 can provide a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in the above-described embodiment, the touch panel 1071 and the display panel 1061 are implemented as two separate components to perform input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated to perform input and output functions of the mobile terminal, without being limited thereto. Figure 1
[0057] The interface unit 108 serves as an interface through which at least one external device can be connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, etc. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and an external device.
[0058] Memory 109 can be used to store software programs and various data. Memory 109 may primarily include a program storage area and a data storage area. The program storage area may store an operating system and at least one application required for a function (such as a sound playback function or an image playback function); the data storage area may store data generated based on the use of the mobile phone (such as audio data, a phone book, etc.). Furthermore, memory 109 may include high-speed random access memory and non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.
[0059] Processor 110 is the control center of the mobile terminal, connecting all components of the mobile terminal using various interfaces and circuits. By running or executing software programs and / or modules stored in memory 109 and accessing data stored in memory 109, it executes various functions of the mobile terminal and processes data, thereby providing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, processor 110 may integrate an application processor and a modem processor. The application processor primarily handles the operating system, user interface, and application programs, while the modem processor primarily handles wireless communications. It is understood that the modem processor may not be integrated into processor 110.
[0060] The mobile terminal 100 may also include a power supply 111 (such as a battery) for supplying power to various components. Preferably, the power supply 111 may be logically connected to the processor 110 through a power management system, thereby managing functions such as charging, discharging, and power consumption through the power management system.
[0061] although Figure 1 Not shown, the mobile terminal 100 may further include a Bluetooth module, etc., which will not be described in detail here.
[0062] To facilitate understanding of the embodiments of the present invention, the communication network system on which the mobile terminal of the present invention is based is described below.
[0063] See alsoFigure 2 , Figure 2 A communication network system architecture diagram is provided for an embodiment of the present application. The communication network system is a LTE system of general mobile communication technology. The LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203 and an operator's IP service 204 connected in sequence.
[0064] Specifically, the UE 201 can be the terminal 100 described above, which will not be described here again.
[0065] The E-UTRAN 202 includes an eNode B 2021 and other eNode Bs 2022. The eNode B 2021 can be connected with the other eNode Bs 2022 through backhaul (for example, an X2 interface), the eNode B 2021 is connected to the EPC 203, and the eNode B 2021 can provide access for the UE 201 to the EPC 203.
[0066] The EPC 203 can include a MME (Mobility Management Entity) 2031, a HSS (Home Subscriber Server) 2032, other MMEs 2033, a SGW (Serving Gate Way) 2034, a PGW (PDN Gate Way) 2035, and a PCRF (Policy and Charging Rules Function) 2036. The MME 2031 is a control node that handles signaling between the UE 201 and the EPC 203, provides bearer and connection management. The HSS 2032 is configured to provide some registers to manage functions such as a home location register (not shown in the figure), and stores some user-specific information about service features, data rates, etc. All user data can be transmitted through the SGW 2034, the PGW 2035 can provide IP address allocation for the UE 201 and other functions, and the PCRF 2036 is a policy and charging control policy decision point for service data flow and IP bearer resources, which selects and provides available policy and charging control decisions for policy and charging enforcement function units (not shown in the figure).
[0067] The IP service 204 may include the Internet, an intranet, an IMS (IP Multimedia Subsystem), or other IP services.
[0068] Although the above description is based on the LTE system as an example, those skilled in the art should know that the present invention is not only applicable to the LTE system, but also to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems, and is not limited here.
[0069] Based on the above-mentioned mobile terminal hardware structure and communication network system, various embodiments of the method of the present invention are proposed.
[0070] Example 1
[0071] Figure 3 Flowchart of the first embodiment of the method for drawing a crosshair in a shooting game according to the present invention. A method for drawing a crosshair in a shooting game, the method comprising:
[0072] S1. When it is detected that the game type of the current game is a shooting game, the current game running state is obtained, and when the game running state is a shooting preparation stage, the current shooting operation state and shooting display state are started to be obtained.
[0073] S2. When the shooting operation state is the aiming stage, obtain the current aiming interface as the first shooting display state; when the shooting operation state is the shooting stage, update the current aiming interface as the second display state; when the shooting operation state is the shooting end stage, obtain the current shooting result interface as the third display state.
[0074] S3. Analyze the third display state, and when the shooting result meets a preset condition, integrate the first display state and the second display state to obtain a aiming image.
[0075] S4. When the shooting operation state is at the end stage, determine the crosshair area and the crosshair color within the crosshair area in the aiming image, and perform contour recognition and extraction on the crosshair pattern in the aiming image according to the crosshair color.
[0076] In this embodiment, first, when it is detected that the game type of the current game is a shooting game, the current game running state is obtained, and when the game running state is the shooting preparation stage, the current shooting operation state and shooting display state are obtained; then, when the shooting operation state is the aiming stage, the current aiming interface is obtained as the first shooting display state, and when the shooting operation state is the shooting stage, the current aiming interface is updated as the second display state, and when the shooting operation state is the shooting end stage, the current shooting result interface is obtained as the third display state; then, the third display state is parsed, and when the shooting result meets the preset conditions, the first display state and the second display state are integrated to obtain an aiming image; finally, when the shooting operation state is the end stage, the crosshair area and the crosshair color in the crosshair area are determined in the aiming image, and the crosshair pattern in the aiming image is contour identified and extracted according to the crosshair color. Specifically, in the shooting game that the user likes, a crosshair recognition interface is designed for the crosshair screen. In this interface, the user can be guided to circle the crosshair range with a square frame. The circled area is considered to have a crosshair pattern. This part is equivalent to limiting the area where the crosshair is located to a relatively small area, laying a foundation for subsequent image processing. Then, for the extraction of the crosshair color, this embodiment takes into account that the style of the general crosshair itself is a relatively fixed color. In order to conveniently and accurately extract the entire outline of the crosshair, the user can be prompted to click on the crosshair part to extract the crosshair color so as to accurately binarize it, that is, perform outline recognition. Finally, for the selected area and the color of the crosshair, image algorithms such as OpenCV are used to perform image recognition to obtain the crosshair outline area. After the crosshair outline is recognized, all non-crosshair areas are made transparent, and the crosshair part still retains its original color. In this way, the crosshair style that the user wants can be extracted. Finally, the extracted crosshair style image is scaled to the crosshair style size required by the user, the relevant interface of the preset crosshair module is called, the corresponding crosshair pattern library is written, and it is arranged and sorted.
[0077] The beneficial effect of this embodiment is that, by obtaining the current game running state upon detecting that the current game type is a shooting game, and starting to obtain the current shooting operation state and shooting display state when the game running state is the shooting preparation stage; obtaining the current aiming interface as the first shooting display state when the shooting operation state is the aiming stage; updating the current aiming interface as the second display state when the shooting operation state is the shooting stage; and obtaining the current shooting result interface as the third display state when the shooting operation state is the shooting end stage; parsing the third display state, and integrating the first display state and the second display state when the shooting result meets a preset condition to obtain an aiming image; and determining the crosshair area and the crosshair color within the crosshair area in the aiming image when the shooting operation state is the end stage, and performing contour recognition and extraction of the crosshair pattern in the aiming image based on the crosshair color. A user-friendly shooting game crosshair depiction solution is implemented, thereby allowing users to obtain crosshair shooting materials according to the shooting game and customize the crosshair design, greatly improving the aiming and shooting experience of shooting games.
[0078] Example 2
[0079] Figure 4 This is a flow chart of a second embodiment of a method for drawing a crosshair in a shooting game according to the present invention. Based on the above embodiment, when detecting that the current game type is a shooting game, obtaining the current game running state, and when the game running state is in the shooting preparation stage, starting to obtain the current shooting operation state and shooting display state, includes:
[0080] S11, analyzing the game running status to obtain current operation instructions and interface content.
[0081] S12: determining a triggering moment of a shooting action according to the operation instruction, and determining a preparation moment of the shooting action according to the interface content.
[0082] Optionally, in this embodiment, the game running state is the game command received by the current shooting game and the display interface of the shooting game. Further, the display interface is a gun indication interface or an aiming display interface generated after receiving a shooting-related command.
[0083] Optionally, in this embodiment, the triggering moment is determined according to a shooting interaction touch signal corresponding to the shooting action, and is used as a preparation moment when the interface content includes an aiming display interface.
[0084] The beneficial effects of this embodiment are that by analyzing the game running state, the current operation instructions and interface content are obtained; the triggering time of the shooting action is determined based on the operation instructions, and the preparation time of the shooting action is determined based on the interface content. This realizes a humanized shooting game crosshair drawing solution, allowing users to obtain crosshair shooting materials according to the shooting game and customize the crosshair, greatly improving the aiming and shooting experience of shooting games.
[0085] Example 3
[0086] Figure 5 This is a flow chart of a third embodiment of the method for drawing a crosshair in a shooting game according to the present invention. Based on the above embodiment, when it is detected that the current game type is a shooting game, the current game running state is obtained, and when the game running state is in the shooting preparation stage, the current shooting operation state and shooting display state are obtained. The method further includes:
[0087] S13. Taking the time interval between the triggering moment and the preparation moment as the shooting preparation stage.
[0088] S14: Using the touch control instruction of the shooting action and the execution state of the touch control instruction as the shooting operation state, and using the aiming interface of the shooting action and the change state of the aiming interface as the shooting display state.
[0089] Optionally, in this embodiment, the significance of setting the shooting preparation stage is that, taking into account the differences in the aiming states of each shooting game, that is, the start of aiming, the intermediate control process, the recoil effect of shooting, etc., will all affect the subsequent crosshair pattern extraction. Therefore, this embodiment differentiates the shooting states and first performs initial image extraction for the shooting preparation stage.
[0090] Optionally, in this embodiment, the change state of the aiming interface includes a size change, a position change, a color change in the aiming area, a jitter change in the aiming area, etc. of the aiming interface.
[0091] The beneficial effect of this embodiment is that by using the time interval between the trigger moment and the preparation moment as the shooting preparation stage, using the touch control command of the shooting action and the execution state of the touch control command as the shooting operation state, and using the aiming interface of the shooting action and the change state of the aiming interface as the shooting display state, a humanized shooting game crosshair drawing solution is implemented, allowing users to obtain crosshair shooting materials according to the shooting game and customize the crosshair design, greatly improving the aiming and shooting experience of shooting games.
[0092] Example 4
[0093] Figure 6 This is a flow chart of a fourth embodiment of the method for drawing a crosshair in a shooting game according to the present invention. Based on the above embodiment, when the shooting operation state is the aiming stage, the current aiming interface is obtained as the first shooting display state; when the shooting operation state is the shooting stage, the current aiming interface is updated as the second display state; when the shooting operation state is the shooting end stage, the current shooting result interface is obtained as the third display state, including:
[0094] S21. During the aiming stage, if the interface size or interface area of the aiming interface changes, obtaining the first shooting display state.
[0095] S22. During the shooting phase, if the shooting operation state meets a preset first shooting condition, obtaining the second shooting display state when the aiming interface is updated.
[0096] Optionally, in this embodiment, for the aiming stage, when the interface size or interface area of the aiming interface changes, the states before and after the change are recorded.
[0097] Optionally, in this embodiment, similarly, for the shooting phase, when the aiming interface is updated, the states before and after the update are recorded.
[0098] The beneficial effect of this embodiment is that, by obtaining the first shooting display state if the interface size or interface area of the aiming interface changes during the aiming phase, and obtaining the second shooting display state when the aiming interface is updated if the shooting operation state meets the preset first shooting condition during the shooting phase, a user-friendly shooting crosshair drawing solution is implemented, allowing users to obtain shooting crosshair materials according to the shooting game and customize the crosshair design, greatly improving the aiming and shooting experience in shooting games.
[0099] Example 5
[0100] Figure 7 This is a flow chart of a fifth embodiment of the method for drawing a crosshair in a shooting game according to the present invention. Based on the above embodiment, when the shooting operation state is the aiming stage, the current aiming interface is obtained as the first shooting display state; when the shooting operation state is the shooting stage, the current aiming interface is updated as the second display state; when the shooting operation state is the shooting end stage, the current shooting result interface is obtained as the third display state, and further includes:
[0101] S23. Identify and determine a shooting result interface for feeding back the shooting operation.
[0102] S24. At the end of the shooting, if the shooting operation state meets the preset second shooting condition, obtaining the third shooting display state when the shooting result interface is updated.
[0103] Optionally, in this embodiment, the shooting result interface includes two areas: one is a shooting hit count area, and the other is a shooting ammunition count area.
[0104] Optionally, in this embodiment, for the shooting end stage, when the shooting result interface is updated, the states before and after the update are recorded.
[0105] The beneficial effect of this embodiment is that by identifying and determining a shooting result interface for feedback on the shooting operation; and at the end of the shooting phase, if the shooting operation state meets a preset second shooting condition, obtaining the third shooting display state when the shooting result interface is updated, a user-friendly shooting game crosshair drawing solution is implemented, allowing users to obtain crosshair shooting materials according to the shooting game and customize the crosshair, greatly improving the aiming and shooting experience in shooting games.
[0106] Example 6
[0107] Figure 8 This is a flow chart of a sixth embodiment of the method for drawing a crosshair in a shooting game according to the present invention. Based on the above embodiment, when the shooting operation state is the aiming stage, the current aiming interface is obtained as the first shooting display state; when the shooting operation state is the shooting stage, the current aiming interface is updated as the second display state; when the shooting operation state is the shooting end stage, the current shooting result interface is obtained as the third display state, and further includes:
[0108] S25. Acquire the shooting type and shooting frequency of the current shooting action, and use the preset shooting type and shooting frequency as the first shooting condition.
[0109] S26. Obtain the difference ratio between the current shooting consumption value and the shooting hit value, and use the preset difference ratio as the second shooting condition.
[0110] Optionally, in this embodiment, the shooting type corresponds to the firearm or firearm type used during shooting, and the shooting frequency corresponds to the firing frequency of the firearm or the signal frequency of a trigger signal for the shooting action. Accordingly, the first shooting condition is that, during the period from the start of shooting to the current shooting, when the firing frequency or signal frequency of a preset firearm is greater than a first preset value, a high shooting density is determined as the first shooting condition.
[0111] Optionally, in this embodiment, during a complete shooting process, when the difference or ratio between the shooting consumption value and the shooting hit value is less than a second preset value, it is determined that the current hit rate is higher, which serves as the second shooting condition.
[0112] The beneficial effect of this embodiment is that by obtaining the shooting type and shooting frequency of the current shooting action and using the preset shooting type and shooting frequency as the first shooting condition; and obtaining the difference ratio between the current shooting consumption value and the shooting hit value and using the preset difference ratio as the second shooting condition, a user-friendly shooting game crosshair drawing solution is implemented, allowing users to obtain crosshair shooting materials according to the shooting game and customize the crosshair design, greatly improving the aiming and shooting experience of shooting games.
[0113] Example 7
[0114] Figure 9 This is a flow chart of a seventh embodiment of a method for depicting a crosshair in a shooting game according to the present invention. Based on the above embodiment, analyzing the third display state and, when the shooting result satisfies a preset condition, integrating the first display state and the second display state to obtain an aiming image includes:
[0115] S31: When the shooting operation state meets the second shooting condition, integrate the changed aiming interface in the first display state and the updated aiming interface in the second display state.
[0116] S32: Combine the changed aiming interface and the updated aiming interface as an image set of the aiming image.
[0117] Optionally, in this embodiment, a plurality of aiming interfaces in different forms are extracted and combined as an image set of the aiming image.
[0118] Optionally, in this embodiment, the images of the aiming interface in the image set are screened to remove blurred images and invalid images when the crosshairs are covered.
[0119] The beneficial effect of this embodiment is that, by integrating the modified aiming interface in the first display state and the updated aiming interface in the second display state when the shooting operation state meets the second shooting condition, and combining the modified aiming interface and the updated aiming interface as an image set of the aiming image, a user-friendly shooting game crosshair depiction solution is implemented, allowing users to obtain crosshair shooting materials based on the shooting game and customize the crosshair design, greatly improving the aiming shooting experience in shooting games.
[0120] Example 8
[0121] Figure 10 This is a flow chart of an eighth embodiment of a method for depicting a crosshair in a shooting game according to the present invention. Based on the above embodiment, when the shooting operation state is in the end stage, a crosshair area and a crosshair color within the crosshair area are determined in the aiming image, and a crosshair pattern in the aiming image is contour-recognized and extracted based on the crosshair color, including:
[0122] S41 , selecting at least one aiming image from the image set according to the category of the aiming image, identifying the crosshair area in the aiming image, and determining a unique crosshair color within the crosshair area.
[0123] S42: performing contour recognition and extraction on the crosshair pattern in the aiming image according to the crosshair color, and performing transparent processing on the non-crosshair area to obtain at least one category of crosshair pattern.
[0124] Optionally, in this embodiment, in the crosshair pattern library, the current crosshair patterns are marked and sorted according to the difference ratio between the shooting consumption value and the shooting hit value, so that the user can quickly select the most appropriate crosshair pattern in another shooting game.
[0125] The beneficial effect of this embodiment is that by selecting at least one aiming image from the image collection based on the category of the aiming image, identifying the crosshair area in the aiming image, and determining a unique crosshair color within the crosshair area, the crosshair pattern in the aiming image is contour-recognized and extracted based on the crosshair color, and the non-crosshair area is transparently processed to obtain at least one category of crosshair pattern. This implements a user-friendly crosshair depiction solution for shooting games, allowing users to obtain crosshair shooting materials based on the shooting game and customize the crosshair design, greatly improving the aiming and shooting experience in shooting games.
[0126] Embodiment 9
[0127] Based on the above embodiments, the present invention also proposes a shooting game crosshair drawing device, which includes a memory, a processor, and a computer program stored on the memory and runnable on the processor. When the computer program is executed by the processor, the steps of the shooting game crosshair drawing method as described in any one of the above items are implemented.
[0128] It should be noted that the above-mentioned device embodiment and method embodiment belong to the same concept, and their specific implementation process is detailed in the method embodiment, and the technical features in the method embodiment are applicable to the device embodiment, which will not be repeated here.
[0129] Example 10
[0130] Based on the above embodiments, the present invention also proposes a computer-readable storage medium, which stores a shooting game crosshair drawing program. When the shooting game crosshair drawing program is executed by a processor, the steps of the shooting game crosshair drawing method as described in any of the above items are implemented.
[0131] It should be noted that the above-mentioned medium embodiment and method embodiment belong to the same concept, and their specific implementation process is detailed in the method embodiment, and the technical features in the method embodiment are applicable to the medium embodiment, which will not be repeated here.
[0132] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or apparatus comprising the element.
[0133] The serial numbers of the above embodiments of the present invention are for description only and do not represent the advantages or disadvantages of the embodiments.
[0134] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better embodiment. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0135] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are protected by the present invention.
Claims
1. A shooting game crosshair drawing method, characterized in that: The method comprises: When it is detected that the game type of the current game is a shooting game, the current game running state is obtained, and when the game running state is a shooting preparation stage, the current shooting operation state and shooting display state are started to be obtained; When the shooting operation state is the aiming stage, the current aiming interface is obtained as the first shooting display state; when the shooting operation state is the shooting stage, the current aiming interface is updated as the second shooting display state; when the shooting operation state is the shooting end stage, the current shooting result interface is obtained as the third shooting display state; parsing the third shooting display state, and when the shooting result meets a preset condition, integrating the first shooting display state and the second shooting display state to obtain an aiming image; When the shooting operation state is at the end stage, determining a crosshair area and a crosshair color within the crosshair area in the aiming image, and performing contour recognition and extraction on a crosshair pattern in the aiming image according to the crosshair color; When it is detected that the game type of the current game is a shooting game, the current game running state is obtained, and when the game running state is a shooting preparation stage, the current shooting operation state and shooting display state are started to be obtained, including: Analyze the game running status to obtain the current operation instructions and interface content; Determining a triggering moment of a shooting action according to the operation instruction, and determining a preparation moment of the shooting action according to the interface content; The time interval between the triggering moment and the preparation moment is used as the shooting preparation stage; The touch control instruction of the shooting action and the execution state of the touch control instruction are used as the shooting operation state, and the aiming interface of the shooting action and the change state of the aiming interface are used as the shooting display state; When the shooting operation state is the aiming stage, the current aiming interface is obtained as the first shooting display state; when the shooting operation state is the shooting stage, the current aiming interface is updated as the second shooting display state; when the shooting operation state is the shooting end stage, the current shooting result interface is obtained as the third shooting display state, including: During the aiming phase, if the interface size or interface area of the aiming interface changes, acquiring the first shooting display state; During the shooting phase, if the shooting operation state meets a preset first shooting condition, obtaining the second shooting display state when the aiming interface is updated, wherein the shooting type and shooting frequency of the current shooting action are obtained, and the preset shooting type and shooting frequency are used as the first shooting condition; Identifying and determining a shooting result interface for providing feedback on the shooting operation; At the end of the shooting phase, if the shooting operation state meets the preset second shooting condition, obtaining the third shooting display state when the shooting result interface is updated, wherein the difference ratio between the current shooting consumption value and the shooting hit value is obtained, and the preset difference ratio is used as the second shooting condition; The analyzing the third shooting display state and, when the shooting result satisfies a preset condition, integrating the first shooting display state and the second shooting display state to obtain a aiming image includes: When the shooting operation state meets the second shooting condition, integrating the changed aiming interface in the first shooting display state and the updated aiming interface in the second shooting display state; combining the aiming interface with the change and the aiming interface with the update as an image set of the aiming image; When the shooting operation state is in the end stage, determining a crosshair area and a crosshair color within the crosshair area in the aiming image, and performing contour recognition and extraction on a crosshair pattern in the aiming image according to the crosshair color, including: selecting at least one aiming image from the image set according to the category of the aiming image, identifying the crosshair region in the aiming image, and determining a unique crosshair color within the crosshair region; The outline of the crosshair pattern in the aiming image is recognized and extracted according to the crosshair color, and non-crosshair areas are transparently processed to obtain at least one category of crosshair pattern.
2. A shooting game crosshair drawing device, characterized in that: The device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps of the shooting game crosshair drawing method according to claim 1 are implemented.
3. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a shooting game crosshair drawing program, and when the shooting game crosshair drawing program is executed by the processor, the steps of the shooting game crosshair drawing method according to claim 1 are implemented.
Citation Information
Patent Citations
Game display control method and device, storage medium and computer equipment
CN112657183A
Game time model control method and device and computer readable storage medium
CN114225390A