Method, apparatus, and computer program for displaying target marks

The method and device in horizontal shooting games simplify aiming target switching by using an auto-aiming mechanism to prioritize virtual characters based on distance and priority, addressing the misalignment of automatic aiming with user intentions and reducing operational complexity.

JP7553178B2Active Publication Date: 2024-09-18TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2023527249
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2021-01-21
Filing Date
2022-01-19
Publication Date
2024-09-18
Estimated Expiration
2042-01-19

AI Technical Summary

Technical Problem

The automatic aiming mechanism in horizontal shooting games often fails to align with the user's subjective intentions, complicating the operation of switching aiming targets due to factors like enemy unit movements and attacks.

Method used

A method and device that display an aiming mark on a first virtual character and switch it to a second virtual character in response to a user's aiming target switching operation, independent of other control actions, using an auto-aiming mechanism to prioritize candidate virtual characters based on distance and priority.

Benefits of technology

This approach simplifies and speeds up the aiming target switching process, allowing users to select high-priority targets without additional operational complexity, enhancing user experience by aligning with subjective intentions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007553178000013
    Figure 0007553178000013
  • Figure 0007553178000011
    Figure 0007553178000011
  • Figure 0007553178000008
    Figure 0007553178000008
Patent Text Reader

Abstract

The present application discloses a method, an apparatus, a device and a storage medium for displaying an aiming mark, and belongs to the field of application programs supporting virtual environments. The method includes the steps of: displaying a level interface in which a master virtual character and at least two candidate virtual characters located in a virtual environment are displayed; displaying an aiming mark on a first virtual character of the at least two candidate virtual characters, the aiming mark being for marking an aiming target; and switching and displaying the aiming mark on a second virtual character of the at least two candidate virtual characters in response to a switching operation to the aiming target. The method can provide a simple and fast aiming target switching mechanism when the aiming target of automatic aiming does not match the subjective intention of a user, so that a user can switch between different candidate virtual characters as the aiming target by a switching operation, and this process is independent of other operations of the user controlling the master virtual character, reducing the complexity of the user's operation when switching the aiming target.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] [CROSS REFERENCE TO RELATED APPLICATIONS] This application claims priority to a Chinese patent application filed on January 21, 2021, bearing application number 202110084109.8 and entitled "Method, apparatus, device and storage medium for displaying an aiming mark," the entire contents of which are incorporated herein by reference. The present application relates to the field of application programs supporting virtual environments, and in particular to a method, an apparatus, a device and a storage medium for displaying a target mark. [Background technology]

[0002] In a horizontal shooting game, the user must control the virtual character to attack enemy units near the virtual character and "kill" the enemy units to "clear the level" and thereby win the game.

[0003] When a user controls a virtual character to attack (or shoot) an enemy unit, an automatic aiming mechanism in the client determines an aiming target of the virtual character from a plurality of enemy units. Typically, the client first determines the distance between the virtual character and the enemy units in the three-dimensional virtual environment, and then automatically sets the enemy unit closest to the virtual character as the aiming target of the virtual character. That is, when a user controls a virtual character to attack an enemy unit, the enemy unit closest to the virtual character is attacked preferentially. The user can change the distance between the virtual character and the enemy unit by controlling and moving the virtual character, thereby changing the aiming target of the virtual character. Summary of the Invention [Problem to be solved by the invention]

[0004] The aim target determined by the automatic aiming mechanism may not match the subjective intention of the user. When the user changes the aim target of the virtual character by the automatic aiming mechanism, the operation of switching the aim target by controlling and moving the virtual character becomes complicated because the virtual character is also influenced by other factors (e.g., avoiding enemy attacks). [Means for solving the problem]

[0005] According to one aspect of the present application, there is provided a method for displaying an aiming mark, the method comprising: A step of displaying a level interface in which a master virtual character and at least two candidate virtual characters located in a virtual environment are displayed, the candidate virtual characters refer to virtual characters that support being aimed at by an aiming mark, and the aiming mark is for marking an aiming target when the master virtual character is shooting; displaying a targeting mark on a first virtual character of the at least two candidate virtual characters; and in response to a switching operation to the aiming target, switching and displaying the aiming mark on a second virtual character of the at least two candidate virtual characters.

[0006] According to another aspect of the present application, there is provided a display device for a sight mark, the device comprising: a display module for displaying a level interface in which a master virtual character and at least two candidate virtual characters located in a virtual environment are displayed, the candidate virtual characters being virtual characters that support being aimed at by an aiming mark, the aiming mark being for marking an aiming target when the master virtual character is shooting; The display module further displays a targeting mark on a first virtual character of the at least two candidate virtual characters; The display module further switches and displays the aiming mark on a second virtual character of the at least two candidate virtual characters in response to a switching operation to the aiming target.

[0007] According to another aspect of the present application, there is provided a computing device including a processor and a memory, wherein the memory stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by the processor to realize the method for displaying an aiming mark described in the above aspect.

[0008] According to another aspect of the present application, there is provided a computer-readable storage medium having at least one program code stored therein, the program code being loaded and executed by a processor to realize the method for displaying an aiming mark described in the above aspect.

[0009] According to another aspect of the present application, there is provided a computer program product or a computer program, the computer program product or the computer program including computer instructions stored in a computer readable storage medium, the computer instructions being read by a processor of a computer device from the computer readable storage medium, and the processor executing the computer instructions to cause the computer device to perform a method for displaying an aiming mark provided by various selectable implementation manners of the above aspect. Effect of the Invention

[0010] The beneficial effects brought about by the technical solution provided by this application include at least the following:

[0011] By displaying an aiming mark on a first virtual character of at least two candidate virtual characters, the aiming mark is then switched to be displayed on a second virtual character in response to a switching operation. When the aiming target of the automatic aiming does not match the subjective intention of the user, a simple and fast aiming target switching mechanism is provided, allowing the user to switch between different virtual characters as the aiming target by a switching operation, and this process is independent of other operations of the user controlling the master virtual character, reducing the complexity of the user's operation when switching the aiming target. [Brief description of the drawings]

[0012] [Figure 1] FIG. 2 is a structural block diagram of a computer system provided by one exemplary embodiment of the present application. [Diagram 2] FIG. 2 is a schematic diagram of a horizontal level interface provided by one exemplary embodiment of the present application. [Diagram 3] 1 is a schematic flowchart of a method for displaying an aiming mark provided by an exemplary embodiment of the present application; [Figure 4] 1 is a schematic diagram showing the realization principle of a virtual environment provided by one exemplary embodiment of the present application; [Diagram 5] 1 is a schematic flowchart of a method for displaying an aiming mark provided by another exemplary embodiment of the present application. [Figure 6] FIG. 2 is a schematic diagram of an implementation process of displaying an aiming mark on a first virtual character provided by an exemplary embodiment of the present application; [Figure 7] FIG. 13 is a schematic diagram of an implementation process of displaying an aiming mark on a second virtual character provided by yet another exemplary embodiment of the present application; [Figure 8] FIG. 2 is a schematic diagram of an auto-target list and a blacklist provided by one exemplary embodiment of the present application. [Figure 9] FIG. 2 is a schematic diagram of a horizontal level interface provided by another exemplary embodiment of the present application. [Figure 10] FIG. 2 is a schematic diagram of an implementation process for determining an aiming target provided by one exemplary embodiment of the present application; [Figure 11] FIG. 2 is a structural schematic diagram of a display device of an alignment mark provided by an exemplary embodiment of the present application; [Figure 12] FIG. 2 is a structural schematic diagram of a display module provided by an exemplary embodiment of the present application. [Figure 13] FIG. 2 is a structural schematic diagram of a decision sub-module provided by an exemplary embodiment of the present application; [Figure 14] 1 is a structural schematic diagram of a terminal provided by an exemplary embodiment of the present application; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0013] First, the nouns related to the embodiments of the present application will be introduced.

[0014] Horizontal games: refers to games in which the player controls the path of a game character on a horizontal screen. In horizontal games, the path of the game character is horizontal on all or most of the screen. According to content, horizontal games can be divided into horizontal clear, horizontal adventure, horizontal competition, horizontal strategy, etc., and according to skill, horizontal games can be divided into two-dimensional (2D) horizontal games and three-dimensional (3D) horizontal games.

[0015] Virtual environment: A virtual environment that is displayed (or provided) when an application program is executed on a terminal. The virtual environment may be at least one of a real-world simulation environment, a semi-simulated / semi-fictional environment, and a purely fictional environment. The virtual environment may be any one of a 2D virtual environment, a 2.5D virtual environment, and a 3D virtual environment, and the embodiments of the present application are not limited thereto.

[0016] Optionally, the virtual environment can provide a competitive environment for virtual characters. Illustratively, in a horizontal game, one or two virtual characters play a single round of combat in the virtual environment, and the virtual characters achieve the goal of surviving in the virtual environment by avoiding attacks by enemy characters and dangers (e.g., poison gas circles, swamps, etc.) present in the virtual environment; when the life value of the virtual character in the virtual environment is zero, the life of the virtual character in the virtual environment ends, and the last virtual character that smoothly passes through the line in the level is the winner. Each client can control one or more virtual characters in the virtual environment. Optionally, the competitive mode of the combat can include a single-player combat mode, a two-player small-team combat mode, or a multiplayer large-team combat mode, and the embodiment does not limit the combat mode.

[0017] Exemplarily, the level screen is a screen for observing the virtual environment from the sideways viewpoint of the virtual character, for example, a shooting game in which the virtual character is observed in the vertical direction to the right of the virtual character. The level screen means a horizontal level screen or a vertical level screen, and the horizontal length of the horizontal level screen is equal to or greater than the vertical length, and the horizontal length of the vertical level screen is equal to or less than the vertical length. Optionally, when the terminal displays the level screen, it supports switching between the vertical level screen and the horizontal level screen. For example, when the length direction of the terminal is horizontal, the terminal displays the horizontal level screen, and when the length direction of the terminal changes to the vertical direction, the terminal switches the horizontal level screen to the vertical level screen and displays it. The horizontal level screen and the vertical level screen are different in terms of the display range of the virtual environment. The above switching process is a function provided by a client on the terminal, and in the process of realizing the switching, the client obtains information provided by a sensor of the terminal to determine the arrangement direction of the terminal and determine the display mode of the current level screen. Exemplarily, the sensor means a gyro sensor.

[0018] Virtual Character: means at least one movable object controlled by a user in a virtual environment. The virtual character may be a virtual person, a virtual animal, a cartoon character, etc. Optionally, the virtual character is a three-dimensional solid model created based on skeletal animation techniques. Each virtual character has its own shape and volume in the virtual environment and occupies a portion of the space in the virtual environment.

[0019] The virtual characters include a master virtual character and a candidate virtual character. The master virtual character means a virtual character currently controlled by a user. The candidate virtual character means a virtual character that supports being aimed at by a targeting mark, that is, the candidate virtual character means a virtual character that supports being aimed at and attacked by the master character. The candidate virtual characters include an enemy character, which means a virtual character that is on the opposing side of the master virtual character in a competition (including a battle). The enemy character may be a virtual character controlled by another user or a non-player character (NPC), for example, the enemy character may be a virtual person, a virtual animal, a cartoon character, a virtual monster, a virtual robot, a virtual tank, a virtual airplane, etc. The user can control the virtual character to attack the enemy character.

[0020] Virtual tool: includes at least one of a virtual weapon, a functional tool, and a virtual equipment. Exemplarily, the virtual tool in the embodiment of the present application refers to a virtual weapon that is a weapon that a virtual character can use in a virtual environment. Exemplarily, the virtual weapon is a tool that affects the activity state or life value of an enemy character that is attacked after being used by a virtual character. The virtual weapon includes cold weapons, firearms, artillery, armored fighting vehicles, anti-riot weapons, biological and chemical weapons, nuclear weapons, new concept weapons, etc. For example, the virtual tool may be a knife, a gun, a sword, a pistol, a rifle, a submachine gun, a machine gun, a special gun, a shotgun, a grenade, a rocket launcher, a mortar, a tank gun, a cannon, a missile, a laser weapon, a microwave weapon, a particle beam weapon, a kinetic energy interceptor, an electromagnetic gun, a pulse weapon, a signal jamming weapon, etc. Different virtual weapons correspond to different weapon attributes, including attack damage, attack range, and attack speed, etc. When a user controls a virtual character to attack enemy characters with different virtual weapons, different attack effects can be generated depending on the attributes of the weapons, including single-target attacks for a single enemy character and area of ​​effect (AOE) attacks for enemy characters within a certain range.

[0021] Third-person shooting game (Third-Person Shooting Game, TPS): refers to a shooting game played by a user from a third-person perspective, and the screen of the virtual environment in the game is a screen that observes the virtual environment from a third-person perspective (i.e., the user's perspective). In the game, the user controls the virtual character to attack the enemy character, thereby killing the enemy character, "clearing the level (also called "clearing the stage"), and winning the game. The virtual character and the enemy character have corresponding life values, and if the life value is 0, the virtual character or the enemy character is considered to be "killed". Optionally, in the third-person shooting game, the game can also be played in a team battle mode, which means that two or more users form a team to "clear the level", and each user controls his or her own virtual character to attack the enemy character respectively. The embodiment of the present application does not limit the battle mode.

[0022] User Interface (UI) Control: refers to any visual control or element that appears in the user interface of an application program, such as an image, an input box, a text box, a button, a label, etc. Some UI controls respond to user operations, for example, a user can input characters into an input box, and the user interacts with the user interface through the UI controls.

[0023] The method provided by the present application can be applied to an application program having a virtual environment, a master virtual character, and a candidate virtual character. Exemplarily, the application program supporting the virtual environment is an application program in which a user can control a master virtual character to move in the virtual environment and attack the candidate virtual character. Exemplarily, the method provided by the present application can be applied to at least one of a Virtual Reality (VR) program, an Augmented Reality (AR) program, a 3D map program, a Virtual Reality game, an Augmented Reality game, a First-Person Shooting Game (FPS), a Third-Person Shooting Game, a Multiplayer Online Battle Arena Game (MOBA), and a Simulation Game (SLG).

[0024] Exemplarily, a game in a virtual environment is composed of one or more game world maps, the virtual environment in the game is a simulation of a real-world scene, and a user can control a master virtual character in the game to perform actions such as walking, running, jumping, shooting, fighting, driving, attacking enemy characters with virtual weapons, etc. in the virtual environment, which is highly interactive. Optionally, the game can further support multiple users to play the game in a team online.

[0025] In some embodiments, the application program may be a shooting game, a racing game, a role-playing game, an adventure game, a sandbox game, a battle arena game, or the like. The application program may be executed in at least one of a Windows operating system, a Macintosh Operation System (Mac OS), an Android operating system, an iPhone Operation System (IOS), and a LINUX operating system, and optionally, application programs in different operating systems may further connect to each other and communicate with each other. The application program is a program applied to a mobile terminal having a touch screen. The application program is an application program developed based on a 3D engine, for example, the 3D engine is a Unity engine.

[0026] 1 is a structural block diagram of a computer system provided by an exemplary embodiment of the present application. The computer system 100 includes a first terminal 110 and a server 120.

[0027] An application program supporting the virtual environment is installed and executed on the first terminal 110. Optionally, if the application program supports the above-mentioned team-up mode, the computer system 100 may further include a second terminal 130. The first terminal 110 is a terminal used by a first user, and the first user uses the first terminal 110 to control a first master virtual character located in a virtual environment to play a game, including at least one of adjusting the body posture of the first master virtual character, crawling, walking, running, riding, jumping, driving, attacking an enemy character, picking up a virtual weapon, equipping a virtual weapon, switching the currently used virtual weapon, and determining an aiming target of the first master virtual character.

[0028] The first terminal 110 is connected to the server 120 via a wireless network or a wired network.

[0029] The server 120 includes at least one of one server, multiple servers, a cloud computing platform, and a virtualization center. Schematically, the server 120 includes a processor 121, a user account database 122, a match service module 123, and a user-oriented input / output interface (I / O interface) 124. The processor 121 loads instructions stored in the server 120 and processes data in the user account database 122 and the match service module 123. The user account database 122 stores data of user accounts used by the first terminal 110 and the second terminal 130, such as avatars of the user accounts, nicknames of the user accounts, and service areas in which the user accounts are located. The match service module 123 is used to realize a mode in which players form teams to compete. The user-oriented I / O interface 124 is used to establish communication and exchange data with the first terminal 110 via a wireless network or a wired network.

[0030] Alternatively, the server 120 is responsible for the main calculation tasks, and the first terminal 110 and the second terminal 130 are responsible for the secondary calculation tasks. Alternatively, the server 120 is responsible for the secondary calculation tasks, and the first terminal 110 and the second terminal 130 are responsible for the main calculation tasks. Alternatively, a distributed computing architecture is adopted among the server 120, the first terminal 110, and the second terminal 130 to perform collaborative computing.

[0031] An application program supporting the virtual environment is installed and executed on the second terminal 130. The application program supports the above-mentioned team-up mode. The second terminal 130 is a terminal used by a second user, and the second user uses the second terminal 130 to control a second master virtual character located in the virtual environment to play a game, including at least one of adjusting the body posture of the second master virtual character, crawling, walking, running, riding, jumping, driving, attacking an enemy character, picking up a virtual weapon, equipping a virtual weapon, switching the currently used virtual weapon, and determining an aiming target of the second master virtual character.

[0032] Optionally, the first master virtual character and the second master virtual character are in the same virtual environment.

[0033] Optionally, the application programs installed on the first terminal 110 and the second terminal 130 are the same, or the application programs installed on the two terminals are different versions of the same application program, and the different versions of the same application program may be designed for different operating system platforms or may be designed for the same operating system platform. The first terminal 110 may refer to one of a plurality of terminals, and the second terminal 130 may refer to one of a plurality of terminals, and this embodiment will be described using only the first terminal 110 and the second terminal 130 as an example. The device types of the first terminal 110 and the second terminal 130 are the same or different, and the device types include at least one of an AR device, a VR device, a smart wearable device, a smartphone, a tablet computer, an e-book reader, an MP3 player, an MP4 player, a laptop computer, and a desktop computer. The following embodiment will be described using an example in which the terminal includes a smartphone.

[0034] As those skilled in the art know, the number of the terminals can be more or less. For example, the terminal can be only one, or the terminals can be dozens or hundreds or more. The embodiment of the present application does not limit the number and device type of the terminals. The embodiment of the present application is mainly described in the application scenario of a single terminal.

[0035] 2 is a schematic diagram of a horizontal level interface provided by an exemplary embodiment of the present application. As shown in (a) of FIG. 2, a client displays a horizontal level interface, which displays a master virtual character 202 located in a virtual environment 201, at least two candidate virtual characters 203 (e.g., including a first virtual character 203a, a second virtual character 203b, and a third virtual character 203c), and a target switching control 204. The horizontal level interface further displays a control 205b for controlling the master virtual character 202 to run, a control 205a for jumping, a control 205c for throwing a bomb, and a control (i.e., a shooting control) 205d for shooting a virtual weapon (a pistol), as well as a direction control (virtual joystick) 206 for controlling the progress and direction of the master virtual character 202. When a user starts a game (or one level) through a client, the client displays the horizontal level interface. Then, the client determines a candidate virtual character with the highest priority (e.g., the first virtual character 203a) from among the at least two candidate virtual characters 203 as an aim target for the master virtual character 202 based on the automatic aim mechanism, and displays an aim mark 207 on the determined aim target. Optionally, the automatic aim mechanism is an aim mechanism that determines the first ranked candidate virtual character as an aim target after ranking the at least two candidate virtual characters 203 according to at least one of the following factors: the distance between the master virtual character 202 and the candidate virtual character 203 in the virtual environment 201, the remaining life value of the candidate virtual character 203, the percentage of the remaining life value of the candidate virtual character 203, and the kill benefit corresponding to the candidate virtual character 203. The embodiment of the present application will be mainly described with the automatic aim mechanism based on the distance between the master virtual character 202 and the candidate virtual character 203 in the virtual environment 201.The distance is negatively correlated with the priority of the candidate virtual character 203. That is, the closer to the master virtual character 202, the higher the priority of the candidate virtual character 203. The distance is the distance between the master virtual character 202 and the candidate virtual character 203 in the three-dimensional virtual environment in which they are located. If the automatic aiming mechanism determines the aiming target based on the distance between the master virtual character 202 and the candidate virtual character 203 in the virtual environment 201, the priority of the first virtual character 203a is higher than the priority of the second virtual character 203b, which is higher than the priority of the third virtual character 203c. In this case, when the client receives an instruction to shoot the candidate virtual character 203, the client controls the master virtual character 202 to shoot the first virtual character 203a.

[0036] As shown in FIG. 2B, when the client receives a switching operation triggered by the aim switching control 204 for the first time, the client adds the currently determined aim target (first virtual character 203a) to the blacklist. In addition, when adding the first virtual character 203a to the blacklist, if a candidate virtual character already exists in the blacklist at this time, the client deletes the already existing candidate virtual character from the blacklist, that is, at most one candidate virtual character always exists in the blacklist. After that, the client determines the second virtual character 203b with the highest priority from the remaining candidate virtual characters 203 based on the automatic aim mechanism as the aim target of the master virtual character 202 at this time, and switches and displays the aim mark 207 on the second virtual character 203b. In this case, when the client receives a command to shoot the candidate virtual character 203, the client controls the master virtual character 202 to shoot the second virtual character 203b.

[0037] 2(c), when the client receives a switching operation triggered by the aim switching control 204 again, the client deletes the first virtual character 203a from the blacklist and adds the currently determined aim target (the second virtual character 203b) to the blacklist. After that, the client determines the first virtual character 203a with the highest priority from the remaining candidate virtual characters 203 as the aim target of the master virtual character 202 at this time based on the automatic aim mechanism, and switches the aim mark 207 to be displayed on the first virtual character 203a. In this case, when the client receives a command to shoot the candidate virtual character 203, the client controls the master virtual character 202 to shoot the first virtual character 203a.

[0038] If the client subsequently receives a further switch operation triggered by the aim switch control 204, the client continues to determine the aim target according to the manner in which the switch operation was again received.

[0039] Also, in a situation where the aim disable condition is not triggered, the client maintains and displays the aim mark 207 on the aim target currently determined based on the switching operation. For example, when the client switches the determined aim target from the first virtual character 203a to the second virtual character 203b based on the switching operation, in this case, the client maintains and displays the aim mark 207 on the second virtual character 203b, that is, the second virtual character 203b is always the aim target. This is until the second virtual character 203b satisfies the aim disable condition or thereafter receives a switching operation again. Optionally, in a situation where the aim disable condition is not triggered, the client realizes maintaining and displaying the aim mark 207 on the current aim target by fixing the current aim target to the first position of the automatic aim list. The automatic aim list is a list for reflecting the priority order when the candidate virtual characters are aimed, which is updated based on the automatic aim mechanism. When the aim disable condition is triggered, the client deletes the candidate virtual character currently on the blacklist from the blacklist, and determines the candidate virtual character with the highest priority from the current multiple candidate virtual characters as the aim target at this time based on the automatic aim mechanism. For example, the current aim target determined by the client based on the switching operation is the first virtual character 203a, and the aim target before switching is the second virtual character 203b. The user controls the master virtual character 202 to shoot the first virtual character 203a, and after shooting and killing the first virtual character 203a, the client deletes the second virtual character 203b from the blacklist, and determines the candidate virtual character with the highest priority (e.g., the second virtual character 203b) as the aim target from at least two candidate virtual characters 203 other than the first virtual character 203a based on the automatic aim mechanism.

[0040] In addition, the client updates the auto-aim list when an update timing is met, i.e., updates the priority of each candidate virtual character. The update timing includes at least one of the following: when the current time meets an update period, when a command to control the master virtual character to shoot is received, and when the target satisfies an aim invalidation condition. The update of the auto-aim list affects the priority of each candidate virtual character used when the client determines the target based on the auto-aim mechanism, thereby affecting the final determined target.

[0041] According to the above method, when controlling the master virtual character to shoot the candidate virtual characters, the client can switch the current aim target of the master virtual character according to the switching operation and the automatic aiming mechanism, so that when the aim target determined by the automatic aiming mechanism does not match the user's subjective intention, a simple and fast aim target switching mechanism can be provided, and the combination of the user's switching operation and the automatic aiming mechanism can realize the switching of the aim target between different high-priority candidate virtual characters, and this process is independent of other operations of the user controlling the master virtual character, reducing the complexity of the user's operation when switching the aim target.

[0042] 3 is a schematic flowchart of a method for displaying an aiming mark provided by an exemplary embodiment of the present application. The method is applicable to a client running on a terminal as shown in FIG. 1, and the client is an application program supporting a virtual environment. As shown in FIG. 3, the method includes steps 301 to 303.

[0043] Step 301: Display a level interface showing a master virtual character and at least two candidate virtual characters located in a virtual environment.

[0044] The level interface is an interface displayed by the client after the user starts a level of the game through the client. The level interface includes a horizontal level interface or a vertical level interface, the horizontal level interface being a horizontal interface, and the vertical level interface being a vertical interface. Optionally, the level interface further displays an aim switching control, which, when triggered, is used to switch the aim target during shooting of the master virtual character. Optionally, the virtual environment is a three-dimensional virtual environment. The virtual environment displayed by the client is collected by a camera model hung on the three-dimensional virtual environment. Exemplarily, the virtual environment includes at least one of a city simulation environment, a forest simulation environment, an underground space simulation environment, an underwater simulation environment, and a historical site simulation environment.

[0045] For example, as shown in FIG. 4, the collection direction of the camera model 401 hung in the 3D virtual environment is perpendicular to the x-axis. If the movement line of the master virtual character in the 3D virtual environment is in the positive direction of the x-axis along the world coordinate system, the horizontal level interface shown in FIG. 2 is collected in the process in which the camera model 401 adopting a horizontal viewpoint tracks the master virtual character and moves along the positive half-axis direction of the x-axis.

[0046] The master virtual character is a movable object in the virtual environment controlled by the user, including a virtual person, a virtual animal, a cartoon character, etc., and the user's control of the master virtual character can shoot (attack) the candidate virtual character. The candidate virtual character is also a movable object in the virtual environment, and means a virtual character that supports being aimed at by a targeting mark, and the targeting mark is used to mark the target to be aimed at when the master virtual character is shooting. The candidate virtual character may be controlled by a client, for example, an NPC. The candidate virtual character includes a virtual person, a virtual animal, a cartoon character, a virtual monster, a virtual robot, a virtual tank, a virtual airplane, etc. The aiming switching control is a button. The button is selectively displayed with a targeting star pattern.

[0047] The client controls the candidate virtual character through logic resources in the client, the logic resources including code resources related to execution logic, the logic resources including at least one of trigger logic of the candidate virtual character, movement logic of the candidate virtual character, attack logic of the candidate virtual character, appearance logic of the neutral unit, action logic of the neutral unit, projectile dropping logic, ground vehicle dropping logic, robot carrier dropping logic, and reward dropping logic, but not limited thereto, and the embodiment of the present application does not limit the specific type of the logic resources.

[0048] Optionally, and still referring to FIG. 2, the horizontal level interface can further display control controls 205b for controlling the master virtual character to run, 205a for jumping, 205c for throwing bombs, and 205d for shooting with a virtual weapon, as well as direction controls 206 for controlling the progress and direction of the master virtual character.

[0049] Step 302: Display an aiming mark on a first virtual character of the at least two candidate virtual characters.

[0050] The client determines a first virtual character from at least two candidate virtual characters according to at least one of a distance between the candidate virtual character and the master virtual character, a remaining life value of the candidate virtual character, a percentage of the remaining life value of the candidate virtual character, and a kill benefit corresponding to the candidate virtual character. The distance is a distance between the candidate virtual character and the master virtual character in the three-dimensional virtual environment, and the kill benefit is a benefit that the master virtual character obtains when the user controls the master virtual character to kill the candidate virtual character, and includes at least one of experience points, money, virtual tools, and attribute bonuses. Exemplarily, the client determines a priority of the candidate virtual characters according to the distance between the candidate virtual characters and the master virtual character, and determines the candidate virtual character with the highest priority as the first virtual character. The distance between the candidate virtual character and the master virtual character is negatively correlated with the priority of the candidate virtual character, i.e., the closer the candidate virtual character is to the master virtual character, the higher the priority, and the farther the candidate virtual character is from the master virtual character, the lower the priority.

[0051] The aiming mark is used to mark the aiming target when the master virtual character shoots. The aiming target of the master virtual character means a target that the master virtual character shoots when the client receives a command to control the master virtual character to shoot. Optionally, the master virtual character shoots the candidate virtual character with a virtual weapon. The virtual weapons include cold weapons, firearms, artillery, armored fighting vehicles, anti-riot weapons, biological and chemical weapons, nuclear weapons, new concept weapons, etc. Different virtual weapons correspond to different weapon attributes, including attack damage, attack range, and attack speed, etc. When the master virtual character shoots the aiming target with a virtual weapon that can only attack a single target, only the aiming target is damaged, and when the master virtual character shoots the aiming target with a virtual weapon that has an AOE attack effect, the aiming target is damaged and the candidate virtual characters near the aiming target are also damaged. For example, the closer to the aiming target, the higher the damage inflicted.

[0052] When the level interface is displayed on the client, the client determines a first virtual character. When the level interface includes only one candidate virtual character, the client determines the candidate virtual character as the aiming target.

[0053] For example, after the client determines the target, when the client receives a command to control the master virtual character to shoot, the client fires a virtual bullet from a gun equipped by the master virtual character and plays a video of the virtual bullet flying to the target. The gun can only perform single-target attacks, and the client determines the remaining life value of the candidate virtual character after the master virtual character attacks the candidate virtual character according to the attack damage and attack speed of the gun. If the remaining life value of the candidate virtual character is 0, the candidate virtual character is deemed to be "shot to death." Still referring to FIG. 2, when the client receives a shooting operation triggered by the shooting control 205d, the client determines that it has received a command to control the master virtual character to attack.

[0054] The step of displaying the aiming mark on the first virtual character includes displaying the aiming mark on at least one of the positions above, below, left, and right of the first virtual character and the display area of ​​the candidate virtual character. Displaying the aiming mark in the display area of ​​the candidate virtual character usually means displaying the aiming mark at the center or center of gravity of the candidate virtual character. The aiming mark marks an aiming target, so that the user can be presented with the marked aiming target to shoot when controlling the master virtual character to shoot. Optionally, the aiming mark is a pattern of aiming stars.

[0055] Step 303: In response to a switching operation to the aiming target, the aiming mark is switched to be displayed on a second virtual character of the at least two candidate virtual characters.

[0056] Exemplarily, the client receives a switching operation to the aiming target triggered by a physical key, switches the aiming target from the first virtual character to the second virtual character, and switches and displays the aiming mark on the second virtual character. The physical key may be provided on the terminal, or may be provided on an input device connected to the terminal, such as a physical key provided on a game handle, a physical key provided on a keyboard, etc.

[0057] Exemplarily, the client switches the target mark to be displayed on the second virtual character in response to a switching operation triggered by an aim switching control displayed on the level interface. That is, when the client receives a touch operation on the aim switching control, it determines that the client has received the switching operation. The touch operation includes at least one of a click, a double click, and a long press, and the touch operation is triggered by a user's finger, a mouse, or an external device.

[0058] The information used by the client when determining the second virtual character is the same as the information used when determining the first virtual character. For example, the client determines the first virtual character according to the distance between the candidate virtual character and the master virtual character, and then determines the second virtual character according to the distance between the candidate virtual character and the master virtual character. Optionally, if the client receives a switching operation after determining the first virtual character, the client determines the candidate virtual character with the highest priority other than the first virtual character as the second virtual character. If the client then receives a switching operation again, the client continues to determine a new target according to the above method.

[0059] It should be noted that the client updates the priority of the candidate virtual characters in a situation where the update timing is satisfied. The update timing includes at least one of the following: the timing when the current time satisfies the update period, the timing when a command to control the master virtual character to shoot is received, and the timing when the target satisfies the aim disable condition. The update of the priority of the candidate virtual characters affects the priority of each candidate virtual character used when the client determines the aim target, thereby affecting the finally determined aim target. The update period is determined by the client, and is updated once per second, for example. The aim disable condition includes at least one of the following: the life value of the aim target is zero, the distance between the aim target and the master virtual character is greater than the maximum aim distance, and the aim target is deleted from the level interface. For example, the aim target and the master virtual character are separated by a virtual wall, and in this case, the aim target is outside the attack range of the master virtual character, i.e., the distance between the aim target and the master virtual character is greater than the maximum aim distance.

[0060] The step of the client switching the targeting mark to be displayed on the second virtual character includes a step of moving the targeting mark displayed on the first virtual character and then displaying it on the second virtual character, or a step of canceling the targeting mark displayed on the first virtual character and then displaying the targeting mark again on the second virtual character. The targeting marks displayed on the first virtual character and the second virtual character are the same.

[0061] As described above, the method provided by this embodiment displays an aiming mark on a first virtual character among at least two candidate virtual characters, and then switches the aiming mark to be displayed on a second virtual character according to a switching operation. By providing a simple and fast aiming target switching mechanism, when the aiming target determined by the automatic aiming mechanism does not match the user's subjective intention, the user can combine the automatic aiming mechanism to switch between different high-priority candidate virtual characters, and this process is independent of other operations that the user controls to control the master virtual character, reducing the complexity of the user's operation when switching the aiming target.

[0062] 5 is a schematic flowchart of a method for displaying an aiming mark provided by another exemplary embodiment of the present application. The method is applicable to a client running on a terminal as shown in FIG. 1, and the client is an application program supporting a virtual environment. As shown in FIG. 5, the method includes steps 501 to 504.

[0063] Step 501: Display a level interface showing a master virtual character and at least two candidate virtual characters located in a virtual environment.

[0064] For the detailed implementation of step 501, reference can be made to step 301, and no detailed description will be given here.

[0065] Step 502: Display an aiming mark on a first virtual character of the at least two candidate virtual characters.

[0066] Optionally, as shown in FIG. 6, the implementation process of step 502 includes the following steps 5021, 5022.

[0067] In step 5021, a first virtual character is determined from the at least two candidate virtual characters based on an auto-aim mechanism.

[0068] The first virtual character is a candidate virtual character with the highest priority determined by an automatic targeting mechanism. The automatic targeting mechanism is a targeting mechanism that determines the first candidate virtual character as a target based on the priority order of targeting at least two candidate virtual characters when a master virtual character shoots. Optionally, the automatic targeting mechanism is a targeting mechanism that determines the first candidate virtual character as a target after ranking at least two candidate virtual characters according to at least one of the following factors: the distance between the master virtual character and the candidate virtual character in the virtual environment, the remaining life value of the candidate virtual character, the percentage of the remaining life value of the candidate virtual character, and the kill benefit corresponding to the candidate virtual character. The embodiment of the present application will be mainly described with the automatic targeting mechanism based on distance.

[0069] When a user starts a game (or one level) through the client, the client displays the level interface and determines a first virtual character based on an auto-aim mechanism.

[0070] The client can determine an attackable candidate virtual character within the attack range of the master virtual character from at least two candidate virtual characters. Then, the client determines the priority of the attackable candidate virtual characters according to the distance between the attackable candidate virtual characters and the master virtual character. The candidate virtual characters displayed in the same level interface as the master virtual character may be outside the attack range of the master virtual character. In this case, the client determines the priority only of the candidate virtual characters within the attack range of the master virtual character, and determines the first virtual character only from the attackable candidate virtual characters. The attack range is determined according to the attack distance of the virtual weapon equipped by the master virtual character. Different virtual weapons correspond to different attack ranges or the same attack range. For example, the attack range of a virtual pistol is smaller than the attack range of a virtual rifle.

[0071] The first virtual character selected by the client is the candidate virtual character closest to the master virtual character. The first virtual character is the target of the master virtual character, and the target of the master virtual character means the target that the master virtual character will shoot when the client receives a command to control the master virtual character to shoot. When the master virtual character shoots the target with a virtual weapon that can only attack a single target (e.g., a pistol, a rifle, a machine gun), only the target is damaged. When the master virtual character shoots the target with a virtual weapon that has an AOE attack effect (e.g., a bomb, a rocket launcher, a laser transmitter), the target is damaged and the candidate virtual characters near the target are also damaged.

[0072] After determining the priority of the candidate virtual characters, the client can obtain an auto-aim list by ranking the candidate virtual characters according to the order of priority. The client determines the first candidate virtual character in the auto-aim list as the first virtual character. The auto-aim list is a priority list updated based on the auto-aim mechanism and can reflect the priority of the candidate virtual characters. When determining the target for the master virtual character, the client determines the first candidate virtual character in the auto-aim list as the first virtual character. The auto-aim list stores an indicator of each candidate virtual character. The auto-aim list is stored in a cache, a random access memory (RAM) or a read-only memory (ROM) of the terminal where the client is located.

[0073] In addition, the client updates the automatic aiming mechanism when the update timing is met, i.e., updates the priority of the candidate virtual characters. The update of the priority of the candidate virtual characters affects the priority of each candidate virtual character used when the client determines the aim target, thereby affecting the finally determined aim target. The update timing of the automatic aiming mechanism is as follows: -When the current time meets the update period, - The timing of receiving commands to control and shoot the master virtual character; -The timing when the aiming target satisfies the aiming invalid condition.

[0074] The update period is determined by the client, and is updated, for example, once per second. The command to control the master virtual character to shoot is a command triggered by a touch operation on the shooting control in the level interface, or a command triggered by a physical key or an external device of the terminal where the client is located, or a command triggered by a voice command from the user. The aim invalid condition is a condition indicating that the aim target has exceeded the aim range of the master virtual character, and is at least one of a condition in which the life value of the aim target is zero, a condition in which the distance between the aim target and the master virtual character is greater than the maximum aim distance, and a condition in which the aim target is deleted from the level interface. Exemplarily, a virtual wall is between the aim target and the master virtual character, and in this case, the aim target is outside the attack range of the master virtual character, i.e., the distance between the aim target and the master virtual character is greater than the maximum aim distance.

[0075] In step 5022, a targeting mark is displayed on the first virtual character.

[0076] The aiming mark is used to mark an aiming target when the master virtual character is shooting.

[0077] Optionally, after the client determines the first virtual character, the client further continuously updates the first virtual character based on the automatic aiming mechanism. For example, after the client determines the first virtual character, if the first virtual character is not the candidate virtual character closest to the master virtual character according to the movement of the candidate virtual characters, the client determines the candidate virtual character closest to the master virtual character at this time as the updated first virtual character, and switches the aiming mark to be displayed on the updated first virtual character.

[0078] For example, still referring to (a) of FIG. 2, the auto-aim list determined by the client includes a first virtual character 203a, a second virtual character 203b, and a third virtual character 203c, and the client determines the first candidate virtual character in the auto-aim list, i.e., the first virtual character 203a, as the aim target and displays an aim mark 207 on the first virtual character 203a.

[0079] Step 503: In response to a switching operation to the aiming target, the aiming mark is switched to be displayed on a second virtual character of the at least two candidate virtual characters.

[0080] Optionally, the second virtual character has a lower priority than the first virtual character alone, ie, the distance between the candidate virtual characters and the master virtual character that corresponds to the second virtual character is the smallest.

[0081] Optionally, as shown in FIG. 7, the implementation process of step 503 includes the following steps 5031, 5032.

[0082] In step 5031, in response to a switch operation to the aiming target, a second virtual character is determined from the at least two candidate virtual characters based on an automatic aiming mechanism.

[0083] The second virtual character is a candidate virtual character with the highest priority other than the first virtual character as determined by the auto-aim mechanism. Optionally, in determining the second virtual character, the client adds the first virtual character to a blacklist, and determines a candidate virtual character with the highest priority from the remaining virtual characters based on the auto-aim mechanism as the second virtual character. The remaining virtual character is a candidate virtual character other than the first virtual character among the at least two candidate virtual characters.

[0084] In the process of the client adding the first virtual character to the blacklist, if the blacklist is empty, the client directly adds the first virtual character to the blacklist, if there is a third virtual character in the blacklist, the client deletes the third virtual character from the blacklist and adds the first virtual character to the blacklist, the third virtual character being a candidate virtual character included in at least two candidate virtual characters. Exemplarily, the client deletes the third virtual character from the blacklist and populates the first virtual character from the auto-aim list to the blacklist, if the third virtual character is closest to the master virtual character at this time, the client determines the third virtual character as the second virtual character.

[0085] The blacklist being empty includes a candidate virtual character present in the blacklist satisfying the aim disable condition, that is, when a candidate virtual character in the blacklist satisfies the aim disable condition, the client deletes the candidate virtual character that satisfies the aim disable condition from the blacklist. For example, in response to a first virtual character satisfying the aim disable condition, the client deletes the first virtual character that has already been added to the blacklist from the blacklist. In addition, the currently triggered switching operation is the first switching operation after starting one game (in this case, the candidate virtual character has not been imported into the blacklist). The presence of a third virtual character in the blacklist means that the currently triggered switching operation is not the first switching operation after starting one game. The client deletes the third virtual character from the blacklist, and in this case, the client can set the third virtual character as the preselected second virtual character when determining the second virtual character. When the first virtual character is imported into the blacklist, in this case, the client does not consider the first virtual character when determining the second virtual character.

[0086] The client can establish a blacklist corresponding to the auto-aim list, and the blacklist stores an indication of at most one candidate virtual character. The blacklist is stored in a cache, RAM, or ROM of the terminal where the client is located. Exemplarily, the blacklist and the auto-aim list are stored in the same location, for example, both the blacklist and the auto-aim list are stored in the cache, RAM, or ROM. After the client starts a game, the client creates the auto-aim list and the blacklist.

[0087] For example, still referring to FIG. 2(b), the auto-aim list determined by the client includes a first virtual character 203a, a second virtual character 203b, and a third virtual character 203c, and when the client receives a switching operation, the client directly imports the first virtual character 203a into the blacklist (first switching operation), and then determines the candidate virtual character with the highest priority in the auto-aim list (i.e., the second virtual character 203b) as the target to be aimed at at this time.

[0088] 8, the auto-aim list 801 determined by the client at a first time point includes A, B, C, and D, and the blacklist 802 is empty, in which case the first virtual character is A. Then, the client receives a switch operation at a second time point, in which case the client populates A into the blacklist 802 and determines the first candidate virtual character B in the auto-aim list 801 at this time as the second virtual character.

[0089] In step 5032, a targeting mark is displayed on the second virtual character.

[0090] The step of the client switching the targeting mark to be displayed on the second virtual character includes a step of moving the targeting mark displayed on the first virtual character and then displaying it on the second virtual character, or a step of canceling the targeting mark displayed on the first virtual character and then displaying the targeting mark again on the second virtual character. The targeting marks displayed on the first virtual character and the second virtual character are the same.

[0091] Step 504: In a situation where the aim invalid condition is not triggered, the aim mark is maintained and displayed on the second virtual character.

[0092] In a situation where the aim disable condition is not triggered, the client fixes the second virtual character to the first position of the auto aim list, thereby holding and displaying an aim mark on the second virtual character. The candidate virtual character fixed to the first position of the auto aim list is always the aim target before the aim disable condition is satisfied and the next aim target is switched. That is, when the user controls the master virtual character to shoot, the user always shoots the aim target before not shooting the current aim target and not performing a switching operation. The candidate virtual character fixed to the first position of the auto aim list is the aim target determined through a switching operation. Therefore, the aim target is the target that the user expects to attack.

[0093] The aim invalidation condition includes that the second virtual character satisfies the aim invalidation condition, specifically, The condition that the life value of the second virtual character is zero; The distance between the second virtual character and the master virtual character is greater than the maximum aiming distance; a condition in which the second virtual character is removed from the level interface.

[0094] For example, when a user controls a master virtual character to attack a second virtual character, and the life value of the second virtual character is 0, the second virtual character satisfies the aim invalid condition. When the second virtual character runs to one side of the virtual environment, and the second virtual character runs out of the virtual environment and has not yet been shot to death by the master virtual character, the second virtual character satisfies the aim invalid condition. When the second virtual character is separated from the master virtual character by one virtual wall during the process of moving (the master virtual character cannot attack through the wall and exceeds the maximum aim distance), the second virtual character satisfies the aim invalid condition.

[0095] When the aim disable condition is triggered, the client removes the candidate virtual characters currently on the blacklist from the blacklist, and when there are no candidate virtual characters on the blacklist in this case, determines the candidate virtual character with the highest priority (the first candidate virtual character on the auto-aim list) from the candidate virtual characters based on the auto-aim mechanism as the aim target in this case, and displays an aim mark on the aim target. That is, when the client determines that the second virtual character satisfies the aim disable condition, the client can further automatically determine a new aim target for the master virtual character.

[0096] For example, the client determines the first virtual character as the aim target, and then determines the second virtual character as the aim target according to a switching operation, in which the first virtual character is in the blacklist. If the second virtual character meets the aim invalid condition, the client deletes the first virtual character from the blacklist, and if the first virtual character is closest to the master virtual character at this time, the client determines the first virtual character as the new aim target.

[0097] Illustratively, FIG. 9 is a schematic diagram of a horizontal level interface provided by another exemplary embodiment of the present application. As shown in FIG. 9(a), after starting one game, the client determines the first virtual character 902a, which is the closest to the master virtual character 901, from among the first virtual character 902a, the second virtual character 902b, and the third virtual character 902c, as the target of aim. Then, in response to a switching operation, the client determines the second virtual character 902b as the target of aim, in which case the first virtual character 902a is on the blacklist. In response to an instruction to control the master virtual character to attack, the client displays an animation in which the virtual weapon of the master virtual character 901 fires a virtual bullet 903, and determines the remaining life value of the second virtual character 902b according to the damage of the virtual weapon. As shown in FIG. 9(b), if the remaining life value of the second virtual character 902b is 0, the client deletes the first virtual character 902a from the blacklist. In this case, since the distance between the third virtual character 902c and the master virtual character 901 after the movement is smaller than the distance between the first virtual character 902a and the master virtual character 901, the client determines the first (highest priority) candidate virtual character in the automatic targeting list, i.e., the third virtual character 902c, as the target to be aimed at.

[0098] It should be noted that after the user starts a game based on the above method and switches the aim target of the master virtual character for the first time, the user can continue to switch the aim target of the master virtual character by further switching operations. For the implementation process of continuously switching the aim target of the master virtual character, the user can refer to the above steps 503 to 504, and the present application will not be described in detail here.

[0099] As described above, the method provided by this embodiment displays an aiming mark on a first virtual character among at least two candidate virtual characters, and then switches the aiming mark to be displayed on a second virtual character according to a switching operation. By providing a simple and fast aiming target switching mechanism, when the aiming target determined by the automatic aiming mechanism does not match the user's subjective intention, the user can combine the automatic aiming mechanism to switch between different high-priority candidate virtual characters, and this process is independent of other operations that the user controls to control the master virtual character, reducing the complexity of the user's operation when switching the aiming target.

[0100] The method provided by this embodiment further provides an automatic and fast manner to determine the aiming target of the master virtual character based on the automatic aiming mechanism and switch the aiming target of the master virtual character according to the priority of the candidate virtual characters, thereby realizing the determination and switching of the aiming target.

[0101] The method provided by this embodiment further adds a candidate virtual character to a blacklist, thereby determining an aim target to switch to from the remaining virtual characters according to a priority order, without the need to consider other factors, thereby improving the efficiency of determining an aim target.

[0102] The method provided in this embodiment further ensures that there is at most one candidate virtual character in the blacklist by updating the candidate virtual characters in the blacklist in a different manner when the blacklist is empty or there is a third virtual character, so that the target of the target is only switched between the two candidate virtual characters with the first and second priorities. In the scene where the candidate virtual characters can be quickly shot and killed, the user can quickly switch the target of the target, which improves the user experience.

[0103] The method provided by this embodiment further includes the steps of: if a candidate virtual character in the blacklist meets an aim disable condition, removing the candidate virtual character from the blacklist, thereby preventing the candidate virtual character that meets the aim disable condition from affecting the aim target determined by the automatic aim mechanism.

[0104] The method provided by this embodiment further includes, in a situation where the aim disable condition is not triggered, holding and displaying the aim mark on the second virtual character, so as to always attack the second virtual character before shooting or killing the second virtual character or performing a switching operation, the second virtual character being a target that the user expects to attack, and the mechanism of always attacking the target that the user expects to attack can improve the user's experience.

[0105] The method provided by this embodiment further realizes that the second virtual character is fixed to the first position in the automatic targeting list, thereby maintaining and displaying the target mark on the second virtual character, without relying on other information, and improving the efficiency of locking the target.

[0106] The method provided in this embodiment further establishes an aim invalid condition, thereby realizing automatically determining a new aim target when the aim invalid condition is triggered, and can avoid the problem of losing the aim target.

[0107] The method provided by this embodiment further uses an automatic aiming mechanism to always determine the candidate virtual character with the highest priority as the aiming target, thereby realizing automatic determination of the aiming target after starting the game, and switching of the aiming target according to switching operations, thereby improving the accuracy and efficiency of determining the aiming target.

[0108] The method provided by this embodiment further ensures that the aim target is always determined according to the highest priority principle in a situation where the priority of candidate virtual characters changes by updating the automatic aim list, so as to ensure that the user can attack the candidate virtual character with the highest priority, thereby improving the user experience.

[0109] It should be noted that the order of steps in the method provided in the embodiments of the present application may be adjusted as appropriate, and steps may be increased or decreased accordingly according to circumstances. Any method that can be easily conceived by any person skilled in the art within the technical scope disclosed in the present application should be included in the scope of protection of the present application, and no further elaboration is required.

[0110] FIG. 10 is a schematic diagram of an implementation process of determining an aiming target provided by one exemplary embodiment of the present application. Step 11: When a client starts a game, it creates an automatic aiming list according to the distance between the candidate virtual character and the master virtual character based on the automatic aiming mechanism, and also creates a black list corresponding to the automatic aiming list. Then, it determines the first candidate virtual character in the automatic aiming list as the first virtual character, and displays an aiming mark on the first virtual character. Step 12: When a switching operation is received, it imports the first virtual character into the black list, determines the first candidate virtual character in the automatic aiming list at this time as the second virtual character, locks the second virtual character as an aiming target, and switches and displays the aiming mark on the second virtual character. Step 13: When a switching operation is received again, it repeatedly executes the step of deleting the candidate virtual character in the black list and the step of determining the second virtual character. In this process, if the aim invalid condition is triggered (the aim target determined based on the switching operation satisfies the aim invalid condition), the client re-determines the aim target based on the automatic aim mechanism and displays the aim mark on the newly determined aim target. After that, if a switching operation is received, the client starts to continue execution from the step of determining the second virtual character. Step 14: The client continues to update the automatic aim list at the update timing of the automatic aim mechanism, i.e., updates the priority of the candidate virtual characters, thereby affecting the determination result of each time the aim target is determined.

[0111] In some embodiments, the client may further trigger a continuous switching operation, and the continuous switching operation is used to trigger a function of automatically switching the target continuously. Exemplarily, the continuous switching operation may be triggered by a physical key, for example, by a designated physical key on the terminal, and further, for example, by a physical key on a steering wheel that has a wired or wireless connection with the terminal, or by an aiming switching control displayed by the level interface, that is, the aiming switching control has a trigger function of the continuous switching operation.

[0112] Exemplarily, the client displays a first aiming mark on a first virtual character, and then switches the first aiming mark on the first virtual character to a second aiming mark in response to a continuous switching operation to the target, and shoots the first virtual character in response to a first shooting operation to the target, and switches and displays the second aiming mark on the second virtual character. The second aiming mark and the first aiming mark are different types of aiming marks, for example, the first and second aiming marks have different shapes, and for example, the first and second aiming marks have different colors. Exemplarily, the continuous switching operation has a different trigger method from the above switching operation, for example, the continuous switching operation is triggered by a long press method, and the switching operation is triggered by a click method.

[0113] Illustratively, after switching the second aiming mark to be displayed on the second virtual character, the client further responds to a second shooting operation at the aiming target by shooting the second virtual character and switching the second aiming mark to be displayed on the first virtual character.

[0114] The method of determining the first and second virtual characters is not described here, but can be referred to in the above embodiment. This switching method can switch the target between the candidate virtual character with the highest priority and the candidate virtual character with the second priority, and can achieve the effect of attacking multiple candidate virtual characters at the same time.

[0115] Optionally, the at least two candidate virtual characters may include a third virtual character, and after the second targeting mark is switched to the second virtual character, the client may further shoot the second virtual character and switch to the third virtual character in response to a third shooting operation on the target. Exemplarily, the client may determine the third virtual character arranged after the second virtual character according to the order of priority in the automatic targeting list in response to the third shooting operation on the target, i.e., the third virtual character is ranked third in the order of priority among the at least two candidate virtual characters, and switch to the third virtual character and display the second targeting mark, and then, in response to a fourth shooting operation on the target, shoot the third virtual character, and if the third virtual character is the last character not shot in one round of shooting, switch to the first virtual character and display the second targeting mark, and one round of shooting refers to a process of shooting at least two candidate virtual characters sequentially. That is, the client sequentially shoots at least two candidate virtual characters according to the order of priority in the auto-aim list. Exemplarily, if a candidate virtual character exists in the blacklist, the candidate virtual character in the blacklist is moved back to the auto-aim list, and then one round of shooting is performed. Exemplarily, as described above, the client further updates the auto-aim list in a situation that satisfies the update timing, and after the auto-aim list is updated, the client shoots one round according to the updated auto-aim list.

[0116] For example, a shooting control is displayed in the level interface, and the client can shoot the aiming target in response to a shooting operation triggered by the shooting control. Alternatively, the client can shoot the aiming target in response to a shooting operation on a physical key. The aiming target means a candidate virtual character marked by a aiming mark when shooting the master virtual character.

[0117] This switching method can shoot at least two candidate virtual characters in sequence, achieving the effect of attacking multiple candidate virtual characters at the same time, providing a shooting-like gaming experience for the user.

[0118] 11 is a structural schematic diagram of an apparatus for displaying a target mark provided by an exemplary embodiment of the present application. The apparatus can be applied to a client running on a terminal as shown in FIG. 1, and the client is an application program supporting a virtual environment. As shown in FIG. 11, the apparatus 1100 includes: A display module 1101 for displaying a level interface in which a master virtual character and at least two candidate virtual characters located in a virtual environment are displayed, the candidate virtual characters refer to virtual characters that support being aimed at by an aiming mark, and the aiming mark is for marking an aiming target when the master virtual character is shooting; The display module 1101 displays a targeting mark on a first virtual character of the at least two candidate virtual characters; In response to a switching operation to the aiming target, the display module 1101 switches and displays the aiming mark on a second virtual character of the at least two candidate virtual characters.

[0119] In one alternative design, as shown in FIG. 12, the display module 1101 includes: A determination submodule 11011 for determining a first virtual character from at least two candidate virtual characters based on an automatic aiming mechanism, the first virtual character being a candidate virtual character with the highest priority determined by the automatic aiming mechanism; and a display sub-module 11012 for displaying an aiming mark on the first virtual character. The determination submodule 11011 determines a second virtual character from the at least two candidate virtual characters based on an automatic aiming mechanism in response to a switching operation to the aiming target, the second virtual character being a candidate virtual character with the highest priority other than the first virtual character determined by the automatic aiming mechanism; The display sub-module 11012 displays an aiming mark on the second virtual character.

[0120] In one alternative design, as shown in FIG. 13, the decision submodule 11011: a processing unit 110111 for adding the first virtual character to a blacklist; and a determining unit 110112 for determining a candidate virtual character having the highest priority from the remaining virtual characters as a second virtual character based on an automatic aiming mechanism, the remaining virtual character being a candidate virtual character other than the first virtual character among the at least two candidate virtual characters.

[0121] In one alternative design, the processing unit 110111 directly adds the first virtual character to the blacklist if the blacklist is empty.

[0122] In one alternative design, the at least two candidate virtual characters include a third virtual character; If the third virtual character exists in the blacklist, the processing unit 110111 deletes the third virtual character from the blacklist and adds the first virtual character to the blacklist.

[0123] In one alternative design, the processing unit 110111 removes the first virtual character from the blacklist in response to the first virtual character satisfying an aim disable condition, the aim disable condition being a condition indicating that the aiming target has exceeded the aiming range of the master virtual character.

[0124] In one selectable design, the display module 1101 maintains and displays an aiming mark on the second virtual character in a situation where the aiming disable condition is not triggered, the aiming disable condition being a condition indicating that the aiming target has exceeded the aiming range of the master virtual character.

[0125] In one alternative design, the processing unit 110111 maintains and displays an aiming mark on the second virtual character by fixing the second virtual character to the first position of the auto-aim list when the aim disable condition is not triggered. The auto-aim list is a prioritized list that is updated based on the auto-aim mechanism, and the auto-aim mechanism is an aiming mechanism that determines the candidate virtual character in the first position as an aiming target based on a priority order for aiming at at least two candidate virtual characters when the master virtual character shoots.

[0126] In one alternative design, the aim null condition is: A condition in which the life value of the second virtual character is zero; and A condition in which the distance between the second virtual character and the first virtual character is greater than a maximum aiming distance; and a condition under which the second virtual character is removed from the level interface.

[0127] In one alternative design, the auto-aiming mechanism is an aiming mechanism that determines the first ranked candidate virtual character as the aiming target after ranking at least two candidate virtual characters in order of priority according to at least one of factors including a distance between the master virtual character and the candidate virtual character in the virtual environment, a remaining life value of the candidate virtual character, a percentage of the remaining life value of the candidate virtual character, and a kill benefit corresponding to the candidate virtual character.

[0128] In one possible design, the update timing of the auto-aiming mechanism is The timing when the current time meets the update period, the timing of receiving a command to control and shoot the master virtual character; the timing at which the aiming target satisfies an aim invalid condition, the aim invalid condition being a condition indicating that the aiming target has exceeded the aiming range of the master virtual character.

[0129] One possible design shows shooting controls on the level interface, The display module 1101 displays a first targeting mark on the first virtual character; The display module 1101, in response to the successive switching operations to the aiming target, switches the first type of aiming mark on the first virtual character to a second aiming mark which is a different type of aiming mark from the first aiming mark; In response to a first shooting operation on the aiming target, the display module 1101 shoots the first virtual character and switches to display a second aiming mark on the second virtual character.

[0130] In one optional design, the display module 1101 switches to displaying the second aiming mark on the second virtual character and then, in response to a second shooting operation at the aiming target, shoots the second virtual character and switches to displaying the second aiming mark on the first virtual character.

[0131] In one alternative design, the at least two candidate virtual characters include a third virtual character; The display module 1101 switches the display of the second aiming mark on the second virtual character, and then, in response to a third shooting operation at the aiming target, shoots the second virtual character and switches the display of the second aiming mark on the third virtual character.

[0132] In one optional design, the display module 1101 switches to display the second aiming mark on the third virtual character, and then shoots the third virtual character in response to a fourth shooting operation at the aiming target, and switches to display the second aiming mark on the first virtual character if the third virtual character is the last unshooted character in one round of shooting, where one round of shooting refers to a process of sequentially shooting at least two candidate virtual characters.

[0133] An embodiment of the present application further provides a computing device including a processor and a memory, wherein the memory stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by the processor to realize the method of displaying an aiming mark provided by each of the above method embodiments.

[0134] Optionally, the computing device is a terminal. Illustratively, FIG. 14 is a structural schematic diagram of a terminal provided by one exemplary embodiment of the present application.

[0135] Generally, the terminal 1400 includes a processor 1401 and a memory 1402 .

[0136] The processor 1401 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1401 may be implemented using at least one of the following hardware formats: DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1401 may include a main processor and a co-processor, where the main processor is a processor for processing data in a wake state, also called a CPU (Central Processing Unit), and the co-processor is a low-power processor for processing data in a standby state. In some embodiments, the processor 1401 may integrate a GPU (Graphics Processing Unit), where the GPU is responsible for rendering and drawing the contents that need to be displayed on a display screen. In some embodiments, the processor 1401 may further include an AI (Artificial Intelligence) processor, where the AI ​​processor is It is intended to handle computational operations related to machine learning.

[0137] The memory 1402 may include one or more computer-readable storage media, which may be non-transitory. The memory 1402 may further include high-speed random access memory and non-volatile memory, such as one or more magnetic disk storage devices, flash storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1402 is for storing at least one instruction, which is executed by the processor 1401 to realize the method for displaying an aiming mark provided by the method embodiment of the present application.

[0138] As will be appreciated by those skilled in the art, the structure shown in FIG. 14 is not intended to limit terminal 1400 and may include more or fewer components than shown, combine some components, or employ different components in an arrangement.

[0139] An embodiment of the present application further provides a computer-readable storage medium having at least one program code stored therein, which, when loaded and executed by a processor of a computing device, realizes the method of displaying an aiming mark provided by each of the above method embodiments.

[0140] The present application further provides a computer program product or a computer program, the computer program product or the computer program including computer instructions stored in a computer-readable storage medium, a processor of a computer device reading the computer instructions from the computer-readable storage medium, and the processor executing the computer instructions causes the computer device to perform the method for displaying an aiming mark provided by each of the above method embodiments.

[0141] As can be understood by those skilled in the art, the realization of all or part of the steps in the above embodiments may be completed by hardware, or may be completed by instructing related hardware by a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned readable storage medium may be a read-only memory, a magnetic disk, or an optical disk, etc.

[0142] The above description is merely a selectable embodiment of the present application, and is not intended to limit the present application, and any amendments, equivalent changes, improvements, etc. made within the spirit and principle of the present application should be included within the protection scope of the present application.

Claims

1. 1. A method for displaying an aiming mark, the method comprising: A step of displaying a level interface in which a master virtual character and at least two candidate virtual characters located in a virtual environment are displayed, the candidate virtual characters refer to virtual characters that support being aimed at by an aiming mark, and the aiming mark is for marking an aiming target when the master virtual character is shooting; displaying a targeting mark on a first virtual character of the at least two candidate virtual characters; in response to a switching operation to the aiming target, switching and displaying the aiming mark on a second virtual character of the at least two candidate virtual characters; The step of displaying an aiming mark on a first virtual character of the at least two candidate virtual characters includes: Displaying a first targeting mark on the first virtual character; The method further comprises: switching the first aiming mark on the first virtual character to a second aiming mark, which is a different type of aiming mark from the first aiming mark, in response to successive switching operations to the aiming target; and in response to a first shooting operation on the target, shooting the first virtual character and switching and displaying the second target mark on the second virtual character. A method comprising:

2. The step of displaying an aiming mark on a first virtual character of the at least two candidate virtual characters includes: determining the first virtual character from the at least two candidate virtual characters based on an auto-aim mechanism, the first virtual character being the candidate virtual character with the highest priority as determined by the auto-aim mechanism; displaying the target mark on the first virtual character; The step of switching the target mark to a second virtual character of the at least two candidate virtual characters in response to a switching operation to the target includes: determining a second virtual character from the at least two candidate virtual characters based on the automatic aiming mechanism in response to a switch operation to the aiming target, the second virtual character being a highest priority candidate virtual character other than the first virtual character as determined by the automatic aiming mechanism; displaying the target mark on the second virtual character; 2. The method of claim 1 .

3. determining the second virtual character from the at least two candidate virtual characters based on the automatic aiming mechanism, adding the first virtual character to a blacklist; determining a candidate virtual character having a highest priority from among remaining virtual characters based on the automatic aiming mechanism as the second virtual character, the remaining virtual character being a candidate virtual character other than the first virtual character among the at least two candidate virtual characters; 3. The method of claim 2 .

4. The step of adding the first virtual character to a blacklist includes: if the blacklist is empty, adding the first virtual character directly to the blacklist; 4. The method according to claim 3 .

5. the at least two candidate virtual characters include a third virtual character; The step of adding the first virtual character to a blacklist includes: If the third virtual character is present on the blacklist, deleting the third virtual character from the blacklist and adding the first virtual character to the blacklist.

4. The method according to claim 3 .

6. The method further comprises: removing the first virtual character from the blacklist in response to the first virtual character satisfying an aim disable condition, the aim disable condition being a condition indicating that the aim target has exceeded an aim range of the master virtual character.

4. The method according to claim 3 .

7. The method further comprises: a step of holding and displaying the aiming mark on the second virtual character in a situation where an aim invalidation condition is not triggered, the aim invalidation condition being a condition indicating that the aiming target has exceeded an aim range of the master virtual character; 7. The method according to any one of claims 1 to 6.

8. In a situation where the aim invalid condition is not triggered, the step of holding and displaying the aim mark on the second virtual character includes: and in a situation where the aim disable condition is not triggered, fixing the second virtual character to first place in an automatic aim list, thereby maintaining and displaying the aim mark on the second virtual character; the auto-aim list is a priority list updated based on an auto-aim mechanism, and the auto-aim mechanism is an aiming mechanism that determines a first-ranked candidate virtual character as the aiming target based on a priority order for aiming at the at least two candidate virtual characters when the master virtual character shoots; 8. The method of claim 7.

9. The aim invalidation condition is: A condition in which the life value of the second virtual character is zero; a condition that the distance between the second virtual character and the first virtual character is greater than a maximum aiming distance; a condition under which the second virtual character is removed from the level interface; 8. The method of claim 7.

10. the automatic aiming mechanism is an aiming mechanism that determines the candidate virtual character ranked first as the aiming target after ranking the at least two candidate virtual characters in order of priority according to at least one of factors including a distance between the master virtual character and the candidate virtual character in the virtual environment, a remaining life value of the candidate virtual character, a percentage of the remaining life value of the candidate virtual character, and a kill benefit corresponding to the candidate virtual character; 7. The method according to any one of claims 2 to 6.

11. The timing of updating the automatic aiming mechanism is The timing when the current time meets the update period, receiving a command to control and shoot the master virtual character; a timing at which the aiming target satisfies an aiming invalid condition, the aiming invalid condition being a condition indicating that the aiming target has exceeded the aiming range of the master virtual character; 11. The method of claim 10.

12. After the step of switching and displaying the second target mark on the second virtual character, and further comprising a step of shooting the second virtual character in response to a second shooting operation on the aiming target, and switching and displaying the second aiming mark on the first virtual character.

2. The method of claim 1 .

13. the at least two candidate virtual characters include a third virtual character; After the step of switching and displaying the second target mark on the second virtual character, and further comprising a step of shooting the second virtual character in response to a third shooting operation on the aiming target, and switching and displaying the second aiming mark on the third virtual character.

2. The method of claim 1 .

14. After the step of switching and displaying the second target mark on the third virtual character, Shooting the third virtual character in response to a fourth shooting operation at the aiming target; and when the third virtual character is the last unshot character in one round of shooting, switching and displaying the second target mark on the first virtual character, the one round of shooting meaning a process of shooting the at least two candidate virtual characters in sequence.

14. The method of claim 13.

15. A device for displaying an aiming mark, a display module for displaying a level interface in which a master virtual character and at least two candidate virtual characters located in a virtual environment are displayed, the candidate virtual characters being virtual characters that support being aimed at by an aiming mark, the aiming mark being for marking an aiming target when the master virtual character is shooting; The display module further displays a targeting mark on a first virtual character of the at least two candidate virtual characters; The display module further switches the target mark to a second virtual character among the at least two candidate virtual characters in response to a switching operation to the target. Displaying an aiming mark on a first virtual character of the at least two candidate virtual characters includes: displaying a first targeting mark on the first virtual character; The display module further comprises: in response to successive switching operations to the target, switching the first target mark on the first virtual character to a second target mark that is a different type of target mark from the first target mark; in response to a first shooting operation on the target, the first virtual character is shot, and the second target mark is switched and displayed on the second virtual character; An apparatus comprising:

16. 1. A computing device comprising: The computing device includes a processor and a memory, the memory storing at least one instruction, at least one program, code set or instruction set, the at least one instruction, the at least one program, code set or instruction set being loaded and executed by the processor to implement the method according to any one of claims 1 to 14. A computing device comprising:

17. A program for causing a computer to execute the method according to any one of claims 1 to 14.

Citation Information

Patent Citations

  • Virtual attack control method and device in game, electronic equipment and storage medium

    CN111729309A

  • Game aim assist

    US20100009733A1

  • System and method for playing video games on touchscreen-based devices

    US20150157940A1

  • Systems and methods for shooting in online action games using automatic weapon aiming

    US20150375110A1