Game track processing method and device, electronic equipment and storage medium
By displaying the track map and control logo on the terminal user interface, combining the starting and ending positions of touch operations, the track to be edited is automatically determined and batch edited, the problem of inefficient track editing in the existing technology is solved, and a more efficient and convenient track editing experience is achieved.
Patent Information
- Application Number
- CN202510181546.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-18
- Publication Date
- 2025-05-16
AI Technical Summary
When designing longer racing tracks, the existing technology requires selecting and editing multiple tracks one by one, resulting in longer time and inefficient editing.
By displaying the game scene on the terminal user interface, including the track map of the racing car, responding to the determination of the target sub-track, obtaining relevant track information, displaying control signs, and determining the track to be edited from each sub-track according to the start and end positions of the touch operation, and batch editing is performed.
It has achieved the improvement of the efficiency and accuracy of user-defined editing of racing tracks, simplified the editing process of multiple tracks, and significantly improved the user experience.
Smart Images

Figure CN120001050A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of game technology, and more specifically, to a game track processing method, device, electronic device and storage medium. Background Art
[0002] The 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.
[0003] Currently, when designing a long racing track, since there are a large number of tracks to be edited, it is necessary to select each required track one by one and edit each selected track separately.
[0004] However, the above method will take a long time and the editing efficiency of the tracks will be low when the number of tracks required is large. Summary of the invention
[0005] The purpose of this application is to provide a game track processing method, device, electronic device and storage medium, so as to improve the efficiency and accuracy of users' customized editing of racing tracks and enhance the user experience.
[0006] To achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:
[0007] In a first aspect, an embodiment of the present application provides a method for processing a game track, wherein a game scene is displayed on a user interface of a terminal, wherein the game scene includes a racing track map, wherein the track map includes multiple sub-tracks, and the method includes:
[0008] In response to a determination operation of a target sub-track in the track map, obtaining track information related to the target sub-track, wherein the track information is used to indicate that there is a sub-track connected to the target sub-track;
[0009] Displaying a control mark at a designated position of the target sub-track according to the relevant track information;
[0010] In response to the touch operation of the control mark, a track to be edited is determined from each sub-track according to the start position information and the end position information of the touch operation, and the tracks to be edited are batch edited.
[0011] In a second aspect, an embodiment of the present application further provides a game track processing device, which displays a game scene on a user interface of a terminal, wherein the game scene includes a racing track map, wherein the track map includes multiple sub-tracks, and the device includes: an acquisition module, a display module, and a processing module;
[0012] The acquisition module is used to acquire relevant track information of the target sub-track in response to a determination operation of the target sub-track in the track map, wherein the relevant track information is used to indicate the existence of a sub-track connected to the target sub-track;
[0013] The display module is used to display a control mark at a designated position of the target sub-track according to the relevant track information;
[0014] The processing module is used to respond to the touch operation of the control mark, determine the track to be edited from each sub-track according to the starting position information and the ending position information of the touch operation, and batch edit the tracks to be edited.
[0015] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor. When the electronic device is running, the processor and the storage medium communicate through the bus, and the processor executes the machine-readable instructions to execute the game track processing method provided in the first aspect.
[0016] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the game track processing method provided in the first aspect is executed.
[0017] The beneficial effects of this application are:
[0018] The present application provides a method, device, electronic device and storage medium for processing a game track, including: 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; displaying a control mark at a designated position of the target sub-track according to the relevant track information; in response to the touch operation of the control mark, determining the track to be edited from each sub-track according to the starting position information and the ending position information of the touch operation, and batch editing the track to be edited. The method opens the track multi-selection mode based on the provided track multi-selection control. In the track multi-selection mode, the track multi-selection handle can be triggered to be displayed based on the selected target sub-track, so that the user can input the touch operation through the track multi-selection handle to conveniently perform track multi-selection. By real-time monitoring of the input touch operation, the track to be edited can be intelligently selected from multiple sub-tracks according to the starting position and the ending position of the touch operation, thereby improving the efficiency and convenience of track multi-selection. In addition, based on the provided track batch editing function, the selected tracks to be edited can be uniformly batch edited, which greatly improves the track editing efficiency and overcomes the cumbersome operation problem when editing tracks one by one. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0020] Figure 1 A schematic diagram of a user interface provided in an embodiment of the present application;
[0021] Figure 2 A flowchart of a method for processing a game track provided in an embodiment of the present application;
[0022] Figure 3 A flowchart of another method for processing a game track provided in an embodiment of the present application;
[0023] Figure 4 A flowchart of another method for processing a game track provided in an embodiment of the present application;
[0024] Figure 5 A flowchart of another method for processing a game track provided in an embodiment of the present application;
[0025] Figure 6 A flowchart of another method for processing a game track provided in an embodiment of the present application;
[0026] Figure 7 Another user interface diagram provided in an embodiment of the present application;
[0027] Figure 8 A flowchart of another method for processing a game track provided in an embodiment of the present application;
[0028] Fig. 9 A schematic diagram of a game track processing device provided in an embodiment of the present application;
[0029] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0030] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.
[0031] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0032] In one embodiment of the present disclosure, the game track processing method can be run on a local terminal device or a server. When the game track processing method is run 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.
[0033] 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 track processing 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 mobile terminal, a TV, a computer, a handheld computer, etc.; but the cloud game server in the cloud is used for information processing. 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.
[0034] In an optional embodiment, taking a game as an example, a 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, the game program is downloaded and installed by an electronic device and run conventionally. The local terminal device may provide the graphical user interface to the player in a variety of ways, for example, it may be rendered and displayed on a display screen of the terminal, or provided to the player through a holographic projection. For example, the local terminal device may include a display screen and a processor, the display screen is used to present a graphical user interface, the graphical user interface includes a game screen, and the processor is used to run the game, generate a graphical user interface, and control the display of the graphical user interface on the display screen.
[0035] In a possible implementation, an embodiment of the present invention provides a game track processing method, which provides a graphical user interface through a terminal device, wherein the terminal device can be the local terminal device mentioned above, or it can be a client device in the cloud interaction system mentioned above.
[0036] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.
[0037] In existing user-generated content (UGC) editors, designing a racing track often requires facing a large number of tracks, and the editing size involved is relatively wide, which makes the process of selecting tracks one by one quite time-consuming. At the same time, if the track is in a complex landscape, using the existing filtering and selection functions often mistakenly selects other tracks that do not need to be edited, which further increases the complexity and difficulty of editing. These problems reflect the shortcomings of existing technologies in terms of operational convenience and efficiency.
[0038] Based on this, this solution provides a method for processing game tracks. After the track multi-selection mode is turned on, when the existence of connected tracks is detected, the tracks can be intelligently multi-selected through touch operations input by the player, which is convenient for players to quickly select multiple tracks, and a batch processing function is provided for the selected multiple tracks, which is convenient for players to uniformly edit multiple tracks, realize fast and efficient track editing processing, and improve user experience.
[0039] Figure 1 A user interface diagram provided in an embodiment of the present application, such as Figure 1As shown, a game scene is displayed on the user interface of the terminal, and the game scene includes a racing track map, and the track map includes multiple sub-tracks, and the starting and ending surfaces of some sub-tracks are sequentially connected to each other to form a connected track, and some sub-tracks are used as separate tracks. A multi-selection control can also be displayed on the user interface, and the multi-selection control can be used to trigger the start of the track multi-selection mode. In the track multi-selection mode, the track multi-selection and batch editing can be performed according to the scheme provided in the following embodiment of this scheme.
[0040] Figure 2 A flowchart of a method for processing a game track provided in an embodiment of the present application; Figure 2 As shown, the method may include:
[0041] S101. In response to a determination operation of a target sub-track in a track map, obtain track information related to the target sub-track.
[0042] The relevant track information is used to indicate that there is a sub-track connected to the target sub-track.
[0043] First, you can load the current track map to be edited in the user interface. After the track map is loaded, the user can turn on the track multiple selection mode by triggering the multiple selection control displayed in the interface.
[0044] After the track multi-selection mode is turned on, in response to the user's confirmation operation on the target sub-track in the track map, the track information related to the target sub-track can be obtained. The target sub-track can be any track among all the sub-tracks displayed in the track map. The confirmation operation of the input target sub-track can be a click operation or a press operation on the target sub-track, and of course it can also be a floating click operation.
[0045] After the target sub-track is selected, it is determined whether the target sub-track has any connected sub-tracks to obtain the relevant track information of the target sub-track.
[0046] Usually, the track continues to extend in a certain direction and eventually forms a closed loop. Figure 1 For the track map shown, the front and rear tracks of the target sub-track can be connected to the target sub-track. However, due to the limitation of track width, there are usually no connected sub-tracks on the left and right sides of the target sub-track. Of course, the front, back, left and right here are defined according to the direction of the track map. Figure 1 Since the track map is placed vertically, the connected sub-tracks of the target sub-track are located in front of and behind the target sub-track, that is, above and below. If the track map is placed horizontally, the connected sub-tracks of the target sub-track will be located on the left and right of the target sub-track.
[0047] Assumptions Figure 1If sub-track 3 in is the target sub-track, then the target sub-track has a connected sub-track, and sub-track 4 and sub-track 2 are both connected sub-tracks of the target sub-track.
[0048] When the target sub-track is sub-track 8 or sub-track 9, it means that the target sub-track has no connected sub-track.
[0049] S102: Display a control mark at a designated position of a target sub-track according to relevant track information.
[0050] In some embodiments, when the relevant track information indicates that the target sub-track has a connected sub-track, a control mark can be displayed at a specified position of the target sub-track. The control mark can be a multi-selection handle. Through the multi-selection handle, a track multi-selection operation can be input to perform track multi-selection.
[0051] S103 , in response to the touch operation of the control mark, determining a track to be edited from each sub-track according to the start position information and the end position information of the touch operation, and performing batch editing on the tracks to be edited.
[0052] Optionally, based on the touch operation of the input control mark, the starting position information and the ending position information of the touch operation can be obtained, so that based on the starting position information and the ending position information, intelligent multiple selections 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.
[0053] Based on the determined tracks to be edited, a batch editing option can be provided to perform batch unified editing on the tracks to be edited, greatly improving the efficiency of track editing.
[0054] In summary, the game track processing method provided in this embodiment includes: 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; displaying the control mark at the specified position of the target sub-track according to the relevant track information; in response to the touch operation of the control mark, determining the track to be edited from each sub-track according to the starting position information and the ending position information of the touch operation, and batch editing the track to be edited. This method opens the track multi-selection mode based on the provided track multi-selection control. In the track multi-selection mode, the track multi-selection handle can be triggered to display based on the selected target sub-track, so that the user can input the touch operation through the track multi-selection handle to conveniently perform track multi-selection. By real-time monitoring of the input touch operation, the track to be edited can be intelligently selected from multiple sub-tracks according to the starting position and the ending position of the touch operation, thereby improving the efficiency and convenience of track multi-selection. In addition, based on the provided track batch editing function, the selected tracks to be edited can be uniformly batch edited, which greatly improves the track editing efficiency and overcomes the cumbersome operation problem when editing tracks one by one.
[0055] Figure 3 A flowchart of another method for processing a game track provided by an embodiment of the present application; Optionally, in step S103, determining a track to be edited from each sub-track according to the starting position information and the ending position information of the touch operation may include:
[0056] S201 : Determine a starting surface and an ending surface of a track according to coordinate information of a starting position and coordinate information of an ending position of a touch operation.
[0057] The system can monitor the user's touch operation on the control mark through a listener, record the coordinate information of the starting position and the ending position of the touch operation, and then calculate the coordinates to obtain the approximate direction of the starting position pointing to the ending position, so as to determine the starting surface and the ending surface of the track based on the direction.
[0058] It is worth noting that the track start surface and track end surface can be marked by a specific line or a specific area. When marked by a specific line, the track start surface or track end surface can be determined according to the coordinates of each point on the line. When marked by a specific area, the track start surface or track end surface can be determined according to the coordinates of each point constituting the area.
[0059] In addition, each sub-track has a starting surface and an ending surface, which are located at the two ends of the sub-track respectively. The starting surface and the ending surface are distinguished according to the set direction of the track.
[0060] by Figure 1 For the track shown in FIG. 1 , assuming that the positive direction of the track is set to be 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. Assuming that the positive direction of the track is set to be 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.
[0061] S202: Determine the track to be edited according to the track start surface and the track end surface.
[0062] Optionally, the track start surface and track end surface determined based on the coordinate information of the start position and the coordinate information of the end position of the touch operation do not refer to the start surface and the end surface of the same sub-track, and the determined track start surface and track end surface belong to different sub-tracks.
[0063] For example: the starting surface of the track is the starting surface of sub-track 1, and the ending surface of the track is the ending surface of all sub-tracks except sub-track 1.
[0064] In some embodiments, according to the determined track start surface and track end surface, the track to be edited can be automatically and intelligently selected between the track start surface and the track end surface.
[0065] Figure 4 A flowchart of another method for processing a game track provided in an embodiment of the present application; Optionally, in step S201, determining the starting surface and the ending surface of the track according to the coordinate information of the starting position and the coordinate information of the ending position of the touch operation may include:
[0066] S301: Determine a sliding direction of a sliding operation according to coordinate information of a starting position and coordinate information of an ending position.
[0067] In this embodiment, the touch operation can be a sliding operation, and the coordinate information of the starting position of the sliding operation can be recorded as A (x1, y1), and the coordinate information of the end 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 is determined according to the direction of AB.
[0068] For example: if Δx>0 and |Δx|>|Δy|, the sliding direction can be considered to be the right side; if Δx<0 and |Δx|>|Δy|, the sliding direction can be considered to be the left side; if Δy>0 and |Δy|>|Δx|, the sliding direction can be considered to be the upper side; if Δy<0 and |Δy|>|Δx|, the sliding direction can be considered to be the lower side.
[0069] Of course, depending on the reference direction or base direction that is set, the direction represented by the same calculation result will also change accordingly.
[0070] S302: Determine the track start surface and the track end surface according to the sliding direction and the target sub-track.
[0071] According to the target subtrack and the determined sliding direction, the track start surface and track end surface can be determined. When the sliding direction changes, the corresponding determined track end surface will change, and thus the determined track to be edited will also change.
[0072] Figure 5 A flowchart of another method for processing a game track provided by an embodiment of the present application; Optionally, in step S301, determining the sliding direction of the sliding operation according to the coordinate information of the starting position and the coordinate information of the ending position may include:
[0073] S401: Determine the direction from the starting position to the ending position according to the coordinate information of the starting position and the coordinate information of the ending position.
[0074] As mentioned above, by performing vector operation on the coordinate information of the end position and the coordinate information of the start position, the direction from the start position to the end position can be determined according to the operation result.
[0075] S402: The direction from the starting position to the ending position is taken as the sliding direction.
[0076] Therefore, the direction from the starting position to the ending position can be used as the sliding direction.
[0077] In some embodiments, the touch operation is not limited to a sliding operation, but may also be a clicking operation. The user may click on the starting position and the ending position respectively. According to the user's clicking operation, the coordinate information of the starting position and the coordinate information of the ending position may be obtained respectively.
[0078] Figure 6 A flowchart of another method for processing a game track provided in an embodiment of the present application; Optionally, in step S302, determining the track start surface and the track end surface according to the sliding direction and the target sub-track may include:
[0079] S501: Determine a starting surface of a target sub-track according to a target sub-track, and use the starting surface of the target sub-track as a track starting surface.
[0080] In some embodiments, the starting surface of the target sub-track is used as the track starting surface. This is because the target sub-track is also used as the track to be edited. When the starting surface of the target sub-track is used as the track starting surface, the target sub-track can be automatically selected as the track to be edited.
[0081] Of course, in some embodiments, according to the determined sliding direction, the starting surface of the next sub-track connected to the target sub-track along the sliding direction can be used as the track starting surface, and the target sub-track is directly used as a track to be edited as a separately selected track.
[0082] S502: Determine the spatial position relationship of the end position relative to the starting surface of the track according to the sliding direction.
[0083] According to the sliding direction, the spatial position relationship of the end position of the touch operation relative to the starting surface of the track can be determined.
[0084] Figure 7 Another user interface diagram provided in the embodiment of the present application. Figure 7 For example, the track is counterclockwise as the positive direction, 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, and the sliding direction is determined from right to left. It can be known that the ending position is determined from the top of the starting surface of the track relative to the starting surface of the track.
[0085] S503: Determine, according to the spatial position relationship, the end surface of the sub-track to which the end position belongs as the track end surface.
[0086] Then, according to the spatial position relationship, the end surface of the sub-track 6 can be determined as the end surface of the track.
[0087] Since the end surface and the start surface of the two connected sub-tracks are the same, if the spatial position relationship of the end position relative to the start surface of the track is not determined, the determined end surface of the track may have errors. By determining the spatial position relationship, the correct path from the start surface of the track to the end surface of the track can be determined, thereby preventing misjudgment.
[0088] For example, Figure 7 As shown, the end surface of sub-track 6 is also the starting surface of sub-track 7. When the spatial position relationship between the end position and the starting surface of the track is not determined, the end of sub-track 7 may be regarded as the end surface of the track, and the path from the starting surface of the track to the end surface of the track is located below the target sub-track. However, through the judgment of the spatial position relationship, it can be determined that the end surface of the track is the end surface of sub-track 6, and it can be determined that the path from the starting surface of the track to the end surface of the track is located above the target sub-track.
[0089] Therefore, according to the track start surface and the track end surface, all connected sub-tracks between the track start surface and the track end surface can be used as tracks to be edited.
[0090] Optionally, in step S202, determining the track to be edited according to the track start surface and the track end surface may include: determining each connected sub-track between the track start surface and the track end surface as the track to be edited.
[0091] In some embodiments, starting from the track start surface, each connected sub-track between the track start surface and the track end surface may be determined as the track to be edited.
[0092] like Figure 7 As shown, the determined track to be edited is shown as the shaded part in the figure. Among them, the target sub-track and sub-track 6 are also tracks to be edited.
[0093] Optionally, in step S101, in response to the determination operation of the target sub-track in the track map, obtaining 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 according to the positional relationship between the starting surface of the target sub-track and the ending surfaces of other sub-tracks, and / or the positional relationship between the ending surface of the target sub-track and the starting surfaces of other sub-tracks.
[0094] After determining the target sub-track, the coordinates of the starting surface and the ending surface of the target sub-track and the coordinates of the starting surface and the ending surface of other sub-tracks can be read. When the starting surface of the target sub-track also serves as the ending surface of other sub-tracks, or the ending surface of the target sub-track also serves as the starting surface of other sub-tracks, it can be considered that there is a track connected to the target sub-track.
[0095] by Figure 1 As shown, the end surface of sub-track 2 also serves as the starting surface of sub-track 3, and the starting surface of sub-track 2 also serves as the end surface of sub-track 1, so sub-track 1 and sub-track 3 can be used as connected tracks of sub-track 2.
[0096] Optionally, in step S102, displaying a control mark at a designated position of the target sub-track according to relevant track information may include: displaying a control mark on a starting surface of the target sub-track according to relevant track information.
[0097] When the target sub-track has a connected sub-track, the control mark will be automatically displayed at the specified position of the target sub-track.
[0098] In one possible implementation, Figure 7 As shown in , the control mark can be displayed on the starting surface of the target sub-track.
[0099] In practical applications, the control mark may also be displayed at any position of the target sub-track, for example, on the track surface of the target sub-track, or on the end surface, etc.
[0100] Figure 8 A flowchart of another method for processing a game track provided in an embodiment of the present application; optionally, in step S103, batch editing of the tracks to be edited may include:
[0101] S701. Mark the track to be edited on the track map.
[0102] In some embodiments, after the track to be edited is determined according to the track start surface and the track end surface, a selection mark may be generated on the track to be edited, for example, the track to be edited is highlighted or the track to be edited is framed to highlight the selected multiple sub-tracks for the user.
[0103] S702: In response to a track editing trigger operation, display at least one track editing option.
[0104] Afterwards, the track editing control displayed on the user interface can trigger the start of the track editing and display at least one track editing option.
[0105] Track editing options can be displayed in the form of a drop-down menu or directly displayed at the top of the user interface. Each track editing option corresponds to a track editing function, which is used to edit the corresponding attribute information. Track editing options include but are not limited to: track width editing, track guardrail editing, track color editing, etc.
[0106] S703 : In response to the confirmation operation of the target track editing option, batch edit the tracks to be edited.
[0107] The target track editing option may be any one of the track editing options. In response to the user's confirmation operation on the target track editing option, the marked tracks to be edited may be automatically batch edited.
[0108] When you want to use a target track editing option, you can confirm the target track editing option and execute the editing method corresponding to the target track editing option on the track to be edited, thereby realizing batch editing of the tracks to be edited under the target track editing option.
[0109] When you want to use multiple target track editing options, you can perform the editing methods corresponding to each target track editing option on the track to be edited in sequence according to the confirmation order of each target track editing option, so as to realize batch editing of the track to be edited under different track editing options. Of course, you can also perform batch editing of the track to be edited under each target track editing option in sequence according to the arrangement order of the track to be edited, instead of in the confirmation order of each target track editing option.
[0110] For example, after selecting the track width editing option, the track to be edited can be edited uniformly. Assuming that the track to be edited includes three sub-tracks, the track widths of the three sub-tracks can be edited uniformly. When editing uniformly, the user can edit the road widths of the three sub-tracks at the same time by inputting a common road width parameter, so that the road widths of the three sub-tracks after editing are the same; of course, the user can also input corresponding road width parameters for the three sub-tracks respectively to edit the road widths of the three sub-tracks at the same time, so that the road widths of the three sub-tracks after editing can be different.
[0111] When both the track width editing option and the track color editing option are selected, if you click the track width editing option first and then the track color editing option, you can edit the width of the three sub-tracks in batches according to the confirmation order of the editing options, and then edit the colors of the three sub-tracks in batches. Alternatively, you can edit the width and color of the first sub-track in sequence according to the arrangement order of the three sub-tracks, then edit the width and color of the second sub-track, and finally edit the width and color of the third sub-track.
[0112] In some embodiments, after batch editing of the tracks to be edited, 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.
[0113] Optionally, in step S701, after marking the track to be edited on the track map, the method further includes: in response to a mark cancellation operation on the target track to be edited, deleting the mark of the target track to be edited, and not treating the target track to be edited as the track to be edited.
[0114] In some embodiments, the automatically determined track to be edited may contain some sub-tracks that the user does not want to edit. Then, the user can trigger the target track to be edited in the marked track to be edited again to cancel the mark of the target track to be edited. The target track to be edited can be any sub-track in the track to be edited.
[0115] After the target track to be edited is unmarked, subsequent batch editing will not be performed on the target track to be edited, which provides users with the function of freely adjusting the selected sub-track, making the user experience better.
[0116] In summary, the game track processing method provided in this embodiment includes: 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; displaying the control mark at the specified position of the target sub-track according to the relevant track information; in response to the touch operation of the control mark, determining the track to be edited from each sub-track according to the starting position information and the ending position information of the touch operation, and batch editing the track to be edited. This method opens the track multi-selection mode based on the provided track multi-selection control. In the track multi-selection mode, the track multi-selection handle can be triggered to display based on the selected target sub-track, so that the user can input the touch operation through the track multi-selection handle to conveniently perform track multi-selection. By real-time monitoring of the input touch operation, the track to be edited can be intelligently selected from multiple sub-tracks according to the starting position and the ending position of the touch operation, thereby improving the efficiency and convenience of track multi-selection. In addition, based on the provided track batch editing function, the selected tracks to be edited can be uniformly batch edited, which greatly improves the track editing efficiency and overcomes the cumbersome operation problem when editing tracks one by one.
[0117] The following describes the devices, equipment, storage media, etc. used to execute the game track processing method provided by this application. The specific implementation process and technical effects are mentioned above and will not be repeated below.
[0118] Fig. 9A schematic diagram of a game track processing device provided in an embodiment of the present application, the functions implemented by the game track processing device correspond to the steps performed by the above method. The device can be understood as the above-mentioned terminal device or server, or as a component independent of the server or processor that implements the functions of the present application under the control of the server, and displays the game scene on the user interface of the terminal, the game scene includes a racing 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;
[0119] An acquisition module 910 is used to acquire relevant track information of the target sub-track in response to a determination operation of the target sub-track in the track map, where the relevant track information is used to indicate the existence of a sub-track connected to the target sub-track;
[0120] A display module 920, configured to display a control mark at a designated position of a target sub-track according to relevant track information;
[0121] The processing module 930 is used to respond to the touch operation of the control mark, determine the tracks to be edited from each sub-track according to the starting position information and the ending position information of the touch operation, and batch edit the tracks to be edited.
[0122] Optionally, the processing module 930 is specifically configured to determine a starting surface and an ending surface of the track according to coordinate information of a starting position and coordinate information of an ending position of the touch operation;
[0123] Determine the track to be edited based on the starting and ending surfaces of the track.
[0124] Optionally, the processing module 930 is specifically configured to determine a sliding direction of the sliding operation according to the coordinate information of the starting position and the coordinate information of the ending position;
[0125] According to the sliding direction and the target sub-track, the starting surface and the ending surface of the track are determined.
[0126] Optionally, the processing module 930 is specifically configured to determine a direction from the starting position to the ending position according to the coordinate information of the starting position and the coordinate information of the ending position;
[0127] The direction from the starting position to the end position is taken as the sliding direction.
[0128] Optionally, the processing module 930 is specifically configured to determine a starting surface of the target sub-track according to the target sub-track, and use the starting surface of the target sub-track as the starting surface of the track;
[0129] According to the sliding direction, determine the spatial position relationship of the end position relative to the starting surface of the track;
[0130] According to the spatial position relationship, the end surface of the sub-track to which the end position belongs is determined as the track end surface.
[0131] Optionally, the processing module 930 is specifically configured to determine each connected sub-track between the track start surface and the track end surface as the track to be edited.
[0132] Optionally, the acquisition module 910 is specifically used to respond to the determination operation of the target sub-track in the track map, and determine the relevant track information of the target sub-track according to the positional relationship between the starting surface of the target sub-track and the ending surfaces of other sub-tracks, and / or the positional relationship between the ending surface of the target sub-track and the starting surfaces of other sub-tracks.
[0133] Optionally, the display module 920 is specifically used for displaying relevant track information and a control mark on the starting surface of the target sub-track.
[0134] Optionally, the processing module 930 is specifically configured to mark the track to be edited on the track map;
[0135] In response to a track editing trigger operation, displaying at least one track editing option;
[0136] In response to the confirmation operation of the target track editing option, batch editing is performed on the tracks to be edited.
[0137] Optionally, the processing module 930 is further configured to, in response to a mark cancellation operation on the target track to be edited, delete the mark of the target track to be edited, and not set the target track to be edited as the track to be edited.
[0138] The above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASIC), or one or more digital singnal processors (DSP), or one or more field programmable gate arrays (FPGA). For another example, when a module is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0139] The above modules can be connected or communicated with each other via a wired connection or a wireless connection. The wired connection may include a metal cable, an optical cable, a hybrid cable, etc., or any combination thereof. The wireless connection may include a connection in the form of a LAN, a WAN, Bluetooth, a ZigBee, or NFC, or any combination thereof. Two or more modules may be combined into a single module, and any one module may be divided into two or more units. Those skilled in the art will clearly understand that for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the method embodiment, and will not be repeated in this application.
[0140] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application includes: a processor 801, a storage medium 802 and a bus 803, wherein the storage medium 802 stores machine-readable instructions executable by the processor 801. When the electronic device runs a game track processing method in the embodiment, the processor 801 communicates with the storage medium 802 through the bus 803, and the processor 801 executes the machine-readable instructions to perform the following steps:
[0141] In response to a determination operation of a target sub-track in the track map, obtaining track information related to the target sub-track, where the track information is used to indicate that there is a sub-track connected to the target sub-track;
[0142] Display control signs at designated locations on the target sub-track based on relevant track information;
[0143] In response to the touch operation of the control mark, the tracks to be edited are determined from each sub-track according to the starting position information and the ending position information of the touch operation, and the tracks to be edited are batch edited.
[0144] In a feasible implementation manner, when the processor 801 determines the track to be edited from each sub-track according to the starting position information and the ending position information of the touch operation, it is specifically used to: determine the starting surface and the ending surface of the track according to the coordinate information of the starting position and the coordinate information of the ending position of the touch operation;
[0145] Determine the track to be edited based on the starting and ending surfaces of the track.
[0146] In a feasible implementation manner, when the processor 801 determines the starting surface and the ending surface of the track according to the coordinate information of the starting position and the coordinate information of the ending position of the touch operation, it is specifically used to: determine the sliding direction of the sliding operation according to the coordinate information of the starting position and the coordinate information of the ending position;
[0147] According to the sliding direction and the target sub-track, the starting surface and the ending surface of the track are determined.
[0148] In a feasible implementation manner, when the processor 801 determines the sliding direction of the sliding operation according to the coordinate information of the starting position and the coordinate information of the ending position, it is specifically used to: determine the direction from the starting position to the ending position according to the coordinate information of the starting position and the coordinate information of the ending position;
[0149] The direction from the starting position to the end position is taken as the sliding direction.
[0150] In a feasible implementation manner, when the processor 801 determines the track start surface and the track end surface according to the sliding direction and the target sub-track, it is specifically configured to: determine the start surface of the target sub-track according to the target sub-track, and use the start surface of the target sub-track as the track start surface;
[0151] According to the sliding direction, determine the spatial position relationship of the end position relative to the starting surface of the track;
[0152] According to the spatial position relationship, the end surface of the sub-track to which the end position belongs is determined as the track end surface.
[0153] In a feasible implementation manner, when the processor 801 determines the track to be edited according to the track start surface and the track end surface, it is specifically configured to: determine each connected sub-track between the track start surface and the track end surface as the track to be edited.
[0154] In a feasible implementation manner, when the processor 801 executes the determination operation in response to the target sub-track in the track map and obtains the relevant track information of the target sub-track, it is specifically used to: in response to the determination operation of the target sub-track in the track map, determine the relevant track information of the target sub-track according to the positional relationship between the starting surface of the target sub-track and the ending surfaces of other sub-tracks, and / or the positional relationship between the ending surface of the target sub-track and the starting surfaces of other sub-tracks.
[0155] In a feasible implementation manner, when the processor 801 displays the control mark at the designated position of the target sub-track according to the relevant track information, it is specifically configured to: display the control mark on the starting surface of the target sub-track according to the relevant track information.
[0156] In a feasible implementation manner, when executing batch editing of tracks to be edited, the processor 801 is specifically configured to: mark the tracks to be edited on the track map;
[0157] In response to a track editing trigger operation, displaying at least one track editing option;
[0158] In response to the confirmation operation of the target track editing option, batch editing is performed on the tracks to be edited.
[0159] In a feasible implementation manner, after marking the track to be edited on the track map, the processor 801 is further used to: in response to a mark cancellation operation on the target track to be edited, delete the mark of the target track to be edited, and not treat the target track to be edited as the track to be edited.
[0160] Among them, the storage medium 802 stores program code. When the program code is executed by the processor 801, the processor 801 executes various steps in the game track processing method according to various exemplary embodiments of the present application described in the above "Exemplary Method" section of this specification.
[0161] Processor 801 can be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor (DigitalSignal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, and can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor can be a microprocessor or any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present application can be directly embodied as a hardware processor to be executed, or a combination of hardware and software modules in the processor can be executed.
[0162] 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 may include at least one type of storage medium, such as flash memory, hard disk, multimedia card, card-type memory, random access memory (Random Access Memory, RAM), static random access memory (Static Random Access Memory, SRAM), programmable read-only memory (Programmable Read Only Memory, PROM), read-only memory (Read Only Memory, ROM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), magnetic memory, disk, optical disk, etc. The memory is any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The storage medium 802 in the embodiment of the present application can also be a circuit or any other device that can realize a storage function, for storing program instructions and / or data.
[0163] Optionally, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the processor performs the following steps:
[0164] In response to a determination operation of a target sub-track in the track map, obtaining track information related to the target sub-track, where the track information is used to indicate that there is a sub-track connected to the target sub-track;
[0165] Display control signs at designated locations on the target sub-track based on relevant track information;
[0166] In response to the touch operation of the control mark, the tracks to be edited are determined from each sub-track according to the starting position information and the ending position information of the touch operation, and the tracks to be edited are batch edited.
[0167] In a feasible implementation manner, when the processor 801 determines the track to be edited from each sub-track according to the starting position information and the ending position information of the touch operation, it is specifically used to: determine the starting surface and the ending surface of the track according to the coordinate information of the starting position and the coordinate information of the ending position of the touch operation;
[0168] Determine the track to be edited based on the starting and ending surfaces of the track.
[0169] In a feasible implementation manner, when the processor 801 determines the starting surface and the ending surface of the track according to the coordinate information of the starting position and the coordinate information of the ending position of the touch operation, it is specifically used to: determine the sliding direction of the sliding operation according to the coordinate information of the starting position and the coordinate information of the ending position;
[0170] According to the sliding direction and the target sub-track, the starting surface and the ending surface of the track are determined.
[0171] In a feasible implementation manner, when the processor 801 determines the sliding direction of the sliding operation according to the coordinate information of the starting position and the coordinate information of the ending position, it is specifically used to: determine the direction from the starting position to the ending position according to the coordinate information of the starting position and the coordinate information of the ending position;
[0172] The direction from the starting position to the end position is taken as the sliding direction.
[0173] In a feasible implementation manner, when the processor 801 determines the track start surface and the track end surface according to the sliding direction and the target sub-track, it is specifically configured to: determine the start surface of the target sub-track according to the target sub-track, and use the start surface of the target sub-track as the track start surface;
[0174] According to the sliding direction, determine the spatial position relationship of the end position relative to the starting surface of the track;
[0175] According to the spatial position relationship, the end surface of the sub-track to which the end position belongs is determined as the track end surface.
[0176] In a feasible implementation manner, when the processor 801 determines the track to be edited according to the track start surface and the track end surface, it is specifically configured to: determine each connected sub-track between the track start surface and the track end surface as the track to be edited.
[0177] In a feasible implementation manner, when the processor 801 executes the determination operation in response to the target sub-track in the track map and obtains the relevant track information of the target sub-track, it is specifically used to: in response to the determination operation of the target sub-track in the track map, determine the relevant track information of the target sub-track according to the positional relationship between the starting surface of the target sub-track and the ending surfaces of other sub-tracks, and / or the positional relationship between the ending surface of the target sub-track and the starting surfaces of other sub-tracks.
[0178] In a feasible implementation manner, when the processor 801 displays the control mark at the designated position of the target sub-track according to the relevant track information, it is specifically configured to: display the control mark on the starting surface of the target sub-track according to the relevant track information.
[0179] In a feasible implementation manner, when executing batch editing of tracks to be edited, the processor 801 is specifically configured to: mark the tracks to be edited on the track map;
[0180] In response to a track editing trigger operation, displaying at least one track editing option;
[0181] In response to the confirmation operation of the target track editing option, batch editing is performed on the tracks to be edited.
[0182] In a feasible implementation manner, after marking the track to be edited on the track map, the processor 801 is further used to: in response to a mark cancellation operation on the target track to be edited, delete the mark of the target track to be edited, and not treat the target track to be edited as the track to be edited.
[0183] In the embodiment of the present application, the computer program can also execute other machine-readable instructions when run by the processor to execute other methods described in the embodiment. For the specific execution method steps and principles, please refer to the description of the embodiment, which will not be repeated here.
[0184] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0185] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0186] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0187] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, abbreviated: ROM), random access memory (English: Random Access Memory, abbreviated: RAM), disk or optical disk and other media that can store program codes.
Claims
1. A method for processing a game track, characterized in that: A game scene is displayed on a user interface of a terminal, wherein the game scene includes a racing track map, wherein the track map includes multiple sub-tracks, and the method includes: In response to a determination operation of a target sub-track in the track map, obtaining track information related to the target sub-track, wherein the track information is used to indicate that there is a sub-track connected to the target sub-track; Displaying a control mark at a designated position of the target sub-track according to the relevant track information; In response to the touch operation of the control mark, a track to be edited is determined from each sub-track according to the start position information and the end position information of the touch operation, and the tracks to be edited are batch edited.
2. The method according to claim 1, characterized in that The step of determining a track to be edited from each sub-track according to the start position information and the end position information of the touch operation includes: Determine the starting surface and the ending surface of the track according to the coordinate information of the starting position and the coordinate information of the ending position of the touch operation; The track to be edited is determined according to the track start surface and the track end surface.
3. The method according to claim 2, characterized in that The step of determining the starting surface and the ending surface of the track according to the coordinate information of the starting position and the coordinate information of the ending position of the touch operation includes: Determining a sliding direction of the sliding operation according to the coordinate information of the starting position and the coordinate information of the ending position; The track start surface and the track end surface are determined according to the sliding direction and the target sub-track.
4. The method according to claim 3, characterized in that The determining the sliding direction of the sliding operation according to the coordinate information of the starting position and the coordinate information of the ending position includes: Determine the direction from the starting position to the ending position according to the coordinate information of the starting position and the coordinate information of 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, characterized in that: The step of determining the track start surface and the track end surface according to the sliding direction and the target sub-track includes: According to the target sub-track, determining the starting surface of the target sub-track, and using the starting surface of the target sub-track as the starting surface of the track; Determining the spatial position relationship of the end position relative to the starting surface of the track according to the sliding direction; According to the spatial position relationship, the end surface of the sub-track to which the end position belongs is determined as the track end surface.
6. The method according to claim 2, characterized in that The step of determining the track to be edited according to the track start surface and the track end surface includes: Each connected sub-track between the track start surface and the track end surface is determined as a track to be edited.
7. The method according to claim 1, characterized in that The step of obtaining track information related to the target sub-track in response to the determination operation of the target sub-track in the track map includes: In response to a determination operation of a target sub-track in the track map, track information related to the target sub-track is determined according to a positional relationship between a starting surface of the target sub-track and an ending surface of other sub-tracks, and / or a positional relationship between an ending surface of the target sub-track and a starting surface of other sub-tracks.
8. The method according to claim 1, characterized in that The step of displaying a control mark at a designated position of the target sub-track according to the relevant track information includes: The control mark is displayed on the starting surface of the target sub-track according to the relevant track information.
9. The method according to claim 1, characterized in that: The batch editing of the tracks to be edited includes: Marking the track to be edited on the track map; In response to a track editing trigger operation, displaying at least one track editing option; In response to a confirmation operation of the target track editing option, batch editing is performed on the tracks to be edited.
10. The method according to claim 9, characterized in that After marking the track to be edited on the track map, the method further includes: In response to a mark canceling operation on a target track to be edited, the mark of the target track to be edited is deleted, and the target track to be edited is not used as a track to be edited.
11. A game track processing device, characterized in that: Displaying a game scene on a user interface of a terminal, wherein the game scene includes a racing track map, wherein the track map includes multiple sub-tracks, and the device includes: an acquisition module, a display module, and a processing module; The acquisition module is used to acquire relevant track information of the target sub-track in response to a determination operation of the target sub-track in the track map, 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 used to display a control mark at a designated position of the target sub-track according to the relevant track information; The processing module is used to respond to the touch operation of the control mark, determine the track to be edited from each sub-track according to the starting position information and the ending position information of the touch operation, and batch edit the tracks to be edited.
12. An electronic device, characterized in that: include: A processor, a storage medium and a bus, wherein the storage medium stores program 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 program instructions to execute the game track processing method as described in any one of claims 1 to 10.
13. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the game track processing method according to any one of claims 1 to 10 is executed.
Citation Information
Patent Citations
Game track generation method and device and electronic equipment
CN117298579A
Virtual track information display method and device, equipment and medium
CN118807201A
Cited By
Game track processing method and apparatus, and electronic device and storage medium
WO2026175073A1
