Display method and device of indicator, terminal and storage medium
By using a non-linear mapping relationship in the control wheel to adjust the display of the skill indicator, the problem of consistent aiming feel in existing technologies has been solved, achieving realism and accuracy in the aiming process.
Patent Information
- Application Number
- CN202411110821.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-13
- Publication Date
- 2026-02-13
AI Technical Summary
In existing technologies, the movement distance of the skill indicator is linearly mapped to the user's operation distance, resulting in a consistent aiming feel during the aiming process, which cannot meet different aiming needs.
The distance between the directional joystick and the center of the control wheel, as well as the distance between them and the release position indicator and the virtual object, are adjusted using a non-linear mapping relationship. This allows for different aiming feel during the operation and aiming process by controlling the control wheel.
It improves the realism and accuracy of the aiming process, making the aiming feel more realistic at different aiming distances and enhancing the realism of the operation.
Smart Images

Figure CN121513446A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a display method, device, terminal and storage medium for an indicator. Background Technology
[0002] Battle games are games where multiple user accounts compete in the same arena. Users can control virtual objects to unleash targeted skills within the virtual environment by manipulating a skill wheel.
[0003] In related technologies, when a user controls a virtual object to aim at a specified direction or area by operating a skill wheel, a skill indicator is displayed in the virtual environment. This skill indicator shows the user the direction and location of the skill's effect after it is released. Furthermore, the distance the skill indicator moves in the virtual environment is linearly mapped to the distance the user moves within the skill wheel.
[0004] Adjusting the movement distance of the skill indicator based on a linear mapping relationship results in a consistent aiming feel during the aiming process, which cannot meet different aiming needs. Summary of the Invention
[0005] This application provides a display method, device, terminal, and storage medium for an indicator, the technical solution of which is as follows:
[0006] On one hand, embodiments of this application provide a method for displaying an indicator, the method comprising:
[0007] In response to a trigger operation on the operation control, the control wheel corresponding to the operation control is displayed, and a release position indicator is displayed in the virtual scene. The release position indicator is used to indicate the operation release position of the operation corresponding to the operation control.
[0008] In response to a drag operation of the directional joystick in the control wheel, the second display position of the release position indicator in the virtual scene is updated based on the first display position of the directional joystick in the control wheel;
[0009] The first distance between the center of the directional joystick and the center of the control wheel has a non-linear mapping relationship with the second distance between the release position indicator and the virtual object.
[0010] On the other hand, embodiments of this application provide a display device for an indicator, the device comprising:
[0011] The first display module is used to respond to the trigger operation of the operation control, display the control wheel corresponding to the operation control, and display a release position indicator in the virtual scene. The release position indicator is used to indicate the operation release position of the operation corresponding to the operation control.
[0012] The second display module is used to respond to a dragging operation of the directional joystick in the control wheel, and update the second display position of the release position indicator in the virtual scene based on the first display position of the directional joystick in the control wheel;
[0013] The first distance between the center of the directional joystick and the center of the control wheel has a non-linear mapping relationship with the second distance between the release position indicator and the virtual object.
[0014] On the other hand, embodiments of this application provide a terminal, the terminal including a processor and a memory, the memory storing at least one program, the at least one program being loaded and executed by the processor to implement the indicator display method as described above.
[0015] On the other hand, embodiments of this application provide a computer-readable storage medium storing at least one program that is loaded and executed by a processor to implement the indicator display method as described above.
[0016] On the other hand, embodiments of this application provide a computer program product including computer instructions stored in a computer-readable storage medium. A terminal's processor reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the terminal to perform the indicator display method described above.
[0017] In this embodiment, upon receiving a user's trigger operation on the operation control, the control wheel corresponding to the operation control is displayed, and a release position indicator is displayed in the virtual scene to indicate the release position of the operation corresponding to the operation control. Then, upon receiving a release operation on the directional joystick in the control wheel, the second display position of the release position indicator in the virtual scene is updated in real time based on the first display position of the directional joystick in the control wheel. Furthermore, during the position update process, a non-linear mapping method is used to adjust the first distance between the directional joystick and the center of the control wheel, and the second distance between the release position indicator and the virtual object. This allows for different drag-and-aiming feel at different aiming distances during the operation aiming process, improving the realism of the operation release achieved through the control wheel. Attached Figure Description
[0018] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0019] Figure 1 This application shows a structural block diagram of a computer system provided in an exemplary embodiment;
[0020] Figure 2 A flowchart illustrating a display method of an indicator provided in an exemplary embodiment of this application is shown;
[0021] Figure 3 This illustration shows a schematic diagram of the display of a release position indicator provided in an exemplary embodiment of this application in a virtual scene;
[0022] Figure 4 This illustration shows a display diagram of a release location indicator provided by another exemplary embodiment of this application in a virtual scene;
[0023] Figure 5 A flowchart illustrating a process for updating a second display position provided by an exemplary embodiment of this application is shown;
[0024] Figure 6 This illustration shows a schematic diagram of constructing a polar coordinate system according to an exemplary embodiment of this application;
[0025] Figure 7 A graph showing the second distance mapping ratio under different β values provided in an exemplary embodiment of this application is shown;
[0026] Figure 8 This illustration shows a schematic diagram of the mapping relationship between a first distance and a second distance provided in an exemplary embodiment of this application;
[0027] Figure 9 This illustration shows a schematic diagram of the mapping relationship between a first distance and a second distance provided by another exemplary embodiment of this application;
[0028] Figure 10 This illustration shows a schematic diagram of the polyline mapping relationship between a first distance and a second distance within different distance intervals provided in an exemplary embodiment of this application;
[0029] Figure 11 A flowchart illustrating a display method for an indicator provided in another exemplary embodiment of this application is shown;
[0030] Figure 12 A schematic diagram of a coefficient configuration interface provided in an exemplary embodiment of this application is shown;
[0031] Figure 13 This application shows a structural block diagram of a display device for an indicator provided in an exemplary embodiment;
[0032] Figure 14 A structural block diagram of a terminal provided in an exemplary embodiment of this application is shown. Detailed Implementation
[0033] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0034] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0035] The terminology used in this application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. The singular forms “a,” “the,” and “the” used in this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.
[0036] It should be understood that although the terms first, second, etc., may be used in this application to describe various information, this information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of this application, a first parameter may also be referred to as a second parameter, and similarly, a second parameter may also be referred to as a first parameter. Depending on the context, the word "if" as used herein may be interpreted as "when," "when," or "in response to determination."
[0037] Please refer to Figure 1 This diagram illustrates a structural block diagram of a computer system provided in an exemplary embodiment of this application. The computer system 100 may include: a first terminal 110, a server 120, and a second terminal 130.
[0038] The first terminal 110 runs an application 111 that supports a virtual environment. This application 111 can be a multiplayer online battle arena (MOBA) game, a simulation game (SLG), a massively multiplayer online role-playing game (MMORPG), or a first-person shooter (FPS) game. In this embodiment, the application 111 is an example of a massively multiplayer online role-playing game. The first terminal 110 is the terminal used by the first user 112. The first user 112 uses the first terminal 110 to control a first virtual object located in the virtual environment. The first virtual object can be referred to as the master virtual object controlled by the first user 112. The activities of the first virtual object include, but are not limited to, at least one of the following: adjusting body posture, crawling, walking, running, riding, flying, jumping, driving, picking up, shooting, attacking, throwing, and releasing skills. In a symbolic sense, the first virtual object is the first virtual character, such as a lifelike character or an anime character.
[0039] The second terminal 130 runs an application 131 that supports a virtual environment. This application 131 can be a multiplayer online battle arena (MOBA) program. When the second terminal 130 runs the application 131, the user interface of the application 131 is displayed on the screen of the second terminal 130. This client can be any of the following: MOBA game, SLG game, MMORPG game, or FPS game. In this embodiment, the application 131 is an FPS game as an example. The second terminal 130 is the terminal used by the second user 132. The second user 132 uses the second terminal 130 to control a second virtual object located in the virtual environment. The second virtual object can be referred to as the main virtual character controlled by the second user 132. Schematic, the second virtual object is a second virtual character, such as a lifelike character or an anime character.
[0040] Optionally, the first virtual object and the second virtual object reside in the same virtual world. Optionally, the first virtual object and the second virtual object may belong to the same faction, the same team, the same organization, have a friend relationship, or have temporary communication permissions. Optionally, the first virtual object and the second virtual object may belong to different factions, different teams, different organizations, or have an adversarial relationship.
[0041] Optionally, the applications installed on the first terminal 110 and the second terminal 130 are the same, or the applications installed on the two terminals are the same type of application on different operating system platforms (Android or iOS). The first terminal 110 can refer to one of a plurality of terminals, and the second terminal 130 can refer to another of a plurality of terminals. This embodiment only uses the first terminal 110 and the second terminal 130 as examples. The device types of the first terminal 110 and the second terminal 130 may be the same or different. The device types include at least one of the following: smartphones, tablets, e-book readers, Moving Picture Experts Group Audio Layer III (MP3) players, Moving Picture Experts Group Audio Layer IV (MP4) players, laptops, and desktop computers.
[0042] Figure 1 Only two terminals are shown in the diagram, but in different embodiments, multiple other terminals can access the server 120. Optionally, one or more terminals may also be terminals corresponding to developers, on which a development and editing platform for applications supporting virtual environments is installed. Developers can edit and update applications on these terminals and transmit the updated application installation packages to the server 120 via wired or wireless networks. The first terminal 110 and the second terminal 130 can download the application installation packages from the server 120 to update the applications.
[0043] The first terminal 110, the second terminal 130, and other terminals are connected to the server 120 via a wireless network or a wired network.
[0044] Server 120 includes at least one of the following: a single server, a server cluster consisting of multiple servers, a cloud computing platform, and a virtualization center. Server 120 is used to provide background services for applications that support a 3D virtual environment. Optionally, server 120 undertakes the primary computing task, and the terminal undertakes the secondary computing task; or, server 120 undertakes the secondary computing task, and the terminal undertakes the primary computing task; or, server 120 and the terminal use a distributed computing architecture for collaborative computing.
[0045] In an illustrative example, server 120 includes memory 121, processor 122, user account database 123, battle service module 124, and user-facing input / output interface (I / O interface) 125. The processor 122 loads instructions stored in server 120 and processes data in user account database 123 and battle service module 124. User account database 123 stores user account data used by first terminal 110, second terminal 130, and other terminals, such as user account avatars, nicknames, combat power indices, and service regions. Battle service module 124 provides multiple battle rooms for users to engage in battles, such as 1v1, 3v3, 5v5, and 1v5 battles. User-facing I / O interface 125 establishes communication and exchanges data with first terminal 110 and / or second terminal 130 via wireless or wired networks.
[0046] Based on the above introduction, the display method of the indicator provided in this application will be described. This method can be executed by the terminal or jointly by the server and the terminal.
[0047] Optionally, when the method is executed by the terminal, in response to the triggering operation of the operation control, the terminal displays the control wheel corresponding to the operation control on the game interface and displays the release position indicator in the virtual scene. Then, when a drag operation is received on the directional joystick in the control wheel, the terminal determines and updates the second display position of the release position indicator in the virtual scene based on the nonlinear mapping relationship between the first display position of the directional joystick in the control wheel, the first distance between the directional joystick and the center of the control wheel, and the second distance between the release position indicator and the virtual object.
[0048] Optionally, when the method is jointly executed by the terminal and the server, in response to the triggering operation of the operation control, the terminal displays the control wheel corresponding to the operation control on the game interface and displays the release position indicator in the virtual scene. Then, when a drag operation is received on the directional joystick in the control wheel, the terminal determines the first display position of the directional joystick in the control wheel and sends the first display position to the server. The server determines the second display position of the release position indicator in the virtual scene based on the first display position and the nonlinear mapping relationship between the first distance between the directional joystick and the center of the control wheel and the second distance between the release position indicator and the virtual object. Thus, after receiving the second display position returned by the server, the terminal updates the second display position of the release position indicator in the virtual scene.
[0049] Please refer to Figure 2This document illustrates a flowchart of an indicator display method provided in an exemplary embodiment of this application. This embodiment exemplifies the method as being executed by a terminal, and the method includes the following steps:
[0050] Step 201: In response to the trigger operation of the operation control, display the control wheel corresponding to the operation control, and display the release position indicator in the virtual scene. The release position indicator is used to indicate the operation release position of the operation corresponding to the operation control.
[0051] Optionally, a virtual object refers to an actionable object controlled by a terminal in a virtual scene. Actionable objects can be virtual characters, virtual animals, etc., such as characters or animals displayed in a 3D virtual environment. Optionally, a virtual object is a 3D model created based on animation skeletal technology. Each virtual object has its own shape and volume in the 3D virtual environment and occupies a portion of the space within the 3D virtual environment.
[0052] Optionally, a virtual scene refers to the three-dimensional environment in which virtual objects reside during the operation of an application on a terminal. A virtual scene can be a simulation of the real world, a semi-simulated / semi-fictional virtual environment, or a purely fictional virtual environment. For example, a virtual environment can include the sky, land, and ocean, with the land potentially including environmental elements such as deserts and cities. Optionally, a virtual environment can be used to simulate the physical environment of the real world, such as terrain, weather, lighting, and physical interactions, and can also simulate real-world objects and people. Virtual environments use computational graphics techniques to create and render images, such as simulating the physical processes of light reflection, refraction, and scattering on object surfaces and converting them into images. Furthermore, virtual scenes can also include audio and interactive elements, such as interactive controls, flight simulators, and group behavior.
[0053] Optionally, operation controls refer to the controls in the game interface used to control the virtual objects to perform operations. Operation controls can be basic attack controls, used to control the virtual object to launch a basic attack on the enemy virtual object; or they can be skill controls, used to control the virtual object to release skills on the enemy virtual object, or to drop virtual items in the virtual scene.
[0054] Optionally, when the operation performed through the operation control is a non-directional operation, in response to the user's first trigger operation on the operation control, the terminal can control the virtual object to immediately release the skill; when the operation performed through the operation control is a directional operation, in response to the user's second trigger operation on the operation control, the terminal can first display the control wheel corresponding to the operation control, so that the user can determine the specific operation placement position through the control wheel.
[0055] Optionally, when the operation control can only control the virtual object to perform non-pointing operations, the first triggering operation can be a click operation; when the operation control can control the virtual object to perform both non-pointing and pointing operations, the first triggering operation can be a click operation, and the second triggering operation can be a double-click operation or a long-press operation; other forms of triggering operations are also possible, and this application embodiment does not limit them.
[0056] In some embodiments, after receiving a user's trigger operation on the operation control, the terminal displays the control wheel corresponding to the operation control and displays a release position indicator in the virtual scene, wherein the release position indicator is used to indicate the operation release position of the operation corresponding to the operation control in the virtual scene.
[0057] Optionally, the control wheel can be displayed above the operation controls in the game interface, or it can be displayed around the operation controls in the game interface. This application embodiment does not limit this.
[0058] Optionally, the control wheel is equipped with a directional joystick, which the user can drag to adjust the position of the placement indicator in the virtual scene. Optionally, while displaying the control wheel, the terminal can display the directional joystick at the center of the control wheel, or it can display the directional joystick at the center of the control wheel after receiving a click operation from the user within the control wheel, or it can display the directional joystick at the coordinate indicated by the click operation. This embodiment of the application does not limit the process of activating and displaying the directional joystick.
[0059] Optionally, the placement indicator can be a circular indicator to indicate that the operation applies to all virtual objects within the circular area after placement; it can also be an arrow indicator to indicate the specific target and direction of the operation; it can also be a fan-shaped indicator to indicate that the operation applies to all virtual objects within the fan-shaped area after placement; it can also be a straight line indicator to indicate that the operation applies to all virtual objects along the straight path after placement; or it can be other forms of indicator, which are not limited in this embodiment.
[0060] Optionally, when the release position indicator is a circular indicator, the initial display position of the release position indicator in the virtual scene can be the position of the virtual object, or it can be the position determined based on the position of the directional joystick in the control wheel, that is, the projection position of the user's trigger operation on the directional joystick in the virtual scene.
[0061] Optionally, the position of the circular indicator's center in the virtual scene changes based on the user's dragging action on the directional joystick in the control wheel. Optionally, different operations correspond to their own circular indicators, and the sizes of the circular indicators for different operations can be the same or different.
[0062] Optionally, when the placement position indicator is an arrow indicator, fan indicator, or line indicator, the starting position of the placement position indicator is the position of the virtual object in the virtual scene, and the pointing direction and pointing distance of the placement position indicator change based on the user's drag operation of the direction joystick in the control wheel.
[0063] Indicative, such as Figure 3 As shown, taking a circular indicator as an example, in response to the user's double-click operation on the operation control 301, the terminal displays a control wheel 302 on top of the operation control 301 in the game interface, and the control wheel 302 displays a directional joystick 304. At the same time, based on the display position of the directional joystick 304 in the control wheel 302, the terminal displays a circular indicator 303 centered on the virtual object 305 in the virtual environment.
[0064] Indicative, such as Figure 4 As shown, taking the action release indicator as an arrow indicator as an example, in response to the user's double-click operation of the action control, the terminal displays a control wheel 401 above the action control in the game interface, and the control wheel 401 displays a direction joystick 403. At the same time, based on the display position of the direction joystick 403 in the control wheel 401, the terminal displays an arrow indicator 402 in the virtual environment with the virtual object 404 as the starting point of the arrow.
[0065] Step 202: In response to a dragging operation of the directional joystick in the control wheel, update the second display position of the release position indicator in the virtual scene based on the first display position of the directional joystick in the control wheel. The first distance between the directional joystick and the center of the control wheel has a non-linear mapping relationship with the second distance between the release position indicator and the virtual object.
[0066] In some embodiments, after displaying the control wheel, if a user drags the directional joystick in the control wheel, in order to promptly display the position change of the release position indicator caused by the dragging operation in the virtual scene, the terminal determines the first display position of the directional joystick in the control wheel, and updates the second display position of the release position indicator in the virtual scene based on the position mapping relationship between the directional joystick and the release position indicator.
[0067] The first display position of the directional joystick on the control wheel includes a first distance between the directional joystick and the center of the control wheel, as well as the drag angle of the directional joystick on the control wheel. In one possible implementation, the terminal can construct a polar coordinate system with the center of the control wheel as the origin, thereby determining the first distance between the directional joystick and the center of the wheel, and the drag angle on the control wheel, based on the position of the directional joystick in the polar coordinate system.
[0068] The second display position of the placement position indicator in the virtual scene includes the second distance between the placement position indicator and the virtual object, as well as the movement angle of the placement position indicator in the virtual scene.
[0069] Optionally, when the placement indicator is a circular indicator, the second distance is the distance between the center of the circular indicator and the virtual object; when the placement indicator is an arrow indicator or a straight line indicator, the second distance is the distance between the end of the indicator and the virtual object; when the placement indicator is a fan-shaped indicator, the second distance is the fan radius of the fan-shaped indicator.
[0070] Unlike related technologies that determine the second distance between the release position indicator and the virtual object based on a linear mapping relationship between the first and second distances, thereby updating the second display position of the release position indicator in the virtual scene, resulting in an unchanged aiming feel at different aiming distances and reducing the realism of dragging during aiming, this embodiment determines the second distance between the release position indicator and the virtual object based on a non-linear mapping relationship between the first and second distances. This ensures that the mapping ratio between the first and second distances varies at different aiming distances, thereby improving the realism of the aiming feel at different aiming distances.
[0071] That is, when the first distance and the second distance have a non-linear mapping relationship, when dragging the directional joystick, for every unit increase in the first distance between the directional joystick and the center of the control wheel, the amount of increase in the second distance between the release position indicator and the virtual object is different.
[0072] Indicative, such as Figure 3 As shown, in response to the user's dragging operation on the directional joystick 304, the terminal updates the second display position of the circular indicator 303 in the virtual scene according to the first display position of the directional joystick 304 in the control wheel 302. Figure 3 As can be seen, the distance between the circular indicator 303 and the virtual object 305 gradually increases.
[0073] Indicative, such as Figure 4 As shown, in response to the user's dragging operation on the directional joystick 403, the terminal updates the second display position of the arrow indicator 402 in the virtual scene according to the first display position of the directional joystick 403 in the control wheel 401. From Figure 4 As can be seen, the arrow indicator 402 starts from the virtual object 404, and the distance between the end of the arrow indicator 402 and the virtual object gradually increases.
[0074] In summary, in this embodiment, upon receiving a user's trigger operation on the operation control, the control wheel corresponding to the operation control is displayed, and a release position indicator is displayed in the virtual scene to indicate the release position of the operation corresponding to the operation control. Then, upon receiving a release operation on the directional joystick in the control wheel, the second display position of the release position indicator in the virtual scene is updated in real time based on the first display position of the directional joystick in the control wheel. Furthermore, during the position update process, a non-linear mapping method is used to adjust the first distance between the directional joystick and the center of the control wheel, and the second distance between the release position indicator and the virtual object. This allows for different drag-and-aiming feel at different aiming distances during the operation aiming process, improving the realism of operation release via the control wheel.
[0075] To improve the accuracy of the placement indicator in the virtual scene, the terminal needs to determine the first distance between the directional joystick and the center of the control wheel in real time while dragging the directional joystick. Then, based on the non-linear mapping relationship between the first and second distances, a second distance is determined. This process will be explained below through specific embodiments.
[0076] Please refer to Figure 5 This document illustrates a flowchart of a process for updating a second display position according to an exemplary embodiment of this application. This embodiment exemplifies the method being executed by a terminal, and the method includes the following steps:
[0077] Step 501: In response to a drag operation on the directional joystick in the control wheel, determine a first distance between the directional joystick and the center of the control wheel, and the drag angle of the drag operation.
[0078] In some embodiments, upon receiving a user's drag operation on the directional joystick in the control wheel, the terminal can determine a first distance between the directional joystick and the center of the control wheel, as well as the drag angle of the drag operation, based on the current position of the directional joystick.
[0079] In one possible implementation, the terminal can construct a polar coordinate system with the center of the control wheel as the origin of the polar coordinate system and the horizontal rightward direction as the positive direction of the polar coordinate system. In this way, the coordinates of the directional joystick in the polar coordinate system can be obtained in real time during the user's dragging of the directional joystick. The first distance between the directional joystick and the center of the control wheel is x, and the dragging angle of the dragging operation is θ.
[0080] Indicative, such as Figure 6As shown, the terminal constructs a polar coordinate system with the center of the control wheel 601 as the origin of the polar coordinate system and the horizontal rightward direction as the positive direction of the polar coordinate system. Based on the coordinate point of the directional joystick 602 in the polar coordinate system, the first distance x between the directional joystick 602 and the center of the control wheel 601, as well as the drag angle θ of the drag operation, are determined.
[0081] Optionally, the unit of the first distance can be pixels. The terminal can calculate the pixel distance between the center of the directional stick and the center of the control wheel by using the pixel coordinate difference between the pixel coordinates of the center of the control wheel and the pixel coordinates of the directional stick on the screen.
[0082] Step 502: Based on the first distance, the radius of the control wheel, the operation release distance threshold of the operation corresponding to the operation control, and the distance mapping coefficient, determine the second distance between the release position indicator and the virtual object.
[0083] In some embodiments, after determining the first distance, the terminal can calculate the second distance between the placement position indicator and the virtual object in the virtual scene based on the nonlinear mapping relationship between the first distance and the second distance.
[0084] Considering that when controlling virtual objects to perform corresponding operations through operation controls, different operations correspond to their own operation release distance thresholds, and when adjusting the operation release position using the control wheel, it is necessary to ensure that the maximum distance between the directional joystick and the center of the wheel can correspond to the operation release distance threshold of the operation in the virtual scene. That is, the radius of the control wheel corresponds to the operation release distance threshold of the operation control corresponding to the operation.
[0085] Optionally, the release location indicator can be moved and displayed within a circular area centered on the virtual object and with a radius equal to the operation release distance threshold.
[0086] Optionally, the radius of the control wheel can be represented as r, and the threshold value for the operation release distance of the corresponding operation control can be represented as R. max .
[0087] In related technologies, when determining the second distance based on a linear mapping relationship, the second distance is directly determined based on the ratio between the first distance and the radius of the roulette wheel, as well as the operation release distance threshold of the corresponding operation control. The second distance R = R max *(x / r) ensures that the drag aiming feel is consistent for different aiming distances.
[0088] In this embodiment of the application, in order to determine the second distance based on a nonlinear mapping relationship, a distance mapping coefficient is set. The mapping relationship between the first distance and the second distance is dynamically adjusted through the distance mapping coefficient, so that the aiming feel is different at different aiming distances, thereby increasing the realism of aiming.
[0089] Optionally, after determining the first distance, the terminal can jointly determine the second distance between the placement position indicator and the virtual object based on the first distance, the radius of the wheel, the operation placement distance threshold corresponding to the operation control, and the distance mapping coefficient.
[0090] In one possible implementation, the terminal first determines a first distance mapping ratio based on a first distance and the radius of the control wheel, then adjusts the first distance mapping ratio through a distance mapping coefficient to obtain a second distance mapping ratio, and finally determines a second distance between the placement position indicator and the virtual object based on the second distance mapping ratio and the operation placement distance threshold corresponding to the operation control.
[0091] Optionally, the distance mapping coefficient is a power exponent. The process of adjusting the first distance mapping ratio through the distance mapping coefficient can be described as performing a power operation on the first distance mapping ratio through the distance mapping coefficient to obtain the second distance mapping ratio.
[0092] Optionally, let the first distance be x, the roulette radius be r, the first distance mapping ratio be x / r, and the distance mapping coefficient be a power exponent, which can be represented as β. Thus, the second distance mapping ratio obtained by performing a power operation can be represented as (x / r). β , where x / r ranges from 0 to 1.
[0093] Based on the properties of power functions, it can be seen that when the distance mapping coefficient is less than 1, the directional stick sensitivity is negatively correlated with the first distance; when the distance mapping coefficient is greater than 1, the directional stick sensitivity is positively correlated with the first distance. Here, stick sensitivity refers to the rate of change of the second distance when the directional stick is dragged in a single direction.
[0094] Indicative, such as Figure 7 As shown, it illustrates a graph of the second distance mapping ratio under different β values provided in an exemplary embodiment of this application, wherein the horizontal axis of the graph represents the ratio of the first distance to the radius of the roulette wheel, and the vertical axis represents the ratio of the second distance to the operation release distance threshold.
[0095] from Figure 7It can be seen that when the distance mapping coefficient is less than 1, the smaller the ratio of the first distance to the wheel radius (i.e., the smaller the first distance), the faster the rate of change of the ratio of the second distance to the operation release distance threshold (i.e., the faster the rate of change of the second distance); the larger the ratio of the first distance to the wheel radius (i.e., the larger the first distance), the slower the rate of change of the ratio of the second distance to the operation release distance threshold (i.e., the slower the rate of change of the second distance).
[0096] When the distance mapping coefficient is greater than 1, the smaller the ratio of the first distance to the wheel radius (i.e., the smaller the first distance), the slower the rate of change of the ratio of the second distance to the operation release distance threshold (i.e., the slower the rate of change of the second distance); the larger the ratio of the first distance to the wheel radius (i.e., the larger the first distance), the faster the rate of change of the ratio of the second distance to the operation release distance threshold (i.e., the faster the rate of change of the second distance).
[0097] Indicative, such as Figure 8 As shown, taking a value of β of 0.2 as an example, the distance between the center of the directional joystick 802 and the center of the control wheel 801 is the first distance, and the distance between the operation release indicator 804 and the center (virtual object) of the circular area 803 with the operation release distance threshold as the radius is the second distance.
[0098] When the ratio of the first distance to the wheel radius is 10%, the ratio of the second distance to the operational release distance threshold is 63%; when the ratio of the first distance to the wheel radius is 20%, the ratio of the second distance to the operational release distance threshold is 72.4%; when the ratio of the first distance to the wheel radius is 30%, the ratio of the second distance to the operational release distance threshold is 78.6%; when the ratio of the first distance to the wheel radius is 50%, the ratio of the second distance to the operational release distance threshold is 87%; and when the ratio of the first distance to the wheel radius is 80%, the ratio of the second distance to the operational release distance threshold is 95.6%.
[0099] That is, with β set to 0.2, starting from the center of the joystick, dragging the joystick a small distance in one direction initially results in a relatively large increase in the second distance; after dragging a certain distance, i.e., after the first distance reaches a certain point, the increase in the second distance decreases relatively. Therefore, when aiming at close range, the user can achieve quick aiming by dragging the joystick; when aiming at long range, the user can achieve stable and accurate aiming by dragging the joystick.
[0100] Indicative, such as Figure 9 As shown, taking β as an example, the distance between the center of the directional joystick 902 and the center of the control wheel 901 is the first distance, and the distance between the operation release indicator 904 and the center (virtual object) of the circular area 903 with the operation release distance threshold as the radius is the second distance.
[0101] When the ratio of the first distance to the wheel radius is 10%, the ratio of the second distance to the operation and release distance threshold is 1%; when the ratio of the first distance to the wheel radius is 30%, the ratio of the second distance to the operation and release distance threshold is 9%; when the ratio of the first distance to the wheel radius is 50%, the ratio of the second distance to the operation and release distance threshold is 25%; when the ratio of the first distance to the wheel radius is 70%, the ratio of the second distance to the operation and release distance threshold is 49%; when the ratio of the first distance to the wheel radius is 90%, the ratio of the second distance to the operation and release distance threshold is 81%.
[0102] That is, when β is 2, starting from the center of the joystick, dragging the joystick a small distance in one direction initially results in a relatively small increase in the second distance. After dragging a certain distance, i.e., after the first distance reaches a certain value, the increase in the second distance becomes relatively larger. Therefore, when aiming at a long distance, the user can achieve a larger distance increase by dragging the joystick a small distance.
[0103] Optionally, besides adjusting the first distance mapping ratio using a power-law approach, a non-linear mapping between the first and second distances can be achieved by setting multiple different linear distance mapping coefficients. Alternatively, the terminal can set multiple distance intervals based on the first distance and assign corresponding distance mapping coefficients to each interval.
[0104] Optionally, when there are multiple distance intervals and different distance intervals correspond to their respective distance mapping coefficients, in one possible implementation, for the process of adjusting the first distance mapping ratio through the distance mapping coefficients, if the first distance belongs to the (i+1)th distance interval, the terminal can first determine the distance adjustment amount based on the distance mapping coefficient corresponding to the i-th distance interval, the interval endpoint distance value of the i-th distance interval, and the distance mapping coefficient corresponding to the (i+1)th distance interval, and then adjust the first distance mapping ratio based on the distance mapping coefficient corresponding to the (i+1)th distance interval and the distance adjustment amount, thereby obtaining the second distance mapping ratio.
[0105] Optionally, the first distance mapping ratio x / r can range from 0 to 1. Taking the existence of two distance intervals as an example, the first distance interval corresponds to the distance mapping coefficient k1, and the second distance interval corresponds to the distance mapping coefficient k2. Within the first distance interval, the second distance can be expressed as R = R max *k1*(x / r); Within the second distance interval, the second distance can be expressed as R = R max *(k2*(x / r)+b).
[0106] Where b is the distance adjustment amount, b = k1*(x / r) - k2*(x / r). When k1 is greater than k2, b is greater than 0; when k1 is less than k2, b is less than 0.
[0107] Indicative, such as Figure 10 As shown in the figure, the horizontal axis of the line graph represents the ratio of the first distance to the radius of the wheel, and the vertical axis represents the ratio of the second distance to the operation release distance threshold. The first distance interval is [0, 0.2r], and the second distance interval is [0.2r, r]. The distance mapping coefficient k1 corresponding to the first distance interval is 2, and the distance mapping coefficient k2 corresponding to the second distance interval is 0.75. Within the first distance interval, the second distance can be expressed as R = R max *2*(x / r); Within the second distance interval, the second distance can be expressed as R = R max *(0.75*(x / r)+0.25).
[0108] from Figure 10 It can be seen that, starting from the center of the joystick, dragging the joystick a certain distance in a certain direction results in a relatively large increase in the second distance within the first distance range, and a relatively small increase in the second distance within the second distance range. Therefore, when aiming at close range, the user can achieve quick aiming by dragging the joystick; when aiming at long range, the user can achieve stable and accurate aiming by dragging the joystick.
[0109] Considering that different operations have different operation types or different object types of virtual objects performing the operations, in order to fully reflect the differences in aiming feel of different operations, a corresponding distance mapping coefficient can be set for each operation.
[0110] Optionally, the distance mapping coefficients corresponding to each operation can be preset fixed values or multiple preset optional values. This application embodiment does not limit this.
[0111] Optionally, the distance mapping coefficient is a fixed value preset based on the operation information of different operations. In one possible implementation, upon receiving a user's drag operation on the directional joystick in the control wheel, the terminal determines the distance mapping coefficient corresponding to the operation based on the operation information of the operation control.
[0112] The operation information may include the operation type, the object type of the virtual object performing the operation, etc. Different operation types may correspond to their own distance mapping coefficients, and different object types may also correspond to their own distance mapping coefficients; however, this embodiment does not impose such limitations.
[0113] Optionally, the distance mapping coefficient can also be one of several preset selectable values based on the operation information and influencing factors of different operations. In one possible implementation, upon receiving a user's drag operation on the directional joystick in the control wheel, the terminal determines the distance mapping coefficient corresponding to the operation based on the operation information and influencing factors of the operation control.
[0114] Optionally, the influencing factors include at least one of the first distance and the object state of the virtual object. Optionally, the object state can also be divided into object motion state and object attribute values. Among them, the object motion state can be divided into static state and moving state, and the object attribute values can be health, energy, stamina, etc.
[0115] Optionally, considering that the accuracy and speed of aiming at a virtual object may vary under different motion states, in order to allow users to experience different aiming feel when the virtual object is in different motion states, the terminal can determine the distance mapping coefficient based on the object's motion state.
[0116] In one possible implementation, the terminal determines the distance mapping coefficient based on the object's motion state and operation information. Optionally, when the object's motion state is stationary, the terminal determines a first distance mapping coefficient corresponding to the operation based on the operation information of the operation corresponding to the operation control; when the object's motion state is moving, the terminal determines a second distance mapping coefficient corresponding to the operation based on the operation information of the operation corresponding to the operation control, wherein the second distance mapping coefficient is different from the first distance mapping coefficient.
[0117] For example, taking a power-law distance mapping coefficient, to adjust the close-range aiming speed of a virtual object under different motion states, the first distance mapping coefficient when the virtual object is stationary can be smaller than the second distance mapping coefficient when the virtual object is moving. For instance, the first distance mapping coefficient is 0.15, and the second distance mapping coefficient is 0.35. That is, when the virtual object is stationary, a smaller first distance mapping coefficient results in a larger change in the second distance during close-range aiming, making it easier to aim quickly; conversely, when the virtual object is moving, a larger second distance mapping coefficient results in a smaller change in the second distance during close-range aiming, making the virtual object's aiming speed relatively slower.
[0118] Optionally, considering that the accuracy and speed of aiming at a virtual object may vary under different object attribute values, in order to allow users to experience different aiming feel under different object attribute values of the virtual object, the terminal can determine the distance mapping coefficient based on the object attribute values of the virtual object.
[0119] In one possible implementation, the terminal determines the distance mapping coefficient corresponding to the operation based on the attribute value range to which the object attribute value belongs and the operation information. Different attribute value ranges correspond to their respective distance mapping coefficients.
[0120] For example, taking a distance mapping coefficient as a power of 1 and an object attribute value as stamina, to adjust the close-range aiming speed of a virtual object under different stamina values, the distance mapping coefficient and the object's stamina value can be set to a negative correlation. For instance, when the stamina value is 50-100%, the distance mapping coefficient is 0.15; when the stamina value is 0-50%, the distance mapping coefficient is 0.25. That is, the higher the stamina value, the smaller the distance mapping coefficient, the greater the change in the second distance during close-range aiming, and the easier it is for the virtual object to aim quickly; the lower the stamina value, the larger the distance mapping coefficient, the smaller the change in the second distance during close-range aiming, and the relatively slower the virtual object's aiming speed.
[0121] Optionally, considering that during the dragging of the directional joystick, when the first distance is small, it indicates that the user may control the virtual object to perform a close-range attack operation; when the first distance is large, it indicates that the user may control the virtual object to perform a long-range attack operation, in order to meet the user's need to quickly aim when attacking at close range or quickly expand the attack distance when attacking at long range, a distance mapping coefficient can be determined according to the distance range to which the first distance belongs.
[0122] In one possible implementation, the terminal determines the distance mapping coefficient corresponding to the operation based on the distance interval to which the first distance belongs and the operation information. Different distance intervals correspond to their respective distance mapping coefficients.
[0123] Optionally, taking the setting of two distance intervals and their corresponding distance mapping coefficients, with a linear mapping relationship between the first distance and the second distance within each interval as an example, to meet the user's need for quick aiming during close-range attacks, the distance mapping coefficient corresponding to the first distance interval can be set to be greater than the distance mapping coefficient corresponding to the second distance interval. For example, the mapping relationship between the first distance and the second distance within the first distance interval is R = R max *2*(x / r), the mapping relationship between the first and second distances within the second distance interval is R=R max *(0.75*(x / r)+0.25). That is, when aiming at close range, the user can achieve quick aiming by dragging the directional joystick; when aiming at long range, the user can achieve stable and accurate aiming by dragging the directional joystick.
[0124] To meet users' needs for rapidly extending attack range during long-range attacks, the distance mapping coefficient for the first distance interval can be set to be less than that for the second distance interval. For example, the mapping relationship between the first and second distances within the first distance interval can be R = R max *0.5*(x / r), the mapping relationship between the first and second distances within the second distance interval is R=R max *(2*(x / r)-1).
[0125] Optionally, the mapping relationship between the first distance and the second distance can also be set by the user based on whether the non-linear mapping function is enabled or disabled.
[0126] In one possible implementation, in response to the user's activation of the nonlinear mapping function, the terminal can first determine the distance mapping coefficient of the operation corresponding to the current operation control, and then determine the second distance between the placement position indicator and the virtual object based on the first distance, the radius of the control wheel, the operation placement distance threshold of the operation corresponding to the operation control, and the distance mapping coefficient.
[0127] In another possible implementation, in response to the user's action to disable the non-linear mapping function, the terminal can directly determine the third distance between the placement position indicator and the virtual object based on the first distance, the radius of the control wheel, and the operation placement distance threshold of the corresponding operation control. Then, based on the third distance and the dragging angle, the terminal updates the third display position of the placement position indicator in the virtual scene. In this case, there is a linear mapping relationship between the first distance and the third distance.
[0128] Step 503: Based on the second distance and drag angle, update the second display position of the release position indicator in the virtual scene.
[0129] In some embodiments, after determining the second distance and the drag angle of the drag operation, the terminal can update the second display position of the release position indicator in the virtual scene.
[0130] In one possible implementation, the terminal can construct a polar coordinate system in the virtual scene with the location of the virtual object as the origin and the horizontal rightward direction as the positive direction of the polar coordinates. Based on the second distance and the dragging angle, the terminal can determine the display position of the release position indicator in the virtual scene and update the display of the release position indicator.
[0131] In the above embodiments, during the process of determining the second distance based on the first distance, a distance mapping coefficient is added to make the first distance and the second distance have a non-linear mapping relationship, thereby enabling users to experience different aiming feel at different aiming distances and improving the realism of drag aiming.
[0132] Meanwhile, by setting corresponding distance mapping coefficients for different operations, different operations can correspond to different aiming feel at the same aiming distance, increasing the control differences between different operations and enriching the operation control process.
[0133] Furthermore, in addition to the operation information, the distance mapping coefficient during the aiming process is dynamically adjusted based on the object status or initial distance of the virtual object, which increases the difficulty of dragging and aiming and enhances the excitement of the game.
[0134] In addition, by allowing users to enable or disable the non-linear mapping function, users are given the option to choose the aiming feel, which helps them find an aiming feel that suits them.
[0135] Please refer to Figure 11 The diagram illustrates a flowchart of a display method for an indicator provided in another exemplary embodiment of this application.
[0136] Step 1101: Respond to the user's trigger operation on the operation control.
[0137] Step 1102: Display the control wheel.
[0138] After receiving a user's trigger operation on the operation controls, the terminal displays a control wheel on top of the operation controls, and the control wheel includes a directional joystick.
[0139] Step 1103: Display the placement indicator in the virtual scene.
[0140] Furthermore, based on the current position of the joystick in the control wheel, the terminal displays an indicator of the release position of the corresponding operation in the virtual scene.
[0141] Step 1104: Record the first display position of the directional joystick on the control wheel.
[0142] Step 1105: Respond to the dragging operation of the directional joystick in the control wheel.
[0143] Step 1106: Obtain the position indicated by the drag operation.
[0144] Upon receiving a user's drag operation on the directional joystick in the control wheel, the terminal obtains the position indicated by the current drag operation, i.e., the first display position of the directional joystick in the control wheel.
[0145] Step 1107: Determine the first distance between the directional joystick and the center of the wheel, as well as the drag angle.
[0146] Based on the first display position, the terminal calculates the first distance between the directional joystick and the center of the wheel, as well as the drag angle of the drag operation.
[0147] Step 1108: Calculate the second distance based on the distance mapping coefficient.
[0148] The terminal calculates the second distance based on the first distance, the radius of the wheel, the operation release distance threshold, and the distance mapping coefficient.
[0149] Step 1109: Update the second display position of the release position indicator based on the second distance and the drag angle.
[0150] The terminal updates the second display position of the release position indicator in the virtual scene based on the second distance and the drag angle.
[0151] To enable users to select the most suitable distance mapping coefficient, a coefficient configuration interface can be set up for the distance mapping coefficient. Users can then configure the appropriate distance mapping coefficient in the coefficient configuration interface to optimize the user's drag-and-aiming experience.
[0152] In some embodiments, in response to a user's trigger operation on the coefficient configuration control, the terminal displays a coefficient configuration interface, which may include an operation selection control and a coefficient setting control. Thus, when the terminal receives a user's trigger operation on the operation selection control, it determines the operation indicated by the operation selection control as the operation to be configured. When the terminal receives a user's trigger operation on the coefficient setting control, it determines the distance mapping coefficient indicated by the coefficient setting control as the distance mapping coefficient to be configured.
[0153] Furthermore, to allow users to more intuitively understand the non-linear mapping effect during the drag-and-aiming process of the currently selected distance mapping coefficient, the terminal can also display the position update animation of the release position indicator corresponding to the operation to be configured in the coefficient configuration interface, based on the distance mapping coefficient to be configured and the operation release distance threshold corresponding to the operation to be configured.
[0154] Optionally, the position update animation represents the position update process of the position indicator in the virtual scene when the directional joystick is dragged in a certain direction in the control wheel.
[0155] Indicative, such as Figure 12 As shown, in response to the user's trigger operation on the coefficient configuration control, the terminal displays the coefficient configuration interface 1201, which includes an operation selection control 1202 and a coefficient setting control 1203. After the user selects the operation to be configured and the distance mapping coefficient to be configured, the terminal displays the position update animation of the release position indicator corresponding to the operation to be configured in the effect display area 1204.
[0156] In one possible implementation, considering that different operation types have different control requirements for drag aiming, for example, close-range attack operations have lower control requirements for drag aiming, while long-range attack operations have higher control requirements for drag aiming, in order to simplify the drag control process, the terminal may also only provide the user with the opportunity to set the distance mapping coefficient for long-range attack operations.
[0157] Optionally, if a trigger operation is received for the operation selection control, and the operation indicated by the operation selection control is a long-range attack operation, the terminal will determine the operation indicated by the operation selection control as an operation to be configured; if a trigger operation is received for the operation selection control, and the operation indicated by the operation selection control is a short-range attack operation, the terminal will not determine the operation indicated by the operation selection control as an operation to be configured.
[0158] In the above embodiments, by setting the coefficient configuration interface corresponding to the distance mapping coefficient, users are given the opportunity to configure the distance mapping coefficient for different operations, which helps users select a suitable distance mapping coefficient and optimizes the user's drag aiming experience.
[0159] Please refer to Figure 13 This illustration shows a structural block diagram of a display device for an indicator provided in an exemplary embodiment of this application. The device includes:
[0160] The first display module 1301 is used to respond to the trigger operation of the operation control, display the control wheel corresponding to the operation control, and display a release position indicator in the virtual scene. The release position indicator is used to indicate the operation release position of the operation corresponding to the operation control.
[0161] The second display module 1302 is used to respond to a dragging operation of the directional joystick in the control wheel, and update the second display position of the release position indicator in the virtual scene based on the first display position of the directional joystick in the control wheel;
[0162] The first distance between the center of the directional joystick and the center of the control wheel has a non-linear mapping relationship with the second distance between the release position indicator and the virtual object.
[0163] Optionally, the second display module 1302 includes:
[0164] An operation response unit is configured to, in response to a dragging operation of the directional rocker arm in the control wheel, determine the first distance between the directional rocker arm and the center of the control wheel, and the dragging angle of the dragging operation;
[0165] A distance determination unit is used to determine the second distance between the release position indicator and the virtual object based on the first distance, the radius of the control wheel, the operation release distance threshold of the operation corresponding to the operation control, and the distance mapping coefficient.
[0166] A position display unit is used to update the second display position of the release position indicator in the virtual scene based on the second distance and the drag angle.
[0167] Optionally, the device further includes:
[0168] The first coefficient determination module is used to determine the distance mapping coefficient corresponding to the operation based on the operation information of the operation corresponding to the operation control; or...
[0169] The second coefficient determination module is used to determine the distance mapping coefficient corresponding to the operation based on the operation information of the operation corresponding to the operation control and the influencing factor. The influencing factor includes at least one of the first distance and the object state of the virtual object.
[0170] Optionally, the influencing factor includes the object state of the virtual object, and the object state includes the object motion state;
[0171] The second coefficient determination module is used for:
[0172] When the object's motion state is stationary, a first distance mapping coefficient corresponding to the operation is determined based on the operation information;
[0173] When the object is in a moving state, a second distance mapping coefficient corresponding to the operation is determined based on the operation information. The second distance mapping coefficient is different from the first distance mapping coefficient.
[0174] Optionally, the influencing factor includes the object state of the virtual object, and the object state includes object attribute values;
[0175] The second coefficient determination module is used for:
[0176] Based on the attribute value range to which the object attribute value belongs and the operation information, the distance mapping coefficient corresponding to the operation is determined; wherein, different attribute value ranges correspond to their respective distance mapping coefficients.
[0177] Optionally, the influencing factor includes the first distance;
[0178] The second coefficient determination module is used for:
[0179] Based on the distance interval to which the first distance belongs and the operation information, the distance mapping coefficient corresponding to the operation is determined; wherein, different distance intervals correspond to their respective distance mapping coefficients.
[0180] Optionally, the distance determination unit is used for:
[0181] Based on the first distance and the radius of the control wheel, determine the first distance mapping ratio;
[0182] The first distance mapping ratio is adjusted based on the distance mapping coefficient to obtain the second distance mapping ratio;
[0183] Based on the second distance mapping ratio and the operation release distance threshold corresponding to the operation control, the second distance between the release position indicator and the virtual object is determined.
[0184] Optionally, the distance determination unit is used for:
[0185] Using the distance mapping coefficient as the exponent, the first distance mapping ratio is exponentially operated on to obtain the second distance mapping ratio.
[0186] Optional,
[0187] When the distance mapping coefficient is less than 1, the joystick sensitivity of the direction joystick is negatively correlated with the first distance;
[0188] When the distance mapping coefficient is greater than 1, the joystick sensitivity of the direction joystick is positively correlated with the first distance.
[0189] Optionally, when there are multiple distance intervals, and different distance intervals correspond to their respective distance mapping coefficients, the distance determination unit is used to:
[0190] If the first distance belongs to the (i+1)th distance interval, the distance adjustment amount is determined based on the distance mapping coefficient corresponding to the i-th distance interval, the interval endpoint distance value of the i-th distance interval, and the distance mapping coefficient corresponding to the (i+1)th distance interval.
[0191] Based on the distance mapping coefficient corresponding to the (i+1)th distance interval and the distance adjustment amount, the first distance mapping ratio is adjusted to obtain the second distance mapping ratio.
[0192] Optionally, the distance determination unit is used for:
[0193] In response to the activation of the nonlinear mapping function, the second distance between the release position indicator and the virtual object is determined based on the first distance, the radius of the control wheel, the operation release distance threshold of the operation corresponding to the operation control, and the distance mapping coefficient.
[0194] The device further includes:
[0195] A distance determination module is used to determine a third distance between the release position indicator and the virtual object in response to a shutdown operation of the nonlinear mapping function, based on the first distance, the radius of the control wheel, and the operation release distance threshold of the operation corresponding to the operation control.
[0196] The third display module is used to update the third display position of the release position indicator in the virtual scene based on the third distance and the drag angle.
[0197] Optionally, the device further includes:
[0198] The fourth display module is used to display the coefficient configuration interface in response to the trigger operation of the coefficient configuration control. The coefficient configuration interface includes an operation selection control and a coefficient setting control.
[0199] An operation determination module is used to determine the operation indicated by the operation selection control as the operation to be configured in response to a trigger operation of the operation selection control;
[0200] The third coefficient determination module is used to determine the distance mapping coefficient indicated by the coefficient setting control as the distance mapping coefficient to be configured in response to the trigger operation of the coefficient setting control.
[0201] The animation display module is used to display the position update animation of the release position indicator corresponding to the operation to be configured in the coefficient configuration interface based on the distance mapping coefficient to be configured and the operation release distance threshold corresponding to the operation to be configured.
[0202] Optionally, the operation determination module is used for:
[0203] If a trigger operation is received for the operation selection control, and the operation indicated by the operation selection control is a long-range attack operation, the operation indicated by the operation selection control is determined as the operation to be configured.
[0204] In summary, in this embodiment, upon receiving a user's trigger operation on the operation control, the control wheel corresponding to the operation control is displayed, and a release position indicator is displayed in the virtual scene to indicate the release position of the operation corresponding to the operation control. Then, upon receiving a release operation on the directional joystick in the control wheel, the second display position of the release position indicator in the virtual scene is updated in real time based on the first display position of the directional joystick in the control wheel. Furthermore, during the position update process, a non-linear mapping method is used to adjust the first distance between the directional joystick and the center of the control wheel, and the second distance between the release position indicator and the virtual object. This allows for different drag-and-aiming feel at different aiming distances during the operation aiming process, improving the realism of operation release via the control wheel.
[0205] It should be noted that the apparatus provided in the above embodiments is only an example of the division of the above functional modules. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the apparatus can be divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus and method embodiments provided in the above embodiments belong to the same concept, and their implementation process can be found in the method embodiments, which will not be repeated here.
[0206] Please refer to Figure 14 This diagram illustrates a structural block diagram of a terminal 1400 provided in an exemplary embodiment of this application. The terminal 1400 may be a portable mobile terminal, such as a smartphone, tablet computer, Moving Picture Experts Group Audio Layer III (MP3) player, or Moving Picture Experts Group Audio Layer IV (MP4) player. The terminal 1400 may also be referred to as a user device, portable terminal, or other names.
[0207] Typically, terminal 1400 includes a processor 1401 and a memory 1402.
[0208] Processor 1401 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. Processor 1401 may be implemented using at least one hardware form selected from Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). Processor 1401 may also include a main processor and a coprocessor. The main processor, also known as a central processing unit (CPU), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 1401 may integrate a Graphics Processing Unit (GPU), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, processor 1401 may also include an Artificial Intelligence (AI) processor, which is used to handle computational operations related to machine learning.
[0209] The memory 1402 may include one or more computer-readable storage media, which may be tangible and non-transitory. The memory 1402 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory 1402 are used to store at least one instruction, which is executed by the processor 1401 to implement the indicator display method provided in the embodiments of this application.
[0210] In some embodiments, terminal 1400 may also optionally include: peripheral device interface 1403 and at least one peripheral device.
[0211] Peripheral interface 1403 can be used to connect at least one input / output (I / O) related peripheral device to processor 1401 and memory 1402. In some embodiments, processor 1401, memory 1402 and peripheral interface 1403 are integrated on the same chip or circuit board; in some other embodiments, any one or two of processor 1401, memory 1402 and peripheral interface 1403 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.
[0212] Those skilled in the art will understand that Figure 14The structure shown does not constitute a limitation on terminal 1400 and may include more or fewer components than shown, or combine certain components, or use different component arrangements.
[0213] This application also provides a computer-readable storage medium storing at least one program that is loaded and executed by a processor to implement the indicator display method described in the above embodiments.
[0214] According to one aspect of this application, a computer program product is provided, comprising computer instructions stored in a computer-readable storage medium. A terminal's processor reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the terminal to perform the indicator display method provided in various alternative implementations of the above aspect.
[0215] Those skilled in the art will recognize that the functions described in the embodiments of this application in one or more of the above examples can be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable storage medium or transmitted as one or more instructions or code on a computer-readable storage medium. Computer-readable storage media include computer storage media and communication media, wherein communication media include any medium that facilitates the transmission of a computer program from one place to another. Storage media can be any available medium accessible to a general-purpose or special-purpose computer.
[0216] The above description is merely an optional embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A display method of an indicator, characterized by, The method comprises: in response to a triggering operation on an operation control, displaying a control wheel corresponding to the operation control, and displaying a position indicator in a virtual scene, the position indicator being used to indicate an operation position of the operation corresponding to the operation control; in response to a dragging operation on a direction joystick in the control wheel, updating a second display position of the position indicator in the virtual scene based on a first display position of the direction joystick in the control wheel; wherein a first distance between the direction joystick and the center of the control wheel has a non-linear mapping relationship with a second distance between the position indicator and a virtual object.
2. The method of claim 1, wherein, The response to the dragging operation on the direction joystick in the control wheel, updating the second display position of the position indicator in the virtual scene based on the first display position of the direction joystick in the control wheel, comprises: in response to the dragging operation on the direction joystick in the control wheel, determining the first distance between the direction joystick and the center of the control wheel, and a dragging angle of the dragging operation; based on the first distance, a wheel radius of the control wheel, an operation distance threshold of the operation corresponding to the operation control, and a distance mapping coefficient, determining the second distance between the position indicator and the virtual object; based on the second distance and the dragging angle, updating the second display position of the position indicator in the virtual scene.
3. The method of claim 2, wherein, The method further comprises: determining the distance mapping coefficient corresponding to the operation according to operation information of the operation corresponding to the operation control; or determining the distance mapping coefficient corresponding to the operation according to operation information of the operation corresponding to the operation control and an influence factor, the influence factor comprising at least one of the first distance and an object state of the virtual object.
4. The method of claim 3, wherein, The influence factor comprises the object state of the virtual object, and the object state comprises an object motion state; The determination of the distance mapping coefficient corresponding to the operation according to the operation information of the operation corresponding to the operation control and the influence factor comprises: in a case where the object motion state is a static state, determining a first distance mapping coefficient corresponding to the operation based on the operation information; in a case where the object motion state is a moving state, determining a second distance mapping coefficient corresponding to the operation based on the operation information, the second distance mapping coefficient being different from the first distance mapping coefficient.
5. The method of claim 3, wherein, The influence factor comprises the object state of the virtual object, and the object state comprises an object attribute value; The determination of the distance mapping coefficient corresponding to the operation according to the operation information of the operation corresponding to the operation control and the influence factor comprises: determining the distance mapping coefficient corresponding to the operation according to an attribute value range to which the object attribute value belongs and the operation information; wherein different attribute value ranges correspond to respective distance mapping coefficients.
6. The method of claim 3, wherein, The influence factor comprises the first distance; The operation information corresponding to the operation of the operation control and the influence factor are used to determine the distance mapping coefficient corresponding to the operation, including: The distance mapping coefficient corresponding to the operation is determined according to the first distance and the operation information, wherein different distance intervals correspond to respective distance mapping coefficients.
7. The method of claim 2, wherein, The second distance between the virtual object and the release position indicator is determined based on the first distance, the radius of the control wheel, the operation release distance threshold corresponding to the operation of the operation control, and the distance mapping coefficient, including: A first distance mapping ratio is determined based on the first distance and the radius of the control wheel; The first distance mapping ratio is adjusted based on the distance mapping coefficient to obtain a second distance mapping ratio; The second distance between the virtual object and the release position indicator is determined based on the second distance mapping ratio and the operation release distance threshold corresponding to the operation of the operation control.
8. The method of claim 7, wherein, The second distance mapping ratio is obtained by adjusting the first distance mapping ratio based on the distance mapping coefficient, including: The first distance mapping ratio is subjected to power operation with the distance mapping coefficient as the power index to obtain the second distance mapping ratio.
9. The method of claim 8, wherein, In the case that the distance mapping coefficient is less than 1, the rocker sensitivity of the direction rocker is negatively correlated with the first distance; In the case that the distance mapping coefficient is greater than 1, the rocker sensitivity of the direction rocker is positively correlated with the first distance.
10. The method of claim 7, wherein, In the case that there are multiple distance intervals and different distance intervals correspond to respective distance mapping coefficients, the second distance mapping ratio is obtained by adjusting the first distance mapping ratio based on the distance mapping coefficient, including: In the case that the first distance belongs to the i+1 distance interval, a distance adjustment amount is determined based on the distance mapping coefficient corresponding to the i distance interval, the interval endpoint distance value of the i distance interval, and the distance mapping coefficient corresponding to the i+1 distance interval; The first distance mapping ratio is adjusted based on the distance mapping coefficient corresponding to the i+1 distance interval and the distance adjustment amount to obtain the second distance mapping ratio.
11. The method of claim 2, wherein, The second distance between the virtual object and the release position indicator is determined based on the first distance, the radius of the control wheel, the operation release distance threshold corresponding to the operation of the operation control, and the distance mapping coefficient, including: The second distance between the virtual object and the release position indicator is determined based on the first distance, the radius of the control wheel, the operation release distance threshold corresponding to the operation of the operation control, and the distance mapping coefficient in response to an opening operation of a non-linear mapping function; The method further includes: In response to a closing operation on the non-linear mapping function, a third distance between the release position indicator and the virtual object is determined based on the first distance, a wheel radius of the control wheel, and the operation release distance threshold corresponding to the operation of the operation control; A third display position of the release position indicator in the virtual scene is updated based on the third distance and the drag angle.
12. The method according to any one of claims 1 to 11, characterized in that, The method further includes: In response to a triggering operation on a coefficient configuration control, a coefficient configuration interface is displayed, the coefficient configuration interface including an operation selection control and a coefficient setting control; In response to a triggering operation on the operation selection control, an operation indicated by the operation selection control is determined as a to-be-configured operation; In response to a triggering operation on the coefficient setting control, a distance mapping coefficient indicated by the coefficient setting control is determined as a to-be-configured distance mapping coefficient; A position update animation of a release position indicator corresponding to the to-be-configured operation is presented in the coefficient configuration interface based on the to-be-configured distance mapping coefficient and an operation release distance threshold corresponding to the to-be-configured operation.
13. The method of claim 12, wherein, The operation indicated by the operation selection control is determined as the to-be-configured operation in response to the triggering operation on the operation selection control, and includes: In a case where the triggering operation on the operation selection control is received and the operation indicated by the operation selection control is a long-distance attack type operation, the operation indicated by the operation selection control is determined as the to-be-configured operation.
14. A display device for an indicator, characterized by The apparatus includes: A first display module configured to, in response to a triggering operation on an operation control, display a control wheel corresponding to the operation control, and display a release position indicator in a virtual scene, the release position indicator being used to indicate an operation release position of an operation corresponding to the operation control; A second display module configured to, in response to a drag operation on a direction joystick in the control wheel, update a second display position of the release position indicator in the virtual scene based on a first display position of the direction joystick in the control wheel; The first distance between the direction joystick and the center of the control wheel has a non-linear mapping relationship with a second distance between the release position indicator and a virtual object.
15. A terminal, characterized by The terminal includes a processor and a memory, and the memory stores at least one program, which is loaded and executed by the processor to implement the display method of the indicator as claimed in any one of claims 1 to 13.
16. A computer-readable storage medium, characterized in that, The storage medium stores at least one program, which is loaded and executed by the processor to implement the display method of the indicator as claimed in any one of claims 1 to 13.
17. A computer program product, characterised in that, The computer program product includes computer instructions stored in a computer readable storage medium; a processor of a terminal reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions to cause the terminal to perform the display method of the indicator as claimed in any one of claims 1 to 13.