Road editing method and device in game and terminal equipment
By providing a graphical user interface on the terminal device, allowing players to independently select and connect to the track model's connection port, the problem of players' insufficient controllability for road editing in the prior art is solved, which improves editing efficiency and reduces computer resource consumption.
Patent Information
- Application Number
- CN202510241903.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-28
- Publication Date
- 2025-05-30
AI Technical Summary
In the prior art, players have weak controllability for road editing, resulting in long operational processes and large computer memory consumption.
By providing a graphical user interface on the terminal device, the road editing interface is displayed, allowing players to respond to the selection operation acting on the track model in the track alternative bar, and determine subsequent connections by triggering the track model's connection port, thereby achieving autonomous and accurate connections of the track model.
It improves players' controllability for road editing, shortens operating procedures, and reduces computer memory consumption.
Smart Images

Figure CN120053967A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technologies, and in particular, to a method and apparatus for road editing in a game, a terminal device, and a computer-readable storage medium. Background Art
[0002] In some virtual racing games, to improve player engagement, an interactive way for players to create race roads independently is provided. Players can, in a road editing interface, form a race road applicable to a race scene based on the connection and combination of multiple track models.
[0003] Currently, after a player selects a track model as a track model to be connected in a road editing interface, the track model to be connected will be automatically connected to a connection port of a previously selected track model. The connection port is a connection port automatically determined based on game preset rules among multiple connection ports included in the previously selected track model. Therefore, the connection port may not be the connection port that the player expects the track model to be connected to. At this time, the player needs to change the connection relationship between track models based on multiple subsequent operations. For example, disconnect the track model to be connected from this connection port, and then re-select another track model as the track model to be connected and connect it to this connection port.
[0004] Therefore, the existing road editing method has technical problems such as a long operation process and large computer memory consumption due to the weak controllability of players over road editing. Summary of the Invention
[0005] This application provides a method and apparatus for road editing in a game, a terminal device, and a computer-readable storage medium to solve the technical problems in the existing technology, namely, a long operation process and large computer memory consumption due to the weak controllability of players over road editing.
[0006] In a first aspect, an embodiment of the present application provides a method for editing a road in a game. By providing a graphical user interface through a terminal device, the method includes: displaying a road editing interface, where the road editing interface at least includes a first area and a second area. The first area is used to display the selected track model, and the second area is used to display a track alternative bar, and the track alternative bar includes a plurality of track models preset for the game; in response to a selection operation on the first track model in the track alternative bar, determining the first track model as the selected track model and displaying the first track model in the first area, where the first track model is any one of the plurality of track models; in response to a triggering operation on the first connection port in the first track model, determining the first connection port as the subsequent connection port, where the first connection port is any one of the plurality of connection ports included in the first track model; in response to a selection operation on the second track model in the track alternative bar, determining the second track model as the selected track model and displaying the first track model and the second track model connected to each other based on the first connection port in the first area, where the second track model is any one of the plurality of track models that can be connected to the first track model.
[0007] In a second aspect, an embodiment of the present application provides a device for editing a road in a game. By providing a graphical user interface through a terminal device, the device includes: an interface display unit, a first model display unit, a subsequent connection port determination unit, and a second model display unit; the interface display unit is used to display a road editing interface, where the road editing interface at least includes a first area and a second area. The first area is used to display the selected track model, and the second area is used to display a track alternative bar, and the track alternative bar includes a plurality of track models preset for the game; the first model display unit is used to, in response to a selection operation on the first track model in the track alternative bar, determine the first track model as the selected track model and display the first track model in the first area, where the first track model is any one of the plurality of track models; the subsequent connection port determination unit is used to, in response to a triggering operation on the first connection port in the first track model, determine the first connection port as the subsequent connection port, where the first connection port is any one of the plurality of connection ports included in the first track model; the second model display unit is used to, in response to a selection operation on the second track model in the track alternative bar, determine the second track model as the selected track model and display the first track model and the second track model connected to each other based on the first connection port in the first area, where the second track model is any one of the plurality of track models that can be connected to the first track model.
[0008] In a third aspect, an embodiment of the present application provides a terminal device, including: a memory, a processor, and a display; the memory is used to store one or more computer instructions; the processor is used to execute one or more computer instructions to implement the above method; the display is used to display a graphical user interface.
[0009] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which one or more computer instructions are stored. When the instructions are executed by a processor, the above method is executed.
[0010] Compared with the prior art, the method for editing a road in a game provided by the present application includes: displaying a road editing interface, the road editing interface at least including a first area and a second area, the first area being used to display a selected track model, and the second area being used to display a track alternative bar, the track alternative bar including a plurality of track models preset for the game; in response to a selection operation on a first track model in the track alternative bar, determining the first track model as the selected track model and displaying the first track model in the first area, the first track model being any one of the plurality of track models; in response to a triggering operation on a first connection port in the first track model, determining the first connection port as a subsequent connection port, the first connection port being any one of the plurality of connection ports included in the first track model; in response to a selection operation on a second track model in the track alternative bar, determining the second track model as the selected track model and displaying the first track model and the second track model connected to each other based on the first connection port in the first area, the second track model being any one of the plurality of track models. By the triggering operation of the player on the first connection port in the first track model, the first connection port can be determined as the subsequent connection port, so as to realize the connection of the second track model to the first track model based on the first connection port, and there will be no situation where the second track model is connected to other connection ports of the first track model because the player cannot determine the subsequent connection port, realizing the autonomous and accurate control of the connection of the track model, improving the controllability of the player for road editing, thereby shortening the operation process and reducing the computer memory consumption. It solves the technical problems existing in the prior art that due to the weak controllability of the player for road editing, the operation process is long and the computer memory consumption is large. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Figure 1 is a schematic diagram of a method for editing a road provided by an embodiment of the present application;
[0012] Figure 2 is an application system diagram of a method for editing a road in a game provided by an embodiment of the present application;
[0013] Figure 3 is a flowchart of a method for editing a road in a game provided by a first embodiment of the present application;
[0014] FIG. 4(a) is a first schematic diagram of a method for editing a road in a game provided by a first embodiment of the present application;
[0015] Figure 4(b) is the second schematic diagram of a road editing method in a game provided by the first embodiment of the present application;
[0016] Figure 4(c) is the third schematic diagram of a road editing method in a game provided by the first embodiment of the present application;
[0017] Figure 4(d) is the fourth schematic diagram of a road editing method in a game provided by the first embodiment of the present application;
[0018] Figure 5(a) is the first schematic diagram of another road editing method in a game provided by the first embodiment of the present application;
[0019] Figure 5(b) is the second schematic diagram of another road editing method in a game provided by the first embodiment of the present application;
[0020] Figure 5(c) is the third schematic diagram of another road editing method in a game provided by the first embodiment of the present application;
[0021] Figure 5(d) is the fourth schematic diagram of another road editing method in a game provided by the first embodiment of the present application;
[0022] Figure 5(e) is the fifth schematic diagram of another road editing method in a game provided by the first embodiment of the present application;
[0023] Figure 6(a) is the first schematic diagram of yet another road editing method in a game provided by the first embodiment of the present application;
[0024] Figure 6(b) is the second schematic diagram of yet another road editing method in a game provided by the first embodiment of the present application;
[0025] Figure 6(c) is the third schematic diagram of yet another road editing method in a game provided by the first embodiment of the present application;
[0026] Figure 6(d) is the fourth schematic diagram of yet another road editing method in a game provided by the first embodiment of the present application;
[0027] Figure 6(e) is the fifth schematic diagram of yet another road editing method in a game provided by the first embodiment of the present application;
[0028] Figure 7(a) is the first schematic diagram of still another road editing method in a game provided by the first embodiment of the present application;
[0029] Figure 7(b) is the second schematic diagram of still another road editing method in a game provided by the first embodiment of the present application;
[0030] Figure 7(c) is the third schematic diagram of still another road editing method in a game provided by the first embodiment of the present application;
[0031] Figure 7(d) is the fourth schematic diagram of another road editing method in the game provided by the first embodiment of the present application;
[0032] Figure 7(e) is the fifth schematic diagram of another road editing method in the game provided by the first embodiment of the present application;
[0033] Figure 7(f) is the sixth schematic diagram of another road editing method in the game provided by the first embodiment of the present application;
[0034] Figure 7(g) is the seventh schematic diagram of another road editing method in the game provided by the first embodiment of the present application;
[0035] Figure 7(h) is the eighth schematic diagram of another road editing method in the game provided by the first embodiment of the present application;
[0036] Figure 8(a) is the first schematic diagram of yet another road editing method in the game provided by the first embodiment of the present application;
[0037] Figure 8(b) is the second schematic diagram of yet another road editing method in the game provided by the first embodiment of the present application;
[0038] Figure 8(c) is the third schematic diagram of yet another road editing method in the game provided by the first embodiment of the present application;
[0039] Figure 8(d) is the fourth schematic diagram of yet another road editing method in the game provided by the first embodiment of the present application;
[0040] Figure 8(e) is the fifth schematic diagram of yet another road editing method in the game provided by the first embodiment of the present application;
[0041] Figure 8(f) is the sixth schematic diagram of yet another road editing method in the game provided by the first embodiment of the present application;
[0042] Figure 9 is the structural schematic diagram of the road editing device in the game provided by the second embodiment of the present application;
[0043] Figure 10 is the structural schematic diagram of the terminal device provided by the third embodiment of the present application. Detailed implementation manners
[0044] In the following description, many specific details are set forth in order to provide a thorough understanding of the present application. However, the present application can be implemented in many other ways different from those described herein, and those skilled in the art can make similar extensions without departing from the connotation of the present application. Therefore, the present application is not limited by the specific implementations disclosed below.
[0045] In some virtual racing games, to improve players' engagement, an interactive way of independently creating a race track is provided to players. Players can, in the track editing interface, form a race track applicable to the race scene based on the connection and combination of multiple track models. Specifically, a track editing interface is provided in the graphical user interface. The track editing interface includes a track display area and a track alternative bar display area. The track alternative bar includes multiple preset track models. After a player selects a certain track model based on the track alternative bar, the track model will be displayed in the track display area. When the player selects another track model based on the track alternative bar again, the track model will be connected to the track model already displayed in the track display area. By repeating the above operations, a race track formed by the connection and combination of multiple track models will be formed. Next, the player can save the race track to make it a candidate race track, and then apply the race track to the race scene by selecting the race track in the race track selection stage. The player can also share the race track with other players by publishing the race track to the game community and other means, so that multiple players can carry out racing competitions based on the race track.
[0046] Generally, a track model will include multiple connection ports. Currently, after a player selects a track model to be connected in the track editing interface, the track model to be connected will be automatically connected to a connection port of the previously selected track model (i.e., the track model already displayed in the track display area). This connection port is the subsequent connection port automatically determined based on the game preset rules among the multiple connection ports of the previously selected track model. Therefore, this connection port may not be the connection port that the player expects the track model to be connected to. At this time, the player needs to change the connection relationship between the track models based on multiple subsequent operations. For example, disconnect the track model to be connected from this connection port, and then re-select another track model as the track model to be connected and connect it to this connection port.
[0047] Figure 1 It is a schematic diagram of a track editing method provided by an embodiment of the present application.
[0048] As Figure 1As shown, the track model A includes four connection ports, namely connection port 101, connection port 102, connection port 103, and connection port 104. The track model A is the previously selected track model currently displayed in the track display area. The track model B is the track model to be connected selected based on the track alternative column. As shown in the figure, the track model B is connected to the connection port 101 of the track model A (the connection port 101 is the subsequent connection port automatically determined based on the game preset rules), but the player expects to connect the track model B to the connection port 103 of the track model A. Therefore, it is necessary to disconnect the track model B from the connection port 101 of the track model A, and then re-search and select the track model C based on the track alternative column (the track model C is the track model that the player expects to connect to the connection port 101 of the track model A), and use the track model C as the track model to be connected and connect it to the connection port 101 of the track model A. There may also be the following situations in the future: First, the player re-selects the track model B based on the track alternative column, but the track model B is connected to the connection port 102 of the track model A (the connection port 102 is the subsequent connection port automatically determined based on the game preset rules). Then, it is necessary to repeat the above operation again to cancel the connection relationship between the track model B and the track model A, and re-connect other track models to the connection port 102 of the track model A; Second, the player selects the track model D based on the track alternative column (the track model D is the track model that the player expects to connect to the connection port 104 of the track model A), and the track model D is connected to the connection port 103 of the track model A (the connection port 103 is the subsequent connection port automatically determined based on the game preset rules). Then, it is still necessary to repeat the above operation to cancel the connection relationship between the track model D and the track model A, and re-connect the track model B to the connection port 103 of the track model A.
[0049] In summary, when connecting two track models based on the existing road editing method, the player has weak controllability over the subsequent connection ports, which will cause the player to need to perform more operations to achieve road editing. In addition, the long operation process will also consume a large amount of computer memory.
[0050] In view of this, the present application provides a road editing method in a game. Through the triggering operation of the player on the first connection port in the first track model, the first connection port can be determined as the subsequent connection port, so as to connect the second track model to the first track model based on the first connection port, and there will be no situation where the second track model is connected to other connection ports of the first track model because the player cannot determine the subsequent connection port, achieving autonomous and precise control of the connection of the track models, improving the controllability of the player over road editing, thereby shortening the operation process and reducing the consumption of computer memory.
[0051] The following further elaborates in detail on the method, device, terminal device, and computer-readable storage medium for road editing in a game provided by this application in combination with specific embodiments and the accompanying drawings.
[0052] Figure 2 It is an application system diagram of a method for road editing in a game provided by an embodiment of this application. As Figure 2 shown, this system includes a user terminal 201 and a server 202. The user terminal 201 can be any device such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant (Personal Digital Assistant, PDA), etc. The server 202 can be a processing module inside the user terminal 201, or a processing device electrically connected to the user terminal 201, or a server communicatively connected to multiple user terminals 201. The method for road editing in the game provided by this application is deployed on the server 202, so as to provide players with greater editing control when they edit the competition road based on the user terminal 201.
[0053] The first embodiment of this application provides a method for road editing in a game.
[0054] The game targeted by this method can be any game that provides players with autonomous road editing. Optionally, this game provides a road editing function based on a UGC editor. A UGC (User-Generated Content) editor is a tool that allows users to independently create, modify, and share game content. By providing a series of functional modules (such as terrain editing, building construction, road design, etc.), it enables users to exert their creativity in the game and design unique content of their own. In this embodiment, based on the UGC editor, a road editing function is provided for players. Specifically, players can use the UGC editor in the game to design, modify, and adjust the roads in the game. For example, players are allowed to draw roads of different shapes and lengths, and are allowed to design complex road networks and intersections, etc.
[0055] The method provided in this embodiment provides a graphical user interface through a terminal device. The graphical user interface (Graphical User Interface, GUI) is displayed on the screen of the terminal device. It is a user operation interface displayed in a graphical manner and is a form of interface display for communication between a person and an electronic device, enabling users to interact with the electronic device through icons and visual indicators. The content provided in the graphical user interface is related to the stage of the game. Exemplarily, when the game is in the pre-stage, the content provided in the graphical user interface can be a game setting interface; when the game is in the autonomous editing stage, the content provided in the graphical user interface can be a UGC editing interface; when the game is in the game session stage, the content provided in the graphical user interface can be a game main interface.
[0056] Figure 3 is a flowchart of the road editing method in the game provided in this embodiment. The following will describe in detail the road editing method in the game provided in this embodiment in conjunction with Figure 3 This embodiment is used to explain the technical solution of this application and is not a limitation for actual use.
[0057] As Figure 3 shown, the road editing method in the game provided in this embodiment includes the following steps S310 to S340.
[0058] Step S310: Display a road editing interface. The road editing interface includes at least a first area and a second area. The first area is used to display the selected track model, and the second area is used to display a track alternative bar, which includes a plurality of track models preset for the game.
[0059] The road editing interface can be understood as an interactive interface for editing roads displayed on the graphical user interface in response to the player's activation of the road editing function in the game. The player can edit the road expected to be applied to the game scene by performing interactive operations in the road editing interface, such as the race track in a racing game. Optionally, the road editing interface is a sub-module or functional branch of the UGC editor. The UGC editor provides underlying data processing, resource management, and operation logic, and the road editing interface is the front-end manifestation of these functions. Specifically, the road editing interface simplifies the complex road editing functions in the UGC editor into a form that is easy for players to understand and operate through graphical buttons, sliders, menus, and other elements.
[0060] In this embodiment, the road editing interface includes at least a first area and a second area. The first area is a track model display area for displaying the selected track model. The selected track model can be understood as the track model determined by the player's selection operation to be a component of the road to be edited. In this embodiment, after the player selects a track model, the track model becomes the selected track model and will be displayed in the first area and enter the editable state. The player can further modify, adjust, or optimize the track model, such as extending the track model. The second area is a track alternative bar display area for displaying the track alternative bar. The track alternative bar can be understood as a set of track models, which includes a plurality of track models preset for the game for the player to quickly select and use when performing road editing. The player can view and select the desired track model in the track alternative bar to connect with the selected track model displayed in the first area to form the road to be edited.
[0061] Optionally, the first area occupies most of the road editing interface and is located in the middle of the road editing interface. The selected track model can be rotated, scaled, edited, etc. in the first area. The second area occupies a small part of the road editing interface and is located on the side of the road editing interface. Only some track models may be displayed in the track alternative bar. In response to the sliding operation of the slider in the track alternative bar, the track models displayed in the track alternative bar are replaced. Of course, in some games, the road editing interface includes multiple interface layers. The first area is one of the interface layers for displaying the selected track model, and the second area is another interface layer. In response to the trigger operation on the second area, the second area is displayed above the first area or hidden below the first area. The specific implementation method can vary according to the game settings and is not limited here.
[0062] In this embodiment, the track model can be a game resource edited by developers during the game development stage, or a game resource drawn by players based on the UGC editor or adjusted from existing track models during the game operation stage. The specific details are not limited here. The track model can be understood as a component that makes up the road to be edited. Usually, the track model has at least two openings to enable virtual objects (such as virtual racing cars) to enter and exit. This opening is also used to connect other track models. Based on this, in this embodiment, the opening of the track model is defined as a connection port.
[0063] Step S320, in response to the selection operation on the first track model in the track alternative bar, determine the first track model as the selected track model and display the first track model in the first area. The first track model is any one of the multiple track models.
[0064] The selection operation can be implemented through a mouse, keyboard, touch screen, etc. For example, click on a certain track model in the track alternative bar with the mouse. For another example, switch the track model to be selected through the arrow keys on the keyboard and select the track model to be selected through other preset keys. For yet another example, based on the finger sliding on the touch screen, drag a certain track model to the first area to select the track model. The specific implementation method is not limited here. In this embodiment, the selected track model determined based on the selection operation in this step is defined as the first track model, and the first track model can be any one of the multiple track models included in the track alternative bar.
[0065] In this embodiment, after the player performs a selection operation on the first track model in the track alternative bar, the first track model will be determined as the selected track model and displayed in the first area.
[0066] In an optional implementation manner, the selection operation includes a drag operation of dragging the track model in the track alternative bar to the first area.
[0067] The implementation method of the drag operation is that after the player triggers the track model with a finger or a mouse pointer, the position of the track model changes with the position of the finger or the mouse pointer, showing that the player drags the track model based on the finger or the mouse pointer. Optionally, the drag operation can be implemented based on the mouse. For example, point the mouse pointer at the first track model, long-press the left mouse button and move the mouse in the direction of the first area, so that the first track model follows the mouse pointer and moves to the first area. Optionally, the drag operation can also be implemented based on the movement of the finger on the touch screen. For example, press the finger on the first track model and move it in the direction of the first area, so that the first track model follows the finger and moves to the first area.
[0068] Step S330, in response to the trigger operation on the first connection port in the first track model, determine the first connection port as the subsequent connection port, where the first connection port is any one of the multiple connection ports included in the first track model.
[0069] The subsequent connection port can be understood as the connection port among the multiple connection ports that will connect to the next selected track model. Exemplarily, track model A includes 4 connection ports, namely connection port 1, connection port 2, connection port 3, and connection port 4. Among them, connection port 2 is the connection port that will connect to the next selected track model. Then, when the player selects track model B in the track alternative bar, track model B will be connected to track model A through connection port 2.
[0070] In the prior art, the subsequent connection port is determined according to a preset rule (as described above), and the player lacks the autonomy to select the subsequent connection port. In this embodiment, the subsequent connection port can be determined in response to the player's interaction operation. Specifically, in response to the trigger operation of the player on the selected track model (such as the first track model) displayed in the first area, determine the subsequent connection port. Specifically, use the connection port triggered by the player in the track model as the subsequent connection port.
[0071] By the above steps, the first track model is determined as the selected track model and displayed in the first area. Then, when the player triggers a certain connection port of the first track model, this connection port becomes the subsequent connection port of the first track model. In this embodiment, the subsequent connection port determined based on the player's trigger operation in this step is defined as the first connection port, and the first connection port can be any one of the multiple connection ports included in the first track model.
[0072] The trigger operation on the first connection port can include any operation type such as a click operation, a press operation, a slide operation, a double-click operation, etc. on the first connection port, and specific limitations are not made here. In a specific implementation manner, the trigger operation on the first connection port is a click operation on the first connection port.
[0073] Step S340, in response to a selection operation on the second track model in the track alternative bar, determine the second track model as the selected track model, and display the first track model and the second track model connected to each other based on the first connection port in the first area. The second track model is any one of multiple track models that can be connected to the first track model.
[0074] Optionally, in response to the player dragging the second track model in the track alternative bar to the first area, determine the second track model as the selected track model, and also display the second track model in the first area. Since the subsequent connection port (i.e., the first connection port) of the first track model has been determined through the above steps, the second track model displayed in the first area is specifically the second track model connected to the first track model based on the subsequent connection port, that is, the first track model and the second track model connected to each other based on the subsequent connection port. In an alternative implementation, after determining the second track model as the selected track model, the first track model and the second track model connected to each other through the first connection port will be directly displayed in the first area. In another alternative implementation, after determining the second track model as the selected track model, the connection process of the second track model connected to the first connection port of the first track model will be displayed in the first area, and then the first track model and the second track model connected to each other through the first connection port will be displayed. The specific implementation can be adjusted according to the game settings and is not limited here.
[0075] Optionally, the track models that can be connected to the first track model can be all the track models preset for the game, or most of the track models other than the first track model, or some track models having a preset matching relationship with the first track model. The specific implementation is not limited here and can be adjusted according to the specific game settings. In an alternative implementation, the track models that can be connected to the first track model will be prominently displayed in the track alternative bar, and other track models will not be displayed or will be hidden or displayed in a non-selectable state. The second track model is any one of the multiple track models prominently displayed in the track alternative bar.
[0076] FIG. 4 is a schematic diagram of a road editing method in a game provided in this embodiment.
[0077] As shown in Figure 4(a), a road editing interface 40 is displayed in the graphical user interface. The road editing interface 40 includes a first area 41 and a second area 42 (other areas are not shown in this illustration). The first area 41 is used to display the selected track model. Currently, there is no selected track model, so no track model is displayed in the first area 41. The second area 42 displays a track alternative bar 430, and multiple preset track models are shown in the track alternative bar 430, such as track model A, track model B, track model C, track model D,....
[0078] As shown in Figure 4(b), in response to the player dragging track model A in the track alternative bar to the first area 41, track model A is determined as the selected track model and is displayed in the first area 41. Track model A has four connection ports: connection port 1, connection port 2, connection port 3, and connection port 4.
[0079] As shown in Figure 4(c), the player wants to connect track model B to connection port 3 of track model A. Then, the player clicks on connection port 3 of track model A, and connection port 3 is determined as the subsequent connection port.
[0080] As shown in Figure 4(d), in response to the player dragging track model B in the track alternative bar to the first area 41, track model B is also determined as the selected track model, and track model A and track model B connected to each other based on connection port 3 are displayed in the first area 41.
[0081] The following describes various optional implementation manners provided in this embodiment:
[0082] In an optional implementation manner, the connection port corresponds to a triggerable identifier to prompt the player that the connection port can be operated by triggering this identifier. Specifically, the connection port is selected as the subsequent connection port. The triggerable identifier can be displayed in the form of a highlighted border (for example, a highlighted border is displayed around the connection port. When the player hovers the mouse or brings a finger close, the border color changes or blinks, indicating that this area can be triggered), an icon prompt (for example, an obvious gear, link symbol, or finger click icon is displayed near or on the connection port, intuitively prompting the player that a trigger operation can be performed on this), a dynamic effect (for example, using a pulsed light effect, a rotation animation, a zoom effect, etc. to attract the player's attention, indicating that the connection port can be operated), a text prompt (for example, short text descriptions such as "click" or "double click" are displayed around the connection port, directly informing the player of the operation method for the connection port), etc. There is no specific limitation here. In a specific implementation manner, the triggerable identifier corresponding to the connection port is displayed as an arrow icon, and this arrow icon is displayed on the connection port (for example, at the central position of the connection port), and the direction of the arrow indicates whether the connection port is an inlet or an outlet.
[0083] Based on this, in response to a trigger operation on the first connection port in the first track model, the first connection port is determined as the subsequent connection port, which may specifically include: in response to a trigger operation on the triggerable identifier corresponding to the first connection port, the first connection port is determined as the subsequent connection port. Exemplarily, the player clicks on the arrow icon on the first connection port and selects the first connection port as the subsequent connection port.
[0084] In an alternative implementation, the triggerable identifier has a display state that can be changed, and this display state reflects the connection state of the connection port corresponding to the triggerable identifier.
[0085] The connection state of the connection port generally includes three types: connected, subsequent connection, and others. "Connected" means that an existing track model is connected to this connection port; "subsequent connection" means that this connection port has not been connected to a track model yet, but it is the next connection port to which a track model will be connected (i.e., the subsequent connection port); "others" can include "not connected", that is, this connection port is not connected to a track model and is not a subsequent connection port, and can also include "cannot connect", that is, this connection port cannot connect to any track model. For example, this connection port can only be used as the entrance and exit of the road to be edited, and can also include "exclusive connection", that is, this connection port can only connect to a certain track model. The specific division of the connection state can be adjusted according to the game settings and is not limited here.
[0086] In this embodiment, by endowing the triggerable identifier with a display state that can be changed, the connection states of each connection port are reflected. The display state can be understood as information conveyed through visual elements. Based on the display state of the triggerable identifier, the player can visually and intuitively perceive the connection state of the connection port.
[0087] Based on this, the display state of the triggerable identifier will be different due to the different connection states of the corresponding connection port. In an alternative implementation, in response to the connection port being a subsequent connection port (i.e., a connection port in the subsequent connection state), the triggerable identifier corresponding to this connection port is displayed in the first display state; in response to the connection port being a connection port of the selected connected track model (i.e., a connection port in the connected state), the triggerable identifier corresponding to this connection port is displayed in the second display state; in response to the connection port not being a subsequent connection port and not being a connection port of the selected connected track model (i.e., a connection port in the other state), the triggerable identifier corresponding to this connection port is displayed in the third display state.
[0088] When the connection state of the connection port changes, the display state of the identifier can be triggered to change accordingly, so as to correctly inform the player of the current connection state of each connection port. Based on this, in an optional implementation, in response to a trigger operation on the first connection port in the first track model, the first connection port is determined as the subsequent connection port, which may specifically include: in response to a trigger operation on the trigger identifier corresponding to the first connection port, the first connection port is determined as the subsequent connection port, and the display state of the trigger identifier corresponding to the first connection port is changed from the third display state to the first display state. Specifically, before the first connection port is triggered, it is in other states, so the trigger identifier corresponding to the first connection port is displayed in the third display state. When the first connection port is triggered, the connection state of the first connection port changes from other states to the subsequent connection state. Therefore, the display state of the trigger identifier corresponding to the first connection port will change from the third display state to the first display state accordingly.
[0089] In an optional implementation, in response to a selection operation on the second track model in the track alternative bar, the second track model is determined as the selected track model, and the first track model and the second track model connected to each other based on the first connection port are displayed in the first area, which may specifically include: in response to a selection operation on the second track model, the second track model is determined as the selected track model, and the first track model and the second track model connected to each other based on the first connection port are displayed in the first area, and the display state of the trigger identifier corresponding to the first connection port is changed from the first display state to the second display state. Specifically, before the first connection port is connected to the second track model, it is in the subsequent connection state, so the trigger identifier corresponding to the first connection port is displayed in the first display state. When the first connection port is connected to the second track model, the connection state of the first connection port changes from the subsequent connection state to the connected state. Therefore, the display state of the trigger identifier corresponding to the first connection port will change from the first display state to the second display state accordingly.
[0090] The display state can be any visual element with strong visual perception, such as color, pattern, brightness, transparency, texture, etc. In an optional implementation, the display state includes color and / or brightness. That is, the connection state of the corresponding connection port is reflected by the color, or brightness, or the combination of color and brightness of the trigger identifier. Optionally, a brighter color (such as green, red, yellow) and / or high brightness can be used to represent the subsequent connection port, and a dimmer color (such as white, gray) and / or low brightness can be used to represent the connected connection port and the unconnected connection port, so as to prominently display the subsequent connection port to the player. Specifically, it can be adjusted according to the game settings and is not limited here. In an optional implementation, a high-brightness yellow is used to represent the subsequent connection port in the subsequent connection state, a green is used to represent the connected connection port in the connected state, and a white is used to represent the connection port in other states.
[0091] Figure 5 is a schematic diagram of another road editing method in the game provided by this embodiment.
[0092] As shown in Figure 5(a), a road editing interface 50 is displayed in the graphical user interface. The road editing interface 50 includes a first area 51 and a second area 52 (other areas are not shown in this figure). The first area 51 is used to display the selected track model. Currently, there is no selected track model, and no track model is displayed in the first area 51. The second area 52 displays a track alternative bar 530, and multiple preset track models are shown in the track alternative bar 530, such as track model A, track model B, track model C, track model D,....
[0093] As shown in Figure 5(b), in response to the player dragging track model A in the track alternative bar to the first area 51, track model A is determined as the selected track model, and track model A is displayed in the first area 51. Track model A has four connection ports, namely connection port 1, connection port 2, connection port 3, and connection port 4. Triggerable identifiers are displayed on each connection port. In this figure, the triggerable identifiers are represented in the form of arrow icons. Specifically, a triggerable identifier 541 is displayed on connection port 1, a triggerable identifier 542 is displayed on connection port 2, a triggerable identifier 543 is displayed on connection port 3, and a triggerable identifier 544 is displayed on connection port 4. Since each connection port is currently in other states, the corresponding triggerable identifiers of each connection port are all displayed in white (i.e., the third display state).
[0094] As shown in Figure 5(c), the player wants to connect track model B to connection port 3 of track model A, and then clicks the triggerable identifier 543 corresponding to connection port 3 of track model A.
[0095] As shown in Figure 5(d), in response to the click operation of the player on the triggerable identifier 543, connection port 3 is determined as the subsequent connection port, and the triggerable identifier 543 corresponding to connection port 3 changes from white to bright yellow (i.e., the first display state), so as to reflect to the player that connection port 3 is currently in the subsequent connection state and is the subsequent connection port.
[0096] As shown in Figure 5(e), in response to the player dragging track model B in the track alternative bar to the first area 51, track model B is determined as the selected track model, and track model A and track model B connected to each other based on connection port 3 are displayed in the first area 51. The triggerable identifier 543 corresponding to connection port 3 changes from bright yellow to green (i.e., the second display state), so as to reflect to the player that connection port 3 is currently in the connected state.
[0097] In an alternative implementation provided in this embodiment, the subsequent connection port is determined by combining the triggering operation of the player with the preset rules of the game, and the priority of the player's triggering operation is higher than that of the preset rules of the game. That is, when no triggering operation of the player on the connection port is received, the subsequent connection port is determined according to the preset rules of the game. When a triggering operation of the player on the connection port is received, the connection port triggered by the player is determined as the subsequent connection port based on the player's operation.
[0098] Based on this, in an alternative implementation, after the step of determining the first track model as the selected track model in response to the selection operation on the first track model in the track alternative bar and displaying the first track model in the first area, the method provided in this embodiment may further include: determining the second connection port of the first track model as the subsequent connection port, where the second connection port is the connection port with the first connection order determined based on the preset initial connection port determination rule.
[0099] When the player performs the selection operation on the first track model but has not performed the triggering operation on the connection port, the connection port will be determined based on the preset rules of the game. In this embodiment, the preset rules of the game for the connection port are divided into an initial connection port determination rule and a connection port switching rule.
[0100] The initial connection port determination rule refers to the method of determining the subsequent connection port when a certain track model is determined as the selected track model but the track model has not been connected to any track models. Exemplarily, the player drags the track model A from the track alternative bar to the first area, and the track model A is displayed in the first area. At this time, the track model A has not been connected to any track models, and the first subsequent connection port of the track model A will be determined based on the initial connection port determination rule. In this embodiment, the first subsequent connection port determined based on the initial connection port determination rule is defined as the second connection port.
[0101] The initial connection port determination rule includes determining the connection port with the first connection order according to the association relationship of multiple connection ports, and using the connection port with the first connection order as the first subsequent connection port of the track model. The association relationship of multiple connection ports may include the relative position relationship of multiple connection ports. For example, the connection port that is relatively more upward and more to the right is determined as the connection port with the first connection order. It may also include the in-out relationship of multiple connection ports. For example, the only import or the only export among multiple connection ports is determined as the connection port with the first connection order. The specific implementation method can be adjusted according to the game settings and will not be limited here.
[0102] Based on this, in response to a triggering operation on the first connection port in the first track model, the first connection port is determined as the subsequent connection port. Specifically, it may include: in response to the triggering operation on the first connection port, canceling the second connection port as the subsequent connection port and determining the first connection port as the subsequent connection port. The priority of the subsequent connection port determined by the player's triggering operation is higher than that determined based on the preset game rules. Therefore, when the player executes the triggering operation on the first connection port in the first track model, the subsequent connection port will change from the second connection port to the first connection port, that is, canceling the second connection port as the subsequent connection port and determining the first connection port as the subsequent connection port.
[0103] In another alternative implementation, after the step of, in response to a selection operation on the second track model in the track alternative bar, determining the second track model as the selected track model and displaying the first track model and the second track model connected to each other based on the first connection port in the first area, the method provided in this embodiment may further include: determining the third connection port of the first track model as the subsequent connection port, where the third connection port is the connection port whose connection order is after the first connection port determined based on the preset connection port switching rule.
[0104] The subsequent connection port switching rule is also a game preset rule for connection ports, which refers to the method of determining the subsequent connection port after the selected track model is connected to other track models. Exemplarily, the player drags the track model A from the track alternative bar to the first area, and the track model A is displayed in the first area. The connection port 1 of the track model A is determined as the first subsequent connection port based on the initial connection port determination rule. The player drags the track model B from the track alternative bar to the first area, and the track model B is connected to the connection port 1 of the track model A. Then, the connection port whose connection order is after the connection port 1 will be determined based on the connection port switching rule, and this connection port will be determined as the subsequent connection port.
[0105] The connection port switching rule includes determining the connection port whose connection order is after the previous subsequent connection port according to the association relationship between multiple remaining connection ports (that is, the connection ports that have not been connected to track models) and the previous subsequent connection port. The association relationship between multiple remaining connection ports and the previous subsequent connection port may include the relative position relationship between multiple remaining connection ports and the previous subsequent connection port. For example, the first remaining connection port located in the counterclockwise direction of the previous subsequent connection port is determined as the subsequent connection port. It may also include the in-out type relationship between multiple remaining connection ports and the previous subsequent connection port. For example, the connection port with the same in-out type as the previous subsequent connection port among multiple remaining connection ports is determined as the subsequent connection port. The specific implementation method can be adjusted according to the game settings and is not limited here.
[0106] Figure 6 is a schematic diagram of another method for editing roads in a game provided in this embodiment.
[0107] As shown in FIG. 6(a), a road editing interface 60 is displayed in the graphical user interface. The road editing interface 60 includes a first area 61 and a second area 62 (other areas are not shown in this illustration). The first area 61 is used to display the selected track model. Currently, there is no selected track model, so no track model is displayed in the first area 61. The second area 62 displays a track alternative bar 630, and multiple preset track models are shown in the track alternative bar 630, such as track model A, track model B, track model C, track model D,....
[0108] As shown in FIG. 6(b), in response to the player dragging the track model A in the track alternative bar to the first area 61, the track model A is determined as the selected track model and the track model A is displayed in the first area 61. The track model A has four connection ports, namely connection port 1, connection port 2, connection port 3, and connection port 4. Triggerable identifiers are displayed on each connection port. In this illustration, the triggerable identifiers are represented in the form of arrow icons. Specifically, a triggerable identifier 641 is displayed on connection port 1, a triggerable identifier 642 is displayed on connection port 2, a triggerable identifier 643 is displayed on connection port 3, and a triggerable identifier 644 is displayed on connection port 4. Based on a preset initial connection port determination rule (for example, taking the connection port that is higher and more to the right as the subsequent connection port), connection port 1 is automatically determined as the subsequent connection port, and the corresponding triggerable identifier 641 of connection port 1 is displayed in highlighted yellow (i.e., the first display state). Since the other connection ports are in other states, the triggerable identifier 642 corresponding to connection port 2, the triggerable identifier 643 corresponding to connection port 3, and the triggerable identifier 644 corresponding to connection port 4 are all displayed in white (i.e., the third display state).
[0109] As shown in FIG. 6(c), the player wants to connect the track model B to the connection port 3 of the track model A, and then clicks on the triggerable identifier 643 corresponding to the connection port 3 of the track model A.
[0110] As shown in FIG. 6(d), in response to the player's click operation on the triggerable identifier 643, the determination of connection port 1 as the subsequent connection port is cancelled, and connection port 3 is determined as the subsequent connection port. At this time, the triggerable identifier 641 corresponding to connection port 1 changes from highlighted yellow to white, and the triggerable identifier 643 corresponding to connection port 3 changes from white to highlighted yellow.
[0111] As shown in FIG. 6(e), in response to the player dragging the track model B in the track alternative bar to the first area 61, the track model B is determined as the selected track model, and the track model A and the track model B connected to each other based on the connection port 3 are displayed in the first area 61. At this time, the triggerable identifier 643 corresponding to the connection port 3 changes from highlighted yellow to green (i.e., the second display state), so as to reflect to the player that the connection port 3 is currently in a connected state. Based on the preset connection port switching rule (for example, taking the first remaining connection port in the counterclockwise direction of the previous subsequent connection port as the subsequent connection port), the connection port 4 is automatically determined as the subsequent connection port, and the triggerable identifier 644 corresponding to the connection port 4 changes from white to highlighted yellow.
[0112] In an alternative implementation provided in this embodiment, after automatically determining the third connection port as the subsequent connection port based on the connection port switching rule, there are the following two alternative implementation manners:
[0113] In an alternative implementation manner, the player performs a triggering operation on other connection ports again, and determines other connection ports as the subsequent connection ports. Specifically, in response to the triggering operation acting on the fourth connection port in the first track model, cancel the determination of the third connection port as the subsequent connection port, and determine the fourth connection port as the subsequent connection port. The fourth connection port is any one of the multiple connection ports except the first connection port and the third connection port.
[0114] Exemplarily, after the track model B is connected to the track model A through the connection port 3 of the track model A, based on the preset connection port switching rule, the subsequent connection port is automatically switched to the connection port 4 (i.e., the third connection port). The player expects to connect the track model C to the connection port 2, that is, a triggering operation will be performed on the connection port 2 (i.e., the fourth connection port) to determine the connection port 2 as the subsequent connection port.
[0115] FIG. 7 is a schematic diagram of another road editing method in the game provided in this embodiment.
[0116] As shown in FIG. 7(a), a road editing interface 70 is displayed in the graphical user interface. The road editing interface 70 includes a first area 71 and a second area 72 (other areas are not shown in this figure). The first area 71 is used to display the selected track model. Currently, there is no selected track model, and no track model is displayed in the first area 71. The second area 72 displays a track alternative bar 730, and multiple preset track models are displayed in the track alternative bar 730, such as track model A, track model B, track model C, track model D,....
[0117] As shown in Figure 7(b), in response to the player dragging the track model A in the track alternative bar to the first area 71, the track model A is determined as the selected track model and the track model A is displayed in the first area 71. The track model A has four connection ports, namely connection port 1, connection port 2, connection port 3, and connection port 4, and triggerable identifiers are displayed on each connection port. In this illustration, the triggerable identifiers are represented in the form of arrow icons. Specifically, a triggerable identifier 741 is displayed on connection port 1, a triggerable identifier 742 is displayed on connection port 2, a triggerable identifier 743 is displayed on connection port 3, and a triggerable identifier 744 is displayed on connection port 4. Based on a preset initial connection port determination rule (for example, taking the connection port that is higher and more to the right as the subsequent connection port), connection port 1 is automatically determined as the subsequent connection port, and the triggerable identifier 741 corresponding to connection port 1 is displayed in bright yellow (i.e., the first display state). Since the other connection ports are in other states, the triggerable identifier 742 corresponding to connection port 2, the triggerable identifier 743 corresponding to connection port 3, and the triggerable identifier 744 corresponding to connection port 4 are all displayed in white (i.e., the third display state).
[0118] As shown in Figure 7(c), the player wants to connect the track model B to connection port 3 of the track model A, and then clicks on the triggerable identifier 743 corresponding to connection port 3 of the track model A.
[0119] As shown in Figure 7(d), in response to the player's click operation on the triggerable identifier 743, cancel the determination of connection port 1 as the subsequent connection port and determine connection port 3 as the subsequent connection port. At this time, the triggerable identifier 741 corresponding to connection port 1 changes from bright yellow to white, and the triggerable identifier 743 corresponding to connection port 3 changes from white to bright yellow.
[0120] As shown in Figure 7(e), in response to the player dragging the track model B in the track alternative bar to the first area 71, the track model B is determined as the selected track model, and the track models A and B connected to each other based on connection port 3 are displayed in the first area 71. At this time, the triggerable identifier 743 corresponding to connection port 3 changes from bright yellow to green (i.e., the second display state) to reflect to the player that connection port 3 is currently in a connected state. Based on a preset connection port switching rule (for example, taking the first remaining connection port in the counterclockwise direction of the previous subsequent connection port as the subsequent connection port), connection port 4 is automatically determined as the subsequent connection port, and the triggerable identifier 744 corresponding to connection port 4 changes from white to bright yellow.
[0121] As shown in Figure 7(f), the player wants to connect the track model C to connection port 2 of the track model A, and then clicks on the triggerable identifier 742 corresponding to connection port 2 of the track model A.
[0122] As shown in FIG. 7(g), in response to the player's click operation on the triggerable identifier 742, the connection port 4 is cancelled as the subsequent connection port, and the connection port 2 is determined as the subsequent connection port. At this time, the triggerable identifier 744 corresponding to the connection port 4 changes from highlighted yellow to white, and the triggerable identifier 742 corresponding to the connection port 2 changes from white to highlighted yellow.
[0123] As shown in FIG. 7(h), in response to the player dragging the track model C in the track alternative bar to the first area 71, the track model C is determined as the selected track model, and the track models A and B connected to each other based on the connection port 3 and the track models A and C connected to each other based on the connection port 2 are displayed in the first area 71. At this time, the triggerable identifier 742 corresponding to the connection port 2 changes from highlighted yellow to green to indicate to the player that the connection port 2 is currently in a connected state. Based on the preset connection port switching rule (for example, the first remaining connection port in the counterclockwise direction of the previous subsequent connection port is used as the subsequent connection port), the connection port 4 is automatically determined as the subsequent connection port, and the triggerable identifier 744 corresponding to the connection port 4 changes from white to highlighted yellow.
[0124] In another alternative implementation, when the player does not perform a triggering operation on other connection ports, the third connection port automatically determined based on the connection port switching rule remains the subsequent connection port. Specifically, in response to the selection operation on the third track model in the track alternative bar, the third track model is determined as the selected track model, and the first track model and the second track model connected to each other based on the first connection port and the first track model and the third track model connected to each other based on the third connection port are displayed in the first area. The third track model is any one of multiple track models that can be connected to the first track model.
[0125] FIG. 8 is a schematic diagram of yet another road editing method in the game provided in this embodiment.
[0126] As shown in FIG. 8(a), a road editing interface 80 is displayed in the graphical user interface. The road editing interface 80 includes a first area 81 and a second area 82 (other areas are not shown in this figure). The first area 81 is used to display the selected track model. Currently, there is no selected track model, and no track model is displayed in the first area 81. The second area 82 displays a track alternative bar 830, and multiple preset track models, such as track model A, track model B, track model C, track model D, ……, are displayed in the track alternative bar 830.
[0127] As shown in FIG. 8(b), in response to the player dragging the track model A in the track alternative bar to the first area 81, the track model A is determined as the selected track model and the track model A is displayed in the first area 81. The track model A has four connection ports, namely connection port 1, connection port 2, connection port 3, and connection port 4. Triggerable identifiers are displayed on each connection port. In this illustration, the triggerable identifiers are represented in the form of arrow icons. Specifically, a triggerable identifier 841 is displayed on connection port 1, a triggerable identifier 842 is displayed on connection port 2, a triggerable identifier 843 is displayed on connection port 3, and a triggerable identifier 844 is displayed on connection port 4. Based on a preset initial connection port determination rule (for example, the connection port that is more upward and more rightward is used as the subsequent connection port), connection port 1 is automatically determined as the subsequent connection port, and the triggerable identifier 841 corresponding to connection port 1 is displayed in bright yellow (i.e., the first display state). Since the other connection ports are in other states, the triggerable identifier 842 corresponding to connection port 2, the triggerable identifier 843 corresponding to connection port 3, and the triggerable identifier 844 corresponding to connection port 4 are all displayed in white (i.e., the third display state).
[0128] As shown in FIG. 8(c), the player wants to connect the track model B to connection port 3 of the track model A, and then clicks on the triggerable identifier 843 corresponding to connection port 3 of the track model A.
[0129] As shown in FIG. 8(d), in response to the player's click operation on the triggerable identifier 843, the determination of connection port 1 as the subsequent connection port is cancelled, and connection port 3 is determined as the subsequent connection port. At this time, the triggerable identifier 841 corresponding to connection port 1 changes from bright yellow to white, and the triggerable identifier 843 corresponding to connection port 3 changes from white to bright yellow.
[0130] As shown in FIG. 8(e), in response to the player dragging the track model B in the track alternative bar to the first area 81, the track model B is determined as the selected track model, and the track model A and the track model B connected to each other based on connection port 3 are displayed in the first area 81. At this time, the triggerable identifier 843 corresponding to connection port 3 changes from bright yellow to green (i.e., the second display state) to reflect to the player that connection port 3 is currently in a connected state. Based on a preset connection port switching rule (for example, the first remaining connection port in the counterclockwise direction of the previous subsequent connection port is used as the subsequent connection port), connection port 4 is automatically determined as the subsequent connection port, and the triggerable identifier 844 corresponding to connection port 4 changes from white to bright yellow.
[0131] As shown in FIG. 8(f), in response to the player dragging the track model C in the track alternative bar to the first area 81, the track model C is determined as the selected track model. In the first area 81, the track model A and the track model B connected to each other based on the connection port 3, and the track model A and the track model C connected to each other based on the connection port 4 are displayed. At this time, the triggerable identifier 744 corresponding to the connection port 4 changes from highlighted yellow to green to reflect to the player that the connection port 4 is currently in a connected state. Based on a preset connection port switching rule (for example, taking the first remaining connection port in the counterclockwise direction of the previous subsequent connection port as the subsequent connection port), the connection port 1 is automatically determined as the subsequent connection port, and the triggerable identifier 741 corresponding to the connection port 1 changes from white to highlighted yellow.
[0132] The above first embodiment provides a road editing method in a game. Through the triggering operation of the player on the first connection port in the first track model, the first connection port can be determined as the subsequent connection port, so as to realize connecting the second track model to the first track model based on the first connection port, and there will be no situation where the second track model is connected to other connection ports of the first track model because the player cannot determine the subsequent connection port, realizing autonomous and precise control of the connection of the track model, improving the controllability of the player for road editing, thus shortening the operation process and reducing the computer memory consumption. It should be noted that the examples in the first embodiment are only for explaining the method described in this application and are not used as a limitation for actual use. The road editing method in the game provided by this application includes but is not limited to the method described in the first embodiment.
[0133] The second embodiment of this application provides a road editing device in a game. The device provides a graphical user interface through a terminal device. Figure 9 It is a schematic structural diagram of the road editing device in the game provided by this embodiment.
[0134] As Figure 9 shown, the road editing device in the game provided by this embodiment includes: an interface display unit 901, a first model display unit 902, a subsequent connection port determination unit 903, and a second model display unit 904.
[0135] The interface display unit 901 is used to display a road editing interface. The road editing interface includes at least a first area and a second area. The first area is used to display the selected track model, and the second area is used to display a track alternative bar. The track alternative bar includes a plurality of track models preset for the game.
[0136] The first model display unit 902 is configured to, in response to a selection operation on the first track model in the track alternative bar, determine the first track model as the selected track model and display the first track model in the first area, where the first track model is any one of a plurality of track models.
[0137] Optionally, the selection operation includes a drag operation of dragging the track model in the track alternative bar to the first area.
[0138] The subsequent connection port determination unit 903 is configured to, in response to a trigger operation on the first connection port in the first track model, determine the first connection port as the subsequent connection port, where the first connection port is any one of a plurality of connection ports included in the first track model.
[0139] Optionally, after the step of, in response to a selection operation on the first track model in the track alternative bar, determining the first track model as the selected track model and displaying the first track model in the first area, it is further configured to:
[0140] Determine the second connection port of the first track model as the subsequent connection port, where the second connection port is the connection port with the first connection order determined based on a preset initial connection port determination rule;
[0141] Responding to a trigger operation on the first connection port in the first track model and determining the first connection port as the subsequent connection port includes:
[0142] Responding to a trigger operation on the first connection port, canceling the determination of the second connection port as the subsequent connection port and determining the first connection port as the subsequent connection port.
[0143] Optionally, the connection port is associated with a triggerable identifier;
[0144] Responding to a trigger operation on the first connection port in the first track model and determining the first connection port as the subsequent connection port includes:
[0145] Responding to a trigger operation on the triggerable identifier corresponding to the first connection port and determining the first connection port as the subsequent connection port.
[0146] Optionally, the triggerable identifier has a display state that can be changed, and the display state reflects the connection state of the connection port corresponding to the triggerable identifier.
[0147] Optionally, the display state includes color and / or brightness.
[0148] Optionally, in response to the connection port being the subsequent connection port, displaying the triggerable identifier corresponding to the connection port in a first display state;
[0149] In response to the connection port being the connection port of the selected track model that has been connected, display the triggerable identifier corresponding to the connection port in the second display state;
[0150] In response to the connection port not being a subsequent connection port and not being the connection port of the selected track model that has been connected, display the triggerable identifier corresponding to the connection port in the third display state.
[0151] Optionally, in response to a trigger operation on the first connection port in the first track model, determining the first connection port as a subsequent connection port includes:
[0152] In response to a trigger operation on the triggerable identifier corresponding to the first connection port, determine the first connection port as a subsequent connection port, and change the display state of the triggerable identifier corresponding to the first connection port from the third display state to the first display state.
[0153] The second model display unit 904 is configured to, in response to a selection operation on the second track model in the track alternative bar, determine the second track model as the selected track model, and display in the first area the first track model and the second track model connected to each other based on the first connection port, where the second track model is any one of multiple track models that can be connected to the first track model.
[0154] Optionally, after the step of, in response to a selection operation on the second track model in the track alternative bar, determining the second track model as the selected track model, and displaying in the first area the first track model and the second track model connected to each other based on the first connection port, it is further configured to:
[0155] Determine the third connection port of the first track model as a subsequent connection port, where the third connection port is a connection port whose connection order is after the first connection port based on a preset connection port switching rule.
[0156] Optionally, it is further configured to:
[0157] In response to a trigger operation on the fourth connection port in the first track model, cancel determining the third connection port as a subsequent connection port, and determine the fourth connection port as a subsequent connection port, where the fourth connection port is any one of multiple connection ports other than the first connection port and the third connection port.
[0158] Optionally, it is further configured to:
[0159] In response to a selection operation on the third track model in the track alternative bar, determine the third track model as the selected track model, and display in the first area the first track model and the second track model connected to each other based on the first connection port, and the first track model and the third track model connected to each other based on the third connection port, where the third track model is any one of multiple track models that can be connected to the first track model.
[0160] Optionally, in response to a selection operation on the second track model in the track alternative bar, the second track model is determined as the selected track model, and the first track model and the second track model connected to each other based on the first connection port are displayed in the first area, including:
[0161] In response to a selection operation on the second track model, the second track model is determined as the selected track model, and the first track model and the second track model connected to each other based on the first connection port are displayed in the first area, and the display state of the triggerable identifier corresponding to the first connection port is changed from the first display state to the second display state.
[0162] The third embodiment of the present application provides a terminal device, Figure 10 which is a schematic structural diagram of the terminal device provided in this embodiment.
[0163] As Figure 10 shown, the terminal device provided in this embodiment includes: a memory 1001, a processor 1002, and a display 1003.
[0164] The memory 1001 is used to store computer instructions for executing the road editing method in the game;
[0165] The processor 1002 is used to execute the computer instructions stored in the memory 1001 to perform the following operations:
[0166] Display a road editing interface, which at least includes a first area and a second area. The first area is used to display the selected track model, and the second area is used to display a track alternative bar, and the track alternative bar includes a plurality of track models preset for the game;
[0167] In response to a selection operation on the first track model in the track alternative bar, the first track model is determined as the selected track model, and the first track model is displayed in the first area, and the first track model is any one of the plurality of track models;
[0168] In response to a trigger operation on the first connection port in the first track model, the first connection port is determined as the subsequent connection port, and the first connection port is any one of the plurality of connection ports included in the first track model;
[0169] In response to a selection operation on the second track model in the track alternative bar, the second track model is determined as the selected track model, and the first track model and the second track model connected to each other based on the first connection port are displayed in the first area, and the second track model is any one of the plurality of track models that can be connected to the first track model.
[0170] Optionally, after determining the first track model as the selected track model in response to the selection operation on the first track model in the track alternative bar and displaying the first track model in the first area, the following is further executed:
[0171] Determine the second connection port of the first track model as the subsequent connection port, where the second connection port is the connection port with the first connection order determined based on the preset initial connection port determination rule;
[0172] Responding to the trigger operation on the first connection port in the first track model and determining the first connection port as the subsequent connection port includes:
[0173] Responding to the trigger operation on the first connection port, cancel the determination of the second connection port as the subsequent connection port and determine the first connection port as the subsequent connection port.
[0174] Optionally, after determining the second track model as the selected track model in response to the selection operation on the second track model in the track alternative bar and displaying the first track model and the second track model connected to each other based on the first connection port in the first area, the following is further executed:
[0175] Determine the third connection port of the first track model as the subsequent connection port, where the third connection port is the connection port with the connection order after the first connection port determined based on the preset connection port switching rule.
[0176] Optionally, the following is further executed:
[0177] Responding to the trigger operation on the fourth connection port in the first track model, cancel the determination of the third connection port as the subsequent connection port and determine the fourth connection port as the subsequent connection port, where the fourth connection port is any one of the multiple connection ports other than the first connection port and the third connection port.
[0178] Optionally, the following is further executed:
[0179] Responding to the selection operation on the third track model in the track alternative bar, determine the third track model as the selected track model, and display the first track model and the second track model connected to each other based on the first connection port, and the first track model and the third track model connected to each other based on the third connection port in the first area, where the third track model is any one of the multiple track models that can be connected to the first track model.
[0180] Optionally, the connection port corresponds to a trigger identifier;
[0181] Responding to the trigger operation on the first connection port in the first track model and determining the first connection port as the subsequent connection port includes:
[0182] In response to a triggering operation acting on a triggerable identifier corresponding to a first connection port, determine the first connection port as a subsequent connection port.
[0183] Optionally, the triggerable identifier has a display state that can be changed, and the display state reflects the connection state of the connection port corresponding to the triggerable identifier.
[0184] Optionally, in response to the connection port being a subsequent connection port, display the triggerable identifier corresponding to the connection port in a first display state;
[0185] In response to the connection port being a connection port of a selected race track model that has been connected, display the triggerable identifier corresponding to the connection port in a second display state;
[0186] In response to the connection port not being a subsequent connection port and not being a connection port of a selected race track model that has been connected, display the triggerable identifier corresponding to the connection port in a third display state.
[0187] Optionally, in response to a triggering operation acting on a first connection port in a first race track model, determining the first connection port as a subsequent connection port includes:
[0188] In response to a triggering operation acting on the triggerable identifier corresponding to the first connection port, determine the first connection port as a subsequent connection port, and change the display state of the triggerable identifier corresponding to the first connection port from the third display state to the first display state.
[0189] Optionally, in response to a selection operation acting on a second race track model in a race track alternative bar, determine the second race track model as a selected race track model, and display the first race track model and the second race track model interconnected based on the first connection port in a first area, including:
[0190] In response to a selection operation acting on the second race track model, determine the second race track model as a selected race track model, display the first race track model and the second race track model interconnected based on the first connection port in a first area, and change the display state of the triggerable identifier corresponding to the first connection port from the first display state to the second display state.
[0191] Optionally, the display state includes color and / or brightness.
[0192] Optionally, the selection operation includes a drag operation of dragging a race track model in the race track alternative bar to the first area.
[0193] The display 1003 is configured to display a graphical user interface.
[0194] A fourth embodiment of the present application provides a computer-readable storage medium. The computer-readable storage medium includes computer instructions that, when executed by a processor, are used to implement the methods described in the embodiments of the present application.
[0195] It should be noted that relational terms such as "first", "second", etc. in this document are only used to distinguish one entity or operation from another entity or operation, and do not require or imply any actual relationship or order between these entities or operations. In addition, words such as "comprising", "having", "including", and "include" and other similar forms have the same meaning, and, at the end of any one or more items after any of the above words, it is open-ended, and none of the above nouns means that the one or more items have been enumerated exhaustively, or are limited to these enumerated one or more items.
[0196] As used herein, unless otherwise expressly stated, the term "or" includes all possible combinations, except where infeasible. For example, if it is expressed that a database may include A or B, then unless otherwise specifically provided or infeasible, it may include database A, or B, or A and B. As a second example, if it is expressed that a certain database may include A, B, or C, then unless otherwise specifically provided or infeasible, the database may include database A, or B, or C, or A and B, or A and C, or B and C, or A and B and C.
[0197] It is worth noting that the above embodiments can be implemented by hardware or software (program code), or a combination of hardware and software. If implemented by software, it can be stored in the above computer-readable medium. When executed by a processor, this software can execute the above-disclosed method. The computing units and other functional units described in this disclosure can be implemented by hardware or software, or a combination of hardware and software. Those of ordinary skill in the art will also understand that the above-mentioned multiple modules / units can be combined into one module / unit, and each of the above modules / units can be further divided into multiple sub-modules / sub-units.
[0198] In the above detailed description, the embodiments have been described with reference to many specific details, and these details may vary depending on the implementation. Certain adaptations and modifications can be made to the embodiments. For those skilled in the art, some other embodiments can be obviously obtained from the specific implementation manners disclosed in this application. This specification and examples are only for illustrative purposes, and the true scope and essence of this application are set forth by the claims. The step order shown in the drawings is also only for explanatory purposes and does not mean to be limited to any specific steps or order. Therefore, those skilled in the art will realize that when implementing the same method, these steps can be executed in a different order.
[0199] In the drawings and detailed description of this application, exemplary embodiments are disclosed. However, many variations and modifications can be made to these embodiments. Correspondingly, although specific terms are used, these terms are only general and descriptive, and not for the purpose of limitation.
Claims
1. A road editing method in a game, characterized in that: Providing a graphical user interface through a terminal device, the method comprising: Displaying a road editing interface, the road editing interface at least comprising a first area and a second area, the first area being used to display a selected track model, the second area being used to display a track selection column, the track selection column comprising a plurality of track models preset for the game; In response to a selection operation on a first track model in the track candidate column, determining the first track model as the selected track model and displaying the first track model in the first area, wherein the first track model is any one of the multiple track models; In response to a triggering operation on a first connection port in the first track model, determining the first connection port as a subsequent connection port, the first connection port being any one of a plurality of connection ports included in the first track model; In response to a selection operation on a second track model in the track selection column, the second track model is determined as the selected track model, and the first track model and the second track model connected to each other based on the first connection port are displayed in the first area, and the second track model is any one of a plurality of track models that can be connected to the first track model.
2. The method according to claim 1, characterized in that: After the step of determining the first track model as the selected track model in response to the selection operation on the first track model in the track candidate column and displaying the first track model in the first area, the method further includes: Determine a second connection port of the first track model as the subsequent connection port, the second connection port being the connection port ranked first in the connection order determined based on a preset initial connection port determination rule; The step of responding to a triggering operation on a first connection port in the first track model and determining the first connection port as a subsequent connection port includes: In response to a trigger operation acting on the first connection port, the second connection port is cancelled as the subsequent connection port, and the first connection port is determined as the subsequent connection port.
3. The method according to claim 1, characterized in that After the step of determining the second track model as the selected track model in response to the selection operation on the second track model in the track candidate column, and displaying the first track model and the second track model connected to each other based on the first connection port in the first area, the method further includes: The third connection port of the first track model is determined as the subsequent connection port, and the third connection port is a connection port whose connection sequence is determined to be after the first connection port based on a preset connection port switching rule.
4. The method according to claim 3, characterized in that The method further comprises: In response to a trigger operation acting on a fourth connection port in the first track model, the third connection port is canceled as the subsequent connection port, and the fourth connection port is determined as the subsequent connection port, and the fourth connection port is any one of the multiple connection ports except the first connection port and the third connection port.
5. The method according to claim 3, characterized in that: The method further comprises: In response to a selection operation on the third track model in the track selection column, the third track model is determined as the selected track model, and the first track model and the second track model connected to each other based on the first connection port, and the first track model and the third track model connected to each other based on the third connection port are displayed in the first area, and the third track model is any one of a plurality of track models that can be connected to the first track model.
6. The method according to claim 1, characterized in that The connection port corresponds to a triggerable mark; The step of responding to a triggering operation on a first connection port in the first track model and determining the first connection port as a subsequent connection port includes: In response to a triggering operation acting on the triggerable identifier corresponding to the first connection port, the first connection port is determined as the subsequent connection port.
7. The method according to claim 6, characterized in that The triggerable mark has a changeable display state, and the display state reflects the connection state of the connection port corresponding to the triggerable mark.
8. The method according to claim 7, characterized in that In response to the connection port being the subsequent connection port, displaying the triggerable indicator corresponding to the connection port in a first display state; In response to the connection port being the connection port connected to the selected track model, displaying the triggerable mark corresponding to the connection port in a second display state; In response to the connection port not being the subsequent connection port and not being the connection port connected to the selected track model, the triggerable mark corresponding to the connection port is displayed in a third display state.
9. The method according to claim 8, characterized in that The step of responding to a triggering operation on a first connection port in the first track model and determining the first connection port as a subsequent connection port includes: In response to a triggering operation on the triggerable mark corresponding to the first connection port, the first connection port is determined as the subsequent connection port, and the display state of the triggerable mark corresponding to the first connection port is changed from the third display state to the first display state.
10. The method according to claim 8, characterized in that The step of responding to a selection operation of a second track model in the track candidate column, determining the second track model as the selected track model, and displaying the first track model and the second track model interconnected based on the first connection port in the first area includes: In response to a selection operation on the second track model, the second track model is determined as the selected track model, and the first track model and the second track model connected to each other based on the first connection port are displayed in the first area, and the display state of the triggerable mark corresponding to the first connection port is changed from the first display state to the second display state.
11. The method according to claim 7, characterized in that The display status includes color and / or brightness.
12. The method according to claim 1, characterized in that The selection operation includes a dragging operation of dragging the track model in the track selection bar to the first area.
13. A road editing device in a game, characterized in that: Providing a graphical user interface through a terminal device, the device comprises: an interface display unit, a first model display unit, a subsequent connection port determination unit, and a second model display unit; The interface display unit is used to display a road editing interface, the road editing interface includes at least a first area and a second area, the first area is used to display a selected track model, the second area is used to display a track selection column, the track selection column includes a plurality of track models preset for the game; The first model display unit is configured to respond to a selection operation on a first track model in the track selection column, determine the first track model as the selected track model, and display the first track model in the first area, wherein the first track model is any one of the multiple track models; The subsequent connection port determining unit is configured to determine the first connection port as a subsequent connection port in response to a triggering operation acting on the first connection port in the first track model, wherein the first connection port is any one of a plurality of connection ports included in the first track model; The second model display unit is used to respond to a selection operation on the second track model in the track selection column, determine the second track model as the selected track model, and display the first track model and the second track model connected to each other based on the first connection port in the first area, wherein the second track model is any one of a plurality of track models that can be connected to the first track model.
14. A terminal device, characterized in that: include: Memory, processor, and display; The memory is used to store one or more computer instructions; The processor is configured to execute the one or more computer instructions to implement the method according to any one of claims 1 to 12; The display is used to provide a graphical user interface.
15. A computer-readable storage medium having one or more computer instructions stored thereon, characterized in that: When the instruction is executed by a processor, the method according to any one of claims 1 to 12 is performed.