Game track processing method and apparatus, and electronic device and storage medium
Patent Information
- Application Number
- PCT/CN2026/073983
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-02-18
- Filing Date
- 2026-01-21
- Publication Date
- 2026-08-27
Smart Images

Figure CN2026073983_27082026_PF_FP_ABST
Abstract
Description
Game track processing methods, devices, electronic devices and storage media
[0001] Cross-reference to related applications
[0002] This application claims priority to Chinese Patent Application No. 202510181546.X, filed on February 18, 2025, entitled “Game Track Processing Method, Apparatus, Electronic Device and Storage Medium”, the entire contents of which are incorporated herein by reference. Technical Field
[0003] This disclosure relates to the field of game technology, and more specifically, to a game track processing method, apparatus, electronic device, and storage medium. Background Technology
[0004] A user-generated content (UGC) track editor is a tool that allows users to customize and edit racing tracks. Users can design unique track layouts, landscapes, and difficulty levels based on their own ideas and needs.
[0005] Currently, when designing a long racing track, due to the large number of tracks that need to be edited, it is necessary to select each track individually and edit each selected track separately.
[0006] However, the above method can lead to long processing times and low efficiency in editing tracks when a large number of tracks are required. Summary of the Invention
[0007] The purpose of this disclosure is to provide a method, device, electronic device, and storage medium for processing game tracks, so as to improve the efficiency and accuracy of users customizing and editing racing tracks and enhance the user experience.
[0008] To achieve the above objectives, the technical solutions adopted in the embodiments of this disclosure are as follows:
[0009] In a first aspect, embodiments of this disclosure provide a game track processing method, which displays a game scene on a terminal's user interface. The game scene includes a racing track map, and the track map includes multiple sub-tracks. The method includes:
[0010] In response to the determination of a target sub-track in the track map, relevant track information of the target sub-track is obtained, and the relevant track information is used to indicate the existence of a sub-track connected to the target sub-track;
[0011] Based on the relevant track information, display control markers at designated locations on the target sub-track;
[0012] In response to a touch operation of the control identifier, the track to be edited is determined from each sub-track based on the start and end position information of the touch operation, and the track to be edited is then edited in batches.
[0013] Secondly, this disclosure also provides a game track processing device that displays a game scene on a terminal's user interface. The game scene includes a racing track map, which includes multiple sub-tracks. The device includes: an acquisition module, a display module, and a processing module.
[0014] The acquisition module is configured to perform a determination operation in response to a target sub-track in the track map, and acquire relevant track information of the target sub-track, wherein the relevant track information is used to indicate the existence of a sub-track connected to the target sub-track;
[0015] The display module is configured to display control icons at a specified location on the target sub-track based on the relevant track information.
[0016] The processing module is configured to perform a touch operation in response to the control identifier, determine the track to be edited from each sub-track based on the start position information and end position information of the touch operation, and perform batch editing on the track to be edited.
[0017] Thirdly, embodiments of this disclosure provide an electronic device, including: a processor, a storage medium, and a bus. The storage medium stores machine-readable instructions executable by the processor. When the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the game track processing method provided in the first aspect.
[0018] Fourthly, embodiments of this disclosure provide a computer-readable storage medium storing a computer program that, when executed by a processor, performs the game track processing method as provided in the first aspect.
[0019] The beneficial effects of this disclosure are:
[0020] This disclosure provides a game track processing method, apparatus, electronic device, and storage medium, including: in response to a determination operation of a target sub-track in a track map, acquiring relevant track information of the target sub-track; displaying a control icon at a designated position of the target sub-track based on the relevant track information; and in response to a touch operation of the control icon, determining the track to be edited from each sub-track based on the start and end position information of the touch operation, and performing batch editing of the track to be edited. This disclosure enables a multi-track selection mode based on the provided multi-track selection control. In this mode, a multi-track selection controller can be triggered based on the selected target sub-track, allowing users to input touch operations via the controller for convenient multi-track selection. By monitoring the input touch operations in real time, the system can intelligently select the track to be edited from multiple sub-tracks based on the start and end positions of the touch operations, improving the efficiency and ease of operation of multi-track selection. Furthermore, based on the provided batch editing function, selected tracks to be edited can be edited in batches, greatly improving track editing efficiency and overcoming the tedious operation problem of editing tracks one by one. Attached Figure Description
[0021] To more clearly illustrate the technical solutions of the embodiments of this disclosure, the accompanying drawings used in the embodiments will be briefly described below. It should be understood that the following drawings only show some embodiments of this disclosure and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0022] Figure 1 is a schematic diagram of one of the user interfaces provided in an embodiment of this disclosure;
[0023] Figure 2 is a flowchart illustrating one of the game track processing methods provided in this embodiment of the present disclosure;
[0024] Figure 3 is a flowchart illustrating another game track processing method provided in this embodiment of the present disclosure;
[0025] Figure 4 is a flowchart illustrating yet another game track processing method provided in this embodiment of the present disclosure;
[0026] Figure 5 is a flowchart illustrating yet another game track processing method provided in this embodiment of the present disclosure;
[0027] Figure 6 is a flowchart illustrating another game track processing method provided in this embodiment of the present disclosure;
[0028] Figure 7 is a schematic diagram of another user interface provided in an embodiment of this disclosure;
[0029] Figure 8 is a flowchart illustrating another game track processing method provided in this embodiment of the present disclosure;
[0030] Figure 9 is a schematic diagram of one of the game track processing devices provided in the embodiments of this disclosure;
[0031] Figure 10 is a schematic diagram of the structure of one of the electronic devices provided in the embodiments of this disclosure. Detailed Implementation
[0032] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. It should be understood that the accompanying drawings in this disclosure are for illustrative and descriptive purposes only and are not intended to limit the scope of protection of this disclosure. Furthermore, it should be understood that the schematic drawings are not drawn to scale. The flowcharts used in this disclosure illustrate operations implemented according to some embodiments of this disclosure. It should be understood that the operations in the flowcharts may not be implemented in sequence, and steps without logical contextual relationships may be reversed or implemented simultaneously. In addition, those skilled in the art, guided by the content of this disclosure, may add one or more other operations to the flowcharts, or remove one or more operations from the flowcharts.
[0033] Furthermore, the described embodiments are merely some, not all, of the embodiments of this disclosure. The components of the embodiments of this disclosure typically described and illustrated in the accompanying drawings can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this disclosure provided in the drawings is not intended to limit the scope of the claimed disclosure, but merely to illustrate selected embodiments of the disclosure. All other embodiments obtained by those skilled in the art based on the embodiments of this disclosure without inventive effort are within the scope of protection of this disclosure.
[0034] In one embodiment of this disclosure, the game track processing method can run on a local terminal device or a server. When the game track processing method runs on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.
[0035] In an optional implementation, various cloud applications, such as cloud gaming, can run under the cloud interaction system. Taking cloud gaming as an example, cloud gaming refers to a gaming method based on cloud computing. In the cloud gaming operating mode, the game program and the game screen presentation are separated. The storage and execution of the game track processing method are completed on the cloud gaming server. The client device is used for data reception, transmission, and game screen presentation. For example, the client device can be a display device with data transmission capabilities located close to the user, such as a mobile terminal, television, computer, or PDA; however, the information processing is performed by the cloud gaming server in the cloud. When playing the game, the player operates the client device to send operation commands to the cloud gaming server. The cloud gaming server runs the game according to the operation commands, encodes and compresses the game screen and other data, returns it to the client device via the network, and finally, the client device decodes and outputs the game screen.
[0036] In an optional implementation, taking a game as an example, the local terminal device stores the game program and is used to display the game screen. The local terminal device is used to interact with the player through a graphical user interface (GUI), i.e., conventionally by downloading, installing, and running the game program via an electronic device. The local terminal device can provide the GUI to the player in various ways, such as rendering it on the terminal's display screen or providing it to the player via holographic projection. For example, the local terminal device can include a display screen for displaying the GUI, which includes game screens, and a processor for running the game, generating the GUI, and controlling the display of the GUI on the display screen.
[0037] In one possible implementation, this disclosure provides a game track processing method that provides a graphical user interface through a terminal device, wherein the terminal device may be the aforementioned local terminal device or a client device in the aforementioned cloud interactive system.
[0038] It should be noted that the term "comprising" will be used in the embodiments of this disclosure to indicate the presence of the features subsequently declared, but does not exclude the addition of other features.
[0039] In user-generated content (UGC) editors, designing a racing track often involves a large number of tracks and a wide range of editing dimensions, making the process of selecting tracks one by one quite time-consuming. Furthermore, if the track is located in a complex landscape, using existing filtering and selection functions often results in mistakenly selecting tracks that are not needed for editing, further increasing the complexity and difficulty of the editing process. These issues highlight the shortcomings of related technologies in terms of ease of use and efficiency.
[0040] Based on this, this disclosure provides a method for processing game tracks. After enabling the multi-track selection mode, when connected tracks are detected, the track can be intelligently multi-selected through the player's touch input, making it convenient for the player to quickly select multiple track segments. It also provides a batch processing function for the selected track segments, making it convenient for the player to edit multiple track segments in a unified manner, achieving fast and efficient track editing and improving the user experience.
[0041] Figure 1 is a schematic diagram of a user interface provided in an embodiment of this disclosure. As shown in Figure 1, a game scene is displayed on the user interface of the terminal. The game scene includes a racing track map, which includes multiple sub-tracks. The starting and ending faces of some sub-tracks are connected to each other in sequence to form connected tracks, while some sub-tracks are individual tracks. The user interface may also display a multi-selection control, which can trigger the activation of the track multi-selection mode. In the track multi-selection mode, multiple selections and batch editing of tracks can be performed according to the scheme provided in the following embodiments of this disclosure.
[0042] Figure 2 is a flowchart illustrating a game track processing method provided in an embodiment of this disclosure; as shown in Figure 2, the method may include:
[0043] S101, In response to the determination of the target sub-track in the track map, obtain the relevant track information of the target sub-track.
[0044] Among them, the relevant track information is used to indicate the existence of a sub-track connected to the target sub-track.
[0045] First, the current track map to be edited can be loaded in the user interface. After the track map is loaded, the user can activate the track multi-select mode by triggering the multi-select control displayed in the interface.
[0046] With multi-track selection mode enabled, the system can retrieve relevant track information for a target sub-track in response to the user's confirmation action on the track map. The target sub-track can be any track among all the sub-tracks displayed on the track map. Confirmation of the target sub-track can be a click, a press, or a hover click.
[0047] After selecting the target sub-track, it will determine whether there are any connected sub-tracks to obtain the relevant track information of the target sub-track.
[0048] Typically, a race track extends in a certain direction to form a closed loop. Taking the race track map shown in Figure 1 as an example, the tracks before and after the target sub-track can be considered connected sub-tracks. However, due to track width limitations, there are usually no connected sub-tracks on the left and right sides of the target sub-track. Of course, "before," "after," "left," and "right" are defined according to the orientation of the race track map. In Figure 1, since the race track map is vertically oriented, the connected sub-tracks of the target sub-track are located before and after it, i.e., vertically. If the race track map were horizontally oriented, the connected sub-tracks of the target sub-track would be located to its left and right.
[0049] Assuming that sub-track 3 in Figure 1 is the target sub-track, then the target sub-track has connected sub-tracks, and both sub-track 4 and sub-track 2 are connected sub-tracks of the target sub-track.
[0050] When the target sub-track is sub-track 8 or sub-track 9, it means that the target sub-track does not have any connected sub-tracks.
[0051] S102. Based on the relevant track information, display control markers at designated locations on the target sub-track.
[0052] In some embodiments, when the relevant track information indicates that there are connected sub-tracks in the target sub-track, a control icon can be displayed at a designated location in the target sub-track. The control icon can be a multi-select handle, through which a multi-track selection operation can be input to perform multi-track selection.
[0053] S103. In response to the touch operation of the control icon, determine the track to be edited from each sub-track according to the start position information and end position information of the touch operation, and perform batch editing on the track to be edited.
[0054] Optionally, based on the touch operation of the input control identifier, the start position information and end position information of the touch operation can be obtained. Based on the start position information and end position information, intelligent multi-selection of connected tracks can be performed, thereby determining the track to be edited from multiple sub-tracks in the track map, wherein the track to be edited includes the target sub-track.
[0055] Based on the identified tracks to be edited, a batch editing option can be provided to perform batch and unified editing of the tracks, greatly improving the efficiency of track editing.
[0056] In summary, the game track processing method provided in this embodiment includes: in response to the determination of a target sub-track in the track map, obtaining relevant track information of the target sub-track; displaying a control icon at a designated position of the target sub-track based on the relevant track information; and in response to a touch operation of the control icon, determining the track to be edited from each sub-track based on the start and end position information of the touch operation, and performing batch editing of the track to be edited. This method enables a multi-track selection mode based on the provided multi-track selection control. In this mode, a multi-track selection controller can be triggered based on the selected target sub-track, allowing users to input touch operations via the controller for convenient multi-track selection. By monitoring the input touch operations in real time, the system can intelligently select the track to be edited from multiple sub-tracks based on the start and end positions of the touch operations, improving the efficiency and ease of operation of multi-track selection. Furthermore, based on the provided batch editing function, selected tracks to be edited can be edited in a unified batch, greatly improving track editing efficiency and overcoming the tedious operation problem of editing tracks one by one.
[0057] Figure 3 is a flowchart illustrating another game track processing method provided in this embodiment; optionally, in step S103, determining the track to be edited from each sub-track based on the start and end position information of the touch operation may include:
[0058] S201. Determine the starting and ending surfaces of the track based on the coordinates of the starting and ending positions of the touch operation.
[0059] The system can listen to the user's touch operation on the control icon through a listener, record the coordinates of the start and end positions of the touch operation, and then calculate the approximate direction from the start position to the end position through coordinate calculation. Based on the direction, the starting and ending surfaces of the track can be determined.
[0060] It's worth noting that both the starting and ending faces of the track can be marked by a specific line or a specific area. When marked by a specific line, the starting or ending face can be determined based on the coordinates of points along the line. When marked by a specific area, the starting or ending face can be determined based on the coordinates of points within that area.
[0061] In addition, each sub-track has a starting face and an ending face, which are located at opposite ends of the sub-track, and are distinguished by the track's set direction.
[0062] Taking the track shown in Figure 1 as an example, assuming the positive direction of the track is counterclockwise, the starting surface of sub-track 2 can be the lower boundary surface, and the ending surface of sub-track 2 can be the upper boundary surface. Alternatively, assuming the positive direction of the track is clockwise, the starting surface of sub-track 2 can be the upper boundary surface, and the ending surface of sub-track 2 can be the lower boundary surface.
[0063] S202. Determine the track to be edited based on the starting and ending surfaces of the track.
[0064] Optionally, the track start surface and track end surface determined by the coordinate information of the start position and the end position based on the touch operation do not refer to the start surface and end surface of the same sub-track. The determined track start surface and track end surface belong to different sub-tracks.
[0065] For example: the starting face of the track is the starting face of sub-track 1, and the ending face of the track is the ending face of all other sub-tracks except sub-track 1.
[0066] In some embodiments, the track to be edited can be automatically and intelligently selected between the determined track start face and track end face.
[0067] Figure 4 is a flowchart illustrating another game track processing method provided in this embodiment; optionally, in step S201, determining the track start surface and track end surface based on the coordinate information of the start position and end position of the touch operation may include:
[0068] S301. Determine the sliding direction of the sliding operation based on the coordinate information of the starting position and the coordinate information of the ending position.
[0069] In this embodiment, the touch operation can be a sliding operation. The coordinates of the starting position of the sliding operation can be recorded as A(x1, y1) and the coordinates of the ending position can be recorded as B(x2, y2). Then, by calculating AB(Δx, Δy) = (x2-x1, y2-y1), the sliding direction of the sliding operation can be determined according to the direction of AB.
[0070] For example: if Δx>0 and |Δx|>|Δy|, the sliding direction can be considered to be to the right; if Δx<0 and |Δx|>|Δy|, the sliding direction can be considered to be to the left; if Δy>0 and |Δy|>|Δx|, the sliding direction can be considered to be to the top; if Δy<0 and |Δy|>|Δx|, the sliding direction can be considered to be to the bottom.
[0071] Of course, depending on the set reference direction or datum direction, the direction represented by the same calculation result will also change.
[0072] S302. Determine the starting and ending surfaces of the track based on the sliding direction and the target sub-track.
[0073] Based on the target sub-track and the determined sliding direction, the starting and ending surfaces of the track can be determined. When the sliding direction changes, the corresponding ending surface of the track will change, and thus the track to be edited will also change.
[0074] Figure 5 is a flowchart illustrating another game track processing method provided in this embodiment; optionally, in step S301, determining the sliding direction of the sliding operation based on the coordinate information of the starting position and the coordinate information of the ending position may include:
[0075] S401. Based on the coordinate information of the starting position and the coordinate information of the ending position, determine the direction from the starting position to the ending position.
[0076] As mentioned above, by performing vector operations on the coordinates of the ending position and the starting position, the direction from the starting position to the ending position can be determined based on the operation result.
[0077] S402. Use the direction from the starting position to the ending position as the sliding direction.
[0078] Therefore, the direction from the starting position to the ending position can be used as the sliding direction.
[0079] In some embodiments, the touch operation is not limited to a swipe operation, but can also be a click operation. The user can click the start position and the end position respectively, and the coordinate information of the start position and the coordinate information of the end position can be obtained according to the user's click operation.
[0080] Figure 6 is a flowchart illustrating another game track processing method provided in this embodiment; optionally, in step S302, determining the track start surface and track end surface based on the sliding direction and the target sub-track may include:
[0081] S501. Based on the target sub-track, determine the starting face of the target sub-track and use the starting face of the target sub-track as the starting face of the track.
[0082] In some embodiments, the starting face of the target sub-track is used as the starting face of the track. This is because the target sub-track is also used as the track to be edited, and by using the starting face of the target sub-track as the starting face of the track, the target sub-track can be automatically selected as the track to be edited.
[0083] Of course, in some embodiments, the starting face of the next sub-track connected to the target sub-track can be used as the starting face of the track according to the determined sliding direction, and the target sub-track can be used as a separately selected track directly as the track to be edited.
[0084] S502. Determine the spatial relationship between the ending position and the starting surface of the track based on the sliding direction.
[0085] Based on the direction of the swipe, the spatial relationship between the end position of the touch operation and the starting surface of the track can be determined.
[0086] Figure 7 is a schematic diagram of another user interface provided in an embodiment of this disclosure. Taking Figure 7 as an example, the track is oriented counterclockwise. The starting position of the sliding operation is located on the starting surface of the target sub-track, and the ending position of the sliding operation is located on the ending surface of sub-track 6. The determined sliding direction is from right to left. It can be seen that the ending position relative to the starting surface of the track is the position determined from above the starting surface of the track.
[0087] S503. Based on the spatial relationship, determine the end face of the sub-track to which the end position belongs as the track end face.
[0088] Therefore, based on the spatial relationship, the ending face of sub-track 6 can be determined as the ending face of the track.
[0089] Since the starting and ending faces of two connected sub-tracks are shared, determining the ending face may be inaccurate if the spatial relationship between the ending position and the starting face is not determined. By determining the spatial relationship, the correct path from the starting face to the ending face can be determined, thus preventing misjudgment.
[0090] For example, as shown in Figure 7, the end face of sub-track 6 is also the starting face of sub-track 7. Without determining the spatial relationship between the end position and the starting face, the end of sub-track 7 might be considered the end face of the track, and the path from the starting face to the end face would be below the target sub-track. However, by determining the spatial relationship, it can be determined that the end face of the track is the end face of sub-track 6, and therefore the path from the starting face to the end face would be above the target sub-track.
[0091] Therefore, based on the starting and ending faces of the track, all connected sub-tracks between the starting and ending faces can be used as tracks to be edited.
[0092] Optionally, in step S202, determining the track to be edited based on the track start face and the track end face may include: determining each connected sub-track between the track start face and the track end face as the track to be edited.
[0093] In some embodiments, starting from the starting face of the track, all connected sub-tracks located between the starting face and the ending face of the track can be identified as tracks to be edited.
[0094] As shown in Figure 7, the determined track to be edited is indicated by the shaded area. The target sub-track and sub-track 6 are also tracks to be edited.
[0095] Optionally, in step S101, in response to the determination operation of the target sub-track in the track map, obtaining the relevant track information of the target sub-track may include: in response to the determination operation of the target sub-track in the track map, determining the relevant track information of the target sub-track based on the positional relationship between the starting face of the target sub-track and the ending face of other sub-tracks, and / or the positional relationship between the ending face of the target sub-track and the starting face of other sub-tracks.
[0096] After determining the target sub-track, the coordinates of the starting and ending faces of the target sub-track and the starting and ending faces of other sub-tracks can be read. When the starting face of the target sub-track also serves as the ending face of other sub-tracks, or the ending face of the target sub-track also serves as the starting face of other sub-tracks, it can be considered that there is a track connected to the target sub-track.
[0097] As shown in Figure 1, the end face of sub-track 2 also serves as the starting face of sub-track 3, and the starting face of sub-track 2 also serves as the end face of sub-track 1. Therefore, sub-track 1 and sub-track 3 can be considered as connected tracks of sub-track 2.
[0098] Optionally, in step S102, displaying control markers at a designated location on the target sub-track based on relevant track information may include: displaying control markers on the starting surface of the target sub-track based on relevant track information.
[0099] When there are connected sub-tracks in the target sub-track, a control icon will be automatically displayed at the designated location in the target sub-track.
[0100] In one possible implementation, as shown in Figure 7, control markers can be displayed on the starting surface of the target sub-track.
[0101] In practical applications, control markers can also be displayed at any location on the target sub-track, such as on the track surface of the target sub-track or on the finish line surface.
[0102] Figure 8 is a flowchart illustrating another game track processing method provided in this embodiment; optionally, step S103, batch editing of the track to be edited, may include:
[0103] S701, Mark the track to be edited on the track map.
[0104] In some embodiments, after determining the track to be edited based on the track start face and track end face, selection markers can be generated on the track to be edited, such as highlighting the track to be edited or selecting the track to be edited, so as to highlight the selected multiple sub-tracks for the user.
[0105] S702, in response to a track editing trigger operation, displays at least one track editing option.
[0106] Then, the track editing can be initiated by using the track editing controls displayed on the user interface, and at least one track editing option will be displayed.
[0107] Track editing options can be displayed via a drop-down menu or arranged directly at the top of the user interface. Each track editing option corresponds to a track editing function, used to edit the corresponding attribute information. Track editing options include, but are not limited to: track width editing, track guardrail editing, and track color editing.
[0108] S703: In response to the confirmation of the target track editing option, perform batch editing of the tracks to be edited.
[0109] The target track editing option can be any of the track editing options. In response to the user's confirmation of the target track editing option, the marked tracks to be edited can be automatically edited in batches.
[0110] When you want to use a target track editing option, by confirming the target track editing option, you can execute the editing method corresponding to the target track editing option on the track to be edited, thus realizing batch editing of the tracks to be edited under the target track editing option.
[0111] When you want to use multiple target track editing options, you can execute the corresponding editing methods for each target track editing option sequentially according to the confirmation order of the selection, thus achieving batch editing of the tracks under different track editing options. Alternatively, you can perform batch editing of the tracks under each target track editing option sequentially according to their arrangement, instead of following the confirmation order.
[0112] For example, after selecting the track width editing option, the track width can be edited uniformly. Suppose the track includes three sub-tracks, the track width of these three sub-tracks can be edited uniformly. During uniform editing, the user can input a common track width parameter to edit the width of all three sub-tracks simultaneously, resulting in identical widths for all three sub-tracks after editing. Alternatively, the user can input separate track width parameters for each sub-track to edit their widths simultaneously, resulting in different widths for the three sub-tracks after editing.
[0113] When both the track width editing and track color editing options are selected simultaneously, assuming the track width editing option is clicked first and then the track color editing option is clicked, the track width of the three sub-tracks can be edited in batches according to the confirmation order of the editing options. Then, the color of the three sub-tracks can be edited in batches according to the order of the three sub-tracks. Alternatively, the track width and color can be edited sequentially for the first sub-track, then the second sub-track, and finally the third sub-track.
[0114] In some embodiments, after the track to be edited is edited in a unified batch, the system can automatically save the user's edited content, so that the currently edited track map can be loaded the next time the track map is loaded.
[0115] Optionally, in step S701, after marking the track to be edited on the track map, the method further includes: in response to the operation of canceling the mark of the target track to be edited, deleting the mark of the target track to be edited, and removing the target track to be edited from the track to be edited.
[0116] In some embodiments, the automatically determined editable tracks may include some sub-tracks that the user does not want to edit. In this case, the user can re-trigger a target editable track within the marked editable tracks to unmark the target editable track. The target editable track can be any sub-track within the editable tracks.
[0117] After unmarking the target track to be edited, subsequent batch editing will not be performed on the target track, which provides users with the ability to freely adjust the selected sub-tracks, resulting in a better user experience.
[0118] In summary, the game track processing method provided in this embodiment includes: in response to the determination of a target sub-track in the track map, obtaining relevant track information of the target sub-track; displaying a control icon at a designated position of the target sub-track based on the relevant track information; and in response to a touch operation of the control icon, determining the track to be edited from each sub-track based on the start and end position information of the touch operation, and performing batch editing of the track to be edited. This method enables a multi-track selection mode based on the provided multi-track selection control. In this mode, a multi-track selection controller can be triggered based on the selected target sub-track, allowing users to input touch operations via the controller for convenient multi-track selection. By monitoring the input touch operations in real time, the system can intelligently select the track to be edited from multiple sub-tracks based on the start and end positions of the touch operations, improving the efficiency and ease of operation of multi-track selection. Furthermore, based on the provided batch editing function, selected tracks to be edited can be edited in a unified batch, greatly improving track editing efficiency and overcoming the tedious operation problem of editing tracks one by one.
[0119] The following describes the apparatus, device, and storage medium used to execute the game track processing method provided in this disclosure. The specific implementation process and technical effects are described above and will not be repeated below.
[0120] Figure 9 is a schematic diagram of a game track processing device provided in an embodiment of this disclosure. The functions implemented by this game track processing device correspond to the steps executed by the above-described method. This device can be understood as the terminal device or server described above, or it can be understood as a component that implements the functions of this disclosure under the control of a server, independent of the server or processor. It displays a game scene on the user interface of the terminal. The game scene includes a race track map, and the track map includes multiple sub-tracks. The device may include: an acquisition module 910, a display module 920, and a processing module 930.
[0121] The acquisition module 910 is configured to perform a determination operation in response to a target sub-track in the track map, and acquire relevant track information of the target sub-track. The relevant track information is used to indicate the existence of a sub-track connected to the target sub-track.
[0122] Display module 920 is configured to display control icons at specified locations on the target sub-track based on relevant track information;
[0123] The processing module 930 is configured to perform touch operations in response to control identifiers, determine the track to be edited from each sub-track based on the start and end position information of the touch operation, and perform batch editing on the track to be edited.
[0124] Optionally, the processing module 930 is specifically configured to determine the starting surface and ending surface of the track based on the coordinate information of the starting position and the ending position of the touch operation; and to determine the track to be edited based on the starting surface and the ending surface of the track.
[0125] Optionally, the processing module 930 is specifically configured to perform the following actions: determine the sliding direction of the sliding operation based on the coordinate information of the starting position and the coordinate information of the ending position; and determine the starting surface and ending surface of the track based on the sliding direction and the target sub-track.
[0126] Optionally, the processing module 930 is specifically configured to determine the direction from the starting position to the ending position based on the coordinate information of the starting position and the coordinate information of the ending position; and to use the direction from the starting position to the ending position as the sliding direction.
[0127] Optionally, the processing module 930 is specifically configured to perform the following actions: determining the starting surface of the target sub-track based on the target sub-track, and using the starting surface of the target sub-track as the starting surface of the track; determining the spatial positional relationship between the ending position and the starting surface of the track based on the sliding direction; and determining the ending surface of the sub-track to which the ending position belongs as the ending surface of the track based on the spatial positional relationship.
[0128] Optionally, the processing module 930 is specifically configured to determine each connected sub-track between the track start face and the track end face as the track to be edited.
[0129] Optionally, the acquisition module 910 is specifically configured to perform a determination operation in response to the target sub-track in the track map, and determine the relevant track information of the target sub-track based on the positional relationship between the starting face of the target sub-track and the ending face of other sub-tracks, and / or the positional relationship between the ending face of the target sub-track and the starting face of other sub-tracks.
[0130] Optionally, the display module 920 is specifically configured to execute relevant track information and display control markers on the starting surface of the target sub-track.
[0131] Optionally, the processing module 930 is specifically configured to: mark the track to be edited on the track map; display at least one track editing option in response to a track editing trigger operation; and perform batch editing of the track to be edited in response to a confirmation operation of the target track editing option.
[0132] Optionally, the processing module 930 is also configured to perform a mark removal operation on the target track to be edited, in response to the mark removal operation on the target track to be edited, to delete the mark on the target track to be edited and to remove the target track to be edited from the track to be edited.
[0133] These modules can be one or more integrated circuits configured to implement the above methods, such as one or more Application Specific Integrated Circuits (ASICs), one or more Digital Signal Processors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs). Alternatively, when a module is implemented using processing element scheduler code, the processing element can be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. Furthermore, these modules can be integrated together as a system-on-a-chip (SOC).
[0134] The modules described above can be connected or communicate with each other via wired or wireless connections. Wired connections can include metal cables, optical fibers, hybrid cables, or any combination thereof. Wireless connections can include connections via LAN, WAN, Bluetooth, ZigBee, or NFC, or any combination thereof. Two or more modules can be combined into a single module, and any module can be divided into two or more units. Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems and devices described above can be referred to the corresponding processes in the method embodiments, and will not be repeated here.
[0135] Figure 10 is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure, including: a processor 801, a storage medium 802, and a bus 803. The storage medium 802 stores machine-readable instructions executable by the processor 801. When the electronic device runs a game track processing method as described in the embodiment, the processor 801 communicates with the storage medium 802 through the bus 803. The processor 801 executes the machine-readable instructions to perform the following steps:
[0136] In response to the determination of the target sub-track in the track map, obtain the relevant track information of the target sub-track. The relevant track information is used to indicate the existence of sub-tracks connected to the target sub-track.
[0137] Based on the relevant track information, display control markers at designated locations on the target sub-track;
[0138] In response to touch operations of control icons, the track to be edited is determined from each sub-track based on the start and end position information of the touch operation, and the track to be edited is then edited in batches.
[0139] In one feasible implementation, when the processor 801 determines the track to be edited from each sub-track based on the start position information and end position information of the touch operation, it does so by the following steps: determining the track start surface and track end surface based on the coordinate information of the start position and end position of the touch operation; and determining the track to be edited based on the track start surface and track end surface.
[0140] In one feasible implementation, when the processor 801 determines the starting surface and ending surface of the track based on the coordinate information of the starting position and the ending position of the touch operation, it does so by the following steps: determining the sliding direction of the sliding operation based on the coordinate information of the starting position and the ending position; and determining the starting surface and ending surface of the track based on the sliding direction and the target sub-track.
[0141] In a feasible implementation, when the processor 801 determines the sliding direction of the sliding operation based on the coordinate information of the starting position and the coordinate information of the ending position, it does so by the following steps: determining the direction from the starting position to the ending position based on the coordinate information of the starting position and the coordinate information of the ending position; and taking the direction from the starting position to the ending position as the sliding direction.
[0142] In a feasible implementation, when the processor 801 determines the starting surface and ending surface of the track based on the sliding direction and the target sub-track, it does so by the following steps: determining the starting surface of the target sub-track based on the target sub-track and using the starting surface of the target sub-track as the starting surface of the track; determining the spatial positional relationship between the ending position and the starting surface of the track based on the sliding direction; and determining the ending surface of the sub-track to which the ending position belongs as the ending surface of the track based on the spatial positional relationship.
[0143] In one feasible implementation, when the processor 801 determines the track to be edited based on the track start face and the track end face, it does so by the following steps: determining each connected sub-track between the track start face and the track end face as the track to be edited.
[0144] In one feasible implementation, when the processor 801 performs the operation of determining the target sub-track in response to the track map and obtains the relevant track information of the target sub-track, it does so by the following steps: in response to the operation of determining the target sub-track in the track map, determining the relevant track information of the target sub-track based on the positional relationship between the starting face of the target sub-track and the ending face of other sub-tracks, and / or the positional relationship between the ending face of the target sub-track and the starting face of other sub-tracks.
[0145] In one feasible implementation, when the processor 801 executes the action of displaying control markers at a designated location on the target sub-track based on relevant track information, it does so by performing the following steps: displaying control markers on the starting surface of the target sub-track based on relevant track information.
[0146] In one feasible implementation, when performing batch editing of the track to be edited, the processor 801 performs the following steps: marking the track to be edited on the track map; displaying at least one track editing option in response to a track editing trigger operation; and performing batch editing of the track to be edited in response to a confirmation operation of the target track editing option.
[0147] In one feasible implementation, after marking the track to be edited on the track map, the processor 801 may also perform the following steps: in response to the unmarking operation of the target track to be edited, delete the mark of the target track to be edited, and remove the target track to be edited from the track to be edited.
[0148] In the above steps, the multi-track selection mode is enabled based on the provided multi-track selection control. In this mode, a multi-track selection handle can be triggered based on the selected target sub-track. Users can then input touch operations through the multi-track selection handle to conveniently select multiple tracks. By monitoring the input touch operations in real time, the track to be edited can be intelligently selected from multiple sub-tracks based on the start and end positions of the touch operations, improving the efficiency and ease of operation of multi-track selection. Based on the provided batch editing function, the selected tracks to be edited can be edited in batches, greatly improving the efficiency of track editing and overcoming the tedious operation problem of editing tracks one by one.
[0149] The storage medium 802 stores program code, which, when executed by the processor 801, causes the processor 801 to perform various steps in the game track processing method according to various exemplary embodiments of the present disclosure as described in the "Exemplary Methods" section above.
[0150] The processor 801 can be a general-purpose processor, such as a central processing unit (CPU), digital signal processor (DSP), application-specific integrated circuit (ASIC), field-programmable gate array (FPGA), or other programmable logic device, discrete gate or transistor logic device, or discrete hardware component, capable of implementing or executing the methods, steps, and logic block diagrams disclosed in the embodiments of this disclosure. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this disclosure can be directly manifested as being executed by a hardware processor, or executed by a combination of hardware and software modules within the processor.
[0151] Storage medium 802, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The memory can include at least one type of storage medium, such as flash memory, hard disk, multimedia card, card-type memory, random access memory (RAM), static random access memory (SRAM), programmable read-only memory (PROM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), magnetic memory, magnetic disk, optical disk, etc. Memory is any other medium capable of carrying or storing desired program code having an instruction or data structure form and accessible by a computer, but is not limited thereto. Storage medium 802 in this embodiment can also be a circuit or any other device capable of implementing storage functions for storing program instructions and / or data.
[0152] Optionally, embodiments of this disclosure also provide a computer-readable storage medium storing a computer program, which is executed by a processor, and the processor performs the following steps:
[0153] In response to the determination of the target sub-track in the track map, obtain the relevant track information of the target sub-track. The relevant track information is used to indicate the existence of sub-tracks connected to the target sub-track.
[0154] Based on the relevant track information, display control markers at designated locations on the target sub-track;
[0155] In response to touch operations of control icons, the track to be edited is determined from each sub-track based on the start and end position information of the touch operation, and the track to be edited is then edited in batches.
[0156] In one feasible implementation, when the processor 801 determines the track to be edited from each sub-track based on the start position information and end position information of the touch operation, it does so by the following steps: determining the track start surface and track end surface based on the coordinate information of the start position and end position of the touch operation; and determining the track to be edited based on the track start surface and track end surface.
[0157] In one feasible implementation, when the processor 801 determines the starting surface and ending surface of the track based on the coordinate information of the starting position and the ending position of the touch operation, it does so by the following steps: determining the sliding direction of the sliding operation based on the coordinate information of the starting position and the ending position; and determining the starting surface and ending surface of the track based on the sliding direction and the target sub-track.
[0158] In a feasible implementation, when the processor 801 determines the sliding direction of the sliding operation based on the coordinate information of the starting position and the coordinate information of the ending position, it does so by the following steps: determining the direction from the starting position to the ending position based on the coordinate information of the starting position and the coordinate information of the ending position; and taking the direction from the starting position to the ending position as the sliding direction.
[0159] In a feasible implementation, when the processor 801 determines the starting surface and ending surface of the track based on the sliding direction and the target sub-track, it does so by the following steps: determining the starting surface of the target sub-track based on the target sub-track and using the starting surface of the target sub-track as the starting surface of the track; determining the spatial positional relationship between the ending position and the starting surface of the track based on the sliding direction; and determining the ending surface of the sub-track to which the ending position belongs as the ending surface of the track based on the spatial positional relationship.
[0160] In one feasible implementation, when the processor 801 determines the track to be edited based on the track start face and the track end face, it does so by the following steps: determining each connected sub-track between the track start face and the track end face as the track to be edited.
[0161] In one feasible implementation, when the processor 801 performs the operation of determining the target sub-track in response to the track map and obtains the relevant track information of the target sub-track, it does so by the following steps: in response to the operation of determining the target sub-track in the track map, determining the relevant track information of the target sub-track based on the positional relationship between the starting face of the target sub-track and the ending face of other sub-tracks, and / or the positional relationship between the ending face of the target sub-track and the starting face of other sub-tracks.
[0162] In one feasible implementation, when the processor 801 executes the action of displaying control markers at a designated location on the target sub-track based on relevant track information, it does so by performing the following steps: displaying control markers on the starting surface of the target sub-track based on relevant track information.
[0163] In one feasible implementation, when performing batch editing of the track to be edited, the processor 801 performs the following steps: marking the track to be edited on the track map; displaying at least one track editing option in response to a track editing trigger operation; and performing batch editing of the track to be edited in response to a confirmation operation of the target track editing option.
[0164] In one feasible implementation, after marking the track to be edited on the track map, the processor 801 may also perform the following steps: in response to the unmarking operation of the target track to be edited, delete the mark of the target track to be edited, and remove the target track to be edited from the track to be edited.
[0165] In the above steps, the multi-track selection mode is enabled based on the provided multi-track selection control. In this mode, a multi-track selection handle can be triggered based on the selected target sub-track. Users can then input touch operations through the multi-track selection handle to conveniently select multiple tracks. By monitoring the input touch operations in real time, the track to be edited can be intelligently selected from multiple sub-tracks based on the start and end positions of the touch operations, improving the efficiency and ease of operation of multi-track selection. Based on the provided batch editing function, the selected tracks to be edited can be edited in batches, greatly improving the efficiency of track editing and overcoming the tedious operation problem of editing tracks one by one.
[0166] In this embodiment of the disclosure, the computer program, when run by the processor, can also execute other machine-readable instructions to perform other methods as described in the embodiments. For details on the specific execution steps and principles, please refer to the description of the embodiments, which will not be repeated here.
[0167] In the several embodiments provided in this disclosure, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0168] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0169] Furthermore, the functional units in the various embodiments of this disclosure can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or in a combination of hardware and software functional units.
[0170] The integrated units implemented as software functional units described above can be stored in a computer-readable storage medium. These software functional units, stored in a storage medium, include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute some steps of the methods described in the various embodiments of this disclosure. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
Claims
1. A method for processing game tracks, displaying a game scene on a user interface of a terminal, the game scene including a race track map, the track map including multiple sub-tracks, the method comprising: In response to the determination of a target sub-track in the track map, relevant track information of the target sub-track is obtained, and the relevant track information is used to indicate the existence of a sub-track connected to the target sub-track; Based on the relevant track information, display control markers at designated locations on the target sub-track; In response to a touch operation of the control identifier, the track to be edited is determined from each sub-track based on the start and end position information of the touch operation, and the track to be edited is then edited in batches.
2. The method according to claim 1, wherein, The step of determining the track to be edited from each sub-track based on the start and end position information of the touch operation includes: Based on the coordinates of the starting and ending positions of the touch operation, the starting and ending surfaces of the track are determined. The track to be edited is determined based on the starting and ending surfaces of the track.
3. The method according to claim 2, wherein, Determining the starting and ending surfaces of the track based on the coordinates of the starting and ending positions of the touch operation includes: The sliding direction of the sliding operation is determined based on the coordinate information of the starting position and the coordinate information of the ending position. The starting surface and ending surface of the track are determined based on the sliding direction and the target sub-track.
4. The method according to claim 3, wherein, Determining the sliding direction of the sliding operation based on the coordinate information of the starting position and the coordinate information of the ending position includes: Based on the coordinate information of the starting position and the coordinate information of the ending position, determine the direction from the starting position to the ending position; The direction from the starting position to the ending position is taken as the sliding direction.
5. The method according to claim 3, wherein, Determining the starting surface and ending surface of the track based on the sliding direction and the target sub-track includes: Based on the target sub-track, determine the starting face of the target sub-track, and use the starting face of the target sub-track as the starting face of the track; Based on the sliding direction, determine the spatial position of the ending position relative to the starting surface of the track; Based on the spatial relationship, the end face of the sub-track to which the end position belongs is determined as the end face of the track.
6. The method according to claim 2, wherein, The step of determining the track to be edited based on the track start face and the track end face includes: Each connected sub-track between the starting face and the ending face of the track is identified as the track to be edited.
7. The method according to claim 1, wherein, The step of responding to the determination of a target sub-track in the track map and obtaining relevant track information of the target sub-track includes: In response to the determination of a target sub-track in the track map, the relevant track information of the target sub-track is determined based on the positional relationship between the starting face of the target sub-track and the ending face of other sub-tracks, and / or the positional relationship between the ending face of the target sub-track and the starting face of other sub-tracks.
8. The method according to claim 1, wherein, The step of displaying control markers at designated locations on the target sub-track based on the relevant track information includes: Based on the relevant track information, the control marker is displayed on the starting surface of the target sub-track.
9. The method according to claim 1, wherein, The batch editing of the tracks to be edited includes: Mark the track to be edited on the track map; In response to a track editing trigger, display at least one track editing option; In response to the confirmation of the target track editing option, the tracks to be edited are edited in batches.
10. The method according to claim 9, wherein, After marking the track to be edited on the track map, the process also includes: In response to the unmarking operation of the target track to be edited, the mark of the target track to be edited is deleted, and the target track to be edited is no longer considered as a track to be edited.
11. A game track processing device, displaying a game scene on a user interface of a terminal, the game scene including a race track map, the track map including multiple sub-tracks, the device comprising: Acquisition module, display module, and processing module; The acquisition module is configured to perform a determination operation in response to a target sub-track in the track map, and acquire relevant track information of the target sub-track, wherein the relevant track information is used to indicate the existence of a sub-track connected to the target sub-track; The display module is configured to display control icons at a specified location on the target sub-track based on the relevant track information. The processing module is configured to perform a touch operation in response to the control identifier, determine the track to be edited from each sub-track according to the start position information and end position information of the touch operation, and perform batch editing on the track to be edited.
12. An electronic device, comprising: The device includes a processor, a storage medium, and a bus, wherein the storage medium stores program instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the program instructions to perform the game track processing method as described in any one of claims 1 to 10.
13. A computer-readable storage medium storing a computer program that, when executed by a processor, performs the game track processing method as described in any one of claims 1 to 10.