Method and device for selecting multiple game roles in three-dimensional space and storage medium

By generating selected hot zones, multiple game characters are selected in three-dimensional space, the problems of complicated operations and information occlusion in the existing technology are solved, and convenient multi-objective selection and intuitive interactive operation are achieved.

CN120478973APending Publication Date: 2025-08-15SHENZHEN THUNDER DIGITAL ENTERTAINMENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510603278.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-12
Publication Date
2025-08-15

AI Technical Summary

Technical Problem

In existing 3D games, multiple targets are selected and operated in complex ways, especially when the targets move frequently in three-dimensional space, it is difficult for players to operate in time and information blocks the screen, resulting in operation difficulties and high information cognition pressure.

Method used

By generating selected hot zones in three-dimensional space, using fingers to scratch the screen to generate tracks, combining the player character position to generate selected hot zones, and selecting enemy characters in the hot zone as the target to achieve convenient selection of multiple goals.

Benefits of technology

It realizes convenient selection of multiple targets in three-dimensional space, reduces information cognitive pressure, avoids operational troubles caused by overlapping targets and changes in detection range, and improves operational intuitiveness and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120478973A_ABST
    Figure CN120478973A_ABST
Patent Text Reader

Abstract

The invention relates to a method and device for selecting a plurality of game roles in a three-dimensional space and a storage medium, and the method comprises the steps: responding to a selection function when a finger of a player touches an enemy role, and detecting the data of the finger sliding on a screen in real time, including the distance r between the position B of the enemy role and the position A of the player role and the position coordinate of the finger; establishing a coordinate system by taking the position A of the player character as an original point, and generating a track according to a position change direction when a finger slides on a screen; an effective selected hot area is generated according to the positions of the two end points of the track and the position A of the player character; and selecting an enemy role in the selected hot area as a selected target. Compared with the prior art, the method and the device have the advantages that the clicking is intuitively performed in the game picture, and the method and the device are more intuitive and have smaller information cognition pressure on players.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of game technology, and in particular to a method, device and storage medium for selecting multiple game characters in a three-dimensional space. Background Art

[0002] Most 3D games currently on the market feature characters fighting within a fixed 2.5D / 2D perspective, following conventional physical laws of motion; that is, the characters actually move on a single plane (the ground). While characters in common 3D games exist in three-dimensional space, the need to provide players with clear information and understanding typically limits them to a few comfortable or efficient viewing methods.

[0003] Operations on the selected target, such as Figure 1 and Figure 2 As shown in the figure, the computer terminal generally adopts the "mouse click / box selection" method for control. Figure 3 As shown in the figure, “virtual buttons” are commonly used on mobile terminals. Specifically, Figure 4 As shown, a detection range is set up based on the character controlled by the player, and the enemies within the detection range are displayed in the form of a UI (list or avatar), allowing the player to click to select the target.

[0004] If a true 3D air combat game requires players to select multiple enemies at the same time, they will need to frequently click on different objects to select the target; and if the target in the game moves continuously or regularly, it will be necessary to provide the player with a large amount of complicated information or controls, which will not only prevent the player from operating in time but also obscure the screen performance. Summary of the Invention

[0005] In view of the problems existing in the prior art, the purpose of the present invention is to provide a method, device and storage medium for selecting multiple game characters in three-dimensional space, so as to solve the pain points existing in the interactive operation of selecting multiple targets at the same time.

[0006] To achieve the above object, the technical solution adopted by the present invention is: A method for selecting multiple game characters in a three-dimensional space, wherein a terminal device provides a graphical user interface, wherein the graphical user interface includes a game scene, wherein the game scene includes game characters, and wherein the game characters include player characters and enemy characters. The method comprises: When the player's finger touches an enemy character, the selection function responds and the data of the finger sliding on the screen is detected in real time, including the distance r between the enemy character position B and the player character position A and the position coordinates of the finger; A coordinate system is established with the player character's position A as the origin. A track is generated based on the position change direction of the finger when swiping on the screen. A selected hot zone is generated based on the two endpoints of the track and the player character's position A. Select all enemy characters in the hot zone as selected targets, and update the selected target status.

[0007] The specific process of generating the selected hot zone is as follows: When responding to the selection function, a spherical selection area is generated at the player character's position A, and a spherical selection area is generated at the enemy character's position B. During the finger swiping process, the spherical selection areas are continuously generated according to the position coordinates of the finger; the outer common tangents of the spherical selection areas generated during the finger swiping process form the track; Obtain the outer common tangents between the selected areas of the spheres at both ends of the track and the selected area of the sphere at the player character position A. The outer common tangents include the top outer common tangent, the bottom outer common tangent, and the side outer common tangent. The track is extended until it meets the outer common tangent to form a selection hotspot, which covers the selection areas of all spheres on the track and the selection area of the sphere at the player character's position A.

[0008] The direction of the position change of the finger when swiping on the screen is determined as follows: if the change value of the y-coordinate value of the finger is positive, the change direction is determined to be positive, and an orbit around the player character is generated from the far end of the screen to the near end; if the change value of the y-coordinate value of the finger is negative, the change direction is determined to be negative, and an orbit around the player character is generated from the near end of the screen to the far end.

[0009] After completing the first target selection, when the player's finger touches the enemy character, the selection function is responded to again, and a new selection hot zone is generated. In this new selection hot zone, the target that was originally selected is considered to be deselected, and the target that was originally unselected is considered to be selected, and the status of the selected / deselected target is updated.

[0010] If the finger swiping trajectory is a curve during a single finger swiping process, the generated track is an arc track, and the shape of the selected hot zone finally formed is a fan-shaped three-dimensional pie.

[0011] If the angle of the arc track generated during a single swipe of the finger exceeds 360 degrees, the first selection hot zone will be generated when it reaches 360 degrees, and the second selection hot zone will continue to be generated with the position at 360 degrees as the starting point. When the finger leaves the screen, the enemy characters in the first and second selection hot zones are integrated as valid selected targets.

[0012] If the finger swiping trajectory is a straight line during a single swipe of the finger, the generated track is a straight line track, and the shape of the selected hot zone finally formed is a three-dimensional triangle.

[0013] If the player's finger swipe trajectory is a broken line during a single swipe, a selected hot zone will be generated at the turning point of the broken line, and new selected hot zones will continue to be generated with the turning point as the starting point. When the finger leaves the screen, all enemy characters in the selected hot zones generated during this finger swipe will be integrated as valid selected targets.

[0014] A device for selecting multiple game characters in a three-dimensional space includes a memory, a processor, and a computer program stored in the memory. The processor executes the computer program to implement the steps of the method for selecting multiple game characters in a three-dimensional space. A computer-readable storage medium stores a computer program / instruction thereon, which, when executed by a processor, implements the steps of the method for selecting multiple game characters in a three-dimensional space as described above. By adopting the above scheme, the present invention intuitively generates a selection hotspot within the game screen, which is more intuitive than the previous technique of adding a UI display and then clicking to select, and it also reduces the information cognition pressure on the player. Groups of enemies in motion can also be conveniently selected, and the previous technique no longer causes UI information to jump due to enemies frequently entering or leaving the detection range, making it difficult to select. At the same time, it can avoid the situation where the front and back targets overlap and cannot be selected due to the front and back positions in three-dimensional space.

[0015] The present invention responds to the selection function only when the player clicks on the enemy character, effectively avoiding the conflict between the player's operations of "lens control" and "multi-selection of targets", thereby realizing one interactive gesture but the coexistence of two interactive functions. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 This is a diagram of the target selected by the mouse on the computer; Figure 2 Schematic diagram of selecting the target with the mouse on the computer; Figure 3 Schematic diagram for selecting the target by clicking the avatar on the mobile terminal; Figure 4 Schematic diagram of the target selection principle for mobile endpoints; Figure 5 Generate a schematic diagram for the track of the present invention; Figure 6 This is a schematic diagram for determining the direction of finger swiping; Figure 7 A schematic diagram of the process of generating the selected hot zone; Figure 8 Schematic diagram of different viewing angles of the selected hot zone; Figure 9 This is a schematic diagram of multi-target selection in Example 1; Figure 10 This is a schematic diagram of multi-target selection in Example 2; Figure 11 This is a schematic diagram of multi-target selection in Example 3; Figure 12 This is an example of multi-target selection in Example 4. Figure 1 ; Figure 13 This is an example of multi-target selection in Example 4. Figure 2 ; Figure 14 This is a schematic diagram of multi-target selection in Example 5. DETAILED DESCRIPTION

[0017] The present invention discloses a method for selecting multiple game characters in a three-dimensional space. A graphical user interface is provided through a terminal device. The graphical user interface includes a game scene. The game scene contains game characters. The game characters include player characters and enemy characters.

[0018] The terminal of the present invention can be a device with a touch function, such as a mobile phone, a tablet computer, a smart Bluetooth device, a notebook computer, or a personal computer.

[0019] The method for selecting multiple game characters in three-dimensional space specifically includes the following steps: S1. When the player's finger touches the enemy character, the selection function responds and the data of the finger sliding on the screen is detected in real time, including the distance r between the enemy character position B and the player character position A and the position coordinates of the finger.

[0020] S2. Establish a coordinate system with the player character position A as the origin, and generate a track S according to the position change direction of the finger when swiping on the screen, such as Figure 5 As shown in the figure, a selected hot zone is generated based on the two endpoint positions of the track S and the player character position A.

[0021] like Figure 6 As shown, different tracks S are generated according to the direction of position change when the finger slides on the screen: if the change value of the y-coordinate value of the position coordinate when the finger slides on the screen is positive, the position change direction is determined to be positive, and a track S is generated around the player character from far to near the screen; if the change value of the y-coordinate value of the position coordinate when the finger slides on the screen is negative, the position change direction is determined to be negative, and a track S is generated around the player character from near to far the screen.

[0022] like Figure 7 and 8 As shown in the figure, the specific process of generating the selected hot zone is as follows: First, in response to the selection function, a spherical selection area is generated at the player character position A, and a spherical selection area is generated at the enemy character position B. In the process of sliding the finger on the screen, multiple spherical selection areas are continuously generated based on the collected finger position coordinates; the outer common tangent of the spherical selection area generated by the finger during the sliding process forms the track S. The spherical selection area refers to a sphere generated with the target position coordinates as the center of the sphere according to the preset radius x. The spherical selection area is not visible in the user interface. Users can flexibly adjust and set the preset radius x according to the actual project. Increasing or decreasing the preset radius x will affect the volume of the spherical selection area and the number of enemy characters selected at the same position.

[0023] Then, the outer common tangents between the selected areas of the sphere at both ends of the track S and the selected area of the sphere at the player character position A are obtained respectively, and the outer common tangents include the outer common tangents of the top end of the sphere, the outer common tangents of the bottom end of the sphere and the outer common tangents of the side end of the sphere.

[0024] Finally, the track S is extended until it connects with the external common tangent to form a selected hot zone, which covers all the sphere selection areas on the track S and the sphere selection area at the player character position A.

[0025] The data when the finger slides across the screen also includes the displacement speed. By detecting the displacement speed, the speed of generating the selected area of the sphere can be controlled, avoiding the feeling of losing control during actual experience.

[0026] S3. Select the enemy character in the selected hot zone as the selected target, and update the selected target status.

[0027] In order to better illustrate the effects of the present invention, four embodiments are listed below for description.

[0028] Example 1 Reference Figure 9 Combined with Figure 7-8 As shown, the method of this embodiment specifically includes the following steps: S1. When the player's finger touches the enemy character, the selection function responds and the data of the finger sliding on the screen is detected in real time, including the distance r between the enemy character position B and the player character position A and the position coordinates of the finger.

[0029] S2. Establish a coordinate system with the player character position A as the origin, and generate an arc track S according to the direction of the position change when the finger is swiping on the screen; generate a selected hot zone based on the two endpoint positions of the track S and the player character position A. The selected hot zone is a fan-shaped three-dimensional pie.

[0030] Specifically, when responding to the selection function, a sphere selection area is generated at the player character position A, and a sphere selection area is generated at the enemy character position B. In the process of sliding the finger on the screen, the sphere selection area is continuously generated according to the position coordinates of the finger. Then, the outer common tangents between the sphere selection areas at both ends of the track S and the sphere selection area at the player character position A are obtained respectively. The outer common tangents include the outer common tangents at the top end of the sphere, the outer common tangents at the bottom end of the sphere, and the outer common tangents at the side end of the sphere. Finally, the arc track S is extended and connected to the outer common tangents to form a selection hot zone. The selection hot zone covers all the sphere selection areas on the track S and the sphere selection area at the player character position A.

[0031] S3. Select the enemy character in the selected hot zone as the selected target, and update the selected target status.

[0032] Example 2 In this embodiment, the player swipes the screen with his finger multiple times. That is, after completing the single swipe of the finger on the screen in embodiment 1, the player swipes the screen with his finger multiple times to respond to the selected function. Figure 10 As shown, the player touches the enemy character again with his finger and swipes across the screen again to select multiple targets. More targets can be selected or deselected.

[0033] Specifically, after completing the first target selection, when the player's finger touches the enemy character, the selection function is responded to again, and a new selection hot zone is generated. In the new selection hot zone, the target that was originally selected is considered to be unselected, and the target that was originally unselected is considered to be selected, and the status of the selected / unselected target is updated.

[0034] Example 3 Based on the first embodiment, in this embodiment, when the player's finger swipes the screen once, the arc track S generated exceeds 360 degrees.

[0035] like Figure 11 As shown, if the arc track S generated by a single finger swipe on the screen exceeds 360 degrees, a first selection hotspot is generated when it reaches 360 degrees, and a second selection hotspot is generated starting from the 360-degree position. When the finger leaves the screen, the enemy characters in the first and second selection hotspots are combined as the selected targets. This prevents the deselection caused by accidental operation after exceeding 360 degrees and allows players to select a wider range of targets at once, avoiding frequent operation.

[0036] Example 4 like Figure 12-13As shown, this embodiment is similar to the first embodiment and both include steps S1-S3. The difference is that in this embodiment, during a single swipe of the finger on the screen, the finger swipe is estimated to be a straight line (linear function y=kx), the generated track S is a straight track S, and the selected hot zone finally formed is a triangular three-dimensional selected hot zone.

[0037] Example 5 like Figure 14 As shown, this embodiment is similar to the first embodiment, both including steps S1-S3. However, in this embodiment, during a single finger swipe on the screen, the finger swipe is estimated as a broken line. To this end, this embodiment generates a selected hotspot at the turning point of the broken line, and continues to generate new selected hotspots using the turning point as the starting point. When the finger leaves the screen, all enemy characters within the selected hotspots generated during the finger swipe are integrated as the selected target. If the broken line contains three broken line segments, three selected hotspots are generated, and finally, the enemy characters within the three selected hotspots are integrated. This embodiment intuitively selects within the game screen, which is more intuitive and informative than the previous method of selecting after displaying the UI. It also reduces the player's information cognition burden. Groups of enemies that are automatically moving can also be easily selected, eliminating the previous problem of UI information jumping due to enemies frequently entering or leaving the detection range, which makes selection difficult. This also avoids the situation where targets overlap and cannot be selected behind them due to their three-dimensional positioning.

[0038] Swiping a finger across the screen is generally used to adjust the direction and angle of the camera. Since the present invention responds to the selection function only when the player clicks on the enemy character, it effectively avoids the conflict between the player's "camera control" and "multi-selection target" operations (if the touched object is not an enemy, the camera swiping function is triggered; if the touched object is an enemy, the selection function is triggered), thereby realizing one interactive gesture but the coexistence of two interactive functions.

[0039] The present invention monitors the finger position and target mapping from the moment the finger touches the enemy character to activate the selection function, select the target, and until the finger leaves the screen to complete the selection, thereby mapping the revolution motion effect and achieving a smooth experience similar to drawing with one stroke.

[0040] Based on the above method, the present invention also discloses a device for selecting multiple game characters in three-dimensional space, which includes a memory, a processor and a computer program stored in the memory. The processor executes the computer program to implement the steps of a method for selecting multiple game characters in three-dimensional space described in the above embodiment. A computer-readable storage medium storing a computer program / instructions that, when executed by a processor, implements the steps of the method for selecting multiple game characters in a three-dimensional space described in the above embodiment. The storage medium may include a read-only memory (ROM), random access memory (RAM), a magnetic disk, or an optical disk.

[0041] Since the computer program stored in the storage medium can execute the steps of the method for selecting multiple game characters in a three-dimensional space provided in the embodiment of the present application, the beneficial effects that can be achieved by the method for selecting multiple game characters in a three-dimensional space provided in the embodiment of the present application can be achieved. Please refer to the previous embodiment for details and will not be repeated here.

[0042] The above is a detailed introduction to a virtual character selection method, device, electronic device and storage medium 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, based on 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 selecting multiple game characters in a three-dimensional space, wherein a terminal device provides a graphical user interface, wherein the graphical user interface includes a game scene, wherein the game scene includes game characters, and wherein the game characters include player characters and enemy characters, wherein: The method comprises: When the player's finger touches an enemy character, the selection function responds and the data of the finger sliding on the screen is detected in real time, including the distance r between the enemy character position B and the player character position A and the position coordinates of the finger; A coordinate system is established with the player character's position A as the origin. A track is generated based on the position change direction of the finger when swiping on the screen. A selected hot zone is generated based on the two endpoints of the track and the player character's position A. Select all enemy characters in the hot zone as selected targets, and update the selected target status.

2. The method for selecting multiple game characters in a three-dimensional space according to claim 1, wherein: The specific process of generating the selected hot zone is as follows: When responding to the selection function, a spherical selection area is generated at the player character's position A, and a spherical selection area is generated at the enemy character's position B. During the finger swiping process, the spherical selection areas are continuously generated according to the position coordinates of the finger; the outer common tangents of the spherical selection areas generated during the finger swiping process form the track; Obtain the outer common tangents between the selected areas of the spheres at both ends of the track and the selected area of the sphere at the player character position A. The outer common tangents include the top outer common tangent, the bottom outer common tangent, and the side outer common tangent. The track is extended until it meets the outer common tangent to form a selection hotspot, which covers all the sphere selection areas on the track and the sphere selection area at the player character position A.

3. The method for selecting multiple game characters in a three-dimensional space according to claim 1, wherein: The direction of the position change of the finger when swiping on the screen is determined as follows: if the change value of the y-coordinate value of the finger is positive, the change direction is determined to be positive, and an orbit around the player character is generated from the far end of the screen to the near end; if the change value of the y-coordinate value of the finger is negative, the change direction is determined to be negative, and an orbit around the player character is generated from the near end of the screen to the far end.

4. The method for selecting multiple game characters in a three-dimensional space according to claim 1, wherein: After completing the first target selection, when the player's finger touches the enemy character, the selection function is responded to again, and a new selection hot zone is generated. In this new selection hot zone, the target that was originally selected is considered to be deselected, and the target that was originally unselected is considered to be selected, and the status of the selected / deselected target is updated.

5. The method for selecting multiple game characters in a three-dimensional space according to claim 1, wherein: If the finger swiping trajectory is a curve during a single finger swiping process, the generated trajectory is an arc trajectory, and the shape of the selected hot zone finally formed is a fan-shaped three-dimensional pie.

6. The method for selecting multiple game characters in a three-dimensional space according to claim 5, wherein: If the angle of the arc track generated during a single swipe of the finger exceeds 360 degrees, the first selection hot zone will be generated when it reaches 360 degrees, and the second selection hot zone will continue to be generated with the position at 360 degrees as the starting point. When the finger leaves the screen, the enemy characters in the first and second selection hot zones are integrated as valid selected targets.

7. The method for selecting multiple game characters in a three-dimensional space according to claim 1, wherein: If the finger swiping trajectory is a straight line during a single swipe of the finger, the generated track is a straight line track, and the shape of the selected hot zone finally formed is a three-dimensional triangle.

8. The method for selecting multiple game characters in a three-dimensional space according to claim 1, wherein: If the player's finger swipe trajectory is a broken line during a single swipe, a selected hot zone will be generated at the turning point of the broken line, and new selected hot zones will continue to be generated with the turning point as the starting point. When the finger leaves the screen, all enemy characters in the selected hot zones generated during this finger swipe will be integrated as valid selected targets.

9. A device for selecting multiple game characters in three-dimensional space, characterized by: The method comprises a memory, a processor and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of a method for selecting multiple game characters in a three-dimensional space as described in any one of claims 1 to 8.

10. A computer-readable storage medium having a computer program / instruction stored thereon, characterized in that: When the computer program / instructions are executed by a processor, the steps of a method for selecting multiple game characters in a three-dimensional space as described in any one of claims 1 to 8 are implemented.