Game scene editing method and device, electronic equipment and storage medium
By responding to the selected operation of the component panel in the game scene editor, switching its status and displaying components in the game scene, the problem of incoherent component editing operations in the prior art is solved, and the player experience and operation fluency is improved.
Patent Information
- Application Number
- CN202410985373.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-11-08
AI Technical Summary
Due to the large number of scene components in the existing game scene editor, the component panel covers most of the area of the graphical user interface, and players' operations are incoherent when editing components, which affects the experience.
By responding to the selection operation of the component panel in the graphical user interface and switching its state, the area of the game scene to be edited is increased, and the components are displayed in the scene and automatically enter the editing state. Players can edit components directly in the scene without closing the panel .
Improves player's operational consistency and experience with components, simplifies the editing process, and reduces the breaks of component addition and editing steps.
Smart Images

Figure CN118903829A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of game technology, and in particular to a game scene editing method, device, electronic device and storage medium. Background Art
[0002] With the continuous development of user-generated content (UGC) technology in games, players can create their own game scenes through the scene editor provided by the game to improve the richness of the game scenes.
[0003] In order to ensure the freedom and richness of scene editing, the existing scene editor will provide players with a large number of scene components for players to choose from. Scene components are available for players to select and add to the scene in the scene component panel.
[0004] However, due to the large number of scene components, when the player opens the scene component panel, the scene component panel covers most of the area of the graphical user interface. After the player selects components from the scene component panel and adds them to the scene, he needs to close the scene component panel before editing the components in the graphical user interface, resulting in inconsistent editing operations on the components, which is not conducive to the player's operating experience. Summary of the invention
[0005] The purpose of this application is to provide a game scene editing method, device, electronic device and storage medium to address the deficiencies in the above-mentioned prior art, so as to implement game scene editing through a simple and convenient operation method and improve the player's operating experience.
[0006] To achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:
[0007] In a first aspect, an embodiment of the present application provides a method for editing a game scene, wherein a game scene to be edited is displayed through a graphical user interface of a terminal device, and the method comprises:
[0008] Displaying a game component panel in a first state in the graphical user interface;
[0009] In response to a first selection operation on a first component control in the game component panel, and the first selection operation satisfies a preset trigger condition, the game component panel is switched from the first state to the second state, and a first component corresponding to the first component control is displayed in the game scene to be edited, and the first component is controlled to be in a first editing state, wherein the area of the game scene to be edited displayed by the graphical user interface in the second state is larger than the area of the game scene to be edited displayed by the graphical user interface in the first state;
[0010] In response to an editing operation on the first component, the first component is edited.
[0011] In a second aspect, an embodiment of the present application further provides a game scene editing device, which displays a game scene to be edited through a graphical user interface of a terminal device, and the device includes:
[0012] A display module, configured to display a game component panel in a first state in the graphical user interface;
[0013] a switching module, for responding to a first selection operation on a first component control in the game component panel, and the first selection operation satisfies a preset trigger condition, switching the game component panel from the first state to a second state, wherein the area of the game scene to be edited displayed by the graphical user interface in the second state is larger than the area of the game scene to be edited displayed by the graphical user interface in the first state;
[0014] The display module is further used to display a first component corresponding to the first component control in the game scene to be edited, and control the first component to be in a first editing state;
[0015] The editing module is used to edit the first component in response to an editing operation on the first component.
[0016] In a third aspect, an embodiment of the present application further provides an electronic device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores program instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the program instructions to perform the steps of the game scene editing method as described in any one of the first aspects.
[0017] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the game scene editing method as described in any one of the first aspects are executed.
[0018] The beneficial effects of this application are:
[0019] The present application provides a game scene editing method, device, electronic device and storage medium. When a first selection operation of a first component in a game component panel meets a preset trigger condition, the game component panel is switched from a first state to a second state, so that the area of the game scene to be edited displayed in the second state of the graphic interface is larger than the area of the game scene to be edited displayed in the first state. The first component is displayed in the game scene to be edited and the first component is controlled to be in a first editing state. In this case, the first component can be directly edited based on the editing operation. Since the game component panel will automatically switch states based on the first selection operation, the player can directly edit the first component displayed in the game scene to be edited through the editing operation. The player does not need to add components from the game component panel and then edit the components after closing the panel. The added first component is in the first editing state by default, and the player does not need to trigger the first component to enter the editing state by selecting the first component. The operation continuity of the player adding and editing components is improved, the operation method is simple and convenient, and the player's operation experience is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0021] Figure 1 Schematic diagram of the process of the game scene editing method provided in the embodiment of the present application Figure 1 ;
[0022] Figure 2 Schematic diagram of a graphical user interface provided in an embodiment of the present application Figure 1 ;
[0023] Figure 3 Schematic diagram of a graphical user interface provided in an embodiment of the present application Figure 2 ;
[0024] Figure 4 Schematic diagram of a graphical user interface provided in an embodiment of the present application Figure 3 ;
[0025] Figure 5 Schematic diagram of the process of the game scene editing method provided in the embodiment of the present application Figure 2 ;
[0026] Figure 6 Schematic diagram of the process of the game scene editing method provided in the embodiment of the present application Figure 3 ;
[0027] Figure 7 Schematic diagram of a graphical user interface provided in an embodiment of the present application Figure 4 ;
[0028] Figure 8 Schematic diagram of the process of the game scene editing method provided in the embodiment of the present application Figure 4 ;
[0029] Fig. 9 Schematic diagram of the process of the game scene editing method provided in the embodiment of the present application Figure 5 ;
[0030] Fig.10 Schematic diagram of a graphical user interface provided in an embodiment of the present application Figure 5 ;
[0031] Fig.11 Schematic diagram of a graphical user interface provided in an embodiment of the present application Figure 6 ;
[0032] Fig.12 Schematic diagram of a graphical user interface provided in an embodiment of the present application Figure 7 ;
[0033] Fig.13 A schematic diagram of the structure of a game scene editing device provided in an embodiment of the present application;
[0034] Fig.14 A schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0035] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments.
[0036] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0037] In addition, the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0038] It should be noted that, in the absence of conflict, the features in the embodiments of the present application may be combined with each other.
[0039] In one embodiment of the present application, the game scene editing method can be run on a local terminal device or a server. When the game scene editing method is run on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.
[0040] In an optional implementation, various cloud applications can be run under the cloud interaction system, such as cloud games. Taking cloud games as an example, cloud games refer to a game mode based on cloud computing. In the operation mode of cloud games, the operating body of the game program and the main body of the game screen presentation are separated. The storage and operation of the game scene editing method are completed on the cloud game server. The role of the client device is used for receiving and sending data and presenting the game screen. For example, the client device can be a display device with data transmission function close to the user side, such as a mobile terminal, a TV, a computer, a handheld computer, etc.; but the cloud game server in the cloud is used for information processing. When playing the game, the player operates the client device to send an operation instruction to the cloud game server. The cloud game server runs the game according to the operation instruction, encodes and compresses the game screen and other data, and returns it to the client device through the network. Finally, the client device decodes and outputs the game screen.
[0041] In an optional embodiment, taking a game as an example, a local terminal device stores a game program and is used to present a game screen. The local terminal device is used to interact with the player through a graphical user interface, that is, the game program is downloaded and installed by an electronic device and run conventionally. The local terminal device may provide the graphical user interface to the player in a variety of ways, for example, it may be rendered and displayed on a display screen of the terminal, or provided to the player through a holographic projection. For example, the local terminal device may include a display screen and a processor, the display screen is used to present a graphical user interface, the graphical user interface includes a game screen, and the processor is used to run the game, generate a graphical user interface, and control the display of the graphical user interface on the display screen.
[0042] In an optional implementation, an embodiment of the present application provides a game scene editing method, providing a graphical user interface through a terminal device, wherein the terminal device can be the local terminal device mentioned above, or it can be a client device in the cloud interaction system mentioned above.
[0043] Due to the large number of scene components, when the player opens the scene component panel, the scene component panel covers most of the area of the graphical user interface. After the player selects components from the scene component panel and adds them to the scene, he needs to close the scene component panel before editing the components in the graphical user interface, resulting in inconsistent editing operations on the components, which is not conducive to the player's operating experience.
[0044] Based on this, the present application intends to provide a game scene editing method, device, electronic device and storage medium. When the first selection operation of the first component in the game component panel meets the preset trigger condition, the game component panel is switched from the first state to the second state, so that the area of the game scene to be edited displayed in the second state of the graphic interface is larger than the area of the game scene to be edited displayed in the first state. The first component is displayed in the game scene to be edited and the first component is controlled to be in a first editing state. In this case, the first component can be directly edited based on the editing operation. Since the game component panel will automatically switch states based on the first selection operation, the player can directly edit the first component displayed in the game scene to be edited through the editing operation. The player does not need to add components from the game component panel and then edit the components after closing the panel. The added first component is in the first editing state by default, and the player does not need to trigger the first component to enter the editing state by selecting the first component. The operational continuity of the player adding and editing components is improved, the operation method is simple and convenient, and the player's operating experience is improved.
[0045] The specific implementation of the game scene editing method provided by this application is described below in conjunction with embodiments.
[0046] Figure 1Schematic diagram of the process of the game scene editing method provided in the embodiment of the present application Figure 1 ,like Figure 1 As shown, the method may include:
[0047] S101: Displaying a game component panel in a first state in a graphical user interface.
[0048] In this embodiment, for a game program with a UGC function, a game scene editing entrance is provided in the game program, and the game scene interface to be edited is entered through the game scene editing entrance. The game scene to be edited is displayed on the game scene interface to be edited, wherein the game scene to be edited is a game scene that can be customized and edited by players, and players can build game scenes in the game scene to be edited according to the scene components provided by the game.
[0049] The game program provides players with multiple game scene components to choose from, and multiple game scene components are displayed in the game component panel for players to choose from. When the number of game scene components provided in the game component panel is large, in order to better find the game scene components, the player can expand the display range of the game component panel in the graphical user interface by dragging and dropping.
[0050] The game component panel in the first state blocks the game scene to be edited in the graphical user interface, wherein the game component panel in the first state blocks at least half of the game scene to be edited in the graphical user interface.
[0051] S102: In response to a first selection operation on a first component control in the game component panel, and the first selection operation satisfies a preset trigger condition, the game component panel is switched from a first state to a second state, and a first component corresponding to the first component control is displayed in the game scene to be edited, and the first component is controlled to be in a first editing state, wherein an area of the game scene to be edited displayed by the graphical user interface in the second state is larger than an area of the game scene to be edited displayed by the graphical user interface in the first state.
[0052] Generally, when the game component panel is in the first state, since at least half of the game scene to be edited is covered by the game component panel, when the first component selected by the player needs to be added to the game scene to be edited, two methods are used. One method is: after determining the position of the first component in the game component panel, the display range of the game component panel is reduced again so that the first component is in the reduced game component panel, and the obscured part of the game scene to be edited is redisplayed in the graphical user interface, and the player drags the first component from the game component panel to the game scene to be edited; the other method is: through the component adding control provided in the game component panel, the selected first component is directly added to the game scene to be edited, and then the game component panel is closed, and the first component in the game scene to be edited is edited.
[0053] It can be seen that in the above process, the player needs to narrow the display range of the game component panel first before editing the first component in the game scene to be edited. The process from adding the first component to editing is discontinuous and will be interrupted by the adjustment operation of the game component panel.
[0054] In this embodiment, component controls corresponding to multiple game scene components are displayed in the game component panel, and a first component control is selected from the component controls of multiple game scene components through a first selection operation. The preset trigger condition is whether to confirm the condition of adding the first component to the game scene to be edited. If the first selection operation satisfies the preset trigger condition, the state of the game component panel will be switched.
[0055] Specifically, the game component panel is switched from a first state to a second state. In the second state, the game component panel obstructs less the game scene to be edited in the graphical user interface, so that the area of the game scene to be edited displayed by the graphical user interface in the second state is larger than the area of the game scene to be edited displayed by the graphical user interface in the first state, that is, the game scene to be edited that was obscured by the game component panel in the first state is redisplayed in the graphical user interface.
[0056] After the game component panel switches from the first state to the second state, the first component corresponding to the first component control selected in the game component panel is added and displayed in the game scene to be edited, and the added first component is controlled to be in the first editing state. The first editing state indicates that the first component is selected by default. The player can directly edit the first component without first selecting the newly added first component in the game scene to be edited to trigger the first component to be in the editing state.
[0057] Among them, the process of displaying the first component in the game scene to be edited can be that the game component panel is completely switched from the first state to the second state, and then the first component is added and displayed; or the first component is added and displayed in the game scene to be edited during the process of switching the game component panel from the first state to the second state.
[0058] In some embodiments, in order to improve the visual effect of the player, an animation effect of the first component entering the game scene to be edited from the game component panel can be provided, so that the process of adding and displaying the first component is more visually coherent.
[0059] S103: In response to the editing operation on the first component, edit the first component.
[0060] In this embodiment, after the game component panel switches from the first state to the second state, the area of the game scene to be edited displayed in the graphical user interface increases, the game scene to be edited is no longer blocked by the game component panel, and the first component is in the first editing state, and the player can directly input an editing operation to the first component in the game scene to be edited to edit the attribute parameters of the first component. Among them, due to the change in the state of the game component panel, the game scene to be edited is no longer blocked by the game component panel, and the player does not need to adjust the game component panel to block the game scene to be edited, so that there is continuity between the first selection operation and the editing operation.
[0061] The game scene editing method provided by the above embodiment switches the game component panel from the first state to the second state when the first selection operation of the first component in the game component panel meets the preset trigger condition, so that the area of the game scene to be edited displayed in the second state of the graphic interface is larger than the area of the game scene to be edited displayed in the first state, and the first component is displayed in the game scene to be edited and controlled to be in the first editing state. In this case, the first component can be directly edited based on the editing operation. Since the game component panel will automatically switch states based on the first selection operation, the player can directly edit the first component displayed in the game scene to be edited through the editing operation. The player does not need to add components from the game component panel and then edit the components after closing the panel. The added first component is in the first editing state by default, and the player does not need to trigger the first component to enter the editing state by selecting the first component, which improves the operational consistency of the player adding and editing components. The operation method is simple and convenient, and the player's operating experience is improved.
[0062] In one possible implementation, multiple ways of switching a game component panel from a first state to a second state are provided.
[0063] In some embodiments, the process of switching the game component panel from the first state to the second state in S102 may include:
[0064] The first display range of the game component panel in the first state is reduced to the second display range in the second state, so that the area of the game scene to be edited displayed by the graphical user interface in the second state is larger than the area of the game scene to be edited displayed by the graphical user interface in the first state.
[0065] In this embodiment, the area of the game scene to be edited displayed in the graphical user interface can be adjusted by adjusting the display parameters of the game component panel. The display parameters of the game component panel can be the display range of the game component panel. By reducing the display range of the game component panel, the area displayed in the graphical user interface of the game scene to be edited can be increased.
[0066] Specifically, the display range of the game component panel is the display area occupied by the game component panel in the graphical user interface. In the first state, the game component panel is displayed using the first display range, which exceeds half of the graphical user interface; in the second state, the display range of the game component is reduced and the second display range is used for display. The second display range can be determined according to the actual situation, and can be less than half of the graphical user interface, or it can disappear completely, or it can be the default folded state. Among them, the reduction from the first display range to the second display range is actually the process of retracting the game component panel. For example, the first display range is the game component panel expanding from a boundary of the graphical user interface to a position exceeding half of the graphical user interface, and the second display range is the game component panel folding from the position of the first display range to the boundary of the graphical user interface, which can be folded to the game component panel closed at most.
[0067] For example, Figure 2 Schematic diagram of a graphical user interface provided in an embodiment of the present application Figure 1 ,like Figure 2 As shown, the graphical user interface displays: a game component panel 11 and a game scene to be edited 12, wherein the display range of the game component panel 11 in the graphical user interface is a first display range, and a large number of component controls of game scene components are displayed in the game component panel 11. Since the game component panel 11 in the first display range blocks most of the game scene to be edited 12, it is impossible to directly select a component control from the game component panel and drag it to the game scene to be edited 12 to generate a game scene component corresponding to the component control. By adopting the method of this embodiment, the first component control can be selected through the first selection operation to add the first component corresponding to the first component control in the game scene to be edited.
[0068] Figure 3Schematic diagram of a graphical user interface provided in an embodiment of the present application Figure 2 ,like Figure 3 As shown, the graphical user interface displays: a game component panel 11, a game scene to be edited 12 and a first component 13. The display range of the game component panel 11 displayed in the graphical user interface is from Figure 2 The first display range is reduced to the second display range, thereby increasing the area of the game scene to be edited 12 displayed in the graphical user interface, and the number of component controls displayed on the game component panel in the second display range is significantly smaller than the number of component controls displayed on the game component panel in the first display range. The first component 13 displayed in the game scene to be edited is in a first editing state.
[0069] Furthermore, the game component panel in the first display range is a game component panel in a preset expanded state, and the game component panel in the second display range is a game component panel in a preset collapsed state.
[0070] In this embodiment, the game component panel in the first display range may be a game component panel in a preset expanded state, and the display range of the game component panel in the preset expanded state in the graphical user interface exceeds half of the graphical user interface. The game component panel in the second display range may be a game component panel in a preset collapsed state, and the display range of the game component panel in the preset collapsed state in the graphical user interface is less than half of the graphical user interface, and the number of component controls displayed by the game component panel in the collapsed state is less than the number of component controls displayed by the game component panel in the expanded state.
[0071] For example, Figure 4 Schematic diagram of a graphical user interface provided in an embodiment of the present application Figure 3 ,like Figure 4 As shown, the game component panel in the second display range is a game component panel 11 in a preset collapsed state, and the game component panel 11 in the preset collapsed state includes: a component category bar 112 and a component control list 113 displayed on the upper layer of the component category bar, wherein the component category bar 112 includes a plurality of component category identifiers, and in response to a click-to-switch operation for each component category identifier, the component control list 113 is controlled to display the component control corresponding to the switched component category identifier, and the component control list 113 displays at least part of the component controls corresponding to the component category identifier, and the component control list 113 can be displayed by sliding the component control list 113. For example, when the graphical user interface is in a vertical screen state, the component control that is not displayed can be displayed by sliding the component control list 113 horizontally.
[0072] In some embodiments, by Figure 2In the process of selecting the first component control and displaying the first component corresponding to the first component control in the game scene to be edited, the game component panel can first select Figure 2 The state shown transitions to Figure 3 The status shown, and then switch to Figure 4 The status shown can also be directly from Figure 2 The state shown transitions to Figure 4 The state shown is not limited in this embodiment.
[0073] In some other embodiments, the process of switching the game component panel from the first state to the second state in S102 may further include:
[0074] The first display transparency of the game component panel in the first state is increased to the second display transparency in the second state.
[0075] In this embodiment, the display parameters of the game component panel may also include the display transparency of the game component panel. When the display range of the game component panel changes from the first display range to the second display range, the display transparency of the game component panel also changes with the change of the display range.
[0076] Specifically, in the first state, the game component panel is displayed using the first display transparency. Generally, the first display transparency is a transparency that makes the game scene to be edited completely invisible, that is, 0% transparency. In the second state, the display transparency of the game component panel is increased, and the second display transparency is used for display. The second display transparency can be determined according to actual conditions, so that the game scene to be edited can be clearly seen. After the display transparency of the game component panel is increased from the first transparency to the second display transparency, the player can see from the graphical user interface that the visible range of the game scene to be edited is increased.
[0077] In a possible implementation, the method may further include:
[0078] The display transparency of the game component panel that determines the second display range is reduced back to the first display transparency.
[0079] In this embodiment, after the display range of the game component panel is reduced from the first display range to the second display range and the display transparency is increased from the first display transparency to the second display transparency, in order to facilitate subsequent players to select new component controls from the game component panel in the second display range to add components, the display transparency of the game component panel in the second display range can be reduced back to the first display transparency.
[0080] For example, when the game component panel is in a preset expanded state, the game component panel has a first display transparency to cover the scene component to be edited in the graphical user interface. In the process of collapsing the game component panel from the preset expanded state to the preset collapsed state, the display transparency of the game component panel transitions from the first display transparency to the second display transparency. When the game component panel is collapsed to the preset collapsed state, the display transparency of the preset collapsed state is reduced back to the first display transparency.
[0081] The game scene editing method provided by the above embodiment adjusts the display range and transparency of the game component panel so that the area of the game scene to be edited displayed by the graphical user interface in the second state is larger than the area of the game scene to be edited displayed in the first state. There is no need for the player to manually adjust the display state of the game component panel, thereby ensuring the continuity of the player's operation and improving the player's operating experience.
[0082] In a possible implementation, the process of displaying the first component in the game scene to be edited in S102 may include:
[0083] According to the position of the first selected operation in the graphical user interface, the first component is displayed at a corresponding position in the game scene to be edited.
[0084] In this embodiment, based on the display position of the first component control selected by the first selection operation on the graphical user interface, when the game component panel switches from the first state to the second state, the first component is displayed at the display position in the game scene to be edited, that is, based on the different display positions of the component control selected by the first selection operation on the graphical user interface, the game scene component corresponding to the component control is displayed at different display positions of the game scene to be edited.
[0085] In some embodiments, in order to improve the player's visual effect, in the process of switching the game component panel from a first state to a second state, based on the display position of the first component control selected by the first selection operation, the first component is displayed at the display position of the game scene to be edited, and the visual effect shows that the first component pierces the game component panel and enters the game scene to be edited.
[0086] The game scene editing method provided by the above embodiment displays the first component at the corresponding position in the game scene to be edited according to the position of the first selected operation in the graphical user interface, so that the adding position of the first component in the game scene to be edited is more flexible rather than a fixed position, and the first component can also be better edited through a coherent first editing operation, thereby improving the coherence of the player's operation.
[0087] In a possible implementation, the process of editing the first component in response to the editing operation on the first component in S103 may include:
[0088] In the first editing state, a first number of property parameters of the first component are edited.
[0089] In this embodiment, the game program provides an editing function for the game scene component, and the editing function for the game scene component includes editing various attribute parameters of the game scene component, such as the position, posture, color, material, motion state, occlusion relationship, etc. of the game scene component. The various attribute parameters are divided into first-category attribute parameters that can be quickly edited and second-category attribute parameters that cannot be quickly edited according to the editing method, and it is determined that in the first editing state, the player can edit the first-category attribute parameters of the first component. Among them, the first-category attribute parameters that can be quickly edited are attribute parameters that can be directly edited without calling the attribute editing panel, and the first-category attribute parameters include: a first number of attribute parameters.
[0090] In some embodiments, the first category of attribute parameters may be posture parameters of the first component, which may specifically include position parameters, size parameters, and rotation angle parameters of the first component. For the position parameters of the first component, the first editing operation is a move operation on the first component; for the size parameters of the first component, the first editing operation is a scaling operation on the first component; for the rotation angle parameters of the first component, the first editing operation is a rotation operation on the first component.
[0091] The game scene editing method provided by the above embodiment directly determines that the first component enters the first editing state after the first component is displayed in the game scene to be edited, and edits the first component based on the first editing operation, thereby further improving the consistency between the component selection operation and the editing operation, and improving the player's operating experience.
[0092] In a possible implementation, the process of editing the first number of attribute parameters of the first component in the first editing state may include:
[0093] In the first editing state, in response to a quick move operation on the first component, the position of the first component is moved.
[0094] In this embodiment, in the first editing state, the first component is in a default selected state. In this state, the position of the first component can be quickly moved. Specifically, based on the player's sliding operation on the first component on the graphical user interface, the display position of the first component in the graphical user interface can be quickly moved, thereby adjusting the position of the first component in the game scene to be edited.
[0095] The fast movement operation can control the position of the first component in the game scene to be edited to be moved arbitrarily, that is, the first component can be moved arbitrarily in the three-dimensional coordinate system of the game scene to be edited.
[0096] In some embodiments, in the first editing state, the editing operation on the first component is an operation continuous with the first selection operation.
[0097] Specifically, in the process of quickly moving the position of the first component through an editing operation, the quick movement operation for the first component may be an operation continuous with the first selection operation. After the first component is added to the game scene to be edited through the first selection operation, the first component enters the first editing state. At this time, the player can flexibly adjust the position of the first component in the game scene to be edited through the quick movement operation continuous with the first selection operation. The quick movement operation continuous with the first selection operation means that after the first selection operation, the player's finger or mouse continues to drag the first component to move in the game scene to be edited without leaving the first component.
[0098] In another possible implementation, Figure 5 Schematic diagram of the process of the game scene editing method provided in the embodiment of the present application Figure 2 ,like Figure 5 As shown, the process of editing the first number of attribute parameters of the first component in the first editing state may include:
[0099] S201: In a first editing state, displaying a second number of property editing controls in a graphical user interface.
[0100] S202: In response to a trigger operation on a first target property editing control among a second number of property editing controls, edit a first target property parameter of a first component, where the first target property parameter is a property parameter corresponding to the first target property editing control, and the second number is less than or equal to the first number.
[0101] In this embodiment, based on the attribute parameters that can be edited by the game editing component in the first editing state, attribute editing controls corresponding to at least part of the attribute parameters that can be edited in the first editing state are displayed in the graphical user interface, wherein the second number of attribute editing controls is less than or equal to the attribute parameters of the first attribute in the first editing state.
[0102] If all property parameters in the first editing state need to be edited through the property editing control, the second number is equal to the first number. If there are property parameters in the first editing state that do not need to be edited through the property editing control, the second number is less than the first number.
[0103] If the player needs to edit the first target attribute parameter of the first component, the editing of the first target attribute parameter of the first component can be triggered through the first target attribute parameter control, or the editing interface of the first target attribute parameter of the first component can be triggered to be displayed through the first target attribute parameter control, and the first target attribute parameter of the first component can be adjusted in the editing interface.
[0104] In some embodiments, Figure 6 Schematic diagram of the process of the game scene editing method provided in the embodiment of the present application Figure 3 ,like Figure 6 As shown, the process of editing the first target property parameter of the first component in response to the triggering operation of the first target property editing control in the second number of property editing controls in S202 may include:
[0105] S301: In response to a triggering operation on a first target property editing control, a three-dimensional coordinate system with the first component as the origin is displayed in a graphical user interface.
[0106] S302: In response to an editing operation on the first component on the coordinate axis of the target dimension, edit a first target attribute parameter of the first component on the coordinate axis of the target dimension.
[0107] In this embodiment, the first number of property parameters include: component position parameters, component size parameters, component angle parameters, and component mirror parameters, and the corresponding property editing controls are: move control, zoom control, rotate control, and flip control.
[0108] For example, Figure 3 or Figure 4 As shown, the property editing controls 14 in the first editing state are, from top to bottom, a move control, a zoom control, a rotation control, and a flip control.
[0109] In response to the trigger operation for the mobile control, a three-dimensional coordinate system XYZ with the first component as the origin is displayed on the graphical user interface, and the three-dimensional coordinate system XYZ is as follows: Figure 4 As shown, in response to the selection operation on the X-axis, the first component is moved on the X-axis to adjust the position of the first component on the X-axis; in response to the selection operation on the Y-axis, the first component is moved on the Y-axis to adjust the position of the first component on the Y-axis; in response to the selection operation on the Z-axis, the first component is moved on the Z-axis to adjust the position of the first component on the Z-axis.
[0110] In response to a trigger operation on the zoom control, a three-dimensional coordinate system XYZ with the first component as the origin is displayed on the graphical user interface; in response to a selection operation on the X-axis, the length of the first component in the X-axis direction is adjusted by scaling the first component in the X-axis; in response to a selection operation on the Y-axis, the width of the first component in the Y-axis direction is adjusted by scaling the first component in the Y-axis; in response to a selection operation on the Z-axis, the height of the first component in the Z-axis direction is adjusted by scaling the first component in the Z-axis.
[0111] For example, Figure 7 Schematic diagram of a graphical user interface provided in an embodiment of the present application Figure 4 ,like Figure 7 As shown, in response to the trigger operation on the rotation control, a three-dimensional coordinate system with the first component as the origin is displayed on the graphical user interface, wherein the three-dimensional coordinate system corresponding to the rotation control is a circular coordinate system composed of three 1 / 4 circular rings, wherein the first circular ring 161 is located in the first plane formed by the X-axis and the Z-axis, the second circular ring 162 is located in the second plane formed by the X-axis and the Y-axis, and the third circular ring 163 is located in the third plane formed by the Y-axis and the Z-axis. In response to the selection operation on the first circular ring 161, the angle of the first component in the first plane is adjusted by rotating the first component in the first plane, in response to the selection operation on the second circular ring 162, the angle of the first component in the second plane is adjusted by rotating the first component in the second plane, and in response to the selection operation on the third circular ring 163, the angle of the first component in the third plane is adjusted by rotating the first component in the third plane.
[0112] For example, taking a rectangular component as an example, in response to the selection operation on the first ring 161, the rectangular component is rotated in the first plane, and the angle of the rectangular component is adjusted by rotating it around its height, that is, the Y axis. In response to the selection operation on the second ring 162, the rectangular component is rotated in the second plane, and the angle of the rectangular component is adjusted by rotating it around its width, that is, the Z axis. In response to the selection operation on the third ring 162, the rectangular component is rotated in the third plane, and the angle of the rectangular component is adjusted by rotating it around its length, that is, the X axis.
[0113] In response to a trigger operation on the flip control, a three-dimensional coordinate system XYZ with the first component as the origin is displayed on the graphical user interface; in response to a click operation on the X-axis, the first component is mirrored flipped in the X-axis direction; in response to a click operation on the Y-axis, the first component is mirrored flipped in the Y-axis direction; in response to a click operation on the Z-axis, the first component is mirrored flipped in the Z-axis direction.
[0114] The game scene editing method provided in the above embodiment edits the attribute parameters of the first attribute of the first component in the first editing state, so that the game scene component directly enters the editing state after adding the game scene component through the game component panel. There is no need for the player to select the component in the game scene to be edited to trigger the component to enter the editing state, thereby improving the continuity of the operation from adding the component to editing the component and enhancing the player's operating experience.
[0115] In one possible implementation, Figure 8 Schematic diagram of the process of the game scene editing method provided in the embodiment of the present application Figure 4 ,like Figure 8 As shown, in the first editing state, after editing the first number of attribute parameters of the first component, the method may further include:
[0116] S401: In response to an exit operation of a first editing state, determining that a first component exits the first editing state.
[0117] S402: In response to a second selection operation on a first component in a game scene to be edited, determining that the first component enters a second editing state.
[0118] S403: In the second editing state, edit a third number of attribute parameters of the first component, wherein the third number is greater than the first number.
[0119] In this embodiment, after the editing of the attribute parameters of the first component in the first editing state is completed, the first component can be controlled to exit the first editing state. At this time, the first component is fixed in the game scene component to be edited according to the attribute parameters edited by the player in the first editing state. In this case, any attribute parameters of the first component can no longer be changed.
[0120] Among them, the exit operation that triggers the first component to exit the first editing state can be: in response to a click operation on a position other than the display position of the first component in the graphical user interface, determining that the first component exits the first editing state; or, in response to a trigger operation on any component control in the game component panel of the second state, adding a new game scene component to the game scene to be edited, so that the first component exits the first editing state.
[0121] When the property parameters of the first component need to be readjusted, the first component can be determined to enter the second editing state by inputting a second selection operation on the first component in the game scene to be edited.
[0122] The second editing state may be the same editing state as the first editing state, or may be a different editing state from the first editing state.
[0123] If the second editing state is the same as the first editing state, the same attribute parameters as the first editing state can be edited; if the second editing state is different from the first editing state, the attribute parameters different from the first editing state can be edited.
[0124] In some embodiments, the second selection operation is a click operation or a long press operation on the first component in the game scene to be edited, and this embodiment does not impose any limitation on this.
[0125] In some embodiments, the second editing state can edit a third number of attribute parameters of the first component, where the third number is greater than the first number, and the attribute parameters of the third number can be attribute parameters that are completely different from the attribute parameters of the first number, or can include the attribute parameters of the first number and other attribute parameters.
[0126] For example, in the second editing state, the player can edit the second type of attribute parameters of the first component, or edit the first type of attribute parameters and the second type of attribute parameters of the first component.
[0127] In one possible implementation, Fig. 9 Schematic diagram of the process of the game scene editing method provided in the embodiment of the present application Figure 5 ,like Fig. 9 As shown, the process of editing the third number of attribute parameters of the first component in the second editing state in S303 may include:
[0128] S501: In the second editing state, the game component panel displayed in the graphical user interface is switched to a property editing panel, the property editing panel includes a fourth number of property editing controls, and the fourth number is less than or equal to the third number.
[0129] S502: In response to a triggering operation on a second target property editing control in the fourth number of property editing controls, edit a second target property parameter of the first component, where the second target property parameter is a property parameter corresponding to the second target property editing control.
[0130] In this embodiment, in the second editing state, it is necessary to edit other attribute parameters of the first component except the position and posture. After the first component is triggered to enter the second editing state by the second selection operation, a property editing panel is displayed in the graphical user interface, and multiple property editing controls are provided through the property editing panel. The property editing controls provided in the property editing panel and the property editing controls in the first editing state are controls for editing different attribute parameters.
[0131] If only the attribute parameters of the first component other than the first number of attribute parameters can be edited in the second editing state, that is, the third number of attribute parameters does not include the first number of attribute parameters, then the fourth number is equal to the third number.
[0132] If in the second editing state, the first number of attribute parameters of the first component can be edited, and the attribute parameters other than the first number of attribute parameters can also be edited, that is, the third number of attribute parameters includes the first number of attribute parameters, then the fourth number is less than the third number. The attribute editing controls of the first number of attribute parameters are still displayed in the graphical user interface in the display mode of the first editing state, and the attribute editing controls of other attribute parameters are displayed in the attribute editing panel.
[0133] In some embodiments, Fig.10 Schematic diagram of a graphical user interface provided in an embodiment of the present application Figure 5 ,like Fig.10 As shown, the property editing panel 15 may include: color property controls, material property controls, motion state property controls, expression form property controls, etc., and may also include binding relationship controls between multiple components.
[0134] In response to a click operation on the second target attribute editing control in the attribute editing panel 15, an editing interface for the second target attribute parameter is displayed in the graphical user interface, and the second target attribute parameter of the first component is adjusted in the editing interface for the second target attribute parameter.
[0135] For example, if the second target attribute editing control is a color attribute control, a color editing interface is displayed in the graphical user interface. The color editing interface provides a variety of colors to choose from, and the player can choose a favorite color as the color of the first component.
[0136] It should be noted that the first component will be in the first editing state only when it is added to the game scene to be edited from the game component panel. When the first component exits from the first editing state and enters the editing state again, it can only enter the second editing state.
[0137] The game scene editing method provided in the above embodiment can enter the second editing state again to edit the first component through a second selection operation after the first component exits the first editing state, thereby providing players with multiple editing methods and improving the player's operating experience.
[0138] In a possible implementation, the first selected operation satisfies a preset trigger condition when: a pressing time of the first selected operation reaches a preset time threshold.
[0139] In this embodiment, the first selected operation is a long press operation, and the preset trigger condition may be a preset duration threshold of the long press operation. When the long press operation reaches the preset duration threshold, it is determined that the first selected operation satisfies the preset trigger condition, and it is determined that the game component panel is switched from the first state to the second state to display the first component in the game scene to be edited, and the first component can be directly edited.
[0140] Based on the above embodiment, the method may further include:
[0141] If the pressing time at the end of the first selection operation does not reach the preset duration threshold, it is determined that the game component panel is restored to the first state.
[0142] In this embodiment, in order to avoid the possibility of player misoperation, the added display of the first component is triggered by setting the pressing duration of the first selected operation. During the player's long press operation, if the pressing duration of the long press operation does not reach the preset duration threshold, that is, the pressing duration at the end of the first selected operation does not reach the preset duration threshold, it is determined that the player does not need to display the first component in the game scene to be edited, and then it is determined that the game component panel is restored to the first state from the state change process, and the player can reselect other first components or close the game component panel.
[0143] Among them, after the first selected operation starts to be pressed, the pressing time starts to be counted, and at this time the game component panel starts to transition from the first state to the second state. If the continuous pressing time of the first selected operation reaches the preset time threshold, the game component satisfies the switch to the second state for display. If the continuous pressing time of the first selected operation ends before reaching the preset time threshold, the game component panel recovers from the transitional second state to the first state.
[0144] In a possible implementation, the above S101 displays the game component panel in the first state in the graphical user interface, including:
[0145] In response to an expansion operation on the game component panel in a preset collapsed state, the game component panel in a preset expanded state is displayed in the graphical user interface.
[0146] The game component panel includes multiple game scene components. When the player opens the game component panel, in order to avoid the game component panel blocking the graphical user interface, the game component panel is displayed in a collapsed state. The collapsed state means that the game component panel has only a small display area. For a large number of game scene components included in the game component panel, it is necessary to view all game scene components by sliding, which is time-consuming and laborious in the process of searching for game scene components.
[0147] In this case, the player can choose to expand the collapsed game component panel to an expanded state. The expanded game component panel has a larger display area and can display more game scene components, so the player can find the required game scene components more quickly.
[0148] For example, Fig.11 Schematic diagram of a graphical user interface provided in an embodiment of the present application Figure 6 ,like Figure 1 As shown, the graphical user interface displays a game component panel 11 in a folded state, and the expansion operation may be a sliding operation of the folded game component panel to the middle area of the graphical user interface. After the game component panel is expanded, the game component panel is displayed in a first state, wherein the first state may refer to an expanded state, or may refer to a state with a first display transparency based on the expanded state.
[0149] In a possible implementation, the above S101 displays the game component panel in the first state in the graphical user interface, including:
[0150] If it is detected that the graphical user interface switches from a horizontal state to a vertical state, a game component panel in a preset collapsed state is displayed in the graphical user interface; in response to an expansion operation of the game component panel in the preset collapsed state, the game component panel in the first state is displayed in the graphical user interface.
[0151] Generally, players edit game scenes in a graphical user interface in landscape mode. In landscape mode, even if the game component panel is expanded, it will not block the main area of the game scene to be edited.
[0152] In this embodiment, when the graphical user interface switches from a horizontal screen state to a vertical screen state, the game component panel displayed in the horizontal screen state can be switched to a collapsed game component panel displayed in the vertical screen state. When the player needs to view more game scene components, the player can choose to expand the collapsed game component panel to an expanded state.
[0153] On this basis, when the player needs to add the first component to the game scene to be edited, the steps S102-S103 described above can be used to complete the adding and editing operations of the first component.
[0154] It should be noted that the solution of this embodiment can also be applied to the situation where the expanded game component panel in the horizontal screen state obstructs the game scene to be edited, and is not limited to the application in the vertical screen state.
[0155] In a possible implementation, the method may further include:
[0156] In response to a drag operation on a second component control in a game component panel displayed in a graphical user interface in a horizontal screen state, a second component corresponding to the second component control is displayed in the game scene to be edited.
[0157] In this embodiment, for example, Fig.12 Schematic diagram of a graphical user interface provided in an embodiment of the present application Figure 7 ,like Fig.12 As shown, the graphical user interface is in a horizontal screen state, and a game component panel 11 and a game scene to be edited 12 are displayed in the graphical user interface. It can be seen that in the horizontal screen state, even if the game component panel is in an expanded state, the main area of the game scene to be edited 12 is not blocked. In this case, the player can directly select the second component control from the game component panel 11, and drag the second component control to any position of the game scene to be edited 12 by a drag operation, so as to display the second component corresponding to the second component control in the game scene to be edited.
[0158] In a possible implementation, the method may further include:
[0159] In response to a triggering operation of adding a control corresponding to the third component control in the game component panel, a target component corresponding to the third component control is displayed at a fixed position of the game scene to be edited.
[0160] In this embodiment, if Figure 2 As shown, when the game component panel 11 blocks the main area of the game scene to be edited 12, the component control in the game component panel 11 cannot be dragged to the game scene to be edited to display the corresponding game scene component. This embodiment also provides a component adding control 17 in the game component panel 11, and each component control has a corresponding component adding control 17. In response to the triggering operation of the component adding control 17 corresponding to the third component control, the third component is displayed in the game scene to be edited.
[0161] In some embodiments, when a component is added to the game scene to be edited through the component adding control 17, the component is displayed at a preset fixed position of the game scene to be edited.
[0162] The specific process of the game scene editing method provided in the embodiment of the present application is explained below in conjunction with the accompanying drawings.
[0163] like Fig.12 As shown, the graphical user interface is in a horizontal screen state. When the graphical user interface is rotated from the horizontal screen state to the vertical screen state, as shown in Fig.11As shown, the graphical user interface at least includes: a game component panel 11 in a collapsed state and a game scene 12 to be edited, wherein a small number of game scene components are displayed in the game component panel 11 in a collapsed state, and the collapsed game component panel 11 can be expanded to the following state by sliding the collapsed game component panel 11 from the upper boundary to the middle area of the graphical user interface. Figure 2 Status shown.
[0164] like Figure 2 As shown, the graphical user interface at least includes: a game component panel 11 in an expanded state, wherein the game component panel 11 is in a first display transparency based on the expanded state, and a large number of component controls corresponding to game scene components are displayed in the expanded state game component panel 11. Through a first selection operation, a first component control can be selected from these game scene components to add components.
[0165] like Figure 3 As shown, the graphical user interface at least includes: a game component panel 11 in the second state, a game scene 12 to be edited, a first component 13 located in the game scene 12 to be edited, and a second number of property editing controls 14. The property editing controls 14 may include: a move control, a zoom control, a rotation control, and a flip control. After the first selection operation meets the preset trigger condition, the game component panel switches from the first state to the second state, and displays the first component 13 corresponding to the first component control in the game scene to be edited. The first group 13 is in the first editing state, and the player can operate the property editing control 14 to edit the first component 13 in the first editing state. Figure 4 as well as Figure 7 In the displayed three-dimensional coordinate system, the property parameters such as the position, angle, and size of the first component 13 are edited in different dimensions.
[0166] like Fig.10 As shown, the graphical user interface at least includes: a property editing panel 15, a game scene to be edited 12 and a first component 13 located in the game scene to be edited 12. After the first component exits the first editing state, based on a second selection operation on the first component in the game scene to be edited 12, the first component enters the second editing state, and the property editing panel 15 is displayed in the graphical user interface. Various parameters of the first component can be edited through the property editing controls provided by the property editing panel 15.
[0167] From the game scene editing process shown in the figure, it can be seen that when the player selects the first component from the game component panel and adds it to the game scene to be edited, and edits the first component in the game scene to be edited, the state of the game component panel changes automatically without the need for the player to adjust it by himself, thus avoiding interruption of the component adding and editing process and improving the player's operating experience.
[0168] On the basis of the above method embodiment, the embodiment of the present application further provides a game scene editing device, which provides a game scene to be edited through a graphical user interface of a terminal device. Fig.13 A schematic diagram of the structure of a game scene editing device provided in an embodiment of the present application, such as Fig.13 As shown, the device may include:
[0169] Display module 401, used for displaying the game component panel in the first state in the graphical user interface;
[0170] A switching module 402 is used to respond to a first selection operation on a first component control in the game component panel, and the first selection operation satisfies a preset trigger condition, and switches the game component panel from a first state to a second state, wherein the area of the game scene to be edited displayed in the graphical user interface in the second state is larger than the area of the game scene to be edited displayed in the graphical user interface in the first state;
[0171] The display module 401 is further used to display the first component corresponding to the first component control in the game scene to be edited, and control the first component to be in a first editing state;
[0172] The editing module 403 is used to respond to the editing operation on the first component and edit the first component.
[0173] In one possible implementation, the switching module 402 is specifically used to reduce the first display range of the game component panel in the first state to the second display range in the second state, so that the area of the game scene to be edited displayed by the graphical user interface in the second state is larger than the area of the game scene to be edited displayed by the graphical user interface in the first state.
[0174] In a possible implementation, the game component panel in the first display range is a game component panel in a preset expanded state, and the game component panel in the second display range is a game component panel in a preset collapsed state.
[0175] In a possible implementation, the switching module 402 is further configured to increase the first display transparency of the game component panel in the first state to the second display transparency in the second state.
[0176] In a possible implementation, the switching module 402 is further configured to determine that the display transparency of the game component panel in the second display range is reduced back to the first display transparency.
[0177] In a possible implementation, the display module 401 is specifically configured to display the first component at a corresponding position in the game scene to be edited according to the position of the first selected operation in the graphical user interface.
[0178] In a possible implementation, the editing module 403 is specifically configured to edit a first number of attribute parameters of a first component in a first editing state.
[0179] In a possible implementation, the editing module 403 is specifically configured to move the position of the first component in response to a fast move operation on the first component in the first editing state.
[0180] In one possible implementation, the above-mentioned editing module 403 is specifically used to display a second number of property editing controls in a graphical user interface in a first editing state; in response to a triggering operation on a first target property editing control among the second number of property editing controls, edit a first target property parameter of the first component, the first target property parameter being a property parameter corresponding to the first target property editing control, and the second number being less than or equal to the first number.
[0181] In a possible implementation, the above-mentioned editing module 403 is specifically used to respond to a trigger operation on the first target attribute editing control, and display a three-dimensional coordinate system with the first component as the origin in the graphical user interface; respond to an editing operation on the first component on the coordinate axis of the target dimension, and edit the first target attribute parameters of the first component on the coordinate axis of the target dimension.
[0182] In a possible implementation, the device may further include:
[0183] A state exit module, used for responding to an exit operation of the first editing state and determining that the first component exits the first editing state;
[0184] A state determination module, configured to respond to a second selection operation on a first component in a game scene to be edited, and determine that the first component enters a second editing state;
[0185] The editing module 403 is further used to edit a third number of attribute parameters of the first component in the second editing state, wherein the third number is greater than the first number.
[0186] In one possible implementation, the editing module 403 is specifically used to switch the game component panel displayed in the graphical user interface to a property editing panel in the second editing state, wherein the property editing panel includes a fourth number of property editing controls, and the fourth number is less than or equal to the third number; in response to a triggering operation on a second target property editing control in the fourth number of property editing controls, edit the second target property parameters of the first component, and the second target property parameters are property parameters corresponding to the second target property editing control.
[0187] In a possible implementation, the first selected operation satisfies a preset trigger condition when: a pressing time of the first selected operation reaches a preset time threshold.
[0188] In a possible implementation, the device may further include:
[0189] The maintenance module is used to determine that the game component panel is restored to the first state if the pressing time at the end of the first selection operation does not reach a preset time threshold.
[0190] In a possible implementation, the display module 401 is specifically configured to respond to an expansion operation on a game component panel in a preset collapsed state, and display the game component panel in a preset expanded state in a graphical user interface.
[0191] In one possible implementation, the display module 401 is specifically used to display a game component panel in a preset collapsed state in the graphical user interface if it is detected that the graphical user interface is switched from a horizontal screen state to a vertical screen state; and to respond to an expansion operation of the game component panel in a preset collapsed state, to display a game component panel in a first state in the graphical user interface.
[0192] In a possible implementation, the display module 401 is also used to respond to a drag operation of a second component control in a game component panel displayed in a graphical user interface in a horizontal screen state, and display a second component corresponding to the second component control in the game scene to be edited.
[0193] In a possible implementation, the display module 401 is also used to respond to a triggering operation of adding a control corresponding to the third component control in the game component panel, and to display a target component corresponding to the third component control at a fixed position of the game scene to be edited.
[0194] The game scene editing device provided by the above embodiment switches the game component panel from the first state to the second state when the first selection operation of the first component in the game component panel meets the preset trigger condition, so that the area of the game scene to be edited displayed in the second state of the graphic interface is larger than the area of the game scene to be edited displayed in the first state, and the first component is displayed in the game scene to be edited and controlled to be in the first editing state. In this case, the first component can be directly edited based on the editing operation. Since the game component panel will automatically switch states based on the first selection operation, the player can directly edit the first component displayed in the game scene to be edited through the editing operation. The player does not need to add components from the game component panel and then edit the components after closing the panel. The added first component is in the first editing state by default, and the player does not need to trigger the first component to enter the editing state by selecting the first component, which improves the operational consistency of the player adding and editing components. The operation method is simple and convenient, and the player's operating experience is improved.
[0195] The above-mentioned device is used to execute the method provided by the aforementioned embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0196] The above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASICs), or one or more microprocessors, or one or more field programmable gate arrays (FPGAs). For another example, when a module is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0197] Fig.14 A schematic diagram of an electronic device provided in an embodiment of the present application, such as Fig.14 As shown, the electronic device 500 may include: a processor 501, a storage medium 502 and a bus, wherein the storage medium 502 stores program instructions executable by the processor 501. When the electronic device 500 is running, the processor 501 communicates with the storage medium 502 via the bus, and the processor 501 executes the program instructions to execute the above method embodiment.
[0198] Specifically, the processor executes the game scene editing method including the following steps:
[0199] A game component panel in a first state is displayed in a graphical user interface; in response to a first selection operation on a first component control in the game component panel, and the first selection operation satisfies a preset trigger condition, the game component panel is switched from the first state to the second state, and a first component corresponding to the first component control is displayed in a game scene to be edited, and the first component is controlled to be in a first editing state, wherein an area of the game scene to be edited displayed in the graphical user interface in the second state is larger than an area of the game scene to be edited displayed in the graphical user interface in the first state; in response to an editing operation on the first component, the first component is edited.
[0200] In a possible implementation, the processor performs the above-mentioned step of switching the game component panel from the first state to the second state, including:
[0201] The first display range of the game component panel in the first state is reduced to the second display range in the second state, so that the area of the game scene to be edited displayed by the graphical user interface in the second state is larger than the area of the game scene to be edited displayed by the graphical user interface in the first state.
[0202] In a possible implementation, the game component panel in the first display range is a game component panel in a preset expanded state, and the game component panel in the second display range is a game component panel in a preset collapsed state.
[0203] In a possible implementation, the processor executes the above step of switching the game component panel from the first state to the second state, further comprising:
[0204] The game component panel in the first display range is a game component panel in a preset expanded state, and the game component panel in the second display range is a game component panel in a preset collapsed state.
[0205] In a possible implementation, the processor executes the game scene editing method further comprising:
[0206] The display transparency of the game component panel that determines the second display range is reduced back to the first display transparency.
[0207] In a possible implementation, the processor performs the above step of displaying the first component in the game scene to be edited, including:
[0208] According to the position of the first selected operation in the graphical user interface, the first component is displayed at a corresponding position in the game scene to be edited.
[0209] In a possible implementation, the processor executes a step of editing the first component in response to an editing operation on the first component, including:
[0210] In the first editing state, a first number of property parameters of the first component are edited.
[0211] In a possible implementation, the processor executes the step of editing a first number of attribute parameters of a first component in a first editing state, including:
[0212] In the first editing state, in response to a quick move operation on the first component, the position of the first component is moved.
[0213] In a possible implementation, the processor executes the step of editing a first number of attribute parameters of a first component in a first editing state, including:
[0214] In a first editing state, a second number of property editing controls are displayed in a graphical user interface; in response to a triggering operation on a first target property editing control among the second number of property editing controls, a first target property parameter of a first component is edited, the first target property parameter being a property parameter corresponding to the first target property editing control, and the second number is less than or equal to the first number.
[0215] In a possible implementation, the processor executes the step of editing a first target property parameter of the first component in response to a trigger operation on a first target property editing control in the second number of property editing controls, including:
[0216] In response to a trigger operation on a first target property editing control, a three-dimensional coordinate system with the first component as the origin is displayed in a graphical user interface; in response to an editing operation on the first component on the coordinate axis of the target dimension, a first target property parameter of the first component on the coordinate axis of the target dimension is edited.
[0217] In a possible implementation, after the processor edits the first number of attribute parameters of the first component in the first editing state, the processor executes the game scene editing method further comprising:
[0218] In response to an exit operation of a first editing state, determine that the first component exits the first editing state; in response to a second selection operation on the first component in a game scene to be edited, determine that the first component enters a second editing state; in the second editing state, edit a third number of attribute parameters of the first component, wherein the third number is greater than the first number.
[0219] In a possible implementation, the processor executes the step of editing the third number of attribute parameters of the first component in the second editing state, including:
[0220] In the second editing state, the game component panel displayed in the graphical user interface is switched to a property editing panel, the property editing panel includes a fourth number of property editing controls, and the fourth number is less than or equal to the third number; in response to a triggering operation on a second target property editing control in the fourth number of property editing controls, the second target property parameters of the first component are edited, and the second target property parameters are property parameters corresponding to the second target property editing control.
[0221] In a possible implementation, the processor executes the first selected operation to satisfy a preset trigger condition: the pressing time of the first selected operation reaches a preset time threshold.
[0222] In a possible implementation, the processor executes the game scene editing method further comprising:
[0223] If the pressing time at the end of the first selection operation does not reach the preset duration threshold, it is determined that the game component panel is restored to the first state.
[0224] In a possible implementation, the processor executes a step of displaying a game component panel in a first state in a graphical user interface, including:
[0225] In response to an expansion operation on the game component panel in a preset collapsed state, the game component panel in a preset expanded state is displayed in the graphical user interface.
[0226] In a possible implementation, the processor executes a step of displaying a game component panel in a first state in a graphical user interface, including:
[0227] If it is detected that the graphical user interface switches from a horizontal state to a vertical state, a game component panel in a preset collapsed state is displayed in the graphical user interface; in response to an expansion operation of the game component panel in the preset collapsed state, the game component panel in the first state is displayed in the graphical user interface.
[0228] In a possible implementation, the processor executes the game scene editing method further comprising:
[0229] In response to a drag operation on a second component control in a game component panel displayed in a graphical user interface in a horizontal screen state, a second component corresponding to the second component control is displayed in the game scene to be edited.
[0230] In a possible implementation, the processor executes the game scene editing method further comprising:
[0231] In response to a triggering operation of adding a control corresponding to the third component control in the game component panel, a target component corresponding to the third component control is displayed at a fixed position of the game scene to be edited.
[0232] The game scene editing method executed by the processor of the above-mentioned embodiment switches the game component panel from the first state to the second state when the first selection operation of the first component in the game component panel meets the preset trigger condition, so that the area of the game scene to be edited displayed in the second state of the graphic interface is larger than the area of the game scene to be edited displayed in the first state, and the first component is displayed in the game scene to be edited and controlled to be in the first editing state. In this case, the first component can be directly edited based on the editing operation. Since the game component panel will automatically switch states based on the first selection operation, the player can directly edit the first component displayed in the game scene to be edited through the editing operation. The player does not need to add components from the game component panel and then edit the components after closing the panel. The added first component is in the first editing state by default, and the player does not need to trigger the first component to enter the editing state by selecting the first component, which improves the operational consistency of the player adding and editing components. The operation method is simple and convenient, and the player's operating experience is improved.
[0233] Optionally, the present application further provides a computer-readable storage medium, including a computer program stored on the storage medium, and the computer program executes the above method embodiment when executed by a processor.
[0234] Specifically, the processor executes the game scene editing method including the following steps:
[0235] A game component panel in a first state is displayed in a graphical user interface; in response to a first selection operation on a first component control in the game component panel, and the first selection operation satisfies a preset trigger condition, the game component panel is switched from the first state to the second state, and a first component corresponding to the first component control is displayed in a game scene to be edited, and the first component is controlled to be in a first editing state, wherein an area of the game scene to be edited displayed in the graphical user interface in the second state is larger than an area of the game scene to be edited displayed in the graphical user interface in the first state; in response to an editing operation on the first component, the first component is edited.
[0236] In a possible implementation, the processor performs the above-mentioned step of switching the game component panel from the first state to the second state, including:
[0237] The first display range of the game component panel in the first state is reduced to the second display range in the second state, so that the area of the game scene to be edited displayed by the graphical user interface in the second state is larger than the area of the game scene to be edited displayed by the graphical user interface in the first state.
[0238] In a possible implementation, the game component panel in the first display range is a game component panel in a preset expanded state, and the game component panel in the second display range is a game component panel in a preset collapsed state.
[0239] In a possible implementation, the processor executes the above step of switching the game component panel from the first state to the second state, further comprising:
[0240] The game component panel in the first display range is a game component panel in a preset expanded state, and the game component panel in the second display range is a game component panel in a preset collapsed state.
[0241] In a possible implementation, the processor executes the game scene editing method further comprising:
[0242] The display transparency of the game component panel that determines the second display range is reduced back to the first display transparency.
[0243] In a possible implementation, the processor performs the above step of displaying the first component in the game scene to be edited, including:
[0244] According to the position of the first selected operation in the graphical user interface, the first component is displayed at a corresponding position in the game scene to be edited.
[0245] In a possible implementation, the processor executes a step of editing the first component in response to an editing operation on the first component, including:
[0246] In the first editing state, a first number of property parameters of the first component are edited.
[0247] In a possible implementation, the processor executes the step of editing a first number of attribute parameters of a first component in a first editing state, including:
[0248] In the first editing state, in response to a quick move operation on the first component, the position of the first component is moved.
[0249] In a possible implementation, the processor executes the step of editing a first number of attribute parameters of a first component in a first editing state, including:
[0250] In a first editing state, a second number of property editing controls are displayed in a graphical user interface; in response to a triggering operation on a first target property editing control among the second number of property editing controls, a first target property parameter of a first component is edited, the first target property parameter being a property parameter corresponding to the first target property editing control, and the second number is less than or equal to the first number.
[0251] In a possible implementation, the processor executes the step of editing a first target property parameter of the first component in response to a trigger operation on a first target property editing control in the second number of property editing controls, including:
[0252] In response to a trigger operation on a first target property editing control, a three-dimensional coordinate system with the first component as the origin is displayed in a graphical user interface; in response to an editing operation on the first component on the coordinate axis of the target dimension, a first target property parameter of the first component on the coordinate axis of the target dimension is edited.
[0253] In a possible implementation, after the processor edits the first number of attribute parameters of the first component in the first editing state, the processor executes the game scene editing method further comprising:
[0254] In response to an exit operation of a first editing state, determine that the first component exits the first editing state; in response to a second selection operation on the first component in a game scene to be edited, determine that the first component enters a second editing state; in the second editing state, edit a third number of attribute parameters of the first component, wherein the third number is greater than the first number.
[0255] In a possible implementation, the processor executes the step of editing the third number of attribute parameters of the first component in the second editing state, including:
[0256] In the second editing state, the game component panel displayed in the graphical user interface is switched to a property editing panel, the property editing panel includes a fourth number of property editing controls, and the fourth number is less than or equal to the third number; in response to a triggering operation on a second target property editing control in the fourth number of property editing controls, the second target property parameters of the first component are edited, and the second target property parameters are property parameters corresponding to the second target property editing control.
[0257] In a possible implementation, the processor executes the first selected operation to satisfy a preset trigger condition: the pressing time of the first selected operation reaches a preset time threshold.
[0258] In a possible implementation, the processor executes the game scene editing method further comprising:
[0259] If the pressing time at the end of the first selection operation does not reach the preset duration threshold, it is determined that the game component panel is restored to the first state.
[0260] In a possible implementation, the processor executes a step of displaying a game component panel in a first state in a graphical user interface, including:
[0261] In response to an expansion operation on the game component panel in a preset collapsed state, the game component panel in a preset expanded state is displayed in the graphical user interface.
[0262] In a possible implementation, the processor executes a step of displaying a game component panel in a first state in a graphical user interface, including:
[0263] If it is detected that the graphical user interface switches from a horizontal state to a vertical state, a game component panel in a preset collapsed state is displayed in the graphical user interface; in response to an expansion operation of the game component panel in the preset collapsed state, the game component panel in the first state is displayed in the graphical user interface.
[0264] In a possible implementation, the processor executes the game scene editing method further comprising:
[0265] In response to a drag operation on a second component control in a game component panel displayed in a graphical user interface in a horizontal screen state, a second component corresponding to the second component control is displayed in the game scene to be edited.
[0266] In a possible implementation, the processor executes the game scene editing method further comprising:
[0267] In response to a triggering operation of adding a control corresponding to the third component control in the game component panel, a target component corresponding to the third component control is displayed at a fixed position of the game scene to be edited.
[0268] The game scene editing method executed by the processor of the above-mentioned embodiment switches the game component panel from the first state to the second state when the first selection operation of the first component in the game component panel meets the preset trigger condition, so that the area of the game scene to be edited displayed in the second state of the graphic interface is larger than the area of the game scene to be edited displayed in the first state, and the first component is displayed in the game scene to be edited and controlled to be in the first editing state. In this case, the first component can be directly edited based on the editing operation. Since the game component panel will automatically switch states based on the first selection operation, the player can directly edit the first component displayed in the game scene to be edited through the editing operation. The player does not need to add components from the game component panel and then edit the components after closing the panel. The added first component is in the first editing state by default, and the player does not need to trigger the first component to enter the editing state by selecting the first component, which improves the operational consistency of the player adding and editing components. The operation method is simple and convenient, and the player's operating experience is improved.
[0269] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0270] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0271] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0272] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, abbreviated: ROM), random access memory (English: Random Access Memory, abbreviated: RAM), disk or optical disk and other media that can store program codes.
[0273] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A game scene editing method, characterized in that: The method includes: displaying a game scene to be edited through a graphical user interface of a terminal device; Displaying a game component panel in a first state in the graphical user interface; In response to a first selection operation on a first component control in the game component panel, and the first selection operation satisfies a preset trigger condition, the game component panel is switched from the first state to the second state, and a first component corresponding to the first component control is displayed in the game scene to be edited, and the first component is controlled to be in a first editing state, wherein the area of the game scene to be edited displayed by the graphical user interface in the second state is larger than the area of the game scene to be edited displayed by the graphical user interface in the first state; In response to an editing operation on the first component, the first component is edited.
2. The method according to claim 1, characterized in that The switching of the game component panel from the first state to the second state includes: The first display range of the game component panel in the first state is reduced to the second display range in the second state, so that the area of the game scene to be edited displayed by the graphical user interface in the second state is larger than the area of the game scene to be edited displayed by the graphical user interface in the first state.
3. The method according to claim 2, characterized in that The game component panel in the first display range is a game component panel in a preset expanded state, and the game component panel in the second display range is a game component panel in a preset collapsed state.
4. The method according to claim 2, characterized in that: The switching of the game component panel from the first state to the second state further includes: The first display transparency of the game component panel in the first state is increased to the second display transparency in the second state.
5. The method according to claim 4, characterized in that The method further comprises: The display transparency of the game component panel that determines the second display range is reduced back to the first display transparency.
6. The method according to claim 1, characterized in that The displaying the first component corresponding to the first component control in the game scene to be edited includes: According to the position of the first selected operation in the graphical user interface, the first component is displayed at a corresponding position in the game scene to be edited.
7. The method according to claim 1, characterized in that The step of editing the first component in response to the editing operation on the first component includes: In the first editing state, a first number of property parameters of the first component are edited.
8. The method according to claim 7, characterized in that The editing of the first number of attribute parameters of the first component in the first editing state includes: In the first editing state, in response to a quick move operation on the first component, the position of the first component is moved.
9. The method according to claim 7, characterized in that: The editing of the first number of attribute parameters of the first component in the first editing state includes: In the first editing state, displaying a second number of property editing controls in the graphical user interface; In response to a triggering operation on a first target property editing control among the second number of property editing controls, a first target property parameter of the first component is edited, the first target property parameter being a property parameter corresponding to the first target property editing control, and the second number being less than or equal to the first number.
10. The method according to claim 9, characterized in that The editing of a first target property parameter of the first component in response to a triggering operation on a first target property editing control in the second number of property editing controls includes: In response to a triggering operation on the first target property editing control, displaying a three-dimensional coordinate system with the first component as an origin in the graphical user interface; In response to an editing operation on the first component on the coordinate axis of the target dimension, a first target attribute parameter of the first component on the coordinate axis of the target dimension is edited.
11. The method according to claim 7, characterized in that After editing the first number of attribute parameters of the first component in the first editing state, the method further includes: In response to an exit operation of the first editing state, determining that the first component exits the first editing state; In response to a second selection operation on the first component in the game scene to be edited, determining that the first component enters a second editing state; In the second editing state, a third number of attribute parameters of the first component are edited, wherein the third number is greater than the first number.
12. The method according to claim 11, characterized in that The step of editing a third number of attribute parameters of the first component in the second editing state includes: In the second editing state, switching the game component panel displayed in the graphical user interface to a property editing panel, wherein the property editing panel includes a fourth number of property editing controls, and the fourth number is less than or equal to the third number; In response to a triggering operation on a second target property editing control among the fourth number of property editing controls, a second target property parameter of the first component is edited, the second target property parameter being a property parameter corresponding to the second target property editing control.
13. The method according to claim 1, characterized in that The first selection operation satisfies a preset trigger condition when: the pressing time of the first selection operation reaches a preset time threshold.
14. The method according to claim 13, characterized in that The method further comprises: If the pressing time at the end of the first selection operation does not reach the preset duration threshold, it is determined that the game component panel is restored to the first state.
15. The method according to claim 1, characterized in that The step of displaying a game component panel in a first state in the graphical user interface includes: In response to an expansion operation on the game component panel in a preset collapsed state, the game component panel in a preset expanded state is displayed in the graphical user interface.
16. The method according to claim 1, characterized in that The step of displaying a game component panel in a first state in the graphical user interface includes: If it is detected that the graphical user interface is switched from the horizontal screen state to the vertical screen state, the game component panel in a preset collapsed state is displayed in the graphical user interface; In response to an expansion operation on the game component panel in the preset collapsed state, the game component panel in the first state is displayed in the graphical user interface.
17. The method according to claim 16, characterized in that The method further comprises: In response to a dragging operation of a second component control in the game component panel displayed in the graphical user interface in the horizontal screen state, a second component corresponding to the second component control is displayed in the game scene to be edited.
18. The method according to claim 1, characterized in that The method further comprises: In response to a triggering operation of adding a control corresponding to the third component control in the game component panel, a target component corresponding to the third component control is displayed at a fixed position in the game scene to be edited.
19. A game scene editing device, characterized in that: The game scene to be edited is displayed through a graphical user interface of a terminal device, and the device comprises: A display module, configured to display a game component panel in a first state in the graphical user interface; a switching module, for responding to a first selection operation on a first component control in the game component panel, and the first selection operation satisfies a preset trigger condition, switching the game component panel from the first state to a second state, wherein the area of the game scene to be edited displayed by the graphical user interface in the second state is larger than the area of the game scene to be edited displayed by the graphical user interface in the first state; The display module is further used to display a first component corresponding to the first component control in the game scene to be edited, and control the first component to be in a first editing state; The editing module is used to edit the first component in response to an editing operation on the first component.
20. An electronic device, characterized in that: include: A processor, a storage medium and a bus, wherein the storage medium stores program instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the program instructions to perform the steps of the game scene editing method as described in any one of claims 1 to 18.
21. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the game scene editing method according to any one of claims 1 to 18 are executed.
Citation Information
Cited By
Game scene editing method and apparatus, electronic device, and storage medium
WO2026021107A1
