Method, device, terminal, and program for inserting virtual items

By determining virtual item input points and methods based on distance, the method and device improve the efficiency and realism of virtual item interactions in competitive games, addressing the inefficiencies of single-point actions and enhancing hardware resource utilization.

JP7534539B2Active Publication Date: 2024-08-14TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
JP2023519959
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2021-01-22
Filing Date
2021-12-27
Publication Date
2024-08-14
Estimated Expiration
2041-12-27

AI Technical Summary

Technical Problem

Existing virtual item input methods in competitive games result in low man-machine interactions per unit time and inefficient utilization of hardware resources due to a single, randomly determined point of action within the throwing range, leading to wasted item resources.

Method used

A method and device that determine a target virtual item input point and method based on the distance to the first virtual object, allowing for varied input accuracy and methods, increasing the number of inputs per unit time and improving resource utilization.

Benefits of technology

This approach enhances the diversity and accuracy of virtual item inputs, increasing man-machine interactions and optimizing hardware resource usage by simulating different input methods based on distance, making the virtual item interactions more realistic and authentic.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007534539000004
    Figure 0007534539000004
  • Figure 0007534539000009
    Figure 0007534539000009
  • Figure 0007534539000010
    Figure 0007534539000010
Patent Text Reader

Abstract

This application discloses a method, device, terminal, storage medium, and computer program product for throwing a virtual item, which belong to the technical field of computers, and includes the steps of: displaying an insertion point selection interface in response to a trigger operation for a target virtual item; determining a target insertion point for the target virtual item in response to an insertion point selection operation for a map display control; determining a target insertion manner based on an insertion distance between the target insertion point and a location where a first virtual object is located; and throwing the target virtual item into a virtual environment based on the target insertion manner and the target insertion point.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present application relates to the field of computer technology, and in particular to a method, device, terminal, storage medium, and computer program product for inserting a virtual item.

[0002] This application is based on and claims priority to a Chinese patent application bearing application number 202110090244.3 and filing date on January 22, 2021, the entire contents of which are hereby incorporated by reference into this application. [Background technology]

[0003] A competitive game is a game in which multiple user accounts compete in the same scene, and players can control virtual objects in the virtual environment to walk, run, climb, shoot, etc., and multiple players can form teams online to cooperate in completing a mission in the same virtual environment.

[0004] In the related technology, in order to facilitate a player to control a virtual object to remotely attack a distant enemy, a throwing type virtual item is usually provided, which has a relatively strong attacking power, a long attack distance, and a large attack range. The player controls a virtual object to throw a cluster throwing type virtual item toward a location within a field of view, so that the cluster throwing type virtual item acts continuously multiple times within a range selected by the player, enabling the player to quickly defeat a relatively large number of players.

[0005] However, in the related technology, the action points of the thrown virtual items are concentrated at one point within the throwing range selected by the player, and this point is a throwing point randomly determined by the terminal within the throwing range. Therefore, the throwing method of the virtual items is single. As a result, the number of man-machine interactions per unit time is relatively small, and the utilization rate of the terminal's hardware resources is low. Summary of the Invention [Problem to be solved by the invention]

[0006] The embodiments of the present application provide a method, device, terminal, storage medium, and computer program product for introducing virtual items, which enable the diversity of the introduction methods of target virtual items, the number of man-machine interactions per unit time, and the utilization rate of the terminal's hardware resources to be improved. [Means for solving the problem]

[0007] An embodiment of the present application provides a method for inserting a virtual item, the method comprising: displaying an input point selection interface in response to a trigger operation on a target virtual item, the target virtual item being used to change an attribute value of a virtual object within an item action range; determining a target input point for the target virtual item in response to an input point selection operation triggered based on the input point selection interface; determining a target throwing manner based on a throwing distance between the target throwing point and a position where a first virtual object is located, where different throwing distances correspond to different throwing manners; and controlling the virtual object to throw the target virtual item toward the virtual environment based on the target throwing manner and the target throwing point.

[0008] An embodiment of the present application provides a virtual item input device, the device comprising: a display module configured to display an input point selection interface in response to a trigger operation on a target virtual item, the target virtual item being used to change an attribute value of a virtual object within an item action range; a first determination module configured to determine a target input point for the target virtual item in response to an input point selection operation triggered based on the input point selection interface; A second determination module configured to determine a target throwing manner based on a throwing distance between the target throwing point and a position where a first virtual object is located, where different throwing distances correspond to different throwing manners; and and an injection module configured to control the virtual object to inject the target virtual item towards a virtual environment based on the target injection manner and the target injection point.

[0009] An embodiment of the present application provides a terminal, the terminal including a processor and a memory, in which at least one instruction, at least one program segment, code set, or instruction set is stored, and the at least one instruction, the at least one program segment, code set, or instruction set is loaded and executed by the processor to realize the virtual item injection method provided by the embodiment of the present application.

[0010] An embodiment of the present application provides a computer-readable storage medium, in which at least one computer program is stored, and the computer program is loaded and executed by a processor to realize the virtual item insertion method provided by the embodiment of the present application.

[0011] An embodiment of the present application provides a computer program product or a computer program, the computer program product or the computer program includes computer instructions, the computer instructions are 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, so that the terminal realizes the method of inserting a virtual item provided by the embodiment of the present application.

[0012] The beneficial technical effects of the technical solutions provided by the embodiments of the present application at least include:

[0013] In the embodiment of the present application, the target insertion method is determined according to the distance between the target insertion point and the first virtual object, and different insertion distances correspond to different insertion methods, so that the insertion method of the target virtual item is changed according to the change of the insertion distance, which makes it possible to simulate insertion methods with different insertion accuracy according to the insertion distance, compared with the single insertion method in the related art, and improves the diversity of the insertion method of the target virtual item, thereby increasing the number of insertions of the target virtual item per unit time, i.e., increasing the number of man-machine interactions per unit time, and at the same time improving the utilization rate of the hardware resources of the terminal. [Brief description of the drawings]

[0014] [Figure 1] FIG. 1 is a schematic diagram of an implementation environment provided by an embodiment of the present application. [Diagram 2] FIG. 2 is a process diagram of a method for inserting a virtual item provided by an embodiment of the present application. [Diagram 3] FIG. 2 is a schematic diagram of an embodiment of the present application providing a target virtual item. [Figure 4] FIG. 2 is a process diagram of a method for inserting a virtual item provided by an embodiment of the present application. [Diagram 5] FIG. 2 is a schematic diagram of determining a target injection point provided by an embodiment of the present application; [Figure 6] FIG. 2 is a process diagram of a method for inserting a virtual item provided by an embodiment of the present application. [Figure 7] FIG. 2 is a schematic diagram showing a map display control provided by an embodiment of the present application; [Figure 8] FIG. 2 is a schematic diagram illustrating a sub-virtual item provided by an embodiment of the present application being controlled to move along a preset trajectory; [Figure 9] FIG. 2 is a schematic diagram illustrating the control of activation of a sub-virtual item provided by an embodiment of the present application. [Figure 10] FIG. 2 is a process diagram of a method for inserting a virtual item provided by an embodiment of the present application. [Figure 11] FIG. 2 is a structural block diagram of a virtual item input device provided by an embodiment of the present application; [Figure 12] FIG. 2 is a structural block diagram of a terminal provided by an embodiment of the present application; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0015] The following clearly and completely describes the technical solutions in the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. It is obvious that the described embodiments are only a part of the embodiments of the present application, and are not all of the embodiments. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative labor shall fall within the scope of protection of the present application.

[0016] In the following description, references to "some embodiments" may describe a subset of all possible embodiments, but it will be understood that "some embodiments" may be the same or different subsets of all possible embodiments, and may be combined with each other where not inconsistent.

[0017] In the following description, the relative terms "first\second" are merely used to distinguish between similar objects and do not imply any particular order to the objects. As will be appreciated, "first\second" may be interchanged with one another to indicate a particular order or priority, where permitted, to enable the embodiments of the present application described herein to be performed in orders other than those illustrated or described herein.

[0018] As referred to herein, "plurality" refers to two or more than two. "And / or" describes a relationship between related objects and indicates that three types of relationships can exist, for example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally indicates that the related objects before and after are in an "or" relationship.

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

[0020] 1) Virtual Environment It refers to a virtual environment that is displayed (or provided) when an application program runs on a terminal. The virtual environment may be a simulation environment for the real world, a semi-simulated and semi-fictional three-dimensional environment, or a purely fictional three-dimensional environment. The virtual environment may be any one of a two-dimensional virtual environment, a two-and-a-half-dimensional virtual environment, and a three-dimensional virtual environment. In the following embodiments, the virtual environment is exemplified as a three-dimensional virtual environment, but is not limited thereto. In some embodiments, the virtual environment further has virtual resources that are used for a virtual environment battle between at least two virtual characters and that can be used by at least two virtual characters in the virtual environment.

[0021] 2) Virtual Objects A virtual object refers to a movable object in a virtual scene. The movable object may be at least one of a virtual person, a virtual animal, and an animated person. In some embodiments, when the virtual scene is a 3D virtual scene, the virtual object may be a 3D solid model. Each virtual object has its own shape and volume in the 3D virtual scene and occupies a part of the space in the 3D virtual scene. In some embodiments, the virtual character is a 3D character constructed based on 3D human skeleton technology, and the virtual character achieves different appearances by wearing different skins. In some implementations, the virtual character may be realized by adopting a 2.5D or 2D model, and the embodiments of the present application are not limited thereto.

[0022] 3) Virtual Items A virtual item refers to an item that a virtual object can use in a virtual environment, and includes at least one of a virtual interaction item (e.g., a virtual attack item), a function item, and a virtual equipment used for interaction. Schematically, a virtual item in this application refers to a virtual interaction item, and the virtual interaction item is used to change the attribute value of a virtual object in a virtual environment. For example, a virtual weapon includes at least one of a shooting type virtual item, a melee attack type virtual item, and an insertion type virtual item. An insertion type virtual item is a virtual item that a virtual object or another virtual carrier inserts into a certain direction or location, and is activated after reaching the insertion point or a collision occurs.

[0023] 4) User Interface (UI) Controls Any visual control or element that can be seen on the user interface of an application program, such as a picture, an input box, a text box, a button, a label, etc., and some UI controls respond to user interaction.

[0024] The method provided in the embodiments of the present application may be applied to virtual reality application programs, 3D map programs, first-person shooting games, multiplayer online battle arena games (MOBA), etc., and the following embodiments will be described by taking the application in games as an example.

[0025] Games based on virtual environments are often composed of one or more game world maps, where the virtual environment in the game simulates a scene in the real world, and users can control virtual objects in the game to walk, run, jump, shoot, fight, drive, switch between virtual items, and use virtual items to damage other virtual objects in the virtual environment. To facilitate players to control virtual objects to attack distant enemies, throwable virtual items with relatively strong attack power, long attack distance, and large attack range are usually provided in application programs. In the related technology, a player controls a virtual object to throw a virtual item toward a certain area, and the terminal controls the virtual item to act within the range selected by the player, allowing a relatively large number of players to be defeated quickly. The action points of such virtual items are concentrated at one point within the throwing range selected by the player, and the point is usually a throwing point randomly determined by the terminal within the throwing range, so that enemies are still likely to avoid the virtual items, causing waste of item resources.

[0026] Based on this, an embodiment of the present application provides a method for throwing a virtual item, in which the terminal determines a target throwing method based on a throwing distance between a target throwing point selected by a user and a position where a first virtual object is located, and the throwing accuracy for different throwing methods is different, so that the throwing accuracy changes with the change of the throwing distance.

[0027] 1 shows a schematic diagram of an implementation environment provided by an embodiment of the present application. The implementation environment may include a first terminal 110, a server 120, and a second terminal 130.

[0028] An application program 111 supporting a virtual environment is installed and running on the first terminal 110, and when the application program 111 runs on the first terminal, a user interface of the application program 111 is displayed on the screen of the first terminal 110. The application program 111 may be any type of MOBA game, battle royale shooter game, or simulation game (SLG). In this embodiment, the application program 111 is exemplified as a role-playing game (RPG). The first terminal 110 is a terminal used by a first user 112, and the first user 112 uses the first terminal 110 to control and activate a first virtual object located in a virtual environment. The first virtual object may be called a main control virtual object of the first user 112. The activity of the first virtual object includes at least one of body posture adjustment, crawling, walking, running, cycling, jumping, jumping, driving, picking up, shooting, attacking, throwing, and skill release, but is not limited thereto. Typically, the first virtual object is a first virtual person, for example a simulated or animated person.

[0029] The second terminal 130 has an application program 131 that supports a virtual environment installed and running, and when the application program 131 runs on the second terminal 130, the user interface of the application program 131 is displayed on the screen of the second terminal 130. The client may be any type of MOBA game, battle royale shooter game, or SLG game, and in this embodiment, the application program 131 is exemplified as an RPG. The second terminal 130 is a terminal used by a second user 132, and the second user 132 uses the second terminal 130 to control and activate a second virtual object located in the virtual environment, and the second virtual object may be referred to as a main controlled virtual character of the second user 132. Schematically, the second virtual object is a second virtual person, such as a simulation person or an animation person.

[0030] In some embodiments, the first virtual object and the second virtual object are in the same virtual world, and the first virtual object and the second virtual object may belong to the same camp, team, or organization, have a friendly relationship, or have temporary communication rights. In some embodiments, the first virtual object and the second virtual object may belong to different camps, teams, or organizations, or have an enemy relationship. The embodiments of the present application are described by taking as an example that the first virtual object and the second virtual object belong to the same camp.

[0031] In some embodiments, the application programs installed on the first terminal 110 and the second terminal 130 are the same, or the application programs installed on the two terminals are the same type of application programs on different operating system platforms (Android or IOS). The first terminal 110 may collectively refer to one of the multiple terminals, and the second terminal 130 may collectively refer to another of the multiple terminals, and in this embodiment, only the first terminal 110 and the second terminal 130 are illustrated and described. The device types of the first terminal 110 and the second terminal 130 are the same or different, and the device types include at least one of a smartphone, a tablet computer, an e-book reader, an MP3 player, an MP4 player, a laptop type portable computer, and a desktop computer.

[0032] Although only two terminals are shown in Fig. 1, in different embodiments, there are multiple other terminals that can access the server 120. In some embodiments, there are one or more terminals corresponding to developers, and an application program development and editing platform supporting a virtual environment is installed on the terminal, so that the developer can edit and update the application program on the terminal, and transmit the updated application program installation package to the server 120 through a wired or wireless network. The first terminal 110 and the second terminal 130 can download the application program installation package from the server 120 to realize the update to the application program.

[0033] The first terminal 110, the second terminal 130, and other terminals are connected to the server 120 through a wireless network or a wired network.

[0034] The server 120 includes at least one of a server, a server cluster of multiple servers, a cloud computing platform, and a virtualization center. The server 120 is used to provide background services to application programs supporting a 3D virtual environment. In some embodiments, the server 120 is responsible for main computational tasks, and the terminal is responsible for secondary computational tasks, or the server 120 is responsible for secondary computational tasks, and the terminal is responsible for main computational tasks, or a distributed computing architecture is adopted between the server 120 and the terminal to perform collaborative computation.

[0035] In one schematic example, the server 120 includes a memory 121, a processor 122, a user account database 123, a battle service module 124, and a user-facing input / output interface (I / O interface) 125. The processor 122 is used to load instructions stored in the server 120 and process data in the user account database 123 and the battle service module 124, and the user account database 123 is used to store data of user accounts used by the first terminal 110, the second terminal 130, and other terminals, such as the icon of the user account, the nickname of the user account, the combat power index of the user account, and the service area where the user account is located. The battle service module 124 is used to provide multiple battle rooms for users to battle, such as 1V1 battle, 3V3 battle, 5V5 battle, etc., and the user I / O interface 125 is used to establish communication and exchange data with at least one of the first terminal 110 and the second terminal 130 via a wireless network or a wired network.

[0036] 2 shows a flowchart of a method for inserting a virtual item according to an embodiment of the present application. This embodiment is described by taking as an example that the method is used in the first terminal 110, the second terminal 130, or other terminals in the implementation environment shown in FIG. 1, and the method includes the following steps 201 to 204.

[0037] Step 201: The terminal displays an input point selection interface in response to a trigger operation on a target virtual item, which is used to modify an attribute value of a virtual object within the item action range.

[0038] The target virtual item is a virtual item used to change the attribute value of a virtual object within the item action range, and the target virtual item belongs to an input type virtual item, and the target virtual item can be directly input by a virtual object, or can be input by another virtual carrier used to carry a virtual object, and the user uses the target virtual item by controlling the first virtual object through the terminal. In some embodiments, when receiving a trigger operation for the target virtual item, the terminal displays an input point selection interface, and allows the user to select a target input point of the target virtual item through the input point selection interface. The method of the embodiment of the present application is applied in a virtual environment, and in some embodiments, the input point selection section includes a map display control, and the map display control is used to display a map screen corresponding to the virtual environment.

[0039] In some embodiments, the trigger operation on the target virtual item may include a touch control operation, such as a click operation, a long press operation, or a drag operation on a UI control, or a voice control operation, although embodiments of the present application are not limited thereto.

[0040] In some embodiments, when a trigger operation for a target virtual item is received, the terminal switches from the virtual environment interface to an input point selection interface, or the terminal superimposes the input point selection interface on the virtual environment interface.

[0041] Schematically, as shown in FIG. 3, a target virtual item control 302 corresponding to a target virtual item is displayed in a virtual environment interface 301, and when the terminal receives a trigger operation on the target virtual item control 302, the terminal displays an input point selection interface 303, which includes a map display control 304.

[0042] Step 202: Determine a target input point of the target virtual item in response to an input point selection operation triggered based on the input point selection interface.

[0043] In some embodiments, a user can select a target input point of a target virtual item through a map display control in an input point selection interface. For example, the input point selection operation is a single-click operation acting on the map display control, and the terminal determines a target input point located in the virtual environment based on the touch landing point of the single-click operation and the mapping relationship between the map screen in the map display control and the virtual environment after receiving the single-click operation on the map display control. For example, the terminal displays a map screen corresponding to the virtual environment through the map display control at a ratio of 1:1000, and when the terminal receives an input point selection operation located 1 cm in front of a first virtual object in the map display control, the terminal determines a point located 10 m in front of the first virtual object in the virtual environment as the target input point.

[0044] As shown in FIG. 3, the terminal displays a target input point 305a and a target input point 305b in a map display control based on the input point selection operation, thereby presenting the location of the currently selected target input point to the user.

[0045] In some embodiments, the terminal uses the reference points in the virtual environment to determine the position of the target input point in the virtual environment. For example, as shown in Fig. 3, the terminal selects three points A, B, and C in the virtual environment as reference points, and determines the positions of the reference points A, B, and C on the map screen displayed in the map display control. When an input point selection operation is received, the terminal determines the specific position of the target input point in the virtual environment based on the relative relationship between the touch control position of the input point selection operation and the display position of each reference point on the map screen, and the positions of the three reference points in the virtual environment. In the actual operation process, the terminal does not display the positions of the reference points on the virtual environment screen and the map display control, so as not to interfere with the user operation.

[0046] Step 203: Determine a target throwing manner according to a throwing distance between the target throwing point and the position where the first virtual object is located.

[0047] In some embodiments, different throwing distances correspond to different throwing manners, for example different throwing manners correspond to different throwing accuracy, and the first virtual object is a virtual object that throws the target virtual item.

[0048] The throw-in distance refers to the distance between the target throw-in point in the virtual environment and the location of the first virtual object. In the embodiment of the present application, the terminal determines the throw-in method of the target virtual item according to the throw-in distance, for example, when the throw-in distance is smaller than the preset distance, the terminal determines the throw-in method with high throw-in accuracy as the target throw-in method, and when the throw-in distance is larger than the preset distance, the terminal determines the throw-in method with low throw-in accuracy as the target throw-in method.

[0049] In some embodiments, the terminal determines the target launch mode according to a correspondence relationship between the launch distance and the launch mode.

[0050] Step 204: Control the first virtual object to throw the target virtual item into the virtual environment according to the target throwing manner and the target throwing point.

[0051] When the terminal receives the input operation, the terminal inputs the target virtual item into the virtual environment according to the target input method and the target input point. For example, the terminal needs to determine the target input point and the target input method according to the input point selection operation, and input the target virtual item when the terminal receives the trigger operation for confirming the input control, or select n target input points corresponding to the target virtual item, and when the terminal receives the nth input point selection operation, the terminal automatically inputs the target virtual item according to the n target input points and the corresponding target input method, where n is a positive integer.

[0052] 3, the terminal injects a target virtual item into the virtual environment according to a target injection method corresponding to the target injection point 305a, and activates the target virtual item at the target injection point 305a, and simultaneously injects a target virtual item into the virtual environment according to a target injection method corresponding to the target injection point 305b, and activates the target virtual item at the injection point 305c. Here, there is a certain distance between the injection point 305c and the target injection point 305b, that is, there is a deviation in the injection based on the target injection point 305b.

[0053] As described above, in the embodiment of the present application, the target insertion method is determined according to the distance between the target insertion point and the first virtual object, and the insertion accuracy of the target virtual item is changed according to the change of the insertion distance, so that compared with the single insertion method in the related art, it is possible to simulate insertion methods with different insertion accuracy according to the insertion distance, and improve the diversity of the insertion method of the target virtual item, thereby increasing the number of insertions of the target virtual item per unit time, i.e., increasing the number of man-machine interactions per unit time, and at the same time improving the utilization rate of the terminal hardware resources, and since the insertion accuracy corresponding to different insertion distances is different, the insertion of the virtual item is more practical and improves the realism of inserting the virtual item in the virtual environment.

[0054] In some embodiments, the input method in the embodiment of the present application includes a first input method and a second input method, the first input method is a precise input method in which the target input point is the actual input point, and the second input method is a range input method in which the input range is determined based on the target input point and the input distance, and the input accuracy of the first input method is higher than that of the second input method. Referring to FIG. 4, it shows a flowchart of a method for inputting a virtual item provided by an embodiment of the present application. This embodiment is illustrated by using the method in the first terminal 110 in the implementation environment shown in FIG. 1, or the second terminal 130, or other terminals in the implementation environment, and the method includes the following steps 401 to 406.

[0055] Step 401: In response to a trigger operation on a target virtual item, the terminal displays an input point selection interface, in which a map display control is included, and the target virtual item is used to change an attribute value of a virtual object within the item action range.

[0056] Step 402: Determine a target injection point of the target virtual item in response to an injection point selection operation on the map display control.

[0057] The embodiment of Steps 401 to 402 may refer to Steps 201 to 202 above, and the detailed description of the embodiment of the present application is omitted here.

[0058] Step 403: In response to the throw-in distance being less than the first distance threshold, determine the first throw-in manner as the target throw-in manner.

[0059] In some embodiments, the first throwing method is the throwing method with the highest throwing accuracy, i.e., when the actual throwing point has the highest probability of hitting the target throwing point and the throwing distance is relatively close, the terminal determines the first throwing method as the target throwing method, thereby facilitating the user to control the first virtual object to change the attribute value of a nearby hostile virtual object.

[0060] For example, if the first distance threshold is 50 m, when the throw-in distance between the target throw-in point and the location where the first virtual object is located is 50 m or less, the terminal determines the first throw-in method as the target throw-in method.

[0061] Schematically, the first injection method is accurate injection, in which the terminal injects the target injection point as the actual injection point.

[0062] Step 404: In response to the throwing distance being greater than the first distance threshold, determine a second throwing manner as the target throwing manner, where the throwing accuracy of the first throwing manner is higher than the throwing accuracy of the second throwing manner.

[0063] In some embodiments, the second throwing method has a lower throwing accuracy than the first throwing method, i.e., the probability that the actual throwing point hits the target throwing point in the second throwing method is smaller than that in the first throwing method, thereby simulating the case where the deviation becomes larger as the throwing distance becomes larger when throwing an object in a real environment, and improving the realism of throwing the target virtual item in a virtual environment. When the throwing distance is relatively long, the terminal determines the second throwing method as the target throwing method, and always throws the target virtual item with a relatively high throwing accuracy, thereby avoiding the situation where the hit rate of the target virtual item is too high, causing the user to operate more in long-distance attack and retreat methods than in close-range operations, reducing the utilization rate of other virtual items, and lengthening the game period.

[0064] Schematically, the second input method is range input, that is, the terminal does not directly determine the target input point as the actual input point, but determines an input range according to the target input point, and determines the actual input point from the input range (for example, randomly determines one point from the input range as the actual input point).

[0065] Step 405: Inject the target virtual item into the virtual environment according to the target injection manner and the target injection point.

[0066] The terminal determines an actual input point in the virtual environment according to the target input point and a target input manner corresponding to the target input point, and inputs the target virtual item. In some embodiments, the above step 405 includes the following steps 405a to 405b:

[0067] Step 405a: Determine an actual injection point according to the target injection method and the target injection point.

[0068] The target input point is a location point selected by the user through the map display control where the user wants to activate the target virtual item, and the actual input point is not necessarily the target input point because different input methods have different input accuracy. In some embodiments, step 405a includes the following steps 1 and 2.

[0069] Step 1: In response to the target input method being the first input method, determine the target input point as the actual input point.

[0070] The first input method is an input method in which the target input point selected by the user is input as the actual input point, and therefore, when the target input method is the first input method, the terminal determines the target input point as the actual input point.

[0071] Schematically, as shown in FIG. 5, the terminal determines a target input point 502 and a target input point 503 based on the input point selection operation, and if the input distance between the target input point 502 and the first virtual object 501 is smaller than the first distance threshold, therefore, the target input method corresponding to the target input point 502 is the first input method, the terminal determines the target input point 502 as the actual input point.

[0072] Step 2: In response to the target injection method being the second injection method, determine an actual injection point based on the target injection point and the injection distance.

[0073] In some embodiments, when the target injection mode is the second injection mode, the selection of the actual injection point is related to the injection distance, and the farther the injection distance is, the smaller the probability that the actual injection point hits the target injection point, and step 2 further includes the following steps 1 and 2.

[0074] Step 1: Determine an injection area based on a target injection point and an injection distance, the injection area is centered on the target injection point, and the range of the injection area is positively correlated with the injection distance.

[0075] Although the second injection method has a lower injection accuracy, its actual injection point cannot be determined arbitrarily, but still needs to be determined based on the target injection point. In some embodiments, the terminal determines an injection area based on the target injection point and the injection distance, and thereby determines an actual injection point in the injection area, and the size of the injection area increases with the increase of the injection distance.

[0076] Schematically, the throw-in area is a circular area with the target throw-in point as its center, and the calculation formula for its radius is (x-50) / 100*S, where x is the throw-in distance and S is the scaling value. The larger the throw-in distance, the larger the radius of the throw-in area.

[0077] As shown in FIG. 5, the throw-in distance between the target throw-in point 503 and the first virtual object 501 is greater than the first distance threshold, and therefore, if the target throw-in method corresponding to the target throw-in point 503 is the second throw-in method, the terminal determines the radius R of the throw-in area based on the target throw-in distance, and thereby determines the throw-in range with the target throw-in point 503 as the center and R as the radius.

[0078] Step 2: Determine the actual injection point within the injection region.

[0079] In some embodiments, the terminal randomly determines a point within the throw-in area as the actual throw-in point, or determines a point on the edge of the throw-in area as the actual throw-in point, etc., and the embodiments of the present application are not limited thereto.

[0080] Step 405b: Launch the target virtual item towards an actual launch point in the virtual environment.

[0081] After determining the actual injection point, the terminal injects the target virtual item toward the actual injection point in the virtual environment, and activates the target virtual item at the actual injection point.

[0082] Step 406: In response to a distance between the input point designated by the input point selection operation and the first virtual object being greater than a second distance threshold, the input point selection operation is determined to be an invalid operation. The second distance threshold is greater than the first distance threshold.

[0083] Typically, the target virtual item has a fixed range, and therefore the first virtual object cannot inject the target virtual item into any position in the virtual environment, and cannot inject the target virtual item when the distance between the injection point indicated by the injection point selection operation and the first virtual object is greater than a second distance threshold.

[0084] In some embodiments, when the distance between the input point indicated by the input point selection operation and the first virtual object is greater than a second distance threshold, the terminal displays presentation information to inform the user that the input cannot be made there; or, when the distance between the input point indicated by the input point selection operation and the first virtual object is less than the second distance threshold, the terminal displays the position of the target input point in the map display control using a special mark; and when the distance between the input point indicated by the input point selection operation and the first virtual object is greater than the second distance threshold, the terminal does not make any response.

[0085] Schematically, the first distance threshold is 50m, and the second distance threshold is 500m. That is, the terminal determines the first input method as the target input method corresponding to the target input point whose input distance is shorter than 50m, determines the second input method as the target input method corresponding to the target input point whose input distance is shorter than 500m and longer than 50m, and when the distance between the input point indicated by the input point selection operation and the first virtual object is longer than 500m, determines the operation as an invalid operation.

[0086] In the embodiment of the present application, when the throw-in distance is less than the first distance threshold, the target throw-in point is thrown in as the actual throw-in point, and when the throw-in distance is greater than the first distance threshold, the throw-in area is determined according to the target throw-in point, and the actual throw-in point is determined from the throw-in area and thrown in, and the throw-in area increases with the throw-in distance. That is, the greater the throw-in distance, the lower the throw-in accuracy of the target virtual item, and by improving the diversity of the throw-in method, the number of throws for the target virtual item per unit time is increased, that is, the number of man-machine interactions per unit time is increased. At the same time, the utilization rate of the hardware resources of the terminal is improved, and the throw-in accuracy is determined according to the throw-in distance, which improves the rationality and realism of throwing the target virtual item.

[0087] In some embodiments, a user can select multiple target input points through map display control, and the terminal determines a target input method according to the input distance of each target input point, and further determines the number of items to be input according to the target input method, thereby distributing and inputting the target virtual items. Referring to FIG. 6, it shows a flowchart of a method for inputting virtual items provided by an embodiment of the present application. This embodiment is illustrated by using the method in the first terminal 110 in the implementation environment shown in FIG. 1, or the second terminal 130, or other terminals in the implementation environment, and the method includes the following steps 601 to 610.

[0088] Step 601: In response to a trigger operation on a target virtual item, the terminal determines an input point selection area in the virtual environment based on a position where a first virtual object is located.

[0089] In some embodiments, the target virtual item corresponds to an input point selection area, and the terminal needs to determine the input point selection area based on the location of the first virtual object when the target virtual item is triggered. For example, the input point selection area is a circular, rectangular, or irregularly shaped area centered on the location of the first virtual object, or the input point selection area is an area located just in front of the first virtual object, and the embodiments of the present application are not limited thereto.

[0090] Step 602: Display the map screen of the input point selection area in the map display control of the input point selection interface.

[0091] The terminal displays a map screen of the input point selection area through the map display control, so that the user can view the map screen and select a target input point from within the map display control. In some embodiments, the extent of the virtual environment corresponding to the map screen displayed in the map display control coincides with the input selection area, or the extent of the virtual environment corresponding to the map screen displayed in the map display control is larger than and includes the input selection area.

[0092] Step 603: Display the location of the second virtual object in the input point selection area through the map screen within a predetermined period of time, where the second virtual object belongs to a different camp from the first virtual object.

[0093] In order to facilitate the user to select a suitable target input point, the terminal displays the position of the second virtual object through a map screen, so that the user selects the target input point based on the position of the second virtual object. In some embodiments, the terminal displays the position of the second virtual object only within a predetermined period of time, and the position is the position of the second virtual object in the virtual environment when the terminal accepts a trigger operation for the target virtual item, and the position displayed on the map screen does not change with the movement of the second virtual object.

[0094] As shown in Fig. 7, the terminal displays the position of the first virtual object 701 through the map screen in the map display control and the position of the second virtual object 702 in the input point selection area. Schematically, after the terminal accepts the trigger operation for the target virtual item, it displays the map display control, moves and displays the scan cursor on the map screen according to a preset direction (for example, from left to right), and displays the position of the second virtual object in the map screen area scanned by the scan cursor, and cancels the display of the position of the second virtual object when the display period of the map screen reaches the preset period. Thereby, the user can quickly select the target input point based on the position of the second virtual object, and avoid the second virtual object moving to another position due to too long observation time, which causes the target virtual item to be wasted.

[0095] Step 604: In response to the number of times the input point selection operation is received being greater than n, displaying presented information, where the presented information is used to indicate that the setting of the input point has reached an upper limit, n being a positive integer, or in response to the number of times the input point selection operation is received being greater than n, determining the input point indicated by the last n input point selection operations as the target input point.

[0096] In some embodiments, the terminal can simultaneously launch target virtual items toward multiple launch points, for example, the target virtual item is a missile and the user can select multiple target launch points and have the terminal distribute the target virtual items toward the actual launch points corresponding to each target launch point.

[0097] In some embodiments, the upper limit of the input point that the terminal inputs the target virtual item once is n, that is, the user can only select a maximum of n target input points at the same time. When the number of times that the terminal accepts the input point selection operation is greater than n, the terminal updates the target input point based on the last n operations, or notifies the user that the input point setting reaches the upper limit, and allows the user to adjust the target input point again, for example, the user can delete the selected target input point through the input point deletion operation and perform the input point selection operation again, or when the number of input point selection operations reaches n, the terminal immediately inputs the target virtual item based on the n target input points, and the embodiment of the present application is not limited thereto.

[0098] Step 605: Determine a target throwing manner based on a throwing distance between the target throwing point and a position where the first virtual object is located, where different throwing manners correspond to different throwing accuracy, and the first virtual object is a virtual object that throws the target virtual item.

[0099] The specific embodiment of step 605 may refer to step 203 above, and the embodiment of this application will not be described in detail here.

[0100] Step 606: In response to there being at least two target input points, determine an item input number corresponding to each target input point.

[0101] In some embodiments, the terminal throws the target virtual items evenly, that is, the number of items thrown corresponding to each target throwing point is the same. In some embodiments, the total amount of the target virtual items in one throwing process is constant, and the terminal determines the number of items thrown at each target throwing point according to the total amount of the target virtual items and the number of target throwing points. For example, if the total amount of the target virtual items is three missiles and the number of target throwing points is three, each target throwing point corresponds to one missile. Or, the number of items thrown corresponding to each target throwing point is always the same, and the total amount of the target virtual items thrown at once may be different, for example, if the preset number of items thrown corresponding to the target throwing point is two, each target throwing point corresponds to two missiles no matter how many target throwing points there are.

[0102] In some embodiments, the total amount of the target virtual item to be input at one time is constant, and the terminal determines the number of items to be input according to the target input manner corresponding to the target input point, and step 606 further includes the following steps: A step of determining the number of items to be inserted corresponding to each target insertion point based on the target insertion method corresponding to each target insertion point in response to the target insertion points corresponding to at least two target insertion methods, wherein the number of items to be inserted is negatively correlated with the insertion accuracy corresponding to the insertion method.

[0103] The terminal determines the item input amount corresponding to each target input point based on the target input method, and the higher the input accuracy corresponding to the target input method, the smaller the item input amount. For example, the user needs to select three target input points, and when the target input methods corresponding to the three target input points are the same, the item input amount corresponding to each target input point is the same, and if the target input method corresponding to one target input point (input point a) is the first input method and the target input method corresponding to two target input points (input point b and input point c) is the second input method, the item input amount of the input point a is 50%, and the item input amounts of the input points b and c are both 25%.

[0104] Step 607: Inject the target virtual item into the virtual environment according to the target injection method and the number of items injected.

[0105] The terminal determines the actual input points according to the target input manner of each target input point, and further distributes and inputs the target virtual items to the actual input points according to the number of items input.

[0106] Step 608: In response to the target virtual item being activated, generate m sub-virtual items based on the target virtual item, where m is a positive integer.

[0107] In some embodiments, after a throwable virtual item is enabled, it generates an item fragment, and the terminal uses the item fragment as a sub-virtual item and controls the sub-virtual item to throw it twice.

[0108] In some embodiments, the number of sub-virtual items generated by the target virtual item is a fixed number, i.e., m is a fixed numerical value, or the terminal randomly determines the value of m within a certain numerical range, i.e., the number of sub-virtual items generated each time the target virtual item is activated may be different, and the embodiments of the present application are not limited thereto.

[0109] Step 609: Control the m sub virtual items to move along the preset trajectories.

[0110] In some embodiments, the terminal controls each of the m sub-virtual items to move along a corresponding preset trajectory. In some embodiments, the preset trajectory is a fixed trajectory, i.e., each time the target virtual item is activated, all the sub-virtual items move according to the same trajectory. Or, the terminal randomly determines m preset trajectories from the preset trajectories, and controls the sub-virtual items to move according to the preset trajectory. Schematically, the preset trajectory is a parabola starting from the actual input point.

[0111] Step 610: In response to the collision of the sub virtual item in the motion process, the sub virtual item is controlled to be activated at the collision point, and the item action range of the sub virtual item is smaller than the item action range of the target virtual item.

[0112] The terminal controls the sub virtual item to move along a preset trajectory, and when the sub virtual item collides during the movement process, such as with a virtual building, a second virtual object, or the ground in the virtual environment, the terminal controls the sub virtual item to be activated immediately at the collision point. In some embodiments, the item action range of the sub virtual item is smaller than the item action range of the target virtual item, for example, the action range of the target virtual item is a spherical area with a radius of 20 m centered on the actual throwing point, and when the target virtual item is activated, the attribute values ​​of the second virtual object in the area are all changed, and the sub virtual item generated after the action of the target virtual item moves according to a preset trajectory and acts twice after collision, and the item action range is a spherical area with a radius of 10 m centered on the collision point.

[0113] Schematically, the change degree of the attribute value of the second virtual object of the target virtual item and the sub virtual item is different, and the change degree of the attribute value of the sub virtual item is smaller than the change degree of the attribute value of the target virtual item. As shown in Fig. 8, after the target virtual item is activated at point A, four sub virtual items are generated, and the terminal controls the sub virtual items to move according to four preset trajectories, which collide at points B, C, D, and E, and there is one second virtual object in the item action range of the sub virtual items corresponding to points B and D, there are two second virtual objects in the item action range of the sub virtual item corresponding to point E, and there is no second virtual object in the item action range of the sub virtual item corresponding to point C.

[0114] 9 , after the target virtual item is activated at the actual input point 901, the terminal displays the special effects of the target virtual item through the virtual environment screen. In the process of generating the sub virtual item 902, the terminal controls the sub virtual item 902 to move along a preset trajectory, and after it collides at the collision point 903, the terminal controls the sub virtual item to be activated at the collision point 903.

[0115] In the embodiment of the present application, the location of the second virtual object is displayed through the map screen only within a certain period of time, and the user is encouraged to quickly select the target input point based on the location of the second virtual object, to avoid the second virtual object moving to another location due to too long observation time, which causes the waste of the target virtual item. In addition, when there are at least two target input points, the number of items input corresponding to each target input point is determined based on the target input method corresponding to each target input point, and the target virtual items are input in a distributed manner, which is different from the input method of a single fixed input point in the related art, and improves the utilization rate of the target virtual item. In addition, after the target virtual item is enabled, a sub-virtual item is controlled and generated, and the sub-virtual item is enabled again, which solves the problem that the target virtual item still cannot act on the second virtual object even if the user inputs it accurately due to the time difference between the user's selection of the target input point and the enablement of the target virtual item.

[0116] In one schematic example, the process of inserting a virtual item is shown in FIG. 10, and includes the following steps 1001 to 1012.

[0117] Step 1001: The terminal accepts a trigger operation for a target virtual item.

[0118] Step 1002: Display the map display control.

[0119] Step 1003: Determine whether to accept the input point selection operation. If yes, execute step 1004; if not, continue to display the map display control.

[0120] Step 1004: A target injection point is determined.

[0121] Step 1005: Determine whether the throw-in distance is less than the first preset distance. If yes, execute step 1006; if not, execute step 1007.

[0122] Step 1006: The first investment method is determined as the target investment method.

[0123] Step 1007: The second investment method is determined as the target investment method.

[0124] Step 1008: Determine an actual injection point according to the target injection method and the target injection point.

[0125] Step 1009: Determine whether the target virtual item is activated. If yes, execute step 1010; if not, return to step 1008.

[0126] Step 1010: Generate a sub-virtual item based on the target virtual item.

[0127] Step 1011: Determine whether the sub virtual item has collided. If yes, execute step 1012; if not, continue to control and move the sub virtual item.

[0128] Step 1012: The sub virtual item is controlled and activated at the collision point.

[0129] FIG. 11 is a structural block diagram of a virtual item input device provided by an embodiment of the present application, the device including: A display module 1101 configured to display an input point selection interface in response to a trigger operation on a target virtual item, the input point selection interface including a map display control, and the target virtual item is used to change attribute values ​​of virtual objects within an item action range; a first determination module 1102 configured to determine a target insertion point of the target virtual item in response to an insertion point selection operation on the map display control; A second determination module 1103 configured to determine a target throwing manner based on a throwing distance between the target throwing point and a position where a first virtual object is located, where different throwing manners correspond to different throwing accuracy, and the first virtual object is a virtual object that throws the target virtual item; and a throwing module 1104 configured to throw the target virtual item towards the virtual environment based on the target throwing manner and the target throwing point.

[0130] In some embodiments, the second determination module 1103 is a first determination unit configured to determine a first putting manner as the target putting manner in response to the putting distance being less than a first distance threshold; a second determination unit configured to determine a second throw-in manner as the target throw-in manner in response to the throw-in distance being greater than the first distance threshold; The first feeding method has a higher feeding accuracy than the second feeding method.

[0131] In some embodiments, the input module 1104 includes: A third determination unit configured to determine an actual investment point according to the target investment manner and the target investment point; and a first insertion unit configured to insert the target virtual item at the actual insertion point in the virtual environment.

[0132] In some embodiments, the third determining unit further comprises: In response to the target input method being the first input method, determining the target input point as the actual input point; configured to determine the actual throw-in point based on the target throw-in point and the throw-in distance in response to the target throw-in manner being the second throw-in manner.

[0133] In some embodiments, the third determining unit further comprises: A throw-in area is determined based on the target throw-in point and the throw-in distance, the throw-in area is centered on the target throw-in point, and the range of the throw-in area is positively correlated with the throw-in distance; and configured to determine said actual injection point within said injection area.

[0134] In some embodiments, the apparatus further comprises: The input point selection operation further includes a third determination module configured to determine the input point selection operation as an invalid operation in response to a distance between the input point indicated by the input point selection operation and the first virtual object being greater than a second distance threshold, the second distance threshold being greater than the first distance threshold.

[0135] In some embodiments, the display module 1101 includes: A fourth determination unit configured to determine an input point selection area in the virtual environment based on a location of the first virtual object in response to a trigger operation on the target virtual item; A first display unit configured to display a map screen of the input point selection area in the map display control of the input point selection interface; a second display unit configured to display a position of a second virtual object in the input point selection area through the map screen within a predetermined period of time, the second virtual object belonging to a different camp from the first virtual object.

[0136] In some embodiments, the first determination module 1102 is a third display unit configured to display a notification in response to the number of times the input point selection operation is received being greater than n, the notification being used to indicate that the input point setting has reached an upper limit, where n is a positive integer; or The fifth determination unit is configured to determine, in response to the number of times the input point selection operation has been received being greater than n, the input point indicated by the last n input point selection operations as the target input point, where n is a positive integer.

[0137] In some embodiments, the input module 1104 includes: a sixth determination unit configured to, in response to there being at least two of the target insertion points, determine an item insertion number corresponding to each of the target insertion points; and a second insertion unit configured to insert the target virtual item into the virtual environment according to the target insertion manner and the item insertion number.

[0138] In some embodiments, the sixth determining unit further comprises: In response to the target insertion points corresponding to at least two of the target insertion methods, the number of items inserted corresponding to each of the target insertion points is determined based on the target insertion method corresponding to each of the target insertion points, and the number of items inserted exhibits a negative correlation with the insertion accuracy corresponding to the insertion method.

[0139] In some embodiments, the apparatus further comprises: a creation module configured to create m sub-virtual items based on the target virtual item in response to the target virtual item being activated, where m is a positive integer; a first control module configured to control the m sub-virtual items to move along a preset trajectory; and a second control module configured to control the sub virtual item to activate it at a collision point in response to the sub virtual item colliding during its movement process, wherein the item action range of the sub virtual item is smaller than the item action range of the target virtual item.

[0140] As described above, in the embodiment of the present application, the target insertion method is determined based on the distance between the target insertion point and the first virtual object, and the insertion accuracy of the target virtual item is changed according to the change in the insertion distance, so that it is possible to simulate insertion methods with different insertion accuracy based on the insertion distance compared with the single insertion method in the related art, and the diversity of the insertion methods of the target virtual item is improved, thereby increasing the number of insertions of the target virtual item per unit time, i.e., increasing the number of man-machine interactions per unit time and simultaneously improving the utilization rate of the hardware resources of the terminal. In addition, since the insertion accuracy corresponding to different insertion distances is different, the insertion of the virtual item is more practical and the realism of inserting the virtual item in the virtual environment is improved.

[0141] 12, it shows a structural block diagram of a terminal 1200 provided by an embodiment of the present application. The terminal 1200 may be a portable mobile terminal, such as a smartphone, a tablet computer, a Moving Picture Experts Group Audio Layer III (MP3) player, a Moving Picture Experts Group Audio Layer IV (MP4) player, etc. The terminal 1200 may also be called other names such as user equipment, a mobile terminal, etc.

[0142] Generally, the terminal 1200 includes a processor 1201 and a memory 1202 .

[0143] The processor 1201 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. The processor 1201 may be implemented using at least one hardware form of a digital signal processing (DSP), a field-programmable gate array (FPGA), or a programmable logic array (PLA). The processor 1201 may include a main processor and a coprocessor, where the main processor is a processor used to process data under a wake-up state and is also called a central processing unit (CPU), and the coprocessor is a low-power processor used to process data under a standby state. In some embodiments, the processor 1201 is integrated with a graphics processing unit (GPU), where the GPU is used to render and draw content that needs to be displayed on the display screen. In some embodiments, the processor 1201 may further include an artificial intelligence (AI) processor, where the AI ​​processor is used to process computation operations related to machine learning.

[0144] The memory 1202 may include one or more computer-readable storage media, which may be tangible and non-transitory. The memory 1202 may include high-speed random access memory and non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage media in the memory 1202 is used to store at least one instruction that is executed by the processor 1201 to implement a method provided by an embodiment of the present application.

[0145] In some embodiments, terminal 1200 may further optionally include a peripheral interface 1203 and at least one peripheral device, including at least one of radio frequency circuitry 1204, a touch display screen 1205, a camera 1206, audio circuitry 1207, a positioning component 1208, and a power source 1209.

[0146] Those skilled in the art will appreciate that the structure shown in FIG. 12 does not constitute a limitation on terminal 1200, which may include more or fewer components than those shown, or may combine any components, or be configured employing different components.

[0147] An embodiment of the present application further provides a computer-readable storage medium, in which at least one instruction is stored, and the at least one instruction is loaded and executed by a processor to realize the method of inserting a virtual item described in each of the above embodiments.

[0148] An embodiment of the present application further provides a computer program product or a computer program, the computer program product or the computer program including computer instructions stored in a computer-readable storage medium, a processor of a computing device reading the computer instructions from the computer-readable storage medium, and the processor executing the computer instructions, such that the computing device performs the method of depositing a virtual item provided in various alternative implementations of the above aspects.

[0149] As should be appreciated by those skilled in the art, in one or more examples above, the functions described in the embodiments of the present application may be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, these functions may be stored in or transmitted as one or more instructions or codes on a computer-readable storage medium. Computer-readable storage media include computer storage media and communication media, where communication media includes any medium that facilitates the transfer of a computer program from one place to another. Storage media may be any available medium that allows a general-purpose or special-purpose computer to access it.

[0150] The above are merely optional embodiments of the present application, and are not used to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should be included within the scope of protection of the present application. [Explanation of symbols]

[0151] 110 Terminal 1 111 Application Program 112 First User 120 Servers 121 Memory 122 processors 123 User Account Database 124 Battle Service Module 125 I / O Interface 130 Terminal 2 131 Application Programs 132 Second User 301 Virtual Environment Interface 302 Target Virtual Item Control 303 Input point selection interface 304 Map Display Control 501 First Virtual Object 701 First Virtual Object 702 Second Virtual Object 902 Sub Virtual Items 903 Collision point 1101 Display module 1102 First Decision Module 1103 Second Decision Module 1104 Input module 1200 terminals 1201 Processor 1202 Memory 1203 Peripheral Device Interface 1204 Radio Frequency Circuits 1205 Touch Display Screen 1206 Camera 1207 Audio Circuit 1208 Positioning Component 1209 Power supply

Claims

1. A method for depositing a virtual item, executed by a terminal, comprising: displaying an insertion point selection interface in response to a trigger operation for a target virtual item that is inserted with a virtual object as a target, the target virtual item being used to change a hit point of the virtual object within an item action range; determining a target input point for the target virtual item in response to an input point selection operation triggered based on the input point selection interface; determining a target throw-in manner based on a throw-in distance between the target throw-in point and a location where a first virtual object among the virtual objects is located, where different throw-in distances correspond to different throw-in manners, and in response to the throw-in distance being greater than or equal to a first distance threshold, determining a second throw-in manner as the target throw-in manner; In response to the target throw-in manner being the second throw-in manner, determining an throw-in area in the virtual environment based on the target throw-in point and the throw-in distance, the throw-in area being centered on the target throw-in point, and a range of the throw-in area being positively correlated with the throw-in distance; determining an actual injection point within the injection area; depositing the target virtual item at the actual deposit point; A method comprising:

2. The step of determining a target throwing manner based on a throwing distance between the target throwing point and a position where a first virtual object is located includes: responsive to the throw-in distance being less than the first distance threshold, determining a first throw-in manner as the target throw-in manner; The method of claim 1 , wherein a dosing accuracy of the first dosing scheme is higher than a dosing accuracy of the second dosing scheme.

3. The method described in claim 2, further comprising a step of determining the target injection point as the actual injection point in response to the target injection method being the first injection method.

4. After the step of displaying an input point selection interface in response to a trigger operation on a target virtual item, the method further comprises:

3. The method according to claim 2, further comprising: determining the input point selection operation as an invalid operation in response to a distance between the input point indicated by the input point selection operation and the first virtual object being greater than a second distance threshold, the second distance threshold being greater than the first distance threshold.

5. The step of displaying an input point selection interface in response to a trigger operation on a target virtual item includes: determining an input point selection area in the virtual environment based on a location of the first virtual object in response to a trigger operation on the target virtual item; displaying a map screen of the input point selection area in a map display control of the input point selection interface; displaying a position of a second virtual object among the virtual objects in the input point selection area through the map screen within a predetermined period of time, the second virtual object belonging to a different camp from the first virtual object; The method according to any one of claims 1 to 4, comprising:

6. determining a target virtual item input point in response to an input point selection operation triggered based on the input point selection interface, displaying information in response to the number of times the input point selection operation is received being greater than n, the information being used to indicate that the input point setting has reached an upper limit, where n is a positive integer; or A method according to any one of claims 1 to 4, comprising a step of determining, in response to the number of times the input point selection operation has been received being greater than n, an input point indicated by the last n input point selection operations as the target input point.

7. The step of throwing the target virtual item into the virtual environment according to the target throwing manner and the target throwing point includes: In response to there being at least two of the target input points, determining a number of items to be input corresponding to each of the target input points; throwing the target virtual item into the virtual environment according to the target throwing method and the number of items thrown; The method of claim 6, comprising:

8. In response to the presence of at least two of the target input points, the step of determining a number of items to be input corresponding to each of the target input points comprises:

8. The method of claim 7, further comprising a step of determining the number of items to be inserted corresponding to each of the target insertion points based on the target insertion method corresponding to each of the target insertion points in response to the target insertion points corresponding to at least two of the target insertion methods, wherein the number of items to be inserted exhibits a negative correlation with the insertion accuracy corresponding to the insertion method.

9. After the step of throwing the target virtual item into a virtual environment based on the target throwing manner and the target throwing point, the method further comprises: in response to the target virtual item being activated, generating m sub-virtual items based on the target virtual item, where m is a positive integer; controlling the m sub-virtual items to move along preset trajectories; In response to the collision of the sub virtual item during the motion process, controlling the sub virtual item to activate it at a collision point, where an item action range of the sub virtual item is smaller than an item action range of the target virtual item; The method of any one of claims 1 to 4, further comprising:

10. A virtual item insertion device, the device comprising: A display module configured to display an insertion point selection interface in response to a trigger operation for a target virtual item that is inserted with a virtual object as a target, the target virtual item being used to change a hit point of the virtual object within an item action range; and a first determination module configured to determine a target input point for the target virtual item in response to an input point selection operation triggered based on the input point selection interface; a second determination module configured to determine a target throw-in manner based on a throw-in distance between the target throw-in point and a location where a first virtual object among the virtual objects is located, where different throw-in distances correspond to different throw-in manners, and in response to the throw-in distance being greater than or equal to a first distance threshold, the second determination module determines a second throw-in manner as the target throw-in manner; an input module configured to control the first virtual object to input the target virtual item into the virtual environment based on the target input method and the target input point, wherein in response to the target input method being the second input method, the input module determines an input area in the virtual environment based on the target input point and the input distance, the input area being centered on the target input point and the range of the input area being positively correlated with the input distance, determines an actual input point within the input area, and inputs the target virtual item into the actual input point; 13. An apparatus comprising:

11. A terminal, the terminal including a processor and a memory, instructions stored in the memory, the instructions being loaded and executed by the processor to realize the method for inserting a virtual item according to any one of claims 1 to 9.

12. A computer program which, when executed by a processor, implements the method for depositing a virtual item according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Virtual prop control method and device, storage medium and electronic device

    CN111330268A

  • Prop equipment method and device for virtual object, terminal and storage medium

    CN111921190A

  • Prop acquisition method and device, storage medium and electronic equipment

    CN112121426A

  • JP1973032824A

  • Game device, image processing device and image processing method

    JP2006318510A