Throwing object throwing method and device, electronic equipment and storage medium
Through the graphic user interface and quantity controls of the terminal device, users can throw multiple throwing objects at once, solving the problems of low throwing efficiency and poor accuracy in the prior art, and achieving efficient and accurate throwing effects.
Patent Information
- Application Number
- CN202411080883.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-07
- Publication Date
- 2024-11-19
AI Technical Summary
In multiplayer competitive games, multiple throwing actions are required to be repeated when throwing several identical throwing objects, resulting in low throwing efficiency and easy throwing errors, and the tactical effect of several throwing objects cannot be achieved.
The terminal device provides a graphical user interface to display the number of thrown objects owned by the target virtual character, and display the quantity control when the preset threshold is above the preset threshold. The user determines the target quantity control through touch operations, and then meets the preset conditions and throws the corresponding one operation. The number of thrown objects can improve throwing efficiency and accuracy.
Throw several throwing objects through one operation, improving throwing efficiency and accuracy, making it easier for users to control target virtual characters to throw several throwing objects, and easily achieving the tactical effect of several throwing objects.
Smart Images

Figure CN118976238A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of projectile throwing, and in particular to a projectile throwing method, device, electronic device and storage medium. Background Art
[0002] This section is intended to provide a background or context to the embodiments of the application that are recited in the claims. No description herein is admitted to be prior art by inclusion in this section.
[0003] At present, in multiplayer competitive games, there are more and more use scenarios for throwing objects. For example, in shooting games, smoke bombs (throwing objects) are tactical props with many use scenarios and are more commonly used. For example, if a teammate is knocked down by the enemy, you may need the help of smoke bombs to rescue your teammates within the enemy's field of vision, or you may also need to throw smoke bombs to escape within the enemy's field of vision. However, in the related art, when a user needs to throw several identical throwing objects, it is necessary to repeat the throwing action multiple times, which not only has a low throwing efficiency, but also is prone to throwing errors and causing the throwing to be distorted, thereby failing to achieve the tactical effect formed by several throwing objects. Summary of the invention
[0004] In view of this, the purpose of the present application is to propose a method, device, electronic device and storage medium for throwing projectiles, so as to solve or partially solve the problems in the above-mentioned background technology.
[0005] Based on the above purpose, the present application provides a method for throwing projectiles, wherein a graphical user interface is provided through a terminal device, and the graphical user interface includes a throwing control; the content displayed by the graphical user interface includes at least a target virtual character controlled by the terminal device; the method includes:
[0006] In response to a first touch operation on the throwing control, determining the target number of target throwing objects owned by the target virtual character, and when the target number is greater than a preset threshold, displaying a plurality of number controls in the graphical user interface; wherein the number controls are used to determine the throwing number corresponding to the target throwing object;
[0007] In response to determining a second touch operation of a target quantity control from the plurality of quantity controls, determining a target throwing quantity corresponding to the target quantity control, and in response to the touch operation on the target quantity control satisfying a preset condition, throwing the target throwing object based on the target throwing quantity.
[0008] Based on the same inventive concept, the exemplary embodiment of the present application further provides a device for throwing projectiles, wherein a graphical user interface is provided through a terminal device, and the graphical user interface includes a throwing control; the content displayed by the graphical user interface includes at least a target virtual character controlled by the terminal device; the device includes:
[0009] A display module, in response to a first touch operation on the throwing control, determines the target number of target throwing objects owned by the target virtual character, and displays a plurality of quantity controls in the graphical user interface when the target number is greater than a preset threshold; wherein the quantity controls are used to determine the throwing number corresponding to the target throwing object;
[0010] The second determination module, in response to determining a second touch operation of a target quantity control from the plurality of quantity controls, determines a target throwing quantity corresponding to the target quantity control, and in response to the touch operation on the target quantity control satisfying a preset condition, throws the target throwing object based on the target throwing quantity.
[0011] Based on the same inventive concept, an exemplary embodiment of the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor implements the method of throwing projectiles as described above when executing the program.
[0012] Based on the same inventive concept, an exemplary embodiment of the present application further provides a non-transitory computer-readable storage medium, which stores computer instructions for causing a computer to execute the method for throwing projectiles as described above.
[0013] Based on the same inventive concept, an exemplary embodiment of the present application further provides a computer program product, which includes a computer program. The computer program is executed by one or more processors so that the processor executes the method of throwing projectiles as described above.
[0014] As can be seen from the above, the method, device, electronic device and storage medium for throwing projectiles provided in the present application provide a graphical user interface through a terminal device, and the graphical user interface includes a throwing control; the content displayed by the graphical user interface includes at least a target virtual character controlled by the terminal device; in response to a first touch operation on the throwing control, the target number of target projectiles owned by the target virtual character is determined, and when the target number is greater than a preset threshold, a plurality of quantity controls are displayed in the graphical user interface; wherein the quantity control is used to confirm the throwing number corresponding to the target projectile; in response to a second touch operation of determining the target quantity control from the plurality of quantity controls, the target throwing number corresponding to the target quantity control is determined; in response to the touch operation on the target quantity control satisfying a preset condition, the target projectile is thrown based on the target throwing number, thereby achieving the throwing of a plurality of target projectiles through one operation, improving the efficiency of throwing a plurality of projectiles, and providing convenience for the user to control the target virtual character to throw a plurality of projectiles. At the same time, a plurality of projectiles are thrown through one operation, which makes it easier to achieve the tactical effect formed by a plurality of projectiles. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions in the present application or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0016] Figure 1 A schematic diagram of an application scenario of an embodiment of the present application;
[0017] Figure 2 A schematic diagram of a method for throwing a projectile according to an embodiment of the present application;
[0018] Figure 3 A schematic diagram of a first graphical user interface according to an embodiment of the present application;
[0019] Figure 4 is a schematic diagram of a second graphical user interface in an embodiment of the present application;
[0020] Figure 5 is a schematic diagram of a third graphical user interface in an embodiment of the present application;
[0021] Figure 6 is a schematic diagram of a fourth graphical user interface in an embodiment of the present application;
[0022] Figure 7 is a schematic diagram of a fifth graphical user interface in an embodiment of the present application;
[0023] Figure 8 is a schematic diagram of a sixth graphical user interface in an embodiment of the present application;
[0024] Fig. 9 is a schematic diagram of a seventh graphical user interface in an embodiment of the present application;
[0025] Fig.10 A schematic diagram of the structure of a device for throwing projectiles according to an embodiment of the present application;
[0026] Fig.11 A schematic diagram of the structure of a specific electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0027] The principles and spirit of the present application will be described below with reference to several exemplary embodiments. It should be understood that these embodiments are provided only to enable those skilled in the art to better understand and implement the present application, and are not intended to limit the scope of the present application in any way. On the contrary, these embodiments are provided to make the present application more thorough and complete, and to fully convey the scope of the present application to those skilled in the art.
[0028] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present disclosure should be understood by people with ordinary skills in the field to which the present disclosure belongs. The "first", "second" and similar words used in the embodiments of the present disclosure do not indicate any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing in front of the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly. In addition, in the description of this application, unless otherwise specified, the term "several" refers to two or more. The term "and / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.
[0029] According to the implementation manner of the present application, a method, device, electronic device and storage medium for throwing projectiles are proposed.
[0030] It should be understood herein that any number of elements in the drawings is for illustration rather than limitation, and any naming is only for distinction rather than having any limiting meaning.
[0031] The principles and spirit of the present application are explained in detail below with reference to several representative implementations of the present application. SUMMARY OF THE INVENTION
[0033] In the current related technologies, when a user needs to throw several identical throwing objects, the user needs to repeat the throwing action multiple times. Not only is the throwing efficiency low, but it is also easy to make throwing errors and cause the objects to be thrown in the wrong direction. For example, when throwing a smoke bomb in a game, since the smoke bomb is used in the current related technologies by single aiming and throwing, it is necessary to aim again when it needs to be thrown again. If one wants to throw continuously and accurately at a certain location, continuous operation is required. Not only is the efficiency low, but it is also easy to make throwing errors and cause the objects to be thrown in the wrong direction, thereby failing to achieve the tactical effect formed by several throwing objects.
[0034] In order to solve the above problems, the present application provides a method for throwing projectiles, which specifically includes:
[0035] In response to a first touch operation on the throwing control, the target number of target throwing objects owned by the target virtual character is determined, and when the target number is greater than a preset threshold, a plurality of quantity controls are displayed in the graphical user interface; wherein the quantity control is used to confirm the throwing number corresponding to the target throwing object; in response to a second touch operation of determining the target quantity control from the plurality of quantity controls, the target throwing number corresponding to the target quantity control is determined; in response to the touch operation on the target quantity control satisfying a preset condition, the target throwing object is thrown based on the target throwing number, thereby achieving the throwing of a plurality of target throwing objects through one operation, improving the efficiency of throwing a plurality of throwing objects, and providing convenience for the user to control the target virtual character to throw a plurality of throwing objects. At the same time, a plurality of throwing objects are thrown through one operation, which makes it easier to achieve the tactical effect formed by a plurality of throwing objects, thereby ensuring the throwing efficiency and landing accuracy of a plurality of throwing objects.
[0036] After introducing the basic principles of the present application, various non-limiting implementation methods of the present application are described in detail below.
[0037] Application Scenario Overview
[0038] In some specific application scenarios, the method for throwing projectiles of the present application can be applied to various systems involving throwing projectiles. Optionally, the system can be a game system. As an example, refer to Figure 1 , the application scenario includes at least one server 102 and at least one terminal 101. Terminal devices include but are not limited to desktop computers, mobile phones, mobile computers, tablet computers, media players, smart wearable devices, personal digital assistants (PDA) or other electronic devices that can realize the above functions. The server can be an independent physical server, or a server cluster or distributed system composed of several physical servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (content distribution network), and big data and artificial intelligence platforms. The server and the terminal can communicate through the network to realize data transmission. Among them, the network can be a wired network or a wireless network, which is not specifically limited in this application.
[0039] The server may be a server that provides various services. Specifically, the server may be used to provide background services for applications running on the terminal. Optionally, in some implementations, the method for throwing projectiles provided in the embodiment of the present application may be performed by a terminal device or a server. When executed by the server, in response to a first touch operation of a throwing control corresponding to the target projectile, the target number of target projectiles owned by the target virtual character is determined, and when the target number is greater than a preset threshold, several quantity controls are displayed in the graphical user interface; wherein, the quantity control is used to determine the throwing number corresponding to the target projectile; in response to a second touch operation of determining the target quantity control from the several quantity controls, the target throwing number corresponding to the target quantity control is determined; in response to the touch operation for the target quantity control meeting a preset condition, the target projectile is thrown based on the target throwing number. Optionally, the server may be hardware or software. When the server is hardware, it may be implemented as a distributed server cluster consisting of several servers, or it may be implemented as a single server. When the server is software, it can be implemented as several software or software modules (for example, software or software modules for providing distributed services), or it can be implemented as a single software or software module. This embodiment of the application does not specifically limit this.
[0040] Optionally, the wireless network or wired network uses standard communication technology and / or protocol. The network is usually the Internet, but it can also be any network, including but not limited to a local area network (LAN), a metropolitan area network (MAN), a wide area network (WAN), a mobile, wired or wireless network, a dedicated network or any combination of a virtual private network). In some embodiments, the data exchanged through the network is represented by technologies and / or formats including hypertext mark-up language (HTML), extensible markup language (XML), etc. In addition, conventional encryption technologies such as secure socket layer (SSL), transport layer security (TLS), virtual private network (VPN), and Internet protocol security (IPsec) can be used to encrypt all or some links. In other embodiments, customized and / or dedicated data communication technologies can also be used to replace or supplement the above data communication technologies.
[0041] The following describes the method of throwing projectiles according to the exemplary embodiment of the present application in conjunction with specific application scenarios. It should be noted that the above application scenarios are only shown to facilitate understanding of the spirit and principle of the present application, and the embodiments of the present application are not limited in this regard. On the contrary, the embodiments of the present application can be applied to any applicable scenario.
[0042] It should be understood that although Figure 2 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2 At least part of the steps may include several sub-steps or several stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0043] Exemplary Methods
[0044] refer to Figure 2 The embodiment of the present application provides a method for throwing a projectile, wherein the method provides a graphical user interface through a terminal device, wherein the graphical user interface includes a throwing control; the content displayed by the graphical user interface includes at least a target virtual character controlled by the terminal device; the method includes the following steps:
[0045] S101, in response to a first touch operation on the throwing control, determining the target number of target throwing objects owned by the target virtual character, and when the target number is greater than a preset threshold, displaying a plurality of quantity controls in the graphical user interface; wherein the quantity control is used to determine the throwing number corresponding to the target throwing object.
[0046] In specific implementation, the target throwing object can be any throwing object held by the target virtual character in the game that can be used for throwing. For example, the target throwing object can be a smoke bomb, a grenade, a flash bomb, etc. in the game. The target number of target throwing objects owned by the target virtual character is the maximum number of target throwing objects that the target virtual character can currently use for throwing. Optionally, the above target number can be determined by the number of target throwing objects in the virtual backpack corresponding to the target virtual character. Figure 3 , where the number under the smoke bomb icon in the weapon and equipment column is 3, indicating that the target number of target throwing objects owned by the current target virtual character is 3. It should be noted that the quantity controls displayed in the graphical user interface can be one or more without limitation. For example, in some embodiments, when the target number of target throwing objects owned by the target virtual character is 4, the quantity controls displayed in the graphical user interface may include: ×2, ×3 and ×4, respectively. Alternatively, in some embodiments, the user can set the maximum value of the target throwing number as needed. For example, a user sets the maximum value of the target throwing number to 3. In the above example, although the target number of target throwing objects owned by the target virtual character is 4, the quantity control corresponding to ×4 is still not displayed in the graphical user interface.
[0047] In some embodiments, when the target virtual character has multiple target throwing objects, the condition of throwing multiple target throwing objects at the same time is met. At this time, in order to better determine the number of target throwing objects that are currently to be thrown at the same time, multiple quantity controls can be displayed in the graphical user interface through a first touch operation on the throwing control corresponding to the target throwing object; wherein each quantity control represents a different throwing quantity. Figure 4, the circular controls with ×2 and ×3 on the right side of the graphical user interface represent two quantity controls, and the user can determine the number of target throwing objects that he wants to throw simultaneously by touch operations on different quantity controls. It should be noted that the above preset threshold can be set as needed and is not limited to this. Optionally, in some embodiments, the preset threshold can be set to 1, that is, when the above target number is greater than 1, several quantity controls can be displayed in the graphical user interface through the first touch operation.
[0048] It should be noted that the number of the plurality of quantity controls displayed in the graphical user interface can be determined according to the target number of the target throwing objects owned by the target virtual character. In some embodiments, considering that when the target number is 1, the condition for simultaneously throwing a plurality of throwing objects is not met, the number of the plurality of quantity controls can be set equal to the target number minus 1. Optionally, in some embodiments, the number of the plurality of quantity controls can also be set directly equal to the target number, which is not limited.
[0049] In order to accurately perform the first touch operation, in some embodiments, the first touch operation includes: a long press operation on the throwing control, a double click operation on the throwing control, a single click operation on the throwing control, etc. In this embodiment, the specific first touch operation can be set as needed, and there is no limitation on this. Optionally, in some embodiments, the click operation on the throwing control can also be directly used as the first touch operation, and there is no limitation on this.
[0050] S102, in response to determining a second touch operation of a target quantity control from the plurality of quantity controls, determining a target throwing quantity corresponding to the target quantity control, and in response to the touch operation on the target quantity control satisfying a preset condition, throwing the target throwing object based on the target throwing quantity.
[0051] In a specific implementation, after displaying several quantity controls in a graphical user interface, a target quantity control can be determined from the several quantity controls through a second touch operation, and the target throwing quantity corresponding to the target quantity control is the number of throwing objects that the current user wants to throw simultaneously. After determining the target throwing quantity, that is, knowing the number of target throwing objects currently thrown simultaneously, when the touch operation on the target quantity control meets the preset conditions, the target throwing objects are thrown based on the target throwing quantity, that is, the target throwing quantity of target throwing objects is thrown. Optionally, the above preset conditions can be set as needed, and there is no limitation on this.
[0052] It should be noted that, in some embodiments, after the target throwing object is thrown based on the target throwing number, the target number of target throwing objects owned by the target virtual character can be re-determined. If the re-determined target number is 0, the throwing control cannot be touched, that is, it can be gray. If the re-determined target number is not 0, the throwing control can be further touched, and several quantity controls can be generated again according to the re-determined target number. For example, a target virtual character currently has 4 target throwing objects. After the first throw, if all 4 target throwing objects are thrown, the throwing control can be displayed as gray, and the throwing control at this time cannot be touched. If 2 target throwing objects are thrown for the first time, after the first throw is completed, the throwing control can still be touched, and the quantity controls corresponding to ×2 and ×1 can be displayed in the graphical user interface.
[0053] In some embodiments, the preset conditions include:
[0054] The dwell time of the touch operation on the target quantity control is greater than or equal to a preset time length;
[0055] Or, the touch operation on the target quantity control ends at the location of the target quantity control. In specific implementation, in order to facilitate user operation, the preset condition can be a long press operation of the user on the target quantity control. For example, when the user long presses the target quantity control, a countdown animation can be displayed in the graphical user interface. When the countdown ends, the target throwing object is thrown according to the target throwing quantity. Optionally, the specific preset duration, that is, the countdown duration can be set as needed, and there is no limitation on this. Optionally, the above preset condition can also be that the touch operation on the target quantity control ends at the location of the target quantity control, that is, after the user slides to the target quantity control and releases his hand, the target throwing object is thrown according to the target throwing quantity.
[0056] It should be noted that, in order to further ensure the smoothness of the user's operation and reduce the user's operation time, the triggering of the preset condition in this embodiment can be a series of operations continuous with the second touch operation, refer to Figure 5 The user can first perform the first touch operation on the throwing control, such as long pressing the throwing control, and then slide along the direction of the dotted arrow to the target number control, and then release the finger to directly throw the target throwing number of throwing objects, making the entire operation process very convenient and smooth.
[0057] In some embodiments, the second touch operation is: a sliding operation continuous with the first touch operation; in response to determining the second touch operation of the target quantity control from the plurality of quantity controls, the second touch operation includes:
[0058] In response to a sliding operation in which the touch point of the first touch operation slides to the target quantity control.
[0059] In a specific implementation, in order to ensure that the user can smoothly perform the second touch operation in a short time, the second touch operation is a sliding operation continuous with the first touch operation, that is, after the user completes the first touch operation, the operating finger does not need to be released, and the finger continues to slide toward the target quantity control until it slides to a certain quantity control, which is then confirmed as the target quantity control. Figure 5 , wherein the operation of sliding along the dotted arrow is the second touch operation.
[0060] In some embodiments, other forms of second touch operations may be provided, which are not limited thereto. For example, a quantity control may be directly clicked, and the clicked quantity control may be determined as a target quantity control.
[0061] In some embodiments, the method further comprises:
[0062] In response to a third touch operation on the target throwing object, a single target throwing object is thrown.
[0063] In specific implementation, in this embodiment, the user can directly throw a single target throwing object through the third touch operation on the target throwing object to meet the user's throwing needs in different game scenarios. Optionally, the third touch operation can be set as needed, and there is no limitation on this. For example, the third touch operation can be an operation of directly clicking the throwing control, or an operation of long pressing the throwing control for more than a preset time.
[0064] In some embodiments, in response to the third touch operation on the target thrown object, throwing a single target thrown object specifically includes:
[0065] In response to a long-press operation on the throwing control, entering a throwing launch countdown;
[0066] In response to the throw launch countdown ending, a single target projectile is thrown.
[0067] In the specific implementation, in order to facilitate user operation and distinguish it from other throwing actions, when executing the third touch operation, the user can first long press the throwing control, and then enter the throwing launch countdown. Optionally, a countdown animation can be played in the graphical user interface, and then when the throwing launch countdown ends, a single target throwing object is thrown.
[0068] In some embodiments, in response to a touch operation on the target number control satisfying a preset condition, throwing the target throwing object based on the target throwing number includes:
[0069] Determining a throwing mode corresponding to the target throwing object;
[0070] In response to a second touch operation of determining a target quantity control from among the plurality of quantity controls, generating a throwing trajectory in the graphical user interface based on the throwing mode and the target throwing quantity;
[0071] In response to the touch operation on the target number control satisfying a preset condition, the target throwing object is thrown along the throwing trajectory.
[0072] In the specific implementation, in order to accurately control the throwing mode of several target projectiles, in this embodiment, it is necessary to first determine the throwing mode corresponding to the target projectile. The throwing mode can be specified by the game system by default, or it can be manually set by the user, and there is no limitation on this. After the throwing mode is determined, when a second touch operation is received to determine the target quantity control from the several quantity controls, a throwing trajectory can be generated in the graphical user interface according to the throwing mode and the target throwing quantity. This can help users better understand the movement trajectory and landing point of the target projectile, so that the user can directly adjust the throwing trajectory. After the throwing trajectory is generated, when a throwing operation for the target projectile is received, the target projectile is thrown along the generated throwing trajectory.
[0073] In some embodiments, throwing the target throwing object based on the target throwing number specifically includes:
[0074] Determining a plurality of throwing endpoints based on the target throwing number; wherein the plurality of throwing endpoints are different from the positions of the target virtual character;
[0075] The target throwing objects are thrown to the positions of the respective throwing end points corresponding to the multiple throwing end points.
[0076] In specific implementation, in the embodiment of the present application, after the target throwing number is determined, multiple throwing end points can be determined in any manner as needed. For example, multiple throwing end points can be randomly generated, or multiple throwing end points can be arranged into any shape, without limitation. It should be noted that the number of throwing midpoints is generally consistent with the target throwing number, and each throwing terminal represents a throwing position of a target throwing object. After the positions of each throwing end point are determined, the target throwing object can be thrown to the positions of each throwing end point corresponding to the multiple throwing end points.
[0077] In some embodiments, the throwing mode includes a divergent continuous throwing mode, and the throwing trajectory is a parabola; generating a throwing trajectory in the graphical user interface based on the throwing mode and the target throwing number specifically includes:
[0078] In response to determining that the throwing mode is a divergent continuous throwing mode, taking the target virtual character as the starting point, a plurality of parabolas corresponding to the target throwing quantity are generated along the line of sight direction corresponding to the target virtual character; wherein the end points of each of the parabolas are located on the same straight line perpendicular to the line of sight, and the end points are the landing points of the target throwing objects.
[0079] In specific implementation, when the throwing mode is determined to be a divergent continuous throwing mode, the generated throwing trajectory is used to scatter several target throwing objects around the line of sight. At this time, the throwing trajectory includes multiple parabolas, and the multiple parabolas all start from the target virtual character and extend along the line of sight corresponding to the target virtual character. At the same time, the end points of each parabola are located on the same straight line perpendicular to the line of sight. Such a throwing trajectory can help users form a strategic defense line in the game. Reference Figure 5 and Figure 6 , when passing Figure 5 After throwing the smoke bomb, the following throwing trajectory can be formed in the game scene: Figure 6 The smoke effect shown can be seen Figure 6 There are three piles of smoke connected together, which together form a visual barrier, which can help the target virtual character expand the range of the blocked vision as much as possible.
[0080] In some embodiments, the throwing mode includes a straight line continuous throwing mode, and the throwing trajectory is a parabola; generating a throwing trajectory in the graphical user interface based on the throwing mode and the target throwing number specifically includes:
[0081] In response to determining that the throwing mode is a straight-line continuous throwing mode, taking the target virtual character as a starting point, extending along a line of sight direction corresponding to the target virtual character to generate a parabola;
[0082] Or, in response to determining that the throwing mode is a straight line continuous throwing mode, taking the target virtual character as the starting point, extending along the line of sight corresponding to the target virtual character to generate multiple parabolas corresponding to the target throwing number; wherein the end point of each of the parabolas is located on the same straight line parallel to the line of sight, and the end point is the landing point of the target throwing object.
[0083] In specific implementation, when it is determined that the throwing mode is a straight line continuous throwing mode, the generated throwing trajectory can be a parabola, that is, through the parabola, it is possible to achieve continuous throwing of several target throwing objects to the same location, referring to Figure 7 and Figure 8, continuously throwing several smoke bombs at the same place can increase the smoke concentration at the place and better block the line of sight. In some embodiments, when the throwing mode is determined to be a straight line continuous throwing mode, the generated throwing trajectory can also include multiple parabolas, and the end points of each parabola are located on the same straight line parallel to the line of sight. When throwing the target throwing object through the throwing trajectory, it is possible to throw several target throwing objects at different distances from the target virtual character in the direction of the line of sight. For example, along the direction of the line of sight of the target virtual character, a target virtual character is thrown at 9 meters, 10 meters, and 11 meters away from the target virtual character.
[0084] In some embodiments, in order to better control the position of each target projectile and to evenly distribute multiple target projectiles, the distances between the two adjacent end points are equal.
[0085] It should be noted that, in some embodiments, when the throwing trajectory includes a plurality of parabolas, each parabola corresponds to a target throwing object. Optionally, when the target throwing objects are thrown based on the target throwing quantity, the plurality of target throwing objects can be thrown along each parabola in sequence or simultaneously, and there is no limitation on this.
[0086] In some embodiments, before generating a throwing trajectory in the graphical user interface based on the throwing pattern and the target throwing number, the method further includes:
[0087] Get the throwing type of the target throwing object;
[0088] The distance between the two adjacent end points is determined based on the throwing type.
[0089] In specific implementation, considering the different effects of different projectiles, the distance between the two adjacent endpoints can be determined according to the projectile type of the target projectile. Optionally, the corresponding relationship between the projectile type of the target projectile and the distance between the two adjacent endpoints can be set in advance as needed, and this is not limited.
[0090] In some embodiments, the graphical user interface includes a pitch adjustment control; after generating a throwing trajectory in the graphical user interface based on the throwing pattern and the target throwing number, the method further includes:
[0091] In response to a fourth touch operation on the distance adjustment control, the distance between the two adjacent end points is adjusted.
[0092] In specific implementation, in this embodiment, the distance between the two adjacent endpoints can be adjusted by a fourth touch operation. Optionally, the fourth touch operation specifically for the spacing adjustment control can be set as needed, and this is not limited. Fig. 9 A spacing adjustment control is provided on the left side of the graphical user interface. The user can perform the fourth touch operation by moving the position of the slider in the spacing adjustment control. Optionally, when the slider moves in the plus direction, the distance between the two adjacent end points can be increased, and when the slider moves in the minus direction, the distance between the two adjacent end points can be reduced.
[0093] In some embodiments, the user can directly perform an operation of zooming in or out of the screen in the graphical user interface as the third touch operation.
[0094] In some embodiments, after generating a throwing trajectory in the graphical user interface based on the throwing pattern and the target throwing number, the method further includes:
[0095] In response to a fifth touch operation of adjusting a line of sight of the target virtual character, the throwing trajectory is adjusted based on the line of sight.
[0096] During specific implementation, in this embodiment, the throwing trajectory can be controlled by adjusting the fifth touch operation of the sight line of the target virtual character. Optionally, the fifth touch operation of specifically adjusting the sight line of the target virtual character can refer to the adjustment operation of the sight line of the target virtual character in the relevant technology, and is not limited to this. For example, in some embodiments, the sight line of the target virtual character can be adjusted by sliding in a designated area of the graphical user interface, wherein the direction of the sight line adjustment corresponds to the sliding direction of the user in the designated area, for example, the user performs a right sliding operation in the upper left area of the graphical user interface, and the sight line of the target virtual character moves to the right at this time.
[0097] In some embodiments, the graphical user interface includes a throwing mode control; determining the throwing mode corresponding to the target thrown object includes:
[0098] In response to a sixth touch operation on the throwing mode control, the throwing mode corresponding to the target throwing object is determined.
[0099] In a specific implementation, a throwing mode control may be set in a graphical user interface, and then the throwing mode corresponding to the target thrown object is determined by a sixth touch operation on the throwing mode control. Figure 3 , the throwing mode control includes two parts: straight line continuous throwing and divergent continuous throwing. When the user clicks a part, the part is deepened, and it means that the current throwing mode is the throwing mode corresponding to the deepened part. For example, Figure 3In the current throwing mode, the current throwing mode is the divergent continuous throwing mode. Figure 7 In the example, the current throwing mode is a straight line continuous throwing mode. Optionally, other forms of throwing mode controls and corresponding fifth touch operations can be set as needed, and there is no limitation on this.
[0100] The method for throwing projectiles provided in the present application determines the target number of target projectiles owned by the target virtual character in response to a first touch operation on the throwing control, and when the target number is greater than a preset threshold, displays several number controls in the graphical user interface; wherein the number control is used to confirm the throwing number corresponding to the target projectile; in response to a second touch operation of determining the target number control from the several number controls, determines the target throwing number corresponding to the target number control; in response to the touch operation on the target number control satisfying a preset condition, throws the target projectile based on the target throwing number, thereby achieving the throwing of several target projectiles through one operation, improving the efficiency of throwing several projectiles, and providing convenience for users to control the target virtual character to throw several projectiles. At the same time, several projectiles are thrown through one operation, which makes it easier to achieve the tactical effect formed by several projectiles, and ensures the throwing efficiency and landing accuracy of several projectiles.
[0101] It should be noted that the method of the embodiment of the present application can be performed by a single device, such as a computer or server. The method of this embodiment can also be applied to a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or several steps in the method of the embodiment of the present application, and the multiple devices will interact with each other to complete the described method.
[0102] It should be noted that the above describes some embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0103] Exemplary Devices
[0104] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present application also provides a device for throwing projectiles. The device provides a graphical user interface through a terminal device, the graphical user interface includes a throwing control; and the content displayed by the graphical user interface at least includes a target virtual character controlled by the terminal device.
[0105] refer to Fig.10 , the device for throwing the projectile comprises:
[0106] The display module 201 determines the target number of target throwing objects owned by the target virtual character in response to the first touch operation on the throwing control, and displays a plurality of quantity controls in the graphical user interface when the target number is greater than a preset threshold; wherein the quantity controls are used to determine the throwing number corresponding to the target throwing object;
[0107] The second determination module 202, in response to determining a second touch operation of a target quantity control from the plurality of quantity controls, determines a target throwing quantity corresponding to the target quantity control, and in response to the touch operation on the target quantity control satisfying a preset condition, throws the target throwing object based on the target throwing quantity.
[0108] In some embodiments, the apparatus further comprises a response module, configured to:
[0109] In response to a third touch operation for throwing the target throwing object, a single target throwing object is thrown.
[0110] In some embodiments, the response module is specifically used to:
[0111] In response to a long-press operation on the throwing control, entering a throwing launch countdown;
[0112] In response to the throw launch countdown ending, a single target projectile is thrown.
[0113] In some embodiments, the first touch operation includes: a long press operation on the throwing control, a double click operation on the throwing control, or a single click operation on the throwing control.
[0114] In some embodiments, the second touch operation is: a sliding operation continuous with the first touch operation; and the second determination module includes a touch judgment unit for:
[0115] In response to a sliding operation in which the touch point of the first touch operation slides to the position where the target quantity control is located.
[0116] In some embodiments, the preset conditions include:
[0117] The dwell time of the touch operation on the target quantity control is greater than or equal to a preset time length;
[0118] Alternatively, the touch operation on the target quantity control ends at the location of the target quantity control.
[0119] In some embodiments, the second determining module includes:
[0120] A determination unit, which determines a throwing mode corresponding to the target throwing object;
[0121] a generating unit, in response to a second touch operation of determining a target quantity control from the plurality of quantity controls, generating a throwing trajectory in the graphical user interface based on the throwing mode and the target throwing quantity;
[0122] The throwing unit throws the target throwing object along the throwing trajectory in response to the touch operation on the target quantity control satisfying a preset condition.
[0123] In some embodiments, the second determining module is specifically configured to:
[0124] Determining a plurality of throwing endpoints based on the target throwing number; wherein the plurality of throwing endpoints are different from the positions of the target virtual character;
[0125] The target throwing objects are thrown to the positions of the respective throwing end points corresponding to the multiple throwing end points.
[0126] In some embodiments, the throwing mode includes a divergent continuous throwing mode, and the throwing trajectory is a parabola; the generating unit is specifically used to:
[0127] In response to determining that the throwing mode is a divergent continuous throwing mode, taking the target virtual character as the starting point, a plurality of parabolas corresponding to the target throwing quantity are generated along the line of sight direction corresponding to the target virtual character; wherein the end points of each of the parabolas are located on the same straight line perpendicular to the line of sight, and the end points are the landing points of the target throwing objects.
[0128] In some embodiments, the throwing mode includes a straight line continuous throwing mode, and the throwing trajectory is a parabola; the generating unit is specifically used to:
[0129] In response to determining that the throwing mode is a straight-line continuous throwing mode, taking the target virtual character as a starting point, extending along a line of sight direction corresponding to the target virtual character to generate a parabola;
[0130] Or, in response to determining that the throwing mode is a straight line continuous throwing mode, taking the target virtual character as the starting point, extending along the line of sight corresponding to the target virtual character to generate multiple parabolas corresponding to the target throwing number; wherein the end point of each of the parabolas is located on the same straight line parallel to the line of sight, and the end point is the landing point of the target throwing object.
[0131] In some embodiments, the distances between two adjacent endpoints are equal.
[0132] In some embodiments, the apparatus further comprises a distance determination module, configured to:
[0133] Get the throwing type of the target throwing object;
[0134] The distance between the two adjacent end points is determined based on the throwing type.
[0135] In some embodiments, the graphical user interface includes a spacing adjustment control; the apparatus further includes a spacing adjustment module for:
[0136] In response to a fourth touch operation on the distance adjustment control, the distance between the two adjacent end points is adjusted.
[0137] In some embodiments, the apparatus further comprises a trajectory adjustment module, configured to:
[0138] In response to a fifth touch operation of adjusting the sight line of the target virtual character, the throwing trajectory or the landing point of the target thrown object is adjusted based on the sight line.
[0139] In some embodiments, the graphical user interface includes a throwing mode control; a determination unit, specifically configured to:
[0140] In response to a sixth touch operation on the throwing mode control, the throwing mode corresponding to the target throwing object is determined.
[0141] For the convenience of description, the above device is described in terms of functions divided into various modules. Of course, when implementing the present application, the functions of each module can be implemented in the same or multiple software and / or hardware.
[0142] The device for throwing projectiles in the above-mentioned embodiment is used to implement the corresponding method for throwing projectiles in any of the above-mentioned embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be described in detail here.
[0143] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method of throwing projectiles described in any of the above-mentioned embodiments is implemented.
[0144] Fig.11A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 in the device.
[0145] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0146] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.
[0147] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.
[0148] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).
[0149] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).
[0150] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.
[0151] The electronic device of the above-mentioned embodiment is used to implement the corresponding method of throwing projectiles in any of the above-mentioned embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.
[0152] The memory 1020 stores machine-readable instructions executable by the processor 1010. When the electronic device is running, the processor 1010 communicates with the memory 1020 via the bus 1050, so that the processor 1010 executes the following instructions when running: in response to a first touch operation on the throwing control, determine the target number of target throwing objects owned by the target virtual character, and when the target number is greater than a preset threshold, display a number of quantity controls in the graphical user interface; wherein the number control is used to confirm the throwing number corresponding to the target throwing object; in response to a second touch operation to determine a target number control from the number of quantity controls, determine the target throwing number corresponding to the target number control; in response to the touch operation on the target number control satisfying a preset condition, throw the target throwing object based on the target throwing number.
[0153] In a possible implementation, in the instructions executed by the processor 1010, the method further includes: in response to a third touch operation on the target throwing object, throwing a single target throwing object.
[0154] In a possible implementation, in the instructions executed by the processor 1010, in response to the third touch operation on the target thrown object, throwing a single target thrown object specifically includes:
[0155] In response to a long-press operation on the throwing control, entering a throwing launch countdown;
[0156] In response to the throw launch countdown ending, a single target projectile is thrown.
[0157] In a possible implementation, in the instruction executed by the processor 1010, the first touch operation includes: a long press operation on the throwing control, a double-click operation on the throwing control, or a single-click operation on the throwing control.
[0158] In one possible implementation, in the instructions executed by the processor 1010, the second touch operation is: a sliding operation continuous with the first touch operation; in response to the second touch operation of determining a target quantity control from the plurality of quantity controls, including: a sliding operation in response to the touch point of the first touch operation sliding to the position of the target quantity control.
[0159] In a possible implementation, in the instruction executed by the processor 1010, the preset condition includes:
[0160] The dwell time of the touch operation on the target quantity control is greater than or equal to a preset time length;
[0161] Alternatively, the touch operation on the target quantity control ends at the location of the target quantity control.
[0162] In one possible embodiment, in the instructions executed by the processor 1010, the throwing operation is: a triggering operation continuous with the second touch operation; in response to the touch operation on the target quantity control satisfying a preset condition, throwing the target throwing object based on the target throwing quantity, including: in response to the touch point performing the sliding operation disappearing from the graphical user interface, throwing the target throwing object based on the target throwing quantity.
[0163] In one possible embodiment, in the instructions executed by the processor 1010, in response to the touch operation on the target quantity control satisfying a preset condition, the target throwing object is thrown based on the target throwing quantity, including: determining a throwing mode corresponding to the target throwing object; in response to determining a second touch operation of the target quantity control from the several quantity controls, generating a throwing trajectory in the graphical user interface based on the throwing mode and the target throwing quantity; in response to the touch operation on the target quantity control satisfying the preset condition, throwing the target throwing object along the throwing trajectory.
[0164] In a possible implementation, the instructions executed by the processor 1010, wherein the target throwing object is thrown based on the target throwing number, specifically includes:
[0165] Determining a plurality of throwing endpoints based on the target throwing number; wherein the plurality of throwing endpoints are different from the positions of the target virtual character;
[0166] The target throwing objects are thrown to the positions of the respective throwing end points corresponding to the multiple throwing end points.
[0167] In a possible implementation, in the instructions executed by the processor 1010, the throwing mode includes a divergent continuous throwing mode, and the throwing trajectory is a parabola; generating a throwing trajectory in the graphical user interface based on the throwing mode and the target throwing number specifically includes: in response to determining that the throwing mode is a divergent continuous throwing mode, taking the target virtual character as the starting point, extending along the line of sight corresponding to the target virtual character to generate multiple parabolas corresponding to the target throwing number; wherein the end points of each of the parabolas are located on the same straight line perpendicular to the line of sight, and the end points are the landing points of the target projectiles.
[0168] In a possible implementation, in the instructions executed by the processor 1010, the throwing mode includes a straight-line continuous throwing mode, and the throwing trajectory is a parabola; generating a throwing trajectory in the graphical user interface based on the throwing mode and the target throwing number specifically includes: in response to determining that the throwing mode is a straight-line continuous throwing mode, taking the target virtual character as the starting point, extending along the line of sight direction corresponding to the target virtual character to generate a parabola; or, in response to determining that the throwing mode is a straight-line continuous throwing mode, taking the target virtual character as the starting point, extending along the line of sight direction corresponding to the target virtual character to generate multiple parabolas corresponding to the target throwing number; wherein the end points of each of the parabolas are located on the same straight line parallel to the line of sight, and the end points are the landing points of the target projectiles.
[0169] In a possible implementation manner, in the instruction executed by the processor 1010, the distances between two adjacent endpoints are equal.
[0170] In one possible embodiment, in the instructions executed by the processor 1010, before generating a throwing trajectory in the graphical user interface based on the throwing mode and the target throwing number, the method also includes: obtaining the throwing type of the target throwing object; and determining the distance between the two adjacent end points based on the throwing type.
[0171] In one possible embodiment, in the instructions executed by the processor 1010, the graphical user interface includes a spacing adjustment control; after generating a throwing trajectory in the graphical user interface based on the throwing mode and the target throwing number, the method further includes: adjusting the distance between the two adjacent end points in response to a fourth touch operation on the spacing adjustment control.
[0172] In one possible embodiment, in the instructions executed by the processor 1010, after generating a throwing trajectory in the graphical user interface based on the throwing mode and the target throwing number, the method further includes: in response to a fifth touch operation of adjusting the line of sight of the target virtual character, adjusting the throwing trajectory or the landing point of the target projectile based on the line of sight.
[0173] In one possible implementation, in the instructions executed by the processor 1010, the graphical user interface includes a throwing mode control; determining the throwing mode corresponding to the target projectile includes: determining the throwing mode corresponding to the target projectile in response to a sixth touch operation on the throwing mode control.
[0174] In the above manner, when the electronic device is running, a graphical user interface of the target game is provided through the terminal device, the graphical user interface includes a game scene and a game map, and the game scene includes a target virtual character and an interactive virtual item controlled by the user; when it is determined that the target virtual character triggers an interactive mechanism for the target interactive virtual item, the traceability information of the target interactive virtual item is first obtained, and then the traceability information is saved in the item backtracking list corresponding to the target virtual character; when a selection operation for the traceability information in the item backtracking list is received, the target interactive virtual item is marked in the game map based on the traceability information, so that the traceability information of all interactive virtual items that trigger the interactive mechanism of the target virtual character can be saved in the item backtracking list corresponding to the target virtual character, so that the user can determine the location of any interactive virtual item through the item backtracking list, further improving the efficiency of the user in finding the interactive items encountered before. In addition, the item backtracking list can help users quickly locate the location of interactive virtual items and query whether there are any missing props that have not been discovered, giving users a faster and more convenient gaming experience.
[0175] Exemplary Program Products
[0176] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the method of throwing projectiles as described in any of the above embodiments.
[0177] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0178] The computer instructions stored in the storage medium of the above embodiments are used to enable the computer to execute the method of throwing projectiles as described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0179] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present application also provides a computer program product, which includes a computer program. In some embodiments, the computer program instructions can be executed by one or more processors of a computer so that the computer and / or the processor execute the method of throwing a projectile described in the above-mentioned embodiment. Corresponding to the execution subject corresponding to each step in each embodiment of the scene editing method, the processor that executes the corresponding step can belong to the corresponding execution subject.
[0180] The computer program product of the above-mentioned embodiment is used to enable the computer and / or the processor to execute the method of throwing projectiles as described in any of the above embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0181] It is understandable that before using the technical solutions of each embodiment of the present application, the type, scope of use, usage scenarios, etc. of the personal information involved will be informed to the user in an appropriate manner, and the user's authorization will be obtained.
[0182] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly remind the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can independently choose whether to provide personal information to the electronic device, application, server, storage medium or other software or hardware that performs the operation of the technical solution of the present application according to the prompt message.
[0183] As an optional but non-limiting implementation, in response to receiving the user's active request, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0184] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation method of this application. Other methods that meet relevant laws and regulations may also be applied to the implementation method of this application.
[0185] It should be understood by those skilled in the art that the embodiments of the present application can be implemented as a system, method or computer program product. Therefore, the present application can be specifically implemented in the following forms, namely: complete hardware, complete software (including firmware, resident software, microcode, etc.), or a combination of hardware and software, generally referred to herein as "circuit", "module" or "system". In addition, in some embodiments, the present application can also be implemented in the form of a computer program product in one or more computer-readable media, which contains computer-readable program code.
[0186] Any combination of one or more computer-readable media can be used. Computer-readable media can be computer-readable signal media or computer-readable storage media. Computer-readable storage media can be, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any combination of the above. More specific examples (non-exhaustive examples) of computer-readable storage media can include, for example: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device.
[0187] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0188] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0189] Computer program code for performing the operation of the present application can be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., using an Internet service provider to connect through the Internet).
[0190] It should be understood that each box in the flowchart and / or block diagram and the combination of boxes in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine, and these computer program instructions are executed by a computer or other programmable data processing device to produce a device that implements the functions / operations specified in the boxes in the flowchart and / or block diagram.
[0191] These computer program instructions may also be stored in a computer-readable medium that enables a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable medium produce a product that includes an instruction device that implements the functions / operations specified in the blocks in the flowchart and / or block diagram.
[0192] Computer program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby enabling the instructions executed on the computer or other programmable device to provide a process for implementing the functions / operations specified in the blocks in the flowchart and / or block diagram.
[0193] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Among them, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0194] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into several modules or units to be embodied.
[0195] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application (including the claims) is limited to these examples; based on the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.
[0196] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present application difficult to understand, the known power supply / ground connection with the integrated circuit (IC) chip and other components may or may not be shown in the provided drawings. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present application difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform to be implemented in the embodiments of the present application (that is, these details should be fully within the scope of understanding of those skilled in the art). In the case of elaborating specific details (e.g., circuits) to describe exemplary embodiments of the present application, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details or when these specific details are changed. Therefore, these descriptions should be considered to be illustrative rather than restrictive.
[0197] Although the present application has been described in conjunction with specific embodiments of the present application, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.
[0198] The embodiments of the present application are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the scope of protection of the present application.
Claims
1. A method for throwing projectiles, characterized in that: Providing a graphical user interface through a terminal device, the graphical user interface including a throwing control; the content displayed by the graphical user interface at least includes a target virtual character controlled by the terminal device; the method includes: In response to a first touch operation on the throwing control, determining the target number of target throwing objects owned by the target virtual character, and when the target number is greater than a preset threshold, displaying a plurality of number controls in the graphical user interface; wherein the number controls are used to determine the throwing number corresponding to the target throwing object; In response to determining a second touch operation of a target quantity control from the plurality of quantity controls, determining a target throwing quantity corresponding to the target quantity control, and in response to the touch operation on the target quantity control satisfying a preset condition, throwing the target throwing object based on the target throwing quantity.
2. The method according to claim 1, characterized in that The method further comprises: In response to a third touch operation on the target throwing object, a single target throwing object is thrown.
3. The method according to claim 2, characterized in that In response to the third touch operation on the target throwing object, throwing a single target throwing object specifically includes: In response to a long-press operation on the throwing control, entering a throwing launch countdown; In response to the throw launch countdown ending, a single target projectile is thrown.
4. The method according to claim 1, characterized in that: The first touch operation includes: a long press operation on the throwing control, a double click operation on the throwing control, or a single click operation on the throwing control.
5. The method according to claim 1, characterized in that The second touch operation is: a sliding operation continuous with the first touch operation; in response to determining the second touch operation of the target quantity control from the plurality of quantity controls, the second touch operation includes: In response to a sliding operation in which the touch point of the first touch operation slides to the position where the target quantity control is located.
6. The method according to claim 1, characterized in that The preset conditions include: The dwell time of the touch operation on the target quantity control is greater than or equal to a preset time length; Alternatively, the touch operation on the target quantity control ends at the location of the target quantity control.
7. The method according to claim 1, characterized in that In response to the touch operation on the target number control satisfying a preset condition, throwing the target throwing object based on the target throwing number, including: Determining a throwing mode corresponding to the target throwing object; In response to a second touch operation of determining a target quantity control from among the plurality of quantity controls, generating a throwing trajectory in the graphical user interface based on the throwing mode and the target throwing quantity; In response to the touch operation on the target number control satisfying a preset condition, the target throwing object is thrown along the throwing trajectory.
8. The method according to claim 1, characterized in that Throwing the target throwing object based on the target throwing number specifically includes: Determining a plurality of throwing end points based on the target throwing number; wherein the plurality of throwing end points are different from the positions of the target virtual character; The target throwing objects are thrown to the positions of the throwing end points corresponding to the plurality of throwing end points.
9. The method according to claim 7, characterized in that: The throwing mode includes a divergent continuous throwing mode, and the throwing trajectory is a parabola; generating a throwing trajectory in the graphical user interface based on the throwing mode and the target throwing number specifically includes: In response to determining that the throwing mode is a divergent continuous throwing mode, taking the target virtual character as the starting point, a plurality of parabolas corresponding to the target throwing quantity are generated along the line of sight direction corresponding to the target virtual character; wherein the end points of each of the parabolas are located on the same straight line perpendicular to the line of sight, and the end points are the landing points of the target throwing objects.
10. The method according to claim 7, characterized in that The throwing mode includes a straight line continuous throwing mode, and the throwing trajectory is a parabola; generating a throwing trajectory in the graphical user interface based on the throwing mode and the target throwing number specifically includes: In response to determining that the throwing mode is a straight-line continuous throwing mode, taking the target virtual character as a starting point, extending along a line of sight direction corresponding to the target virtual character to generate a parabola; Or, in response to determining that the throwing mode is a straight line continuous throwing mode, taking the target virtual character as the starting point, extending along the line of sight corresponding to the target virtual character to generate multiple parabolas corresponding to the target throwing number; wherein the end point of each of the parabolas is located on the same straight line parallel to the line of sight, and the distance between two adjacent end points is equal, and the end point is the landing point of the target throwing object.
11. The method according to claim 9 or 10, characterized in that: The distance between two adjacent endpoints is equal.
12. The method according to claim 11, characterized in that Before generating a throwing trajectory in the graphical user interface based on the throwing pattern and the target throwing number, the method further includes: Get the throwing type of the target throwing object; The distance between the two adjacent end points is determined based on the throwing type.
13. The method according to claim 11, characterized in that The graphical user interface includes a pitch adjustment control; after generating a throwing trajectory in the graphical user interface based on the throwing pattern and the target throwing number, the method further includes: In response to a fourth touch operation on the distance adjustment control, the distance between the two adjacent end points is adjusted.
14. The method according to claim 7, characterized in that After generating a throwing trajectory in the graphical user interface based on the throwing pattern and the target throwing number, the method further includes: In response to a fifth touch operation of adjusting the sight line of the target virtual character, the throwing trajectory or the landing point of the target thrown object is adjusted based on the sight line.
15. The method according to claim 7, characterized in that The graphical user interface includes a throwing mode control; determining the throwing mode corresponding to the target throwing object includes: In response to a sixth touch operation on the throwing mode control, the throwing mode corresponding to the target throwing object is determined.
16. A device for throwing projectiles, characterized in that: A graphical user interface is provided through a terminal device, the graphical user interface includes a throwing control; the content displayed by the graphical user interface includes at least a target virtual character controlled by the terminal device; the device includes: A display module, in response to a first touch operation on the throwing control, determines the target number of target throwing objects owned by the target virtual character, and displays a plurality of quantity controls in the graphical user interface when the target number is greater than a preset threshold; wherein the quantity controls are used to determine the throwing number corresponding to the target throwing object; The second determination module determines the target throwing quantity corresponding to the target quantity control in response to a second touch operation of determining a target quantity control from the plurality of quantity controls; and in response to the touch operation on the target quantity control satisfying a preset condition, throws the target throwing object based on the target throwing quantity.
17. An electronic device, characterized in that: The method comprises a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor implements the method according to any one of claims 1 to 15 when executing the program.
18. A non-transitory computer-readable storage medium, characterized in that: The non-transitory computer-readable storage medium stores computer instructions for causing a computer to execute the method according to any one of claims 1 to 15.
Citation Information
Cited By
Method and apparatus for capturing virtual pet, device, medium, and product
WO2026158008A1
