Game interface display method, device, electronic device and readable medium
By displaying the moving path in response to the first touch track in the graphical user interface and switching the game interface according to the continuous touch track, the problem of cumbersome switching process of the traditional game interface is solved, and fast and simple interface switching and a better user experience are achieved.
Patent Information
- Application Number
- CN202111488250.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-07
- Publication Date
- 2025-07-25
- Estimated Expiration
- 2041-12-07
Smart Images

Figure CN114159784B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of interface interaction, and particularly to a game interface display method, a game interface switching device, an electronic device, and a computer-readable medium. Background Art
[0002] There are often multiple game interfaces in a game. During the game process, it is necessary to switch back and forth between multiple game interfaces. Taking a card cultivation game as an example, since the cultivation resources are scattered and the cultivation dimensions are diverse, players often jump between various interfaces or interface levels to complete the cultivation loop.
[0003] However, currently, the interface switching in traditional mobile games generally requires returning to the lobby and then entering from other entrances in the lobby. The switching process is cumbersome and there are many steps to achieve the jump. Specifically, the following problems exist:
[0004] 1) It is necessary to add navigation entrances in all interfaces, which restricts the freedom of interface layout and design to a certain extent.
[0005] 2) The limited drawer-type UI (User Interface) has a certain upper limit in terms of expandability (increasing the navigation area or using sliding will bring problems such as too large interface occupation ratio, serious interruption feeling, and low operation efficiency).
[0006] 3) The jump process is relatively long and requires going through the steps of: clicking the navigation entrance, the drawer-type navigation UI appears, finding the target entrance, clicking the entrance, and then jumping. Summary of the Invention
[0007] Embodiments of the present invention provide a game interface display method, device, electronic device, and computer-readable storage medium to solve the problems of cumbersome game interface switching process and the navigation UI restricting the freedom of interface layout and design.
[0008] Embodiments of the present invention disclose a game interface display method. By a terminal device, a graphical user interface is provided. The method includes:
[0009] Responding to a first touch trajectory acting on the graphical user interface, at least one moving path matching the first touch trajectory is displayed on the graphical user interface, where different moving paths correspond to different game interfaces;
[0010] In response to the second touch track acting on the graphical user interface, determine a corresponding target movement path from the at least one movement path according to the first touch track and the second touch track, and control to switch the current game interface displayed on the graphical user interface to a game interface corresponding to the target movement path, where the second touch track is a touch operation continuous with the first touch track.
[0011] Optionally, the game includes a plurality of different subsystems, and different subsystems are configured to implement different functions in the game, and the game interface is a game function interface corresponding to the subsystem.
[0012] Optionally, after displaying at least one movement path matching the first touch track on the graphical user interface, further include:
[0013] When there are at least two movement paths displayed on the graphical user interface, in response to the second touch track acting on the graphical user interface, clear the movement paths displayed on the graphical user interface that do not match the second touch track;
[0014] When there is one movement path displayed on the graphical user interface, determine the movement path as the target movement path.
[0015] Optionally, further include:
[0016] On the movement path displayed on the graphical user interface, display the name of the game interface corresponding to the movement path.
[0017] Optionally, before responding to the first touch track acting on the graphical user interface, further include:
[0018] In response to a touch operation acting on the graphical user interface, determine the movement path of the touch operation on the graphical user interface;
[0019] Establish an association relationship between the movement path and the game interface, and store it.
[0020] Optionally, determining the movement path matching the first touch track includes:
[0021] Determine a first coordinate point set of the first touch track and a second coordinate point set of the front part of the movement path corresponding to the first touch track in the movement path;
[0022] Determine a first coordinate point set of the starting movement path and a second coordinate point set of the starting movement path of the preset movement path;
[0023] Normalize the first set of coordinate points and the second set of coordinate points; wherein, the normalization process includes at least one of quantity normalization, angle normalization, size normalization, and coordinate normalization;
[0024] Calculate the difference between the first set of coordinate points and the second set of coordinate points after the normalization process;
[0025] When the difference is less than a preset difference, determine the movement path as the movement path matching the first touch trajectory.
[0026] Optionally, the starting position of the first touch trajectory is within a specified operation area of the graphical user interface.
[0027] Optionally, the touch operation includes at least one of a single-finger swipe operation, a two-finger swipe operation, a multi-finger swipe operation, a two-finger pinch swipe operation, a multi-finger pinch swipe operation, and a click operation.
[0028] An embodiment of the present invention also discloses a game interface display device. By means of a terminal device, a graphical user interface is provided. The device includes:
[0029] A path display module, configured to respond to a first touch trajectory acting on the graphical user interface, and display at least one movement path matching the first touch trajectory on the graphical user interface, wherein different movement paths correspond to different game interfaces;
[0030] An interface display module, configured to respond to a second touch trajectory acting on the graphical user interface, determine a corresponding target movement path from the at least one movement path according to the first touch trajectory and the second touch trajectory, and control the current game interface displayed on the graphical user interface to be switched to the game interface corresponding to the target movement path, wherein the second touch trajectory is a touch operation continuous with the first touch trajectory.
[0031] Optionally, the game includes a plurality of different subsystems, and different subsystems are configured to implement different functions in the game. The game interface is a game function interface corresponding to the subsystem.
[0032] Optionally, it further includes:
[0033] A path clearing module, configured to, when there are at least two movement paths displayed on the graphical user interface, respond to a second touch trajectory acting on the graphical user interface, and clear the movement paths displayed on the graphical user interface that do not match the second touch trajectory;
[0034] A path determination module, configured to, when there is one movement path displayed on the graphical user interface, determine the movement path as the target movement path.
[0035] Optionally, it further includes:
[0036] A path display module, further configured to display the name of the corresponding game interface of the movement path on the movement path displayed on the graphical user interface.
[0037] Optionally, it further includes:
[0038] A path determination module, further configured to determine the movement path of the touch operation on the graphical user interface in response to a touch operation acting on the graphical user interface;
[0039] A relationship establishment module, configured to establish an association relationship between the movement path and the game interface and store it.
[0040] Optionally, a path matching module includes:
[0041] A coordinate determination sub-module, configured to determine a first coordinate point set of the first touch trajectory and a second coordinate point set of the front part of the movement path corresponding to the first touch trajectory in the movement path;
[0042] A normalization processing sub-module, configured to perform normalization processing on the first coordinate point set and the second coordinate point set; wherein, the normalization processing includes at least one of quantity normalization, angle normalization, size normalization, and coordinate normalization;
[0043] A difference calculation sub-module, configured to calculate the difference between the first coordinate point set and the second coordinate point set after normalization processing;
[0044] A path determination sub-module, configured to determine the movement path as the movement path matching the first touch trajectory when the difference is less than a preset difference.
[0045] Optionally, the starting position of the first touch trajectory is located within a specified operation area of the graphical user interface.
[0046] Optionally, the touch operation includes at least one of a single-finger swipe operation, a two-finger swipe operation, a multi-finger swipe operation, a two-finger pinch swipe operation, a multi-finger pinch swipe operation, and a click operation.
[0047] An embodiment of the present invention also discloses an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory complete communication with each other through the communication bus;
[0048] The memory is used to store a computer program;
[0049] When the processor executes the program stored in the memory, it implements the method described in the embodiments of the present invention.
[0050] Embodiments of the present invention also disclose one or more computer-readable media, on which instructions are stored. When executed by one or more processors, the instructions cause the processor to execute the method described in the embodiments of the present invention.
[0051] Embodiments of the present invention include the following advantages:
[0052] In embodiments of the present invention, in response to a first touch trajectory acting on a graphical user interface, at least one movement path matching the first touch trajectory is displayed on the graphical user interface. Among them, different movement paths correspond to different game interfaces. In response to a second touch trajectory acting on the graphical user interface, a corresponding target movement path is determined from at least one movement path according to the first touch trajectory and the second touch trajectory, and it is controlled to switch the current game interface displayed on the graphical user interface to the game interface corresponding to the target movement path. Among them, the second touch trajectory is a touch operation continuous with the first touch trajectory. Applying the embodiments of the present invention, a corresponding target movement path can be determined through the continuous first touch trajectory and second touch trajectory, and the current game interface displayed on the graphical user interface is switched to the game interface corresponding to the target movement path, which is applicable to the switching between any game interfaces, with simple and fast operations, and there is no need to first switch the current game interface back to the lobby and then enter the target game interface from other entrances in the lobby; at the same time, there is no need to adopt a navigation entrance and navigation UI on the game interface, breaking the limitations of the drawer-style UI navigation in design layout, expansion, etc.
[0053] By displaying at least one movement path matching the first touch trajectory on the graphical user interface, the user can refer to the displayed movement path to complete the subsequent second touch trajectory, so as to determine the target movement path corresponding to the first touch trajectory and the second touch trajectory, and control to switch the current game interface displayed on the graphical user interface to the game interface corresponding to the target movement path, avoiding the situation where the user cannot remember the complete target movement path and cannot achieve interface jump. Description of the Drawings
[0054] Figure 1 is a flowchart of the steps of a game interface display method provided in an embodiment of the present invention;
[0055] Figure 2 is a flowchart of the steps of another game interface display method provided in an embodiment of the present invention;
[0056] Figure 3 is a schematic diagram of the association between a movement path and a game interface provided in an embodiment of the present invention;
[0057] Figure 4is a schematic diagram of a starting path of a moving path provided in an embodiment of the present invention;
[0058] Figure 5 is a schematic diagram of a dynamic display of a moving path provided in an embodiment of the present invention;
[0059] Figure 6 is a structural block diagram of a game interface display device provided in an embodiment of the present invention;
[0060] Figure 7 is a block diagram of an electronic device provided in an embodiment of the present invention;
[0061] Figure 8 is a schematic diagram of a computer-readable medium provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0062] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0063] In one embodiment of the present invention, the game interface display method can be run on a local terminal device or a server. When the game interface display method is run on a server, the game interface display method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.
[0064] In an optional implementation, various cloud applications can be run under the cloud interaction system, such as cloud games. Taking cloud games as an example, cloud games refer to a game mode based on cloud computing. In the operation mode of cloud games, the operating body of the game program and the main body of the game screen presentation are separated. The storage and operation of the game interface display method are completed on the cloud game server. The role of the client device is used for receiving and sending data and presenting the game screen. For example, the client device can be a display device with data transmission function close to the user side, such as a first terminal device, a TV, a computer, a handheld computer, etc.; but the game interface display method is performed by the cloud game server in the cloud. When playing the game, the player operates the client device to send an operation instruction to the cloud game server. The cloud game server runs the game according to the operation instruction, encodes and compresses the game screen and other data, and returns it to the client device through the network. Finally, the client device decodes and outputs the game screen.
[0065] In an optional embodiment, taking a game as an example, the local terminal device stores a game program and is used to present a game screen. The local terminal device is used to interact with the player through a graphical user interface, that is, conventionally, the game program is downloaded and installed on an electronic device and run. The ways for the local terminal device to provide the graphical user interface to the player can include various methods. For example, it can be rendered and displayed on the display screen of the terminal, or provided to the player through holographic projection. For example, the local terminal device can include a display screen and a processor. The display screen is used to present the graphical user interface, and the graphical user interface includes a game screen. The processor is used to run the game, generate the graphical user interface, and control the display of the graphical user interface on the display screen.
[0066] Referring to Figure 1 , a step flowchart of a game interface display method provided in an embodiment of the present invention is shown. A graphical user interface is provided through a terminal device. Among them, the terminal device can be the local terminal device described above, or the client device described above. Specifically, it can include the following steps:
[0067] Step 101: Respond to a first touch trajectory acting on the graphical user interface, and display at least one movement path matching the first touch trajectory on the graphical user interface.
[0068] Among them, the terminal device can be an electronic device such as a mobile phone, a tablet computer, a game console, an e-book reader, a multimedia playback device, a wearable device, a PC (Personal Computer), etc.
[0069] A plurality of movement paths are preset in advance. The plurality of movement paths respectively correspond to a plurality of game interfaces. The front part of the plurality of movement paths corresponds to the first touch trajectory. For example, the movement path of the preset distance in the front can correspond to the first touch trajectory, or the movement path before the first turning point in the movement path can correspond to the first touch trajectory, etc. The present invention is not limited thereto.
[0070] Specifically, in any game interface of the game, when responding to a first touch trajectory acting on the graphical user interface, if the first touch trajectory matches the front part of at least one movement path, then at least one movement path matching the first touch trajectory is displayed on the graphical user interface.
[0071] When there are too many game interfaces in a game, there are also many corresponding movement paths for the game interfaces, making it difficult for users to remember all the movement paths corresponding to the game interfaces. Therefore, in the embodiments of the present invention, by displaying at least one movement path matching the first touch trajectory on the graphical user interface, the user can complete the subsequent second touch trajectory with reference to the displayed movement path to determine the target movement path. That is, as long as the user only remembers the first part of the target movement path (the first touch trajectory), they can complete the second touch trajectory with reference to the displayed movement path, thereby determining the target movement path, avoiding the situation where the user cannot remember the complete movement path and cannot achieve game interface switching.
[0072] Step 102: Respond to the second touch trajectory acting on the graphical user interface, determine the corresponding target movement path from the at least one movement path according to the first touch trajectory and the second touch trajectory, and control to switch the current game interface displayed on the graphical user interface to the game interface corresponding to the target movement path.
[0073] Wherein, the second touch trajectory is a touch operation continuous with the first touch trajectory, and there can be multiple second touch trajectories. All touch trajectories continuous after the first touch trajectory are second touch trajectories.
[0074] Specifically, after responding to the second touch trajectory acting on the graphical user interface, the target movement path can be determined from the at least one movement path matching the first touch trajectory displayed on the graphical user interface according to the first touch trajectory and the second touch trajectory, and the current game interface displayed on the graphical user interface is switched to the game interface corresponding to the target movement path.
[0075] It should be noted that the second touch trajectory is a touch operation continuous with the first touch trajectory. When the continuous touch operation is interrupted or ends, in order to determine the target movement operation, this operation is invalid.
[0076] In the embodiments of the present invention, the corresponding target movement path can be determined through the continuous first touch trajectory and second touch trajectory, and the current game interface displayed on the graphical user interface is switched to the game interface corresponding to the target movement path. This is applicable to the switching between any game interfaces, with simple and fast operations, without the need to first switch the current game interface back to the lobby and then enter the target game interface from other entrances in the lobby; at the same time, there is no need to adopt navigation entrances and navigation UIs on the game interface, breaking the limitations of the drawer-style UI navigation in design layout, expansion, etc.
[0077] By displaying at least one moving path that matches the first touch trajectory in the graphical user interface, the user can complete the subsequent second touch trajectory with reference to the displayed moving path to determine the target moving path corresponding to the first touch trajectory and the second touch trajectory, and control the current game interface displayed in the graphical user interface to be switched to the game interface corresponding to the target moving path, avoiding the situation where the user cannot remember the complete target moving path and cannot achieve interface jump.
[0078] Refer to Figure 2 , which shows the flowchart of steps of another game interface display method provided in an embodiment of the present invention. By providing a graphical user interface through a terminal device, it can specifically include the following steps:
[0079] Step 201: Respond to the first touch trajectory acting on the graphical user interface, and display at least one moving path that matches the first touch trajectory in the graphical user interface, where different moving paths correspond to different game interfaces.
[0080] In an embodiment of the present invention, the game includes a plurality of different subsystems, and different subsystems are configured to implement different functions in the game, and the game interface is the game function interface corresponding to the subsystem.
[0081] Specifically, in a game, the game system includes a plurality of different subsystems, and different subsystems are configured to implement different functions in the game, and the game interface is the game function interface corresponding to the subsystem. For example, the subsystems included in the sub-game system may include a lobby system, a gameplay system, a mall system, a settings system, etc., and different subsystems display different game interfaces (such as lobby, gameplay, mall, and settings interfaces).
[0082] In an embodiment of the present invention, the touch operation includes at least one of a single-finger swipe operation, a two-finger swipe operation, a multi-finger swipe operation, a two-finger pinch swipe operation, a multi-finger pinch swipe operation, and a click operation.
[0083] Specifically, considering the recognition reliability, the following multiple optional operations are provided: First, draw a first touch trajectory on the graphical user interface by using a two-finger pinch and slide operation or a multi-finger pinch and slide operation, match the moving path corresponding to the first touch trajectory, and then draw a second touch trajectory with reference to the displayed moving path; Second, draw the first touch trajectory and the second touch trajectory by using a two-finger slide operation or a multi-finger slide operation. For example, when using a two-finger slide operation, the first touch trajectory consists of two lines; Third, a click operation can be used to replace the first touch trajectory. After a quick triple (quadruple / quintuple / ...) click, match the corresponding moving path, and then draw the subsequent second touch trajectory with reference to the displayed moving path; Fourth, the first touch trajectory is a graphic, such as a triangle, a square, etc. After drawing the graphic, match the moving path corresponding to the graphic, and then draw the subsequent second touch trajectory with reference to the displayed moving path.
[0084] It should be noted that the first touch trajectory and the second touch trajectory can use the same touch operation or different touch operations, and the embodiments of the present invention are not limited thereto.
[0085] In an embodiment of the present invention, the starting position of the first touch trajectory is located within the specified operation area of the graphical user interface.
[0086] Specifically, to avoid conflicts in gesture operations in the operation hot area, a specified operation area is set in the area of the graphical user interface that is not the operation hot area. When the starting position of the first touch trajectory is in this specified operation area, the first gesture operation can take effect.
[0087] In an embodiment of the present invention, before the step 201, it further includes: in response to a touch operation acting on the graphical user interface, determining the moving path of the touch operation on the graphical user interface; establishing an association relationship between the moving path and the game interface, and storing it.
[0088] Among them, the touch operation can be a single segment or multiple continuous segments of touch trajectories. Specifically, before performing the game interface switching operation, the user can set the moving paths required for switching to different game interfaces according to their actual needs. For example, in response to a touch operation acting on the graphical user interface, determine the moving path of the touch operation on the graphical user interface, establish an association relationship between the moving path and the game interface, and store it, so as to establish the relationship between each game interface and the moving path. Refer to Figure 3 , which shows a schematic diagram of the association between a moving path and a game interface provided in an embodiment of the present invention. In the figure, the lobby interface, the gameplay interface, the construction interface, the cultivation interface, and the store interface all correspond to different moving paths. As long as the moving path is completed on the graphical user interface, the game interface corresponding to the moving path can be switched.
[0089] In the embodiments of the present invention, the movement path can be set by user graffiti and autonomous awareness, which can give users greater operation freedom and a good user experience.
[0090] In an embodiment of the present invention, determining the target movement path corresponding to the first touch trajectory includes: determining a first coordinate point set of the first touch trajectory and a second coordinate point set of the previous part of the movement path corresponding to the first touch trajectory in the movement path; performing normalization processing on the first coordinate point set and the second coordinate point set; wherein the normalization processing includes at least one of quantity normalization, angle normalization, size normalization, and coordinate normalization; calculating the difference between the first coordinate point set and the second coordinate point set after the normalization processing; when the difference is less than a preset difference, determining the movement path as the movement path matching the first touch trajectory.
[0091] Among them, the first touch trajectory corresponds to the previous part of the movement path. Refer to Figure 4 , which shows a schematic diagram of the previous part of a movement path provided in the embodiments of the present invention. As can be seen from the figure, the hall interface, gameplay interface, construction interface, cultivation interface, and store interface all correspond to different movement paths, and the previous parts of different movement paths (in the dashed box) correspond to the first touch trajectory.
[0092] Specifically, determine a first coordinate point set of the first touch trajectory in the graphical user interface and a second coordinate point set of the previous part of the movement path corresponding to the first touch trajectory in the movement path in the graphical user interface, and perform normalization processing on the first coordinate point set and the second coordinate point set. The normalization processing includes at least quantity normalization, angle normalization, size normalization, coordinate normalization, etc.
[0093] Quantity normalization is because the quantities of the first coordinate point set and the second coordinate point set are inconsistent, so resampling is performed on the first coordinate point set and the second coordinate point set to sample the same number of first coordinate point sets and second coordinate point sets; angle normalization is because the direction of the first touch trajectory drawn by the user in the graphical interface is different from that of the previous part of the movement path, so the first touch trajectory and the previous part of the movement path are rotated so that the direction (angle) of the first touch trajectory is the same as that of the previous part of the movement path; size normalization is because the sizes of the first touch trajectory drawn by the user in the graphical interface and the previous part of the movement path are different, so the first touch trajectory and the previous part of the movement path are scaled; coordinate normalization is because the position of the first touch trajectory drawn by the user in the graphical interface where the user draws the first touch trajectory is inconsistent with the position of the previous part of the movement path in the graphical interface, so the center points of the first touch trajectory and the previous part of the movement path are translated to the origin of the coordinate system.
[0094] Calculate the difference between the first set of coordinate points and the second set of coordinate points after normalization processing; when the difference is less than a preset difference, determine that the matching is successful, and determine the movement path as the movement path matching the first touch trajectory.
[0095] Calculate the difference between the two sets of coordinate points as follows:
[0096] dx:=template_points.x - point.x;
[0097] dy:=template_points.y - point.y;
[0098] diff=sqrt(dx * dx + dy * dy) / points.count;
[0099] Wherein, template_points.x is the sum of the x values in the first set of coordinate points; point.x is the sum of the x values in the second set of coordinate points; template_points.y is the sum of the y values in the first set of coordinate points; point.y is the sum of the y values in the second set of coordinate points; sqrt() is the square root; points.count is the number of sets of coordinate points; diff is the difference.
[0100] In an embodiment of the present invention, the method further includes: displaying the name of the game interface corresponding to the movement path on the movement path displayed on the graphical user interface.
[0101] Specifically, when at least one movement path matching the first touch trajectory is displayed on the graphical user interface, the name of the game interface corresponding to the movement path is simultaneously displayed on the movement path displayed on the graphical user interface, so as to remind the user of the game interface corresponding to the displayed movement path, so that the user can refer to the displayed movement path to complete the subsequent second touch trajectory, determine the corresponding target movement path, and control the current game interface displayed on the graphical user interface to be switched to the game interface corresponding to the target movement path.
[0102] Refer to Figure 5 , which shows a schematic diagram of dynamic display of a movement path provided in an embodiment of the present invention. As can be seen from the figure, on the movement path displayed on the graphical user interface, the name of the game interface corresponding to the movement path is displayed, such as the mall, settings, and lobby.
[0103] Step 202: When there are at least two movement paths displayed on the graphical user interface, in response to the second touch trajectory acting on the graphical user interface, clear the movement paths displayed on the graphical user interface that do not match the second touch trajectory
[0104] Among them, the second touch trajectory is a continuous touch trajectory after the first touch trajectory, and the second touch trajectory can be one or more.
[0105] Specifically, when at least two moving paths are displayed on the graphical user interface, in response to the second touch trajectory acting on the graphical user interface, the at least two moving paths that match the second touch trajectory and the first touch trajectory displayed on the graphical user interface are matched, and the moving paths that match or do not match the second touch trajectory can be determined. The specific operations are as follows:
[0106] Determine the coordinate point set of the second touch trajectory on the graphical user interface and the coordinate point set of the partial moving path corresponding to the second touch trajectory in the moving path (the partial moving path is the moving path after the previous part of the moving path in the moving path). Then, perform normalization processing on the above two coordinate point sets in terms of quantity, angle, size, coordinates, etc. After the normalization processing, calculate the difference between the two coordinate point sets. When the difference is greater than or equal to the preset difference, determine that the target moving path does not match the middle segment moving path, and clear the moving path that does not match the second touch trajectory displayed on the graphical user interface.
[0107] Clear the moving path that does not match the second touch trajectory displayed on the graphical user interface. When the number of moving paths displayed on the graphical user interface is still greater than or equal to two, repeat step 202 to clear the moving path that does not match the next second touch trajectory displayed on the graphical user interface until only one moving path is displayed on the graphical user interface.
[0108] Refer to Figure 5 , as can be seen from the figure, after obtaining the first touch trajectory (black line) of the first gesture operation on the graphical user interface, three moving paths (gray lines) that match the first touch trajectory are determined as the moving paths corresponding to the mall interface, the settings interface, and the lobby interface, and are displayed on the graphical user interface. In response to the second touch trajectory (black line) acting on the graphical user interface, the moving path that does not match the second touch trajectory is determined as the moving path corresponding to the lobby interface, and the moving path corresponding to the lobby interface is cleared (not displayed on the graphical user interface). Then, continue to respond to the next second touch trajectory acting on the graphical user interface, and clear the moving path that does not match the next second touch trajectory from the graphical user interface until only one moving path is displayed in the graphical user interface.
[0109] In the embodiment of the present invention, based on the second touch trajectory, the number of moving paths displayed on the graphical user interface can be dynamically adjusted, giving the user a high-quality path hint experience.
[0110] Step 203: When only one moving path is displayed on the graphical user interface, determine the moving path as the target moving path.
[0111] Specifically, when there is one movement path displayed on the graphical user interface, there are two cases. The first case: in response to the first touch trajectory acting on the graphical user interface, one movement path matching the first touch trajectory is displayed on the graphical user interface. The second case: in response to the first touch trajectory acting on the graphical user interface, at least two movement paths matching the first touch trajectory are displayed on the graphical user interface, and then in response to the second touch trajectory acting on the graphical user interface, the movement paths that do not match the second touch trajectory and are displayed on the graphical user interface are cleared until there is one movement path displayed on the graphical user interface.
[0112] Determine the one movement path displayed in the graphical user interface as the target movement path, and switch the current game interface displayed in the graphical user interface to the game interface corresponding to the target movement path.
[0113] In the embodiments of the present invention, the corresponding target movement path can be determined through continuous first touch trajectory and second touch trajectory, and the current game interface displayed on the graphical user interface is switched to the game interface corresponding to the target movement path, which is applicable to the switching between any game interfaces, with simple and fast operation, without the need to first switch the current game interface back to the hall and then enter the target game interface from other entrances of the hall; at the same time, in the game interface, there is no need to adopt navigation entrances and navigation UIs, breaking the limitations in design layout, expansion, etc. of the drawer-type UI navigation.
[0114] By displaying at least one movement path matching the first touch trajectory on the graphical user interface, the user can refer to the displayed movement path to complete the subsequent second touch trajectory, so as to determine the target movement path corresponding to the first touch trajectory and the second touch trajectory, and control the switching of the current game interface displayed on the graphical user interface to the game interface corresponding to the target movement path, avoiding the situation where the user cannot remember the complete target movement path and cannot achieve interface jump.
[0115] The movement path can be set by the user's graffiti and self-awareness, which can give the user greater operation freedom and a good user experience.
[0116] Based on the second touch trajectory, dynamically adjust the number of movement paths displayed on the graphical user interface, giving the user a high-quality path hint experience.
[0117] To better understand the embodiments in the present invention, the following uses specific embodiments to exemplarily illustrate the solutions in the present invention.
[0118] Drawing start: Before the user initiates a touch operation (including the first touch trajectory and the second touch trajectory) acting on the graphical user interface, clear the movement path matching the previous touch operation displayed on the graphical user interface.
[0119] The user initiates a touch operation on the graphical user interface, performs a movement path matching based on the current touch operation, returns a set of successfully matched movement paths, and displays the movement paths and prompts (game interface name) matched by the touch operation on the graphical user interface. When the touch operation continues, the movement paths and prompts displayed on the graphical user interface will change dynamically. If the returned set of movement paths contains multiple different movement paths, it means that multi-game interface jump is satisfied.
[0120] Drawing end: After the touch operation initiated by the user on the graphical user interface ends, perform a movement path matching based on the complete touch operation. If the matching fails, the set of movement paths is empty. If the matching is successful and the set of movement paths is not empty, switch to the game interface corresponding to the matched target movement path.
[0121] Movement path matching includes:
[0122] Obtain the coordinate point set of the touch operation on the graphical user interface and the coordinate point set of each movement path, calculate the difference between the coordinate point set of the touch operation on the graphical user interface and the coordinate point set of each movement path. When the difference is less than the preset threshold, the matching is successful.
[0123] During the continuous process of the touch operation, continuously calculate the difference between the coordinate point set of the touch operation on the graphical user interface and the coordinate point set of each movement path, and update the movement paths successfully matched by the touch operation.
[0124] When the touch operation ends, calculate the difference between the coordinate point set of the touch operation on the graphical user interface and the coordinate point set of each movement path, and determine an optimal matched target movement path for game interface jump.
[0125] Calculating the difference between the coordinate point set of the touch operation on the graphical user interface and the coordinate point set of each movement path includes:
[0126] After obtaining the coordinate point set of the touch operation on the graphical user interface and the coordinate point set of each movement path, perform normalization processing on the coordinate point set of the touch operation on the graphical user interface and the coordinate point set of each movement path in terms of quantity, angle, size, and coordinates as follows:
[0127] Quantity normalization: Resample the coordinate point sets of both to sample the same number of coordinate point sets from the coordinate point sets of both.
[0128] Angle normalization: Use the golden ratio division search to search for the optimal angle within the rotation angle range, and rotate the path formed by the coordinate point set corresponding to the touch operation and the movement path based on the optimal angle.
[0129] Size normalization: Scale the paths formed by the coordinate point sets corresponding to the touch operations and the movement path so that the sizes of the two are normalized.
[0130] Coordinate normalization: Translate the center points of the paths formed by the coordinate point sets corresponding to the touch operations and the movement path to the origin of the coordinate system to normalize the coordinates of the two.
[0131] After normalizing the two coordinate point sets, calculate the difference between the two coordinate point sets as follows:
[0132] dx: = template_points.x - point.x;
[0133] dy: = template_points.y - point.y;
[0134] diff = sqrt(dx * dx + dy * dy) / points.count;
[0135] Among them, template_points.x is the sum of the x values in the coordinate point set corresponding to the touch operation; point.x is the sum of the x values in the coordinate point set of the movement path; template_points.y is the sum of the y values in the coordinate point set corresponding to the touch operation; point.y is the sum of the y values in the coordinate point set of the movement path; sqrt() is the square root; points.count is the number of coordinate point sets; diff is the difference.
[0136] In the embodiments of the present invention, the current game interface displayed on the graphical user interface can be switched to the game interface corresponding to the movement path by matching the touch operation with the corresponding movement path, which is applicable to the switching between any game interfaces, and the operation is simple and fast. There is no need to first switch the current game interface back to the hall and then enter the target game interface from other entrances of the hall; at the same time, there is no need to use navigation entrances and navigation UIs in the game interface, breaking the limitations of the drawer-style UI navigation in design layout, expansion, etc.
[0137] By displaying the movement path and prompt matching the touch operation on the graphical user interface during the starting process of drawing, the user can complete the touch operation with reference to the displayed movement path and prompt, so as to determine the target movement path corresponding to the touch operation at the end of drawing, and control the switching of the current game interface displayed on the graphical user interface to the game interface corresponding to the target movement path, avoiding the situation where the user cannot remember the complete target movement path and cannot achieve interface jump.
[0138] It should be noted that, for the method embodiments, for the sake of simple description, they are all expressed as a series of action combinations. However, those skilled in the art should be aware that the embodiments of the present invention are not limited by the described action sequences, because according to the embodiments of the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily essential for the embodiments of the present invention.
[0139] Referring to Figure 6 , a structural block diagram of a game interface display device provided in an embodiment of the present invention is shown. A graphical user interface is provided through a terminal device, which may specifically include the following modules:
[0140] A path display module 601, configured to respond to a first touch trajectory acting on the graphical user interface, and display at least one moving path matching the first touch trajectory on the graphical user interface, where different moving paths correspond to different game interfaces;
[0141] An interface display module 602, configured to respond to the second touch trajectory acting on the graphical user interface, determine a corresponding target moving path from the at least one moving path according to the first touch trajectory and the second touch trajectory, and control the current game interface displayed on the graphical user interface to be switched to the game interface corresponding to the target moving path, where the second touch trajectory is a touch operation continuous with the first touch trajectory.
[0142] Optionally, the game includes a plurality of different subsystems, and different subsystems are configured to implement different functions in the game, and the game interface is a game function interface corresponding to the subsystem.
[0143] Optionally, it further includes:
[0144] A path clearing module, configured to, when there are at least two moving paths displayed on the graphical user interface, respond to the second touch trajectory acting on the graphical user interface, and clear the moving paths displayed on the graphical user interface that do not match the second touch trajectory;
[0145] A path determination module, configured to, when there is one moving path displayed on the graphical user interface, determine the moving path as the target moving path.
[0146] Optionally, it further includes:
[0147] The path display module is further configured to display the name of the game interface corresponding to the moving path on the moving path displayed on the graphical user interface.
[0148] Optionally, it further includes:
[0149] The path determination module is further configured to determine the movement path of the touch operation on the graphical user interface in response to the touch operation acting on the graphical user interface;
[0150] The relationship establishment module is configured to establish an association relationship between the movement path and the game interface and store it.
[0151] Optionally, the path matching module includes:
[0152] The coordinate determination sub-module is configured to determine a first set of coordinate points of the first touch trajectory and a second set of coordinate points of the previous part of the movement path corresponding to the first touch trajectory in the movement path;
[0153] The normalization processing sub-module is configured to perform normalization processing on the first set of coordinate points and the second set of coordinate points; wherein, the normalization processing includes at least one of quantity normalization, angle normalization, size normalization, and coordinate normalization;
[0154] The difference calculation sub-module is configured to calculate the difference between the first set of coordinate points and the second set of coordinate points after the normalization processing;
[0155] The path determination sub-module is configured to determine the movement path as the movement path matching the first touch trajectory when the difference is less than a preset difference.
[0156] Optionally, the starting position of the first touch trajectory is located within the specified operation area of the graphical user interface.
[0157] Optionally, the touch operation includes at least one of a single-finger swipe operation, a two-finger swipe operation, a multi-finger swipe operation, a two-finger pinch swipe operation, a multi-finger pinch swipe operation, and a click operation.
[0158] For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for the relevant parts, please refer to the partial description of the method embodiment.
[0159] In addition, the embodiment of the present invention further provides an electronic device, as Figure 7 shown, including a processor 701, a communication interface 702, a memory 703, and a communication bus 704, wherein the processor 701, the communication interface 702, and the memory 703 complete mutual communication through the communication bus 704,
[0160] The memory 703 is used to store a computer program;
[0161] The processor 701 is configured to implement the game interface display method described in the above embodiment when executing the program stored on the memory 703.
[0162] The communication bus mentioned in the above terminal may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of convenience of representation, only a thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0163] The communication interface is used for communication between the above terminal and other devices.
[0164] The memory may include a Random Access Memory (RAM), or may also include a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located far from the aforementioned processor.
[0165] The above-mentioned processor may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0166] As Figure 8 shown, in another embodiment provided by the present invention, a computer-readable storage medium 801 is further provided. Instructions are stored in the computer-readable storage medium. When it runs on a computer, it causes the computer to execute the game interface display method described in the above embodiment.
[0167] In another embodiment provided by the present invention, a computer program product containing instructions is further provided. When it runs on a computer, it causes the computer to execute the XX method described in the above embodiment.
[0168] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present invention are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer, or a data storage device such as a server or data center that includes one or more integrated available media. The available medium can be a magnetic medium (such as a floppy disk, hard disk, magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (SSD)).
[0169] It should be noted that in this document, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including", or any other variant thereof is intended to cover non-exclusive inclusion, such that a process, method, article, or device that includes a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or device. Without further limitation, an element defined by the statement "including a..." does not exclude the existence of additional identical elements in the process, method, article, or device that includes the element.
[0170] Each embodiment in this specification is described in a related manner. For the same or similar parts among the embodiments, reference can be made to each other. Each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and reference can be made to the relevant part of the method embodiment for the relevant content.
[0171] The above are only the preferred embodiments of the present invention and are not intended to limit the protection scope of the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention are all included within the protection scope of the present invention.
Claims
1. A method for displaying a game interface, characterized in that, Providing a graphical user interface through a terminal device, the method includes: Presetting a plurality of moving paths in advance, the plurality of moving paths respectively corresponding to a plurality of game interfaces in the game, and the front part of the plurality of moving paths corresponding to a first touch trajectory; Responding to the first touch trajectory acting on the graphical user interface, and displaying at least one moving path matching the first touch trajectory on the graphical user interface, wherein different moving paths correspond to different game interfaces; When there are at least two moving paths displayed on the graphical user interface, responding to a second touch trajectory acting on the graphical user interface, and clearing the moving paths displayed on the graphical user interface that do not match the second touch trajectory; Determining a corresponding target moving path from the at least one moving path according to the first touch trajectory and the second touch trajectory, and controlling to switch the current game interface displayed on the graphical user interface to the game interface corresponding to the target moving path, wherein the second touch trajectory is a touch operation continuous with the first touch trajectory; Wherein, clearing the moving paths displayed on the graphical user interface that do not match the second touch trajectory includes: When there are still two or more moving paths displayed on the graphical user interface, repeatedly execute the next second touch trajectory acting on the graphical user interface, and clear the moving paths displayed on the graphical user interface that do not match the next second touch trajectory until there is only one moving path displayed on the graphical user interface.
2. The method according to claim 1, characterized in that The game includes a plurality of different subsystems, and different subsystems are configured to implement different functions in the game, and the game interface is the game function interface corresponding to the subsystem.
3. The method according to claim 1, wherein After displaying at least one moving path matching the first touch trajectory on the graphical user interface, it further includes: When there is only one moving path displayed on the graphical user interface, determining the moving path as the target moving path.
4. The method according to any one of claims 1 to 3, characterized in that, It further includes: Displaying the name of the game interface corresponding to the moving path on the moving path displayed on the graphical user interface.
5. The method according to claim 1, wherein Before responding to the first touch trajectory acting on the graphical user interface, it further includes: Responding to a touch operation acting on the graphical user interface, and determining the moving path of the touch operation on the graphical user interface; Establishing and storing the association relationship between the moving path and the game interface.
6. The method according to claim 1, characterized in that, Determining the moving path matching the first touch trajectory includes: Determining a first coordinate point set of the first touch trajectory, and a second coordinate point set of the front part of the moving path corresponding to the first touch trajectory in the moving path; Determining a first coordinate point set of the starting moving path, and a second coordinate point set of the starting moving path of the preset moving path; Performing normalization processing on the first coordinate point set and the second coordinate point set; wherein the normalization processing includes at least one of quantity normalization, angle normalization, size normalization, and coordinate normalization; Calculating the difference between the first coordinate point set and the second coordinate point set after the normalization processing; When the difference is less than a preset difference, determine the movement path as the movement path matching the first touch trajectory.
7. The method according to claim 1, wherein The starting position of the first touch trajectory is located within a specified operation area of the graphical user interface.
8. The method according to claim 1, characterized in that, The touch operation includes at least one of a single-finger swipe operation, a two-finger swipe operation, a multi-finger swipe operation, a two-finger pinch and swipe operation, a multi-finger pinch and swipe operation, and a click operation.
9. A game interface display device, characterized in that, Provide a graphical user interface through a terminal device, the device includes: A path display module, configured to preset a plurality of movement paths in advance, the plurality of movement paths respectively corresponding to a plurality of game interfaces in a game, and the front part of the plurality of movement paths corresponding to the first touch trajectory; in response to the first touch trajectory acting on the graphical user interface, display at least one movement path matching the first touch trajectory on the graphical user interface, wherein different movement paths correspond to different game interfaces; An interface display module, configured to respond to a second touch trajectory acting on the graphical user interface, determine a corresponding target movement path from the at least one movement path according to the first touch trajectory and the second touch trajectory, and control to switch the current game interface displayed on the graphical user interface to the game interface corresponding to the target movement path, wherein the second touch trajectory is a touch operation continuous with the first touch trajectory; Wherein, the device further includes: A path clearing module, configured to, when there are at least two movement paths displayed on the graphical user interface, respond to the second touch trajectory acting on the graphical user interface, and clear the movement paths displayed on the graphical user interface that do not match the second touch trajectory; The clearing of the movement paths displayed on the graphical user interface that do not match the second touch trajectory includes: When the number of movement paths displayed on the graphical user interface is still greater than or equal to two, repeatedly execute the next second touch trajectory acting on the graphical user interface, and clear the movement paths displayed on the graphical user interface that do not match the next second touch trajectory until there is only one movement path displayed on the graphical user interface.
10. An electronic device, characterized in that, It includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory complete mutual communication through the communication bus; The memory is used for storing a computer program; The processor, when executing the program stored on the memory, implements the method according to any one of claims 1-8.
11. One or more computer-readable media, having instructions stored thereon, which when executed by one or more processors, cause the processors to execute the method according to any one of claims 1-8.
Citation Information
Patent Citations
Touch panel and associated display method
CN103631429A
Handwriting recognition method, touch display equipment, computer equipment and storage medium
CN113673432A