A game skill release method, device, computer equipment and storage medium
By detecting the end position of the skill release operation and the position of the virtual object in the game, and combining the reference angle of the polygon mesh map, adjusting the skill release angle, it solves the problem of cumbersome skill release operation and difficulty in angle control in the game, improving the game experience and Fluency in operation.
Patent Information
- Application Number
- CN202211117826.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-14
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2042-09-14
AI Technical Summary
In some battle games, when gamers release skills on a hexagonal grid-based chessboard map, they need to adjust the operating angle multiple times, which makes the operation complicated and difficult to control the accuracy of the angle, affecting the gaming experience.
By detecting the end position of the skill release operation and the relative position of the virtual object on the graphical user interface, determine the initial skill release angle and range, and adjust the target skill release angle according to the reference angle in the polygon mesh map to ensure the accuracy of skill release .
It improves the gaming experience of gamers, and enhances the smoothness and difficulty of the game by simplifying the skill release operation and improving the accuracy of angle control.
Smart Images

Figure CN115430150B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, device, computer equipment and storage medium for releasing game skills. Background Art
[0002] With the development of the Internet, a large number of different types of games have emerged to meet the daily entertainment needs of users. In some battle games, a chessboard map based on hexagonal grids is displayed. When players release skills, they need to adjust the operation angle multiple times to accurately release skills toward the target object. The operation is cumbersome and it is difficult to control the accuracy of the operation angle, which affects the player's gaming experience. Summary of the invention
[0003] The embodiments of the present application provide a game skill release method, device, computer equipment and storage medium, which can improve the gaming experience of game players.
[0004] The present application embodiment provides a game skill release method, including:
[0005] In response to a skill release operation on the graphical user interface, determining an end position of the skill release operation on the graphical user interface;
[0006] Determining an initial skill release angle and a skill release range corresponding to the skill release operation based on a relative position between the end position and the first virtual object;
[0007] Determining a target skill release angle from a plurality of reference skill release angles according to the angle size of the initial skill release angle, wherein the plurality of reference skill release angles are angles set based on polygonal meshes in the polygonal mesh map;
[0008] The first virtual object is controlled to release a skill to a target virtual object in the second virtual object based on the target skill release angle and the skill release range.
[0009] Accordingly, the embodiment of the present application further provides a game skill release device, including:
[0010] A first determining unit, configured to determine, in response to a skill release operation on the graphical user interface, an end position of the skill release operation on the graphical user interface;
[0011] A second determining unit, configured to determine an initial skill release angle and a skill release range corresponding to the skill release operation based on a relative position between the end position and the first virtual object;
[0012] A third determining unit is used to determine a target skill release angle from a plurality of reference skill release angles according to the angle of the initial skill release angle, wherein the plurality of reference skill release angles are angles set based on polygonal meshes in the polygonal mesh map;
[0013] A control unit is used to control the first virtual object to release a skill to a target virtual object in the second virtual object based on the target skill release angle and the skill release range.
[0014] In some embodiments, the second determining unit includes:
[0015] a first determining subunit, configured to determine a skill control line based on the end position and the position of the first virtual object;
[0016] A second determining subunit is used to obtain the initial skill release angle based on the angle formed by the skill control line on the graphical user interface;
[0017] The third determining subunit is used to determine the skill release range from the polygonal mesh map according to the length of the skill control line.
[0018] In some embodiments, the second determining subunit is specifically configured to:
[0019] Taking the position of the first virtual object as the origin, a plane coordinate system is determined in the graphical user interface,
[0020] The angle formed by the skill control line and the coordinate axis in the plane coordinate system is obtained to obtain the initial skill release angle.
[0021] In some embodiments, the third determining subunit is specifically configured to:
[0022] If the length of the skill control line is not less than the farthest release distance of the target skill corresponding to the skill release operation, determining the skill release range based on the farthest release distance;
[0023] If the length of the skill control line is less than the farthest release distance, the skill release range is determined based on the farthest release distance, and the skill release range is determined based on the length of the skill control line.
[0024] In some embodiments, the third determining subunit is specifically configured to:
[0025] If the length of the skill control line is not less than the farthest release distance of the target skill corresponding to the skill release operation, determining the skill release range based on the farthest release distance;
[0026] If the length of the skill control line is less than the farthest release distance, the skill release range is determined based on the farthest release distance, and the grid length of the polygonal grid is obtained; the number of polygonal grids intersected by the skill control line is determined based on the length of the skill control line and the grid length; the skill release range is obtained based on the number of polygonal grids.
[0027] In some embodiments, the third determining unit includes:
[0028] The fourth determining subunit is used to determine a reference skill release angle having the same angle size as the initial skill release angle from the multiple reference skill release angles to obtain the target skill release angle.
[0029] In some embodiments, the third determining unit includes:
[0030] The fifth determination subunit is used to determine the reference skill release angle that is closest to the initial skill release angle from the multiple reference skill release angles if there is no reference skill release angle with the same angle size as the initial skill release angle among the multiple reference skill release angles, so as to obtain the target skill release angle.
[0031] In some embodiments, the apparatus further comprises:
[0032] A display unit is used to display the skill control line based on the target skill release angle on the graphical user interface.
[0033] In some embodiments, the control unit comprises:
[0034] a sixth determining subunit, configured to determine a skill release area in the polygonal mesh map based on the position of the first virtual object, the target skill release angle, and the skill release range;
[0035] An acquisition subunit, used to acquire a second virtual object in the skill release area to obtain the target virtual object;
[0036] The control subunit is used to control the first virtual object to release the target skill corresponding to the skill release operation to the target virtual object.
[0037] Correspondingly, an embodiment of the present application also provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes any game skill release method provided in any embodiment of the present application.
[0038] Correspondingly, an embodiment of the present application also provides a storage medium, which stores multiple instructions, and the instructions are suitable for a processor to load to execute the above-mentioned game skill release method.
[0039] The embodiment of the present application, when detecting a player's skill release operation in a graphical user interface of a target game, generates a skill release angle and a skill release range according to the end position of the skill release operation in the graphical user interface and the position of a virtual object controlled by the player, then adjusts the skill release angle according to a reference skill release angle corresponding to a polygonal mesh map of the target game, releases skills to other virtual objects based on the adjusted skill release angle and skill release range, thereby assisting game players in accurately controlling the skill release angle when releasing skills in the polygonal mesh map, thereby improving the gaming experience of game players. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0041] Figure 1 A scenario diagram of a game skill release system provided in an embodiment of the present application.
[0042] Figure 2 A flowchart of a method for releasing gaming skills provided in an embodiment of the present application.
[0043] Figure 3 A schematic diagram of an application scenario of a game skill release method provided in an embodiment of the present application.
[0044] Figure 4 A schematic diagram of an application scenario of another method for releasing gaming skills provided in an embodiment of the present application.
[0045] Figure 5 A schematic diagram of an application scenario of another method for releasing gaming skills provided in an embodiment of the present application.
[0046] Figure 6 A schematic diagram of an application scenario of another method for releasing gaming skills provided in an embodiment of the present application.
[0047] Figure 7 A schematic diagram of an application scenario of another method for releasing gaming skills provided in an embodiment of the present application.
[0048] Figure 8 A schematic diagram of an application scenario of another method for releasing gaming skills provided in an embodiment of the present application.
[0049] Fig. 9 A schematic diagram of an application scenario of another method for releasing gaming skills provided in an embodiment of the present application.
[0050] Fig.10 A schematic diagram of an application scenario of another method for releasing gaming skills provided in an embodiment of the present application.
[0051] Fig.11 A flowchart of another method for releasing gaming skills provided in an embodiment of the present application.
[0052] Fig.12 A schematic diagram of an application scenario of another method for releasing gaming skills provided in an embodiment of the present application.
[0053] Fig.13 A schematic diagram of an application scenario of another method for releasing gaming skills provided in an embodiment of the present application.
[0054] Fig.14 A structural block diagram of a gaming skill release device provided in an embodiment of the present application.
[0055] Fig.15 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0056] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0057] The embodiments of the present application provide a method, device, storage medium and computer equipment for releasing game skills. Specifically, the method for releasing game skills in the embodiments of the present application can be performed by a computer device, wherein the computer device can be a terminal or a server or other device. The terminal can be a terminal device such as a smart phone, a tablet computer, a laptop computer, a touch screen, a game console, a personal computer (PC, Personal Computer), a personal digital assistant (Personal Digital Assistant, PDA), etc. The terminal can also include a client, which can be a game application client, a browser client carrying a game program, or an instant messaging client, etc. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or 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, and big data and artificial intelligence platforms.
[0058] For example, when the game skill release method is run on a terminal, the terminal device stores a game application and is used to present a virtual scene in the game screen. The terminal device is used to interact with the user through a graphical user interface, for example, by downloading and installing a game application through the terminal device and running it. The terminal device may provide the graphical user interface to the user in a variety of ways, for example, it may be rendered and displayed on a display screen of the terminal device, or the graphical user interface may be presented through holographic projection. For example, the terminal device may include a touch display screen and a processor, the touch display screen is used to present a graphical user interface and receive operation instructions generated by a user acting on the graphical user interface, the graphical user interface includes a game screen, and the processor is used to run the game, generate a graphical user interface, respond to operation instructions, and control the display of the graphical user interface on the touch display screen.
[0059] For example, when the game skill release method is run on a server, it can be a cloud game. Cloud gaming refers to a gaming method based on cloud computing. In the cloud gaming operation mode, the operating body of the game application and the game screen presentation body are separated, and the storage and operation of the game skill release method are completed on the cloud gaming server. The game screen presentation is completed on the client of the cloud gaming. The cloud gaming client is mainly used for receiving and sending game data and presenting the game screen. For example, the cloud gaming client can be a display device with data transmission function close to the user side, such as a mobile terminal, a TV, a computer, a handheld computer, a personal digital assistant, etc., but the terminal device for processing game data is a cloud gaming server in the cloud. When playing the game, the user operates the cloud gaming client to send an operation instruction to the cloud gaming server. The cloud gaming server runs the game according to the operation instruction, encodes and compresses the game screen and other data, and returns it to the cloud gaming client through the network. Finally, the cloud gaming client decodes and outputs the game screen.
[0060] See also Figure 1 , Figure 1 A scenario diagram of a game skill release system provided for an embodiment of the present application. The system may include at least one terminal, at least one server, at least one database, and a network. The terminal held by the user can be connected to the servers of different games through the network. The terminal is any device with computing hardware that can support and execute software products corresponding to the game. In addition, the terminal has one or more multi-touch screens for sensing and obtaining the input of the user through the touch or sliding operation performed at multiple points of one or more touch-controlled display screens. In addition, when the system includes multiple terminals, multiple servers, and multiple networks, different terminals can be connected to each other through different networks and different servers. The network can be a wireless network or a wired network, such as a wireless network for a wireless local area network (WLAN), a local area network (LAN), a cellular network, a 2G network, a 3G network, a 4G network, a 5G network, etc. In addition, different terminals can also use their own Bluetooth network or hotspot network to connect to other terminals or to servers, etc. For example, multiple users can be online through different terminals and thus connected and synchronized with each other through appropriate networks to support multi-player games. In addition, the system may include multiple databases, the multiple databases are coupled to different servers, and the information related to the game environment can be continuously stored in the databases when different users play the multi-player game online.
[0061] The embodiment of the present application provides a method for releasing game skills, which can be executed by a terminal or a server. The embodiment of the present application takes the execution of the method for releasing game skills by a terminal as an example for explanation. Among them, the terminal includes a touch display screen and a processor, and the touch display screen is used to present a graphical user interface and receive operation instructions generated by the user acting on the graphical user interface. When the user operates the graphical user interface through the touch display screen, the graphical user interface can control the local content of the terminal by responding to the received operation instructions, and can also control the content of the opposite server by responding to the received operation instructions. For example, the operation instructions generated by the user acting on the graphical user interface include instructions for starting a game application, and the processor is configured to start the game application after receiving the instructions for starting the game application provided by the user. In addition, the processor is configured to render and draw a graphical user interface associated with the game on the touch display screen. The touch display screen is a multi-touch sensitive screen that can sense touch or sliding operations performed simultaneously at multiple points on the screen. The user performs a touch operation on the graphical user interface using a finger, and when the graphical user interface detects the touch operation, it controls different virtual objects in the game to perform actions corresponding to the touch operation. For example, the game can be any of casual games, action games, role-playing games, strategy games, sports games, puzzle games, etc. Among them, the game may include a virtual scene of the game. In addition, the virtual scene of the game may include one or more virtual objects controlled by a user (or player), such as a virtual character. In addition, the virtual scene of the game may also include one or more obstacles, such as railings, gullies, walls, etc., to limit the movement of virtual objects, such as limiting the movement of one or more objects to a specific area in the virtual scene. Optionally, the virtual scene of the game also includes one or more elements, such as skills, scores, character health status, energy, etc., to provide help to players, provide virtual services, increase scores related to player performance, etc. In addition, the graphical user interface may also present one or more indicators to provide indication information to the player. For example, the game may include a virtual object controlled by a player and one or more other virtual objects (such as an enemy character). In one embodiment, one or more other virtual objects are controlled by other players of the game. For example, one or more other virtual objects may be controlled by a computer, such as a robot using an artificial intelligence (AI) algorithm, to achieve a man-machine battle mode. For example, a virtual object has various skills or abilities that game players use to achieve their goals. For example, a virtual object has one or more weapons, props, tools, etc. that can be used to eliminate other objects from the game. Such skills or abilities can be activated by a game player using one of a plurality of preset touch operations with a touch display screen of a terminal. The processor can be configured to present a corresponding game screen in response to an operation instruction generated by a user's touch operation.
[0062] It should be noted that Figure 1 The scene diagram of the game skill release system shown is only an example. The image processing system and scene described in the embodiment of the present application are intended to more clearly illustrate the technical solution of the embodiment of the present application, and do not constitute a limitation on the technical solution provided in the embodiment of the present application. Ordinary technicians in this field can know that with the evolution of the game skill release system and the emergence of new business scenarios, the technical solution provided in the embodiment of the present application is also applicable to similar technical problems.
[0063] Based on the above problems, the embodiments of the present application provide a first game skill release method, device, computer equipment and storage medium, which can improve the game experience of game players. The following are detailed descriptions. It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments.
[0064] An embodiment of the present application provides a method for releasing a gaming skill, which can be executed by a terminal or a server. The embodiment of the present application takes the method for releasing a gaming skill executed by a terminal as an example for explanation.
[0065] See also Figure 2 , Figure 2 A flowchart of a method for releasing a game skill provided in an embodiment of the present application is shown below.
[0066] 101. In response to a skill release operation on a graphical user interface, determine an end position of the skill release operation on the graphical user interface.
[0067] In an embodiment of the present application, a graphical user interface is provided through a terminal device, and the content displayed by the graphical user interface includes a partial game scene map of the target game, a first virtual object in the game scene map, and at least one second virtual object. The first virtual object can be a virtual object controlled by the current game player, and the second virtual object can be a virtual object controlled by other game players.
[0068] Among them, the game scene map can be a polygonal grid map, which is composed of multiple polygonal grids of the same size, that is, the game scene map is divided into multiple polygonal grids. For example, the polygonal grids can be hexagonal grids. The game scene map is divided according to the hexagonal grids to obtain a hexagonal grid map.
[0069] For example, see Figure 3 , Figure 3 A schematic diagram of an application scenario of a game skill release method provided in an embodiment of the present application. Figure 3The graphical user interface shown shows a partial game scene map of the target game, which may be a hexagonal grid map, a first virtual object controlled by the current game player, and second virtual objects controlled by other game players in the game scene map.
[0070] The skill release operation is used to control the first virtual object to release a skill to the second virtual object. In the target game, different virtual objects can release different skills, and the same virtual object can release at least one skill.
[0071] In some embodiments, the graphical user interface also provides a skill control. Figure 3 ,exist Figure 3 The graphical user interface shown also includes a skill control, which is used by the game player to perform skill release operations. The skill release operation may include multiple operations, for example, the skill release operation may be: a click operation on the skill control, or a sliding operation on the skill control, etc.
[0072] The end position of the skill release operation in the graphical user interface refers to the contact position of the graphical user interface when the player ends the skill release operation.
[0073] In one embodiment, the skill release operation may be a sliding operation. Figure 4 , Figure 4 A schematic diagram of another application scenario of a method for releasing game skills provided in an embodiment of the present application. Figure 4 In the graphical user interface shown, when a sliding operation of a player on a skill control is detected, the contact position with the graphical user interface at the end of the sliding operation is obtained as: position S, and the end position can be determined as: position S.
[0074] 102. Determine an initial skill release angle and a skill release range corresponding to the skill release operation based on the relative position of the end position and the first virtual object.
[0075] Among them, the initial skill release angle refers to the angle formed by the player's skill release operation in the graphical user interface.
[0076] In the target game, when the player performs a skill release operation, the player can control the angle and range of the skill release to release the skill on the second virtual object.
[0077] In some embodiments, in order to improve the accuracy of skill release, the step of "determining the initial skill release angle and skill release range corresponding to the skill release operation based on the relative position between the end position and the first virtual object" may include the following operations:
[0078] determining a skill control line based on the end position and the position of the first virtual object;
[0079] Based on the angle formed by the skill control line in the graphical user interface, the initial skill release angle is obtained;
[0080] The skill release range is determined from the polygonal mesh map based on the length of the skill control line.
[0081] Among them, the skill control line refers to the line connecting the end position of the skill release operation in the graphical user interface and the position of the first virtual object.
[0082] For example, see Figure 5 , Figure 5 A schematic diagram of another application scenario of a method for releasing game skills provided in an embodiment of the present application. Figure 5 In the graphical user interface shown, the end position of the player's skill release operation on the skill control in the graphical user interface can be: position S, then based on the line between the position of the first virtual object and position S, the skill control line is obtained.
[0083] Furthermore, an initial skill release angle of the skill release operation is determined based on the angle formed by the skill control line on the graphical user interface.
[0084] In some embodiments, in order to obtain the accurate angle corresponding to the skill release operation, the step of "obtaining the initial skill release angle based on the angle formed by the skill control line on the graphical user interface" may include the following operations:
[0085] Determine a plane coordinate system in the graphical user interface with the position of the first virtual object as the origin;
[0086] Get the angle formed by the skill control line and the coordinate axis in the plane coordinate system to get the initial skill release angle.
[0087] For example, see Figure 6 , Figure 6 A schematic diagram of another application scenario of a method for releasing game skills provided in an embodiment of the present application. Figure 6 In the graphical user interface shown, a plane coordinate system is constructed with the position of the first virtual object as the origin, the vertical direction of the graphical user interface as the y-axis direction, and the horizontal direction of the graphical user interface as the x-axis direction.
[0088] Specifically, the angle formed by the skill control line and the coordinate axis in the plane coordinate system can be the angle between the skill control line and the x-axis, or the angle between the skill control line and the y-axis, and different settings can be made according to different game scenarios.
[0089] For example, the initial skill release angle can be the angle between the skill control line and the y-axis, then the angle between the skill control line and the y-axis can be obtained as: angle a, and the initial skill release angle is obtained as: angle a. The angle value of the initial skill release angle can be 0 to 360 degrees, which is the angle range of one circle of the y-axis clockwise rotation.
[0090] In some embodiments, in order to ensure that the skill release range is within a reasonable range, the step of "determining the skill release range from the polygonal mesh map according to the length of the skill control line" may include the following operations:
[0091] If the length of the skill control line is not less than the farthest release distance of the target skill corresponding to the skill release operation, the skill release range is determined based on the farthest release distance;
[0092] If the length of the skill control line is less than the maximum release distance, the skill release range is determined based on the maximum release distance, and the skill release range is determined based on the length of the skill control line.
[0093] Among them, the target skill refers to the skill corresponding to the skill control used by the player to release the skill.
[0094] For example, the first virtual object currently controlled by the game player can be used to release skills in the target game including: skill A, skill B and skill C, then the graphical user interface can provide multiple skill controls, including: a first skill control, a second skill control and a third skill control. Among them, the first skill control can be used to trigger the first virtual object to release skill A, the second skill control can be used to trigger the first virtual object to release skill B, and the third skill control can be used to trigger the first virtual object to release skill C.
[0095] The skill release range refers to the distance between the skill release position and the first virtual object when the skill is released. In the embodiment of the present application, since the game scene map is a polygonal grid map, the skill release distance can be determined by the number of polygonal grids. For example, the skill release distance can be 1 grid, 2 grids, etc., and the release ranges of different skills can be different.
[0096] The farthest release distance refers to the farthest distance from the first virtual object when the first virtual object is controlled to release the target skill. For example, the farthest release distance of the target skill can be: 2 grids, which means that the farthest release position when the first virtual object is controlled to release the target skill is 2 grids away from the first virtual object.
[0097] For example, the length of the skill control line can be: 3 grids, the skill release operation is the operation of the first skill control, and the farthest release distance of skill A corresponding to the first skill control can be: 2 grids. It can be determined that the length of the skill control line is greater than the farthest release distance of the target skill, and the skill release range can be obtained based on the farthest distance: 2 grids.
[0098] For another example, the length of the skill control line can be: 1 grid, the skill release operation is the operation of the first skill control, and the farthest release distance of the skill A corresponding to the first skill control can be: 2 grids, then it can be determined that the length of the skill control line is less than the farthest release distance of the target skill. At this time, the skill release range corresponding to the skill control line is within the farthest release distance of the target skill, and the skill release range can be determined according to the length of the skill control line.
[0099] In some embodiments, in order to improve the accuracy of the skill release range, the step of "determining the skill release range based on the length of the skill control line" may include the following operations:
[0100] Get the length of the polygon grid;
[0101] Determine the number of polygonal meshes that the skill control line intersects based on the length of the skill control line and the grid length;
[0102] Get the skill release range based on the number of polygons.
[0103] The cell length of the polygon may be the length of the diagonal line inside the polygon cell.
[0104] For example, see Figure 7 , Figure 7 A schematic diagram of another application scenario of a method for releasing game skills provided in an embodiment of the present application. Figure 7 The polygonal grids constituting the polygonal grid map shown may be hexagonal grids. The diagonals of the hexagonal grids include: diagonal 1, diagonal 2 and diagonal 3, and the grid length of the hexagonal grid may be the length of diagonal 1, diagonal 2 or diagonal 3.
[0105] Furthermore, the number of polygonal meshes intersected by the skill control line is determined based on the length of the skill control line and the grid length. The ratio of the length of the skill control line to the grid length can be calculated, and the number of polygonal meshes corresponding to the skill control line can be determined based on the ratio.
[0106] For example, the length of the skill control line can be: 1 cm, the grid length of the polygonal grid can be 1 cm, and the ratio of the calculated length to the grid length can be: 1, then the number of polygonal grids corresponding to the skill control line can be determined as: 1, then the number of polygonal grids corresponding to the skill control line can be used as the skill release range, that is, the skill release range is: 1 grid.
[0107] 103. Determine the target skill release angle from multiple reference skill release angles based on the size of the initial skill release angle.
[0108] Among them, multiple reference skill release angles are angles set based on polygonal meshes in the polygonal mesh map.
[0109] For example, see Figure 8 , Figure 8 A schematic diagram of another application scenario of a method for releasing game skills provided in an embodiment of the present application. Figure 8 The hexagonal grids that constitute the polygonal grid map are shown as being arranged with the diagonal lines and the side lines of the hexagonal grids forming a plurality of reference skill release angles with the center point of the hexagonal grids, respectively. The plurality of reference skill release angles include: 0°, 30°, 60°, 90°, 120°, 150°, 180°, 210°, 240°, 270°, 300° and 330°.
[0110] In some embodiments, in order to ensure the accuracy of the angle of releasing a skill, the step of "determining a target skill release angle from multiple reference skill release angles according to the angle of the initial skill release angle" may include the following operations:
[0111] A reference skill release angle having the same angle as the initial skill release angle is determined from multiple reference skill release angles to obtain a target skill release angle.
[0112] Among them, the target skill release angle refers to the angle at which the skill is actually released after the skill control operation is completed. The target skill release angle is the reasonable release angle of the target skill corresponding to the skill release operation.
[0113] For example, the initial skill release angle may be 30°. If 30° exists among multiple reference skill release angles, 30° may be used as the target skill release angle.
[0114] In some embodiments, in order to ensure the accuracy of the angle of releasing a skill, the step of "determining a target skill release angle from multiple reference skill release angles according to the angle of the initial skill release angle" may include the following operations:
[0115] If there is no reference skill release angle with the same angle as the initial skill release angle among the multiple reference skill release angles, then the reference skill release angle with the closest angle to the initial skill release angle is determined from the multiple reference skill release angles to obtain the target skill release angle.
[0116] For example, the initial skill release angle may be: 25°, and multiple reference skill release angles include: 0°, 30°, 60°, 90°, 120°, 150°, 180°, 210°, 240°, 270°, 300° and 330°. It can be determined that 15° does not exist in the multiple reference skill release angles. At this time, in order to determine a reasonable angle for releasing the skill, the reference skill release angle that is closest to the initial skill reference angle can be selected from the multiple reference skill release angles, that is: 30°, and 30° can be used as the target skill release angle.
[0117] In some embodiments, if there is no reference skill release angle with the same angle size as the initial skill release angle among multiple reference skill release angles, and there are two reference skill release angles with angle sizes closest to the initial skill release angle among multiple reference skill release angles, then a smaller reference skill release angle can be selected from the two reference skill release angles as the target skill release angle.
[0118] For example, the initial skill release angle can be: 15°, and multiple reference skill release angles include: 0°, 30°, 60°, 90°, 120°, 150°, 180°, 210°, 240°, 270°, 300° and 330°. It can be determined that 15° does not exist in multiple reference skill release angles. Then, a reference skill release angle that is closest to the initial skill reference angle is selected from multiple reference skill release angles, including: 0° and 30°. At this time, in order to determine a reasonable angle at which the skill can be released, a reference skill release angle that is close to and smaller than the initial skill release angle, that is, 0°, can be used as the target skill release angle, etc. The embodiments of the present application are not limited to the above-mentioned methods of selecting the target skill release angle from the reference skill release angles, and can be set according to the actual game scene and the skill types of different skills to assist the accuracy of the player's skill release angle.
[0119] In some embodiments, in order to facilitate game players to view the direction of the final skill release, after the step of "determining the target skill release angle from multiple reference skill release angles according to the angle size of the initial skill release angle", the following steps may also be included:
[0120] Display skill control lines in the GUI based on the target skill cast angle.
[0121] For example, see Fig. 9 , Fig. 9 A schematic diagram of another application scenario of a method for releasing game skills provided in an embodiment of the present application. Fig. 9In the graphical user interface shown, a skill release operation of the game player on the skill control is detected. When the skill release operation is completed, the contact position of the skill release operation and the graphical user interface can be: position P, and the initial skill release angle formed by the first virtual object and position P in the graphical user interface can be: 50°, and then based on the reference skill release angle, an angle closest to the initial skill release angle of 50° is selected: 60°, and 60° is used as the target skill release angle, and then based on the distance between the first virtual object and position P, and the target skill release angle of 60°, the skill control line is displayed in the graphical user interface. The skill control line also includes a skill release vector including the skill release angle and the skill release distance.
[0122] The embodiment of the present application displays the skill control line of the target skill release angle on the graphical user interface, so that the player can clearly observe the range of the skill release, or the player can control the skill control line to modify the skill release angle or skill release distance corresponding to the skill control line to meet the different skill release requirements of the player.
[0123] 104. Control the first virtual object to release a skill to a target virtual object in the second virtual object based on a target skill release angle and a skill release range.
[0124] Among them, the skill release range refers to the position point or position area where the skill is released. The skill release range is determined as the position point or position area according to different skill types of different skills.
[0125] In some embodiments, in order to ensure effective skill release, the step of “controlling the first virtual object to release the skill to the target virtual object in the second virtual object based on the target skill release angle and skill release range” may include the following operations:
[0126] Determining a skill release area in the polygonal mesh map based on the position of the first virtual object, the target skill release angle, and the skill release range;
[0127] Acquire a second virtual object in the skill release area, and obtain a target virtual object;
[0128] The first virtual object is controlled to release a target skill corresponding to the skill release operation to the target virtual object.
[0129] The skill release area refers to the polygonal grid on the polygonal grid map through which the skill control line obtained based on the position of the first virtual object, the target skill release angle and the skill release range passes.
[0130] For example, see Fig.10 , Fig.10A schematic diagram of another application scenario of a method for releasing game skills provided in an embodiment of the present application. Fig.10 In the graphical user interface shown, a skill control line is determined according to the position of the first virtual object, the target skill release angle, and the skill release range, and the skill release area is obtained according to the polygonal grid passed by the skill control line. The second virtual objects in the skill release area corresponding to the skill control line are obtained, including: virtual object A and virtual object B. Then, the target virtual objects can be determined as: virtual object A and virtual object B, and the first virtual object is controlled to release skills to virtual object A and virtual object B.
[0131] In some embodiments, the skill release range can be a position point, and a skill release position point can be determined according to the target skill release angle and the skill release range, and the first virtual object can be controlled to release the skill to the second virtual object at the skill release position point.
[0132] Specifically, the method of controlling the first virtual object to release a skill can be set in a variety of release methods according to the skill type and the type of the second virtual object (such as our teammates, enemies, etc.), and no examples are given here.
[0133] The embodiment of the present application discloses a method for releasing a game skill, which includes: in response to a skill release operation on a graphical user interface, determining the end position of the skill release operation on the graphical user interface; determining the initial skill release angle and skill release range corresponding to the skill release operation based on the relative position of the end position and the first virtual object; determining a target skill release angle from multiple reference skill release angles according to the angle size of the initial skill release angle, wherein the multiple reference skill release angles are angles set based on polygonal meshes in a polygonal mesh map; controlling the first virtual object to release the skill to the target virtual object in the second virtual object based on the target skill release angle and skill release range. In this way, the game experience of game players in the target game can be improved.
[0134] Based on the above introduction, the following example will be used to further illustrate the game skill release method of this application. Fig.11 , Fig.11 A flowchart of another method for releasing game skills provided in an embodiment of the present application is provided. Taking the game skill release method as an example, the specific process may be as follows:
[0135] 201. The terminal displays a game interface of a target game.
[0136] In an embodiment of the present application, the game interface includes a partial game scene map of the target game, a current virtual object in the game scene map, and other virtual objects. The game scene map may be a hexagonal grid map, the current virtual object is a virtual object controlled by the current game player, and other virtual objects are virtual objects controlled by other game players. Other virtual objects may be virtual objects in the same game camp as the current virtual object and / or virtual objects in different game camps from the current virtual object.
[0137] The game interface may also provide multiple skill controls, and different skill controls are used to trigger and release different game skills. For example, the game skills of the current virtual object may include: skill A, skill B, and skill C, and the game interface may provide three skill controls, respectively used to trigger different skills of the current virtual object.
[0138] For example, see Fig.12 , Fig.12 A schematic diagram of another application scenario of a method for releasing game skills provided in an embodiment of the present application. Fig.12 In the game interface shown, a partial game scene map of the target game is displayed, and the displayed game scene map is a hexagonal grid map, and the current virtual object in the hexagonal grid map, other virtual objects include: virtual object A, virtual object B and virtual object C. The game interface also provides multiple skill controls, which can be: a first skill control, a second skill control and a third skill control from left to right, wherein the first skill control can be used to trigger skill A of the current virtual object, the second skill control can be used to trigger skill B of the current virtual object, and the third skill control can be used to trigger skill C of the current virtual object.
[0139] 202. When the terminal detects a touch operation of a game player on a target skill control, an end position of the touch operation on the game interface is obtained.
[0140] In the embodiment of the present application, the sliding operation includes but is not limited to: a click operation, a press operation, a sliding operation, etc.
[0141] For example, see Fig.13 , Fig.13 A schematic diagram of an application scenario of another method for releasing game skills provided in an embodiment of the present application, in Fig.13 In the game interface shown, a sliding operation of the game player on the second skill control is detected, and the sliding end position of the sliding operation in the game interface can be obtained as: Q point.
[0142] 203. The terminal determines an initial skill release angle and an initial skill release range according to a relative position between the end position and the current virtual object.
[0143] Among them, the initial skill release angle is the angle generated in the game interface according to the touch operation of the target skill control, and the initial skill release range can be determined according to the distance between the end position of the touch operation and the position of the current virtual object.
[0144] Specifically, the method of determining the initial skill release angle and the initial skill release range according to the relative position of the end position and the current virtual object can be referred to the above embodiment, and will not be elaborated here.
[0145] 204. The terminal adjusts the initial skill release angle according to the preset multiple reference skill release angles to obtain a target skill release angle.
[0146] The multiple reference skill release angles refer to the supported release angles when releasing skills in the target game. The reference skill release angles can be set according to the polygonal grids of the polygonal grid map. For specific descriptions, please refer to the above embodiments, which will not be described in detail here.
[0147] For example, the initial skill release angle may be: 65°, and multiple reference skill release angles include: 0°, 30°, 60°, 90°, 120°, 150°, 180°, 210°, 240°, 270°, 300° and 330°. Then, the angle closest to the initial skill release angle, i.e. 60°, may be selected from the reference skill release angles, and the target skill release angle may be determined to be: 60°, and the initial skill release angle may be adjusted to: 60°.
[0148] 205. The terminal determines the target skill release range according to the initial skill release range and the skill release range of the target skill corresponding to the target skill control.
[0149] Specifically, the initial skill release range is compared with the farthest skill release range of the target skill corresponding to the target skill control.
[0150] If the initial skill release range is greater than or equal to the farthest skill release range of the target skill corresponding to the target skill control, the farthest skill release range of the target skill can be used as the target skill release range.
[0151] If the initial skill release range is smaller than the farthest skill release range of the target skill corresponding to the target skill control, the initial skill release range can be used as the target skill release range.
[0152] 206. The terminal controls the current virtual object to release skills to other virtual objects according to the target skill release angle and the target skill release range.
[0153] After determining the target skill release angle and the target skill release range, determine the skill release area in the game scene according to the position of the current virtual object, the target skill release angle and the target skill release range, and control other virtual objects in the skill release area of the current virtual object to release the target skill of the target skill control to complete the skill release operation.
[0154] An embodiment of the present application discloses a method for releasing game skills, which includes: a terminal displays a game interface of a target game, and when a touch operation of a game player on a target skill control is detected, an end position of the touch operation on the game interface is obtained, an initial skill release angle and an initial skill release range are determined according to a relative position of the end position and a current virtual object, the initial skill release angle is adjusted according to a plurality of preset reference skill release angles to obtain a target skill release angle, a target skill release range is determined according to the initial skill release range and a skill release range of the target skill corresponding to the target skill control, and the current virtual object is controlled to release skills to other virtual objects according to the target skill release angle and the target skill release range, so as to improve the game experience of the game player.
[0155] In order to better implement the game skill release method provided in the embodiment of the present application, the embodiment of the present application also provides a game skill release device based on the above game skill release method. The meaning of the terms is the same as in the above game skill release method, and the specific implementation details can refer to the description in the method embodiment.
[0156] See also Fig.14 , Fig.14 A structural block diagram of a game skill release device provided in an embodiment of the present application, the device comprising:
[0157] A first determining unit 301 is used to determine an end position of the skill release operation on the graphical user interface in response to the skill release operation on the graphical user interface;
[0158] A second determining unit 302 is used to determine an initial skill release angle and a skill release range corresponding to the skill release operation based on a relative position between the end position and the first virtual object;
[0159] A third determining unit 303 is used to determine a target skill release angle from a plurality of reference skill release angles according to the angle of the initial skill release angle, wherein the plurality of reference skill release angles are angles set based on polygonal meshes in the polygonal mesh map;
[0160] The control unit 304 is used to control the first virtual object to release a skill to a target virtual object in the second virtual object based on the target skill release angle and the skill release range.
[0161] In some embodiments, the second determining unit 302 may include:
[0162] a first determining subunit, configured to determine a skill control line based on the end position and the position of the first virtual object;
[0163] A second determining subunit is used to obtain the initial skill release angle based on the angle formed by the skill control line on the graphical user interface;
[0164] The third determining subunit is used to determine the skill release range from the polygonal mesh map according to the length of the skill control line.
[0165] In some embodiments, the second determining subunit may be specifically used for:
[0166] Determine a plane coordinate system in the graphical user interface with the position of the first virtual object as an origin;
[0167] The angle formed by the skill control line and the coordinate axis in the plane coordinate system is obtained to obtain the initial skill release angle.
[0168] In some embodiments, the third determining subunit may be specifically used for:
[0169] If the length of the skill control line is not less than the farthest release distance of the target skill corresponding to the skill release operation, determining the skill release range based on the farthest release distance;
[0170] If the length of the skill control line is less than the farthest release distance, the skill release range is determined based on the farthest release distance, and the skill release range is determined based on the length of the skill control line.
[0171] In some embodiments, the third determining subunit may be specifically used for:
[0172] If the length of the skill control line is not less than the farthest release distance of the target skill corresponding to the skill release operation, determining the skill release range based on the farthest release distance;
[0173] If the length of the skill control line is less than the farthest release distance, the skill release range is determined based on the farthest release distance, and the grid length of the polygonal grid is obtained; the number of polygonal grids intersected by the skill control line is determined based on the length of the skill control line and the grid length; the skill release range is obtained based on the number of polygonal grids.
[0174] In some embodiments, the third determining unit 303 may include:
[0175] The fourth determining subunit is used to determine a reference skill release angle having the same angle size as the initial skill release angle from the multiple reference skill release angles to obtain the target skill release angle.
[0176] In some embodiments, the third determining unit 303 may include:
[0177] The fifth determination subunit is used to determine the reference skill release angle that is closest to the initial skill release angle from the multiple reference skill release angles if there is no reference skill release angle with the same angle size as the initial skill release angle among the multiple reference skill release angles, so as to obtain the target skill release angle.
[0178] In some embodiments, the apparatus may further include:
[0179] A display unit is used to display the skill control line based on the target skill release angle on the graphical user interface.
[0180] In some embodiments, the control unit 304 may include:
[0181] a sixth determining subunit, configured to determine a skill release area in the polygonal mesh map based on the position of the first virtual object, the target skill release angle, and the skill release range;
[0182] An acquisition subunit, used to acquire a second virtual object in the skill release area to obtain the target virtual object;
[0183] The control subunit is used to control the first virtual object to release the target skill corresponding to the skill release operation to the target virtual object.
[0184] The embodiment of the present application discloses a game skill release device, wherein the first determination unit 301 responds to the skill release operation on the graphical user interface to determine the end position of the skill release operation on the graphical user interface, the second determination unit 302 determines the initial skill release angle and skill release range corresponding to the skill release operation based on the relative position of the end position and the first virtual object, the third determination unit 303 determines the target skill release angle from multiple reference skill release angles according to the angle size of the initial skill release angle, wherein the multiple reference skill release angles are angles set based on the polygonal mesh in the polygonal mesh map, and the control unit 304 controls the first virtual object to release the skill to the target virtual object in the second virtual object based on the target skill release angle and the skill release range. In this way, the game experience of game players can be improved.
[0185] Accordingly, the embodiment of the present application also provides a computer device, which may be a terminal. Fig.15 As shown, Fig.15 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. The computer device 600 includes a processor 601 having one or more processing cores, a memory 602 having one or more computer-readable storage media, and a computer program stored in the memory 602 and executable on the processor. The processor 601 is electrically connected to the memory 602. It will be understood by those skilled in the art that the computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0186] The processor 601 is the control center of the computer device 600. It uses various interfaces and lines to connect the various parts of the entire computer device 600, executes various functions of the computer device 600 and processes data by running or loading software programs and / or modules stored in the memory 602, and calling data stored in the memory 602, thereby monitoring the computer device 600 as a whole.
[0187] In the embodiment of the present application, the processor 601 in the computer device 600 will load instructions corresponding to the processes of one or more application programs into the memory 602 according to the following steps, and the processor 601 will run the application programs stored in the memory 602 to implement various functions:
[0188] In response to a skill release operation on the graphical user interface, determining an end position of the skill release operation on the graphical user interface;
[0189] Determine an initial skill release angle and a skill release range corresponding to the skill release operation based on the relative position of the end position and the first virtual object;
[0190] Determining a target skill release angle from a plurality of reference skill release angles according to the angle size of the initial skill release angle, wherein the plurality of reference skill release angles are angles set based on polygonal meshes in a polygonal mesh map;
[0191] The first virtual object is controlled to release a skill to a target virtual object in the second virtual object based on a target skill release angle and a skill release range.
[0192] In some embodiments, determining an initial skill release angle and a skill release range corresponding to the skill release operation based on the relative position between the end position and the first virtual object includes:
[0193] determining a skill control line based on the end position and the position of the first virtual object;
[0194] Based on the angle formed by the skill control line in the graphical user interface, the initial skill release angle is obtained;
[0195] The skill release range is determined from the polygonal mesh map based on the length of the skill control line.
[0196] In some embodiments, obtaining an initial skill release angle based on an angle formed by a skill control line on a graphical user interface includes:
[0197] Determine a plane coordinate system in the graphical user interface with the position of the first virtual object as the origin;
[0198] Get the angle formed by the skill control line and the coordinate axis in the plane coordinate system to get the initial skill release angle.
[0199] In some embodiments, determining a skill release range from a polygonal mesh map according to the length of the skill control line includes:
[0200] If the length of the skill control line is not less than the farthest release distance of the target skill corresponding to the skill release operation, the skill release range is determined based on the farthest release distance;
[0201] If the length of the skill control line is less than the maximum release distance, the skill release range is determined based on the maximum release distance, and the skill release range is determined based on the length of the skill control line.
[0202] In some embodiments, the polygon mesh map is composed of a plurality of polygon meshes, and the plurality of polygon meshes are of the same size;
[0203] The skill release range is determined based on the length of the skill control line, including:
[0204] Get the grid length of the polygon mesh;
[0205] Determine the number of polygonal meshes that the skill control line intersects based on the length of the skill control line and the grid length;
[0206] Based on the number of polygon meshes, the skill release range is obtained.
[0207] In some embodiments, determining a target skill release angle from a plurality of reference skill release angles according to the angle of the initial skill release angle includes:
[0208] A reference skill release angle having the same angle as the initial skill release angle is determined from multiple reference skill release angles to obtain a target skill release angle.
[0209] In some embodiments, determining a target skill release angle from a plurality of reference skill release angles according to the angle of the initial skill release angle includes:
[0210] If there is no reference skill release angle with the same angle as the initial skill release angle among the multiple reference skill release angles, then the reference skill release angle with the closest angle to the initial skill release angle is determined from the multiple reference skill release angles to obtain the target skill release angle.
[0211] In some embodiments, after determining the target skill release angle from a plurality of reference skill release angles according to the angle size of the initial skill release angle, the method further includes:
[0212] Display skill control lines in the GUI based on the target skill cast angle.
[0213] In some embodiments, controlling the first virtual object to release a skill to a target virtual object in the second virtual object based on a target skill release angle and a skill release range includes:
[0214] Determining a skill release area in the polygonal mesh map based on the position of the first virtual object, the target skill release angle, and the skill release range;
[0215] Acquire a second virtual object in the skill release area, and obtain a target virtual object;
[0216] The first virtual object is controlled to release a target skill corresponding to the skill release operation to the target virtual object.
[0217] The present application scheme generates a skill release angle and a skill release range according to the end position of the skill release operation in the graphical user interface and the position of the virtual object controlled by the player when detecting the skill release operation of the player in the graphical user interface of the target game, and then adjusts the skill release angle according to the reference skill release angle corresponding to the polygonal mesh map of the target game, and releases skills to other virtual objects based on the adjusted skill release angle and skill release range, thereby assisting game players in accurately controlling the skill release angle when releasing skills in the polygonal mesh map, thereby improving the gaming experience of game players.
[0218] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0219] Optional, such as Fig.15 As shown, the computer device 600 further includes: a touch screen 603, a radio frequency circuit 604, an audio circuit 605, an input unit 606, and a power supply 607. The processor 601 is electrically connected to the touch screen 603, the radio frequency circuit 604, the audio circuit 605, the input unit 606, and the power supply 607, respectively. Those skilled in the art can understand that Fig.15The computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0220] The touch display screen 603 can be used to display a graphical user interface and receive operation instructions generated by the user acting on the graphical user interface. The touch display screen 603 may include a display panel and a touch panel. Among them, the display panel may be used to display information input by the user or information provided to the user and various graphical user interfaces of the computer device, and these graphical user interfaces may be composed of graphics, text, icons, videos and any combination thereof. Optionally, the display panel may be configured in the form of a liquid crystal display (LCD, Liquid Crystal Display), an organic light emitting diode (OLED, Organic Light-EmittingDiode) and the like. The touch panel may be used to collect the user's touch operation on or near it (such as the user using any suitable object or attachment such as a finger, a stylus, etc. on the touch panel or near the touch panel), and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Optionally, the touch panel may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 601, and can receive the command sent by the processor 601 and execute it. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it is transmitted to the processor 601 to determine the type of touch event, and then the processor 601 provides a corresponding visual output on the display panel according to the type of touch event. In an embodiment of the present application, the touch panel and the display panel can be integrated into the touch display screen 603 to realize the input and output functions. However, in some embodiments, the touch panel and the touch panel can be used as two independent components to realize the input and output functions. That is, the touch display screen 603 can also be used as a part of the input unit 606 to realize the input function.
[0221] The radio frequency circuit 604 may be used to send and receive radio frequency signals, so as to establish wireless communication with a network device or other computer device through wireless communication, and to send and receive signals between the network device or other computer device.
[0222] The audio circuit 605 can be used to provide an audio interface between the user and the computer device through a speaker and a microphone. The audio circuit 605 can transmit the electrical signal converted from the received audio data to the speaker, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 605 and converted into audio data, and then the audio data is output to the processor 601 for processing, and then sent to another computer device through the radio frequency circuit 604, or the audio data is output to the memory 602 for further processing. The audio circuit 605 may also include an earplug jack to provide communication between an external headset and the computer device.
[0223] The input unit 606 may be used to receive input numbers, character information or user feature information (such as fingerprint, iris, facial information, etc.), and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0224] The power supply 607 is used to supply power to various components of the computer device 600. Optionally, the power supply 607 can be logically connected to the processor 601 through a power management system, so that the power management system can manage charging, discharging, and power consumption. The power supply 607 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0225] although Fig.15 Not shown, the computer device 600 may also include a camera, a sensor, a wireless fidelity module, a Bluetooth module, etc., which will not be described in detail here.
[0226] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0227] As can be seen from the above, the computer device provided by this embodiment can determine the end position of the skill release operation on the graphical user interface in response to the skill release operation on the graphical user interface; determine the initial skill release angle and the skill release range corresponding to the skill release operation based on the relative position of the end position and the first virtual object; determine the target skill release angle from multiple reference skill release angles according to the angle size of the initial skill release angle, wherein the multiple reference skill release angles are angles set based on the polygonal mesh in the polygonal mesh map; control the first virtual object to release the skill to the target virtual object in the second virtual object based on the target skill release angle and the skill release range.
[0228] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0229] To this end, an embodiment of the present application provides a computer-readable storage medium, in which multiple computer programs are stored, and the computer program can be loaded by a processor to execute the steps in any one of the game skill release methods provided in the embodiment of the present application. For example, the computer program can execute the following steps:
[0230] In response to a skill release operation on the graphical user interface, determining an end position of the skill release operation on the graphical user interface;
[0231] Determine an initial skill release angle and a skill release range corresponding to the skill release operation based on the relative position of the end position and the first virtual object;
[0232] Determining a target skill release angle from a plurality of reference skill release angles according to the angle size of the initial skill release angle, wherein the plurality of reference skill release angles are angles set based on polygonal meshes in a polygonal mesh map;
[0233] The first virtual object is controlled to release a skill to a target virtual object in the second virtual object based on a target skill release angle and a skill release range.
[0234] In some embodiments, determining an initial skill release angle and a skill release range corresponding to the skill release operation based on the relative position between the end position and the first virtual object includes:
[0235] determining a skill control line based on the end position and the position of the first virtual object;
[0236] Based on the angle formed by the skill control line in the graphical user interface, the initial skill release angle is obtained;
[0237] The skill release range is determined from the polygonal mesh map based on the length of the skill control line.
[0238] In some embodiments, obtaining an initial skill release angle based on an angle formed by a skill control line on a graphical user interface includes:
[0239] Determine a plane coordinate system in the graphical user interface with the position of the first virtual object as the origin;
[0240] Get the angle formed by the skill control line and the coordinate axis in the plane coordinate system to get the initial skill release angle.
[0241] In some embodiments, determining a skill release range from a polygonal mesh map according to the length of the skill control line includes:
[0242] If the length of the skill control line is not less than the farthest release distance of the target skill corresponding to the skill release operation, the skill release range is determined based on the farthest release distance;
[0243] If the length of the skill control line is less than the maximum release distance, the skill release range is determined based on the maximum release distance, and the skill release range is determined based on the length of the skill control line.
[0244] In some embodiments, the polygon mesh map is composed of a plurality of polygon meshes, and the plurality of polygon meshes are of the same size;
[0245] The skill release range is determined based on the length of the skill control line, including:
[0246] Get the grid length of the polygon mesh;
[0247] Determine the number of polygonal meshes that the skill control line intersects based on the length of the skill control line and the grid length;
[0248] Based on the number of polygon meshes, the skill release range is obtained.
[0249] In some embodiments, determining a target skill release angle from a plurality of reference skill release angles according to the angle of the initial skill release angle includes:
[0250] A reference skill release angle having the same angle as the initial skill release angle is determined from multiple reference skill release angles to obtain a target skill release angle.
[0251] In some embodiments, determining a target skill release angle from a plurality of reference skill release angles according to the angle of the initial skill release angle includes:
[0252] If there is no reference skill release angle with the same angle as the initial skill release angle among the multiple reference skill release angles, then the reference skill release angle with the closest angle to the initial skill release angle is determined from the multiple reference skill release angles to obtain the target skill release angle.
[0253] In some embodiments, after determining the target skill release angle from a plurality of reference skill release angles according to the angle size of the initial skill release angle, the method further includes:
[0254] Display skill control lines in the GUI based on the target skill cast angle.
[0255] In some embodiments, controlling the first virtual object to release a skill to a target virtual object in the second virtual object based on a target skill release angle and a skill release range includes:
[0256] Determining a skill release area in the polygonal mesh map based on the position of the first virtual object, the target skill release angle, and the skill release range;
[0257] Acquire a second virtual object in the skill release area, and obtain a target virtual object;
[0258] The first virtual object is controlled to release a target skill corresponding to the skill release operation to the target virtual object.
[0259] The present application scheme generates a skill release angle and a skill release range according to the end position of the skill release operation in the graphical user interface and the position of the virtual object controlled by the player when detecting the skill release operation of the player in the graphical user interface of the target game, and then adjusts the skill release angle according to the reference skill release angle corresponding to the polygonal mesh map of the target game, and releases skills to other virtual objects based on the adjusted skill release angle and skill release range, thereby assisting game players in accurately controlling the skill release angle when releasing skills in the polygonal mesh map, thereby improving the gaming experience of game players.
[0260] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0261] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0262] Since the computer program stored in the storage medium can execute the steps in any one of the game skill release methods provided in the embodiments of the present application, the beneficial effects that can be achieved by any one of the game skill release methods provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0263] The above is a detailed introduction to a game skill release method, device, storage medium and computer equipment provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for releasing game skills, characterized in that: A graphical user interface is provided through a terminal device, wherein the content displayed by the graphical user interface includes a part of a game scene map, a first virtual object in the game scene map, and at least one second virtual object, wherein the first virtual object is a virtual object controlled by a current game player, and the game scene map is a polygonal mesh map, and the method includes: In response to a skill release operation on the graphical user interface, determining an end position of the skill release operation on the graphical user interface; Determining an initial skill release angle and a skill release range corresponding to the skill release operation based on a relative position between the end position and the first virtual object; Determining a target skill release angle from a plurality of reference skill release angles according to the angle of the initial skill release angle, wherein the plurality of reference skill release angles are angles formed by a diagonal line and a line connecting opposite sides of a polygonal mesh in the polygonal mesh map and a center point of the polygonal mesh; The first virtual object is controlled to release a skill to a target virtual object in the second virtual object based on the target skill release angle and the skill release range.
2. The method according to claim 1, characterized in that The determining, based on the relative position between the end position and the first virtual object, an initial skill release angle and a skill release range corresponding to the skill release operation includes: Determining a skill control line based on the end position and the position of the first virtual object; Based on the angle formed by the skill control line on the graphical user interface, the initial skill release angle is obtained; The skill release range is determined from the polygonal mesh map according to the length of the skill control line.
3. The method according to claim 2, characterized in that The obtaining the initial skill release angle based on the angle formed by the skill control line on the graphical user interface includes: Taking the position of the first virtual object as the origin, a plane coordinate system is determined in the graphical user interface, The angle formed by the skill control line and the coordinate axis in the plane coordinate system is obtained to obtain the initial skill release angle.
4. The method according to claim 2, characterized in that: The determining the skill release range from the polygonal mesh map according to the length of the skill control line includes: If the length of the skill control line is not less than the farthest release distance of the target skill corresponding to the skill release operation, determining the skill release range based on the farthest release distance; If the length of the skill control line is less than the maximum release distance, the skill release range is determined based on the length of the skill control line.
5. The method according to claim 4, characterized in that The polygonal grid map is composed of a plurality of polygonal grids, and each polygonal grid has the same size; The determining the skill release range based on the length of the skill control line includes: Obtaining the cell length of the polygonal cell; Determine the number of polygonal meshes intersected by the skill control line based on the length of the skill control line and the grid length; The skill release range is obtained based on the number of polygonal grids.
6. The method according to claim 1, characterized in that The step of determining a target skill release angle from a plurality of reference skill release angles according to the angle of the initial skill release angle comprises: A reference skill release angle having the same angle as the initial skill release angle is determined from the multiple reference skill release angles to obtain the target skill release angle.
7. The method according to claim 1, characterized in that The step of determining a target skill release angle from a plurality of reference skill release angles according to the angle of the initial skill release angle comprises: If there is no reference skill release angle with the same angle size as the initial skill release angle among the multiple reference skill release angles, then the reference skill release angle with the closest angle size to the initial skill release angle is determined from the multiple reference skill release angles to obtain the target skill release angle.
8. The method according to any one of claims 5 to 7, characterized in that: After determining the target skill release angle from a plurality of reference skill release angles according to the angle size of the initial skill release angle, the method further includes: A skill control line is displayed on the graphical user interface based on the target skill release angle.
9. The method according to claim 1, characterized in that: The controlling the first virtual object to release a skill to a target virtual object in the second virtual object based on the target skill release angle and the skill release range includes: Determining a skill release area in the polygonal mesh map based on the position of the first virtual object, the target skill release angle, and the skill release range; Acquire a second virtual object in the skill release area to obtain the target virtual object; Control the first virtual object to release the target skill corresponding to the skill release operation to the target virtual object.
10. A game skill release device, characterized in that: A graphical user interface is provided through a terminal device, wherein the content displayed by the graphical user interface includes a part of a game scene map, a first virtual object in the game scene map, and at least one second virtual object, wherein the first virtual object is a virtual object controlled by a current game player, and the game scene map is a polygonal mesh map, wherein the device comprises: A first determining unit, configured to determine, in response to a skill release operation on the graphical user interface, an end position of the skill release operation on the graphical user interface; A second determining unit, configured to determine an initial skill release angle and a skill release range corresponding to the skill release operation based on a relative position between the end position and the first virtual object; A third determining unit is used to determine a target skill release angle from a plurality of reference skill release angles according to the angle of the initial skill release angle, wherein the plurality of reference skill release angles are angles formed by a diagonal line and a line connecting opposite sides of a polygonal mesh in the polygonal mesh map and a center point of the polygonal mesh; A control unit is used to control the first virtual object to release a skill to a target virtual object in the second virtual object based on the target skill release angle and the skill release range.
11. A computer device comprising a memory, a processor and a computer program stored in the memory and running on the processor, wherein: When the processor executes the program, the game skill releasing method as described in any one of claims 1 to 9 is implemented.
12. A storage medium, characterized in that: The storage medium stores a plurality of instructions, and the instructions are suitable for loading by a processor to execute the game skill release method described in any one of claims 1 to 9.
