A method for improving the precision of 2D interface connection interaction and a terminal

By adjusting the trigger range of the diagonal grid in the 2D interface to be consistent with the trigger range of the horizontal and vertical grids, and restricting the grid triggering after determining the connection direction, the problem of insufficient precision in diagonal line drawing operation was solved, and the user interaction experience was improved.

CN114452643BActive Publication Date: 2026-03-17FUJIAN TIANYI WEBSOFT TECH LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-04
Publication Date
2026-03-17

AI Technical Summary

Technical Problem

In 2D word puzzle games, the precision of diagonal line drawing is insufficient, leading to incorrect horizontal or vertical line drawing judgments and affecting the game's interactive experience.

Method used

By adjusting the trigger range of the diagonal grid to match the trigger range of the horizontal and vertical grids, and after determining the direction of the line, only the grids in the direction of the line can be triggered, while other grids cannot be triggered. At the same time, the original trigger range is restored after the line is drawn.

Benefits of technology

It improves the accuracy and smoothness of 2D interface connection interaction, enhancing the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114452643B_ABST
    Figure CN114452643B_ABST
Patent Text Reader

Abstract

The application discloses a method for improving 2D interface connection interaction precision and a terminal; the application acquires starting point touch information of a user, determines a first trigger grid according to a starting trigger point coordinate in the starting point touch information and an original grid trigger range in a 2D interface; adjusts an original grid trigger range of an adjacent grid adjacent to the first trigger grid into a temporary grid trigger range, makes temporary grid trigger ranges of adjacent diagonal grids which are diagonally arranged between the first trigger grid consistent with temporary grid trigger ranges of other adjacent grids; acquires secondary point touch information of the user, and when a secondary trigger point in the secondary point touch information enters the temporary grid trigger range of the adjacent grid, a second trigger grid is determined, and a connection line from the first trigger grid to the second trigger grid is formed; the application makes the trigger ranges of diagonal grids and horizontal and vertical grids consistent, improves interaction precision, and enables the user to have better use experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of 2D interactive technology, and in particular to a method and terminal for improving the accuracy of 2D interface connection interaction. Background Technology

[0002] When developing 2D word puzzle games, the interface interaction requirements are based on horizontal, vertical, and diagonal line drawing operations on 2D grids. For diagonal line drawing, because the triggered area angle is relatively small, there is a high probability that the horizontal or vertical line drawing judgment will be triggered due to operation precision issues, which will affect the overall interactive experience of the game. Summary of the Invention

[0003] The technical problem to be solved by the present invention is to provide a method and terminal for improving the accuracy of 2D interface connection interaction, thereby improving the user's interactive experience.

[0004] To solve the above-mentioned technical problems, the technical solution adopted by the present invention is as follows:

[0005] A method for improving the accuracy of 2D interface connection interaction includes:

[0006] S1. Obtain the user's initial touch information, and determine the first trigger grid based on the initial trigger point coordinates in the initial touch information and the original grid trigger range in the 2D interface;

[0007] S2. Adjust the original grid trigger range of the adjacent grids adjacent to the first trigger grid to a temporary grid trigger range, so that the temporary grid trigger range of the adjacent diagonally adjacent grids that are diagonally opposite to the first trigger grid is consistent with the temporary grid trigger range of other adjacent grids.

[0008] S3. Obtain the user's secondary touch information. When the secondary trigger point in the secondary touch information enters the temporary grid trigger range of the adjacent grid, determine the second trigger grid and form a line from the first trigger grid to the second trigger grid.

[0009] To solve the above-mentioned technical problems, another technical solution adopted by the present invention is as follows:

[0010] A terminal for improving the accuracy of 2D interface connection interaction includes a processor, a memory, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it performs the following steps:

[0011] S1. Obtain the user's initial touch information, and determine the first trigger grid based on the initial trigger point coordinates in the initial touch information and the original grid trigger range in the 2D interface;

[0012] S2. Adjust the original grid trigger range of the adjacent grids adjacent to the first trigger grid to a temporary grid trigger range, so that the temporary grid trigger range of the adjacent diagonally adjacent grids that are diagonally opposite to the first trigger grid is consistent with the temporary grid trigger range of other adjacent grids.

[0013] S3. Obtain the user's secondary touch information. When the secondary trigger point in the secondary touch information enters the temporary grid trigger range of the adjacent grid, determine the second trigger grid and form a line from the first trigger grid to the second trigger grid.

[0014] The beneficial effects of this invention are as follows: After triggering the first grid, the trigger range of all grids is adjusted so that the trigger range of diagonal grids is consistent with that of horizontal and vertical grids, thereby improving the interaction accuracy and providing users with a better user experience. Attached Figure Description

[0015] Figure 1 This is a flowchart illustrating a method for improving the accuracy of 2D interface connection interaction according to an embodiment of the present invention;

[0016] Figure 2 This is a structural diagram of a terminal for improving the accuracy of 2D interface connection interaction according to an embodiment of the present invention;

[0017] Figure 3 This is a schematic diagram illustrating the effect of a method for improving the accuracy of 2D interface connection interaction according to an embodiment of the present invention;

[0018] Label Explanation:

[0019] 1. A terminal for improving the accuracy of 2D interface connection interaction; 2. Processor; 3. Memory. Detailed Implementation

[0020] To explain in detail the technical content, objectives, and effects of the present invention, the following description is provided in conjunction with the embodiments and accompanying drawings.

[0021] Please refer to Figure 1 and Figure 3 A method for improving the accuracy of 2D interface connection interaction includes:

[0022] S1. Obtain the user's initial touch information, and determine the first trigger grid based on the initial trigger point coordinates in the initial touch information and the original grid trigger range in the 2D interface;

[0023] S2. Adjust the original grid trigger range of the adjacent grids adjacent to the first trigger grid to a temporary grid trigger range, so that the temporary grid trigger range of the adjacent diagonally adjacent grids that are diagonally opposite to the first trigger grid is consistent with the temporary grid trigger range of other adjacent grids.

[0024] S3. Obtain the user's secondary touch information. When the secondary trigger point in the secondary touch information enters the temporary grid trigger range of the adjacent grid, determine the second trigger grid and form a line from the first trigger grid to the second trigger grid.

[0025] As can be seen from the above description, the beneficial effects of the present invention are as follows: after triggering the first grid, the present invention adjusts the trigger range of all grids so that the trigger range of diagonal grids is consistent with that of horizontal and vertical grids, thereby improving the interaction accuracy and providing users with a better user experience.

[0026] Furthermore, after step S3, the following steps are also included:

[0027] S4. Based on the connection, set all cells in the direction of the connection to the triggerable state, and set cells outside the direction of the connection to the non-triggerable state.

[0028] As described above, once the user determines the direction of the connection, the cells outside the direction of the connection are set to be untouchable, which improves the smoothness of the user triggering the cells in the direction of the connection and enhances the user experience.

[0029] Furthermore, after step S4, the following steps are also included:

[0030] S5. Readjust the trigger range of the grid to the original grid trigger range.

[0031] As described above, when only grids in the line direction can be triggered, the trigger range of each grid is expanded to the initial trigger range, making it easier for users to trigger grids, reducing the requirement for operational precision, and improving the user experience.

[0032] Furthermore, after step S3, the following is also included:

[0033] S6. Receive the user's subsequent touch information, and determine the subsequent trigger grid based on the subsequent trigger point and the trigger range of the grid in the user's subsequent touch information;

[0034] Until the user's end touch information is received, the user's initial trigger cell, second trigger cell, and all subsequent trigger cells are connected to complete the line drawing operation.

[0035] As described above, the grid is tapped and drawn based on the user's subsequent and final tap information to enable the user's drawing operation and provide a complete user experience.

[0036] Furthermore, step S6, specifically referring to the process of receiving the user's end-touch information, involves:

[0037] If the user's finger or mouse leaves the touched page, the end-touch information is obtained.

[0038] As described above, when the user's finger or mouse leaves the touched page, the user's drawing operation is considered complete, thus improving the user's experience.

[0039] Please refer to Figure 2 A terminal for improving the accuracy of 2D interface connection interaction includes a processor, a memory, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it performs the following steps:

[0040] S1. Obtain the user's initial touch information, and determine the first trigger grid based on the initial trigger point coordinates in the initial touch information and the original grid trigger range in the 2D interface;

[0041] S2. Adjust the original grid trigger range of the adjacent grids adjacent to the first trigger grid to a temporary grid trigger range, so that the temporary grid trigger range of the adjacent diagonally adjacent grids that are diagonally opposite to the first trigger grid is consistent with the temporary grid trigger range of other adjacent grids.

[0042] S3. Obtain the user's secondary touch information. When the secondary trigger point in the secondary touch information enters the temporary grid trigger range of the adjacent grid, determine the second trigger grid and form a line from the first trigger grid to the second trigger grid.

[0043] As can be seen from the above description, the beneficial effects of the present invention are as follows: after triggering the first grid, the present invention adjusts the trigger range of all grids so that the trigger range of diagonal grids is consistent with that of horizontal and vertical grids, thereby improving the interaction accuracy and providing users with a better user experience.

[0044] Furthermore, after the processor executes step S3 of the computer program, it further includes implementing the following steps:

[0045] S4. Based on the connection, set all cells in the direction of the connection to the triggerable state, and set cells outside the direction of the connection to the non-triggerable state.

[0046] As described above, once the user determines the direction of the connection, the cells outside the direction of the connection are set to be untouchable, which improves the smoothness of the user triggering the cells in the direction of the connection and enhances the user experience.

[0047] Furthermore, after the processor executes step S4 of the computer program, it further includes implementing the following steps:

[0048] S5. Readjust the trigger range of the grid to the original grid trigger range.

[0049] As described above, when only grids in the line direction can be triggered, the trigger range of each grid is expanded to the initial trigger range, making it easier for users to trigger grids, reducing the requirement for operational precision, and improving the user experience.

[0050] Furthermore, after the processor executes step S3 of the computer program, it further includes implementing the following steps:

[0051] S6. Receive the user's subsequent touch information, and determine the subsequent trigger grid based on the subsequent trigger point and the trigger range of the grid in the user's subsequent touch information;

[0052] Until the user's end touch information is received, the user's initial trigger cell, second trigger cell, and all subsequent trigger cells are connected to complete the line drawing operation.

[0053] As described above, the grid is tapped and drawn based on the user's subsequent and final tap information to enable the user's drawing operation and provide a complete user experience.

[0054] Furthermore, step S6, specifically referring to the process of receiving the user's end-touch information, involves:

[0055] If the user's finger or mouse leaves the touched page, the end-touch information is obtained.

[0056] As described above, when the user's finger or mouse leaves the touched page, the user's drawing operation is considered complete, thus improving the user's experience.

[0057] Please refer to Figure 1 and Figure 3 Embodiment 1 of the present invention is as follows:

[0058] In this embodiment, a 5x5 grid is used as an example. When it's necessary to connect the "GOOD" values ​​on the grid, the following steps are taken: Figure 3 As shown in the first part, the solid lines represent the display area of ​​the grid, and the dashed lines represent the trigger area of ​​the grid. This embodiment provides a method to improve the accuracy of line-based interaction in a 2D interface, including:

[0059] S1. Obtain the user's initial touch information, and determine the first trigger grid based on the initial trigger point coordinates in the initial touch information and the original grid trigger range in the 2D interface;

[0060] like Figure 3As shown in the second part, when the mouse or finger is pressed, the first triggered cell is identified. The black dot indicates the first triggered cell. The adjacent cells are cells numbered 1-8, which are the cells that can be triggered subsequently. Before adjusting the cell trigger range, it is clearly visible from the diagram that when the finger is pressed and slid, cells numbered 2, 4, 6, and 8 have a higher probability of being triggered, while cells numbered 1, 3, 5, and 7 have a lower probability of being triggered, resulting in reduced precision for the user's desired diagonal line swiping.

[0061] S2. Adjust the original grid trigger range of the adjacent grids adjacent to the first trigger grid to a temporary grid trigger range, so that the temporary grid trigger range of the adjacent diagonally adjacent grids that are diagonally opposite to the first trigger grid is consistent with the temporary grid trigger range of other adjacent grids.

[0062] like Figure 3 As shown in the third part, after confirming the first trigger cell, the trigger range of all adjacent cells is adjusted. The trigger range of the adjacent diagonal cells, namely cells numbered 1, 3, 5, and 7, is increased, while the trigger range of the other adjacent cells, namely cells numbered 2, 4, 6, and 8, is decreased. This makes the temporary cell trigger range of cells numbered 1 to 8 consistent. At this point, the probability of the finger sliding into the trigger range of adjacent cells is the same, ensuring the accuracy of the diagonal sliding interaction is consistent with the horizontal and vertical directions.

[0063] Let the side length of one cell be *a*, and the distance between the sides of two cells be *b*. Then, from... Figure 3 Looking at the first part, the original cell trigger range of cells numbered 2, 4, 6, and 8 is the entire cell, and the original cell trigger length facing the first trigger cell is the side length 'a'. The original cell trigger length facing the first trigger cell for cells numbered 1, 3, 5, and 7 is 'b*√2'. However, the existing side length 'a' is not equal to 'b*√2', and usually 'a' is greater than 'b*√2'. Therefore, in this embodiment, the trigger range is based on the trigger length facing the first trigger cell. Assuming the original cell trigger length of cells numbered 2, 4, 6, and 8 is 'ac', the temporary cell trigger length of cells numbered 1, 3, 5, and 7 is (b+c)*√2. Thus, 'ac' = (b+c)*√2, or 'c' = (ab*√2) / (1+√2). For a 2D interface, the side length 'a' and the margin 'b' are fixed in advance, so 'c' can be obtained in advance, thus quickly obtaining the corresponding temporary cell trigger length.

[0064] It should be noted that there are also cases where the side length a is less than b*√2. In this case, the trigger length of cells numbered 2, 4, 6, and 8 needs to be increased, while the trigger length of cells numbered 1, 3, 5, and 7 needs to be decreased. The calculation process is as described above.

[0065] S3. Obtain the user's secondary touch information. When the secondary trigger point in the secondary touch information enters the temporary grid trigger range of the adjacent grid, determine the second trigger grid and form a line from the first trigger grid to the second trigger grid.

[0066] S4. Based on the connection, set all cells in the direction of the connection to the triggerable state, and set cells outside the direction of the connection to the non-triggerable state.

[0067] like Figure 3 As shown, if the finger slides onto cell number 5, confirming the second trigger cell, then the direction of the subsequent finger-connection interaction is confirmed, as follows. Figure 3 As shown in the fourth section, the cells 9 and 10 on the diagonal line are cells that can be triggered later.

[0068] S5. Readjust the trigger range of the grid to the original grid trigger range.

[0069] S6. Receive the user's subsequent touch information, and determine the subsequent trigger grid based on the subsequent trigger point and the trigger range of the grid in the user's subsequent touch information;

[0070] Until the user's end touch information is received, the user's initial trigger cell, second trigger cell, and all subsequent trigger cells are connected to complete the line drawing operation;

[0071] Specifically, step S6, which involves receiving the user's end touch information, refers to:

[0072] If the user's finger or mouse leaves the touched page, the end-touch information is obtained.

[0073] like Figure 3 As shown in Part 5, readjusting the trigger range of all grids to their original size ensures the ease with which the subsequent 9 and 10 grids are triggered when sliding; when sliding to 10, lift your finger to complete the current line drawing operation, and the word "good" slides out correctly.

[0074] Please refer to Figure 2 Embodiment two of the present invention is as follows:

[0075] A terminal 1 for improving the accuracy of 2D interface connection interaction includes a processor 2, a memory 3, and a computer program stored in the memory 3 and executable on the processor 2. When the processor 2 executes the computer program, it implements a method for improving the accuracy of 2D interface connection interaction as described in Embodiment 1 above.

[0076] In summary, the present invention provides a method and terminal for improving the accuracy of 2D interface line-connection interaction. After triggering the first cell, the trigger range of all cells is adjusted so that the trigger range of diagonal cells is consistent with that of horizontal and vertical cells, thereby improving the interaction accuracy and providing users with a better user experience. After the user determines the connection direction, cells outside the connection direction are set to be untriggerable, improving the smoothness of the user triggering cells in the connection direction. When only cells in the line direction are triggerable, their respective trigger ranges are expanded to the initial trigger range, making it easier for users to trigger cells, reducing the requirement for operational accuracy, and further improving the user experience.

[0077] The above description is merely an embodiment of the present invention and does not limit the patent scope of the present invention. Any equivalent modifications made based on the content of the present invention specification and drawings, or direct or indirect applications in related technical fields, are similarly included within the patent protection scope of the present invention.

Claims

1. A method for improving the precision of 2D interface connection interaction, characterized in that, The method comprises the following steps: S1, obtaining starting point touch information of a user, and determining a first trigger grid according to a starting trigger point coordinate in the starting point touch information and an original grid trigger range in a 2D interface; S2, adjusting an original grid trigger range of an adjacent grid adjacent to the first trigger grid into a temporary grid trigger range, so that a temporary grid trigger range of an adjacent diagonal grid diagonally adjacent to the first trigger grid is consistent with temporary grid trigger ranges of other adjacent grids; S3, obtaining secondary point touch information of the user, and determining a second trigger grid when a secondary trigger point in the secondary point touch information enters the temporary grid trigger range of the adjacent grid, so as to form a connecting line from the first trigger grid to the second trigger grid. The step S3 further comprises the following steps: S4, according to the connecting line, setting all grids in a connecting line direction into a triggerable state, and setting grids outside the connecting line direction into a non-triggerable state. The step S4 further comprises the following step: S5, readjusting a trigger range of the grid into an original grid trigger range.

2. The method of claim 1, wherein, The step S3 further comprises the following step: S6, receiving subsequent point touch information of the user, and determining a subsequent trigger grid according to a subsequent trigger point in the subsequent point touch information and a trigger range of the grid; 3. The method of claim 2, wherein, until receiving end point touch information of the user, connecting the initial trigger grid, the second trigger grid and all subsequent trigger grids of the user to complete a line drawing operation. The step S6 further comprises the following step:

4. The method of claim 1, wherein, When it is detected that a finger or a mouse of the user leaves a touch page, the end point touch information is obtained. The processor executes the computer program to implement the following steps: S1, obtaining starting point touch information of a user, and determining a first trigger grid according to a starting trigger point coordinate in the starting point touch information and an original grid trigger range in a 2D interface; 5. The method for improving the precision of 2D interface connection interaction according to claim 4, characterized in that, S2, adjusting an original grid trigger range of an adjacent grid adjacent to the first trigger grid into a temporary grid trigger range, so that a temporary grid trigger range of an adjacent diagonal grid diagonally adjacent to the first trigger grid is consistent with temporary grid trigger ranges of other adjacent grids; S3, obtaining secondary point touch information of the user, and determining a second trigger grid when a secondary trigger point in the secondary point touch information enters the temporary grid trigger range of the adjacent grid, so as to form a connecting line from the first trigger grid to the second trigger grid.

6. A terminal for improving precision of 2D interface connection interaction, comprising a processor, a memory, and a computer program stored in the memory and capable of running on the processor, characterized in that, ​ ​ ​ The temporary grid trigger range of the adjacent diagonal grid which is diagonal to the first trigger grid is consistent with the temporary grid trigger range of other adjacent grids, specifically: The temporary grid trigger range corresponding to the scribing direction of the adjacent diagonal grid scribed by the first trigger grid is consistent with the trigger range of the scribing direction of the adjacent grid scribed by the first trigger grid in the horizontal and vertical directions, and the temporary grid trigger range is a trigger length towards the first trigger grid, wherein the trigger length of the adjacent grid in the horizontal and vertical directions is a-c; the trigger length of the adjacent grid in the diagonal direction is (b+c)*sqrt(2); let a-c=(b+c)*sqrt(2), that is c=(a-b*sqrt(2)) / (1+sqrt(2)); Wherein, a represents the side length of a single grid, b represents the edge distance of two grids, a is greater than b*sqrt(2); the scribing direction includes horizontal, vertical and diagonal directions; S3, obtaining secondary point touch information of the user, when the secondary trigger point in the secondary point touch information enters the temporary grid trigger range of the adjacent grid, determining a second trigger grid, and forming a connecting line from the first trigger grid to the second trigger grid.

7. The terminal for improving 2D interface connection interaction precision according to claim 6, characterized in that, The processor further includes the following steps after executing the step S3 of the computer program: S4, according to the connecting line, setting all grids in the connecting line direction to a triggerable state, and setting grids outside the connecting line direction to a non-triggerable state.

8. The terminal for improving 2D interface connection interaction precision according to claim 7, characterized in that, The processor further includes the following steps after executing the step S4 of the computer program: S5, readjusting the trigger range of the grid to the original grid trigger range.

9. The terminal for improving 2D interface connection interaction precision according to claim 6, characterized in that, The processor further includes the following steps after executing the step S3 of the computer program: S6, receiving subsequent point touch information of the user, determining a subsequent trigger grid according to the subsequent trigger point of the user's subsequent point touch information and the trigger range of the grid; Until receiving end point touch information of the user, connecting the initial trigger grid, the second trigger grid and all subsequent trigger grids of the user to complete the scribing operation.

10. The terminal for improving 2D interface connection interaction precision according to claim 9, wherein, The step S6 until receiving the end point touch information of the user is specifically: When it is detected that the user's finger or mouse leaves the point touch page, the end point touch information is obtained.

Citation Information

Patent Citations

  • Method and mobile terminal for calibrating touch screen input

    CN102707891A