Sky background switching method and apparatus in game, and electronic device

By providing a graphical user interface editing window and editable components in the game, dynamically update the sky box background, solving the user experience interruption and monotonous background problems caused by sky box adjustment in the game, improving the flexibility of game experience and UGC creation.

WO2024239435A1PCT designated stage expired Publication Date: 2024-11-28NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/107271
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-05-25
Filing Date
2023-07-13
Publication Date
2024-11-28

AI Technical Summary

Technical Problem

The dynamic adjustment of the sky box in the game causes the user experience to be interrupted, and the background switching is monotonous, which is difficult to meet the needs of players, limiting UGC creation and gaming experience.

Method used

By providing editing windows and editable components in the graphical user interface, players are allowed to set the sky background switching conditions, parameters and information, dynamically update the background of the sky box, and realize the sky background switching in the game level, improving the player's gaming experience.

Benefits of technology

It realizes the free setting of sky background switching in game levels, enriches background performance, improves player game experience, and solves the problems of interruption of user experience and monotonous background.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023107271_28112024_PF_FP_ABST
    Figure CN2023107271_28112024_PF_FP_ABST
Patent Text Reader

Abstract

A sky background switching method and apparatus in a game, and an electronic device. The method comprises: displaying an editing window in a graphical user interface, the editing window comprising a plurality of editable components (S502); in response to an editing operation for a target editable component, determining switching conditions, a switching parameter, and target sky background information of the target editable component, wherein the switching parameter comprises a switching mode and / or a switching duration, the target editable component is a component among the plurality of editable components, and the switching conditions are configured to trigger to start or pause updating the sky background information of a sky box in a game editing scene (S504); and updating the sky background information of the sky box from the current sky background information to the target sky background information according to the switching parameter corresponding to the target editable component, and dynamically displaying, in the graphical user interface, a sky background of a game scene obtained by rendering in an information switching process of updating the sky box (S506). The sky background switching performance is enriched, and the game experience of players is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Method, device and electronic device for switching sky background in game

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to Chinese patent application number 202310615057.1 filed on May 25, 2023, entitled “Method, device and electronic device for switching sky background in games”, the entire contents of which are incorporated herein by reference. Technical Field

[0003] The present disclosure relates to the technical field of game interaction design, and in particular to a method, device, and electronic device for switching sky backgrounds in a game. Background Art

[0004] When users display their original content on an internet platform or share it with other users, background switching is often necessary to indicate a change in location or enhance a mood. Related technologies typically encapsulate a game scene with a skybox, and then achieve background switching within the game scene by moving the skybox. However, in this approach, the background texture corresponding to the skybox is stored within the game scene. Dynamically adjusting the skybox during the game requires the client to reload the scene, interrupting the user experience. Consequently, this approach can only achieve background switching in the game level edit mode, resulting in a poor gaming experience for players.

[0005] Summary of the Invention

[0006] The purpose of the present disclosure is to provide a method, device and electronic device for switching the sky background in a game, so as to realize background switching in the game level and enhance the player's gaming experience.

[0007] According to one aspect of the present disclosure, a method for switching the sky background in a game is provided, wherein a graphical user interface is provided through a terminal device, and a game editing scene provided by a running game program is displayed in the graphical user interface, the method comprising: displaying an editing window in the graphical user interface, wherein the editing window comprises a plurality of editable components; in response to an editing operation on a target editable component, determining a switching condition, switching parameters and target sky background information of the target editable component; wherein the switching parameters comprise a switching mode and / or a switching duration, the target editable component is a component among a plurality of editable components, and the switching condition is configured to trigger the start or pause of updating the sky background information of the sky box of the game editing scene; according to the switching parameters corresponding to the target editable component, the sky background information of the sky box is updated from the current sky background information to the target sky background information, and the sky background of the game scene rendered during the information switching process of updating the sky box is dynamically displayed in the graphical user interface.

[0008] According to one aspect of the present disclosure, a device for switching the sky background in a game is provided, which provides a graphical user interface through a terminal device; a game editing scene provided by a running game program is displayed in the graphical user interface, and the device includes: an editing window display module, which is used to display an editing window in the graphical user interface, and the editing window includes multiple editable components; a component editing module, which is used to respond to an editing operation on a target editable component, and determine the switching conditions, switching parameters and target sky background information of the target editable component; wherein the switching parameters include a switching mode and / or a switching duration, the target editable component is a component among multiple editable components, and the switching conditions are configured to trigger the start or pause of updating the sky background information of the sky box of the game editing scene; a background switching module, which is used to update the sky background information of the sky box from the current sky background information to the target sky background information according to the switching parameters corresponding to the target editable component, and dynamically display the sky background of the game scene rendered in the information switching process of updating the sky box in the graphical user interface.

[0009] According to one aspect of the present disclosure, an electronic device is provided, which includes a processor and a memory, wherein the memory stores machine-executable instructions that can be executed by the processor, and the processor executes the machine-executable instructions to implement the sky background switching method in the above-mentioned game.

[0010] According to one aspect of the present disclosure, a computer-readable storage medium is provided, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the sky background switching method in the above-mentioned game.

[0011] The embodiments of the present disclosure bring the following beneficial effects:

[0012] The present disclosure provides a method, device, and electronic device for switching the sky background in a game. The method first displays a game editing scene and an editing window provided by a running game program in a graphical user interface, wherein the editing window includes multiple editable components. Then, in response to an editing operation on a target editable component, the switching condition, switching parameters, and target sky background information of the target editable component are determined. The switching parameters include a switching method and / or a switching duration. The target editable component is a component among multiple editable components. The switching condition is configured to trigger the start or pause of updating the sky background information of the sky box of the game editing scene. According to the switching parameters corresponding to the target editable component, the sky background information of the sky box is updated from the current sky background information to the target sky background information, and the sky background of the game scene rendered during the information switching process of the updated sky box is dynamically displayed in the graphical user interface. In this method, players can freely set the relevant parameters for sky background switching in the game editing scene, enriching the performance of sky background switching. Players can implement sky background switching during game matches, which helps to improve the player's gaming experience.

[0013] Other features and advantages of the present disclosure will be set forth in the following description, or some features and advantages may be inferred or unambiguously determined from the description, or may be learned by practicing the above-mentioned technology of the present disclosure.

[0014] In order to make the above-mentioned objects, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are specifically listed below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] FIG1 is a flow chart of a method for switching sky background in a game provided by one embodiment of the present disclosure;

[0016] FIG2 is a flowchart of another method for switching sky backgrounds in a game provided by one embodiment of the present disclosure;

[0017] FIG3 is a schematic diagram of updating a sky background based on a first switching mode according to one embodiment of the present disclosure;

[0018] FIG4 is a schematic diagram of updating a sky background based on a second switching mode according to one embodiment of the present disclosure;

[0019] FIG5 is a flowchart of another method for switching sky backgrounds in a game provided by one embodiment of the present disclosure;

[0020] FIG6 is a flowchart of another method for switching sky backgrounds in a game provided by one embodiment of the present disclosure;

[0021] FIG7 is a schematic diagram of a parameter setting panel provided in one embodiment of the present disclosure;

[0022] FIG8 is a schematic structural diagram of a device for switching sky backgrounds in a game provided by one embodiment of the present disclosure;

[0023] FIG9 is a schematic structural diagram of an electronic device provided in accordance with one embodiment of the present disclosure. DETAILED DESCRIPTION

[0024] To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings of the embodiments of the present disclosure. Obviously, the described embodiments are only some of the embodiments of the present disclosure, but not all of them. Generally, the components of the embodiments of the present disclosure described and shown in the drawings herein can be arranged and designed in various different configurations.

[0025] Therefore, the following detailed description of the embodiments of the present disclosure provided in the accompanying drawings is not intended to limit the scope of the present disclosure as claimed, but merely represents selected embodiments of the present disclosure. All other embodiments derived by persons of ordinary skill in the art based on the embodiments of the present disclosure without creative effort shall fall within the scope of protection of the present disclosure.

[0026] When users display their original content on an internet platform or share it with other users, they often need to switch backgrounds to indicate a change of location or to enhance a mood. Therefore, background switching has many application scenarios and usage requirements in UGC (User Generated Content).

[0027] In related technologies, UGC players can only switch backgrounds by enclosing the game scene with a skybox component and switching the background through the movement of the skybox component. This method is difficult to implement and has high requirements for game development. In addition, due to game optimization issues, the background cannot be very detailed and will severely limit the size of the player's game level. Currently, the official background switching can only be used in the editing mode of the game level, because the skybox resource is saved in the game scene. If the skybox is dynamically adjusted in the game, the client needs to reload the game scene, which will interrupt the user's gaming experience.

[0028] Related technologies also provide multiple skybox resources. Without dynamic skybox switching, these skyboxes can only be used by players on each map, significantly limiting the creative potential of user-generated content. Furthermore, because these skyboxes rely solely on motion controllers for background switching, the switching performance is relatively monotonous, making it difficult to meet player needs.

[0029] Based on the above problems, the embodiments of the present disclosure provide a method, device and electronic device for switching the sky background in a game. This technology can be applied to the sky background switching and pause switching scenarios of game scenes in game levels.

[0030] In one embodiment of the present disclosure, the method for switching the sky background in a game can be run on a local terminal device or a server. When the interactive control method in the game is run on a server, the method can be implemented and executed based on a cloud interactive system, wherein the cloud interactive system includes a server and a client device.

[0031] In an optional embodiment, 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 gaming method based on cloud computing. In the cloud game operation mode, the operating body of the game program and the main body of the game screen presentation are separated. The storage and operation of the sky background switching method in the game are completed on the cloud game server. The role of the client device is to receive and send data and present 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, TV, computer, PDA, etc.; but the cloud game server in the cloud is responsible for information processing. When playing the game, the player operates the client device to send operation instructions to the cloud game server. The cloud game server runs the game according to the operation instructions, 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.

[0032] In an optional embodiment, taking a game as an example, a local terminal device stores a game program and is used to present the game screen. The local terminal device is used to interact with the player through a graphical user interface, that is, conventionally downloading and installing the game program through an electronic device and running it. The local terminal device can provide the graphical user interface to the player in a variety of ways, for example, it can be rendered and displayed on the terminal's display screen, or provided to the player through holographic projection. For example, the local terminal device may include a display screen and a processor, the display screen is used to present the graphical user interface, the graphical user interface includes the game screen, and the processor is used to run the game, generate the graphical user interface, and control the display of the graphical user interface on the display screen.

[0033] In one possible implementation, the present disclosure provides a method for switching a sky background in a game. A graphical user interface is provided via a terminal device, which may be the aforementioned local terminal device or a client device in the aforementioned cloud interaction system. The graphical user interface displays a portion of a game scene and a corresponding sky background; the sky background is generated based on sky background information. As shown in FIG1 , the method includes the following specific steps:

[0034] Step S102 : responding to a sky background switching event, determining target sky background information and switching parameters corresponding to the sky background switching event.

[0035] The above-mentioned sky background switching event indicates an event that starts updating the sky background information corresponding to the game scene. The sky background switching event can be determined according to player settings or R&D requirements. Similarly, the target sky background information and switching parameters corresponding to the sky background switching event can also be determined according to player settings or player needs. Specifically, the player can set the sky background switching event, as well as the target sky background information and switching parameters corresponding to the sky background switching event in the game editor. The above-mentioned switching parameters are at least one of the following parameters: switching duration and switching method; the switching duration is used to indicate the time required for the sky background information corresponding to the game scene to be updated from the current sky background information to the target sky background information. The switching duration can be 0 seconds, 3 seconds, or 5 seconds, etc.

[0036] In an optional embodiment, the above-mentioned sky background switching event can be a trigger operation for a switching control displayed in a graphical user interface, or it can be a controlled virtual object controlled by a terminal device entering a target area, etc., which is not specifically limited here.

[0037] In practice, when a player triggers a sky background switching event, the game scene's current sky background information, as well as the target sky background information and switching parameters corresponding to the sky background switching event, are first obtained. The current sky background information refers to the sky background information corresponding to the game scene at the time of the sky background switching event. Specifically, this sky background information can be a sky background texture or background parameters used to control the sky background texture.

[0038] In an optional embodiment, the game scene includes a skybox, and the sky background information corresponding to the game scene is attribute information corresponding to the skybox. The sky background is a background generated based on the sky background information of the skybox. The skybox can encompass the entire game scene and provide a sky background for the game scene based on the sky background information. It should be noted that the sky background information corresponding to the skybox described below is also the sky background information corresponding to the game scene.

[0039] Step S104, based on the above-mentioned switching parameters, updates the sky background information corresponding to the game scene from the current sky background information to the target sky background information, and dynamically displays the sky background of the dynamically changing game scene rendered in the process of updating the sky background information in the graphical user interface; wherein, the process of updating the sky background information is the process of updating the sky background information corresponding to the game scene from the current sky background information to the target sky background information.

[0040] When a sky background switching event occurs, the sky background information corresponding to the game scene can be updated from the current sky background information to the target sky background information according to the switching parameters. During the sky background information updating process, the updated sky background information corresponding to the game scene is calculated in real time for each update, and the sky background of the game scene rendered based on the updated sky background information is displayed in the graphical user interface. Therefore, the updated sky background can be dynamically displayed in the graphical user interface, allowing players to intuitively see the changes in the sky background of the game scene in the process of changing by adjusting the game perspective.

[0041] In an optional embodiment, the process of updating the sky background information may continue for a preset time, or may be completed immediately, depending on the player's settings. Typically, the preset time matches the switching time, which can be determined according to the player's settings.

[0042] The disclosed embodiments provide a method for switching the sky background in a game. In this method, players can trigger a sky background switching event to switch the sky background corresponding to the game scene during a game. At the same time, this method enriches the performance of sky background switching through switching parameters, which helps to improve the player's gaming experience.

[0043] The present disclosure provides a method for switching a sky background in a game. This method is implemented based on the above-mentioned embodiment. The method focuses on updating the sky background information corresponding to the game scene from the current sky background information to the target sky background information based on the switching parameter when the switching parameter is the switching duration, and dynamically displays the specific process of rendering the dynamically changing sky background of the game scene obtained during the process of updating the sky background information in a graphical user interface (implemented by the following steps S206-S210). As shown in FIG2 , the method includes the following specific steps:

[0044] Step S202, responding to the game start instruction, controlling the graphical user interface to display the game scene corresponding to the game match.

[0045] The game start instruction can be determined based on the game rules. For example, the game start instruction can be triggered by the player triggering a start game control in the graphical user interface, or the game start instruction can be triggered by the player triggering any area in the graphical user interface. When the graphical user interface displays the game scene corresponding to the game match, the controlled virtual object controlled by the terminal device is in the game level or game match.

[0046] Step S204 , responding to the sky background switching event, determining target sky background information and switching parameters corresponding to the sky background switching event; wherein the switching parameters include switching duration.

[0047] Step S206 , determining, based on the switching duration, a change parameter of the sky background information per unit time in the process of updating the current sky background information corresponding to the game scene to the target sky background information.

[0048] In a specific implementation, the change parameter is the proportion of the target sky background information and the current sky background information in the updated sky background information. The above-mentioned unit time is the time frame in which the sky background information corresponding to the game scene changes in the process of updating the current sky background information corresponding to the game scene to the target sky background information. For example, if the sky background information is set to change 10 times per second, then each second contains 10 unit times. Therefore, the longer the switching time is, the more unit times the sky background information changes in the process of updating the current sky background information corresponding to the game scene to the target sky background information, and as time goes by, the proportion of the target sky background information in the updated sky background information in the change parameter corresponding to the unit time gradually increases until it increases to 1. At this time, the updated sky background information is also the target sky background information.

[0049] Step S208 , dynamically updating the sky background information corresponding to the game scene in chronological order according to the change parameter of the sky background information corresponding to the unit time, the current sky background information, and the target sky background information.

[0050] In specific implementation, the switching parameters may also include switching methods, so that different switching methods determine the sky background information corresponding to the dynamically updated game scene in different ways based on the change parameters of the sky background information corresponding to unit time, the current sky background information and the target sky background information.

[0051] In an optional embodiment, if the switching parameters further include the first switching mode; and the sky background information includes a plurality of pixels; then the above step S208 may be implemented by the following steps 10-12:

[0052] Step 10: Dynamically determine the pixels to be updated among the multiple pixels in the sky background information in chronological order according to the first switching mode and the change parameter; wherein the pixels to be updated are some of the multiple pixels in the sky background information.

[0053] Specifically, the first switching method typically involves gradually displaying the sky background rendered based on the target sky background information from one end of the game scene to the other. This means that the current sky background information corresponding to the game scene is replaced with the target sky background information in a progressive manner from one end to the other. This first switching method can be referred to as a progressive method or a flaring method, for example. If the switching parameters include the first switching method, it is necessary to dynamically determine which pixels in the sky background information are to be updated based on the changing parameters.

[0054] Based on the above description, the above-mentioned change parameter is the ratio of the number of pixels in the target sky background information and the number of pixels in the current sky background information to the number of pixels in the updated sky background information. In an optional embodiment, the above-mentioned change parameter may also be: in the updated sky background information, the ratio of the number of pixels in the current sky background information to the number of pixels in the target sky background information.

[0055] Step 11: Determine the target pixel value corresponding to the pixel to be updated according to the target sky background information.

[0056] In a specific implementation, if the target sky background information is a sky background map, the pixel value corresponding to the pixel to be updated in the sky background map can be determined as the target pixel value. If the target sky background information is a background parameter, the target pixel value of the pixel to be updated can be determined based on the background parameter.

[0057] Step 12: Update the pixel value of the pixel to be updated from the current pixel value determined according to the current sky background information to the target pixel value.

[0058] As shown in Figure 3, a schematic diagram of updating the sky background based on the first switching method provided by an embodiment of the present disclosure is shown. Figure 3 is a schematic diagram of the sky background rendered in the process of updating the current sky background to the target sky background information, wherein the right side portion of the transition line at the countdown position in the first figure in Figure 3 is the sky background of the game scene rendered based on the target sky background information, and the right side portion of the transition line is the sky background of the game scene rendered based on the current target sky background information. The countdown corresponding to the first figure in Figure 3 is 2 minutes and 48 seconds, and the countdown corresponding to the second figure is 2 minutes and 45 seconds. It can be seen from Figure 3 that, in chronological order, the sky background of the game scene rendered based on the target sky background information gradually increases in proportion in the updated sky background.

[0059] In another optional embodiment, if the switching parameters further include a second switching mode, and the sky background information includes a plurality of pixels, then the above step S208 may be implemented by the following steps 20-22:

[0060] Step 20: Determine the pixel points to be updated among the multiple pixel points in the sky background information according to the second switching mode; wherein the pixel points to be updated are all the pixel points among the multiple pixel points in the sky background information.

[0061] Specifically, the second switching method is a method in which the sky background of the game scene gradually changes from a sky background rendered based on the current sky background information to a sky background rendered based on the target sky background information. This method can be called a gradual change or transition method. If the switching parameters include the second switching method, all pixels in the sky background information are determined as pixels to be updated.

[0062] Step 21 : determining a target pixel value corresponding to the pixel to be updated according to the target sky background information, and determining a current pixel value corresponding to the pixel to be updated according to the current sky background information.

[0063] In a specific implementation, if the target sky background information is a sky background map, the pixel value corresponding to the pixel to be updated in the sky background map can be determined as the target pixel value. If the target sky background information is background parameters, the target pixel value for the pixel to be updated can be determined based on the background parameters. The current pixel value is the pixel value corresponding to the pixel to be updated in the current sky background information.

[0064] Step 22: Dynamically update the pixel value of the pixel to be updated according to the change parameter, the target pixel value and the current pixel value in chronological order.

[0065] In a specific implementation, the change parameter may be the ratio of the pixel points of the target sky background information and the pixel points of the current sky background information to the pixel points in the updated sky background information. In an optional embodiment, the above-mentioned change parameter may be: the ratio of the pixel value of each pixel point in the current sky background information and the pixel value of each pixel point in the target sky background information to the pixel points in the updated sky background information.

[0066] As shown in Figure 4, a schematic diagram of updating the sky background based on the second switching method provided by an embodiment of the present disclosure is shown. Figure 4 is a schematic diagram of the sky background rendered in the process of updating the current sky background to the target sky background information. The countdown corresponding to the first figure in Figure 4 is 2 minutes and 35 seconds, and the countdown corresponding to the second figure is 2 minutes and 32 seconds. As can be seen from Figure 4, in chronological order, the sky background of the game scene rendered based on the target sky background information gradually appears in the updated sky background, that is, the proportion gradually increases.

[0067] In a specific embodiment, for each pixel to be updated, the current pixel value and the target pixel value corresponding to the pixel to be updated can be added to obtain a sum, and the product of the sum and the change parameter is determined as the pixel value of the pixel to be updated.

[0068] Step S210 , dynamically displaying in a graphical user interface the sky background of the dynamically changing game scene rendered based on the dynamically updated sky background information.

[0069] The sky background switching method in the above-mentioned game can trigger a sky background switching event when the player is playing the game, and dynamically update the sky background information corresponding to the game scene to the target sky background information according to the switching method and switching duration corresponding to the sky background switching event, and dynamically display the dynamically changing sky background of the game scene rendered based on the dynamically updated sky background information in the graphical user interface. This method enriches the performance of the sky background switching and helps to improve the player's gaming experience.

[0070] Based on the above embodiment, the following embodiment describes that the switching parameters include a third switching method, and the third switching method is a method for switching the sky background of the game scene in the case of immediate switching.

[0071] Specifically, in response to a sky background switching event, the target sky background information and switching parameters corresponding to the sky background switching event are determined; wherein the switching parameters include a third switching method; according to the third switching method, the sky background information corresponding to the game scene is switched from the current sky background information to the target sky background information, and the sky background of the game scene rendered based on the target sky background information is continuously displayed in the graphical user interface.

[0072] This method can immediately switch the sky background information corresponding to the game scene to the target sky background information when the sky background switching event is triggered, so that the sky background in the graphical user interface changes from the sky background rendered based on the current sky background information to the sky background rendered based on the target sky background information in the next frame. This method can quickly realize the sky background switching.

[0073] Based on the above embodiment, the following embodiment describes a method of pausing the switching of the sky background.

[0074] Specifically, in the process of updating the sky background information, the sky background pause update event is responded to, the process of updating the sky background information is paused, and the sky background of the game scene rendered according to the corresponding sky background information in response to the sky background pause update event is continuously displayed in the graphical user interface.

[0075] During the process of updating the sky background information, if the sky background information corresponding to the game scene has not switched to the target sky background information, and the player triggers a sky background update pause event, the updating of the sky background information corresponding to the game scene will be immediately stopped, and the sky background effect of the game scene rendered according to the corresponding sky background information in response to the sky background update pause event will continue to be displayed in the graphical user interface. At this time, the sky background of the game scene displayed in the graphical user interface may include: a first part of the sky background of the game scene rendered according to the current sky background information, and a second part of the sky background of the game scene rendered according to the target sky background information; wherein the first part and the second part can form a complete sky background.

[0076] In some embodiments, a preset transition effect corresponding to the connecting portion between a first portion of the game scene's sky background rendered using the current sky background information and a second portion of the game scene's sky background rendered using the target sky background information is displayed within the sky background corresponding to the game scene. This preset transition effect corresponds to the first switching mode and includes a transition color and transition style, which can be determined in the game editor as needed.

[0077] In a specific implementation, the sky background pause update event can be determined based on player settings or R&D requirements. Specifically, players can set a sky background pause update event in the game editor. This sky background pause update event is used to indicate a trigger event for pausing updates of the sky background information corresponding to the game scene. In an optional embodiment, the graphical user interface also displays a toggle control and a pause control; the sky background toggle event includes triggering the toggle control; and the sky background pause update event includes triggering the pause control.

[0078] Based on the above description, the embodiment of the present disclosure further provides another method for switching the sky background in a game, as shown in FIG5 , which includes the following specific steps:

[0079] Step S402 , responding to a control instruction for a controlled virtual object corresponding to the terminal device, controlling the controlled virtual object to execute a first game behavior that meets a first preset condition, and controlling triggering a sky background switching event.

[0080] In a specific implementation, the first game behavior of the first preset condition can be determined based on a player's settings. Optionally, the first game behavior of the first preset condition can be controlling the controlled virtual object to move to a target area in the game scene. The target area is a scene area in the game scene, and the specific scene area in the game scene can be determined based on the player's settings.

[0081] Step S404: responding to the sky background switching event, determining target sky background information and switching parameters corresponding to the sky background switching event.

[0082] Step S406: Based on the switching parameters, the sky background information corresponding to the game scene is updated from the current sky background information to the target sky background information, and the sky background of the dynamically changing game scene rendered during the process of updating the sky background information is dynamically displayed in the graphical user interface.

[0083] Step S408, in the process of updating the sky background information, responding to the control instruction for the controlled virtual object corresponding to the terminal device, controlling the controlled virtual object to perform a second game behavior that meets the second preset condition, and controlling the triggering of the sky background update pause event.

[0084] Step S410, responding to the sky background update pause event, suspending the process of updating the sky background information, and continuously displaying the sky background of the game scene rendered according to the sky background information corresponding to the sky background update pause event in the graphical user interface.

[0085] In specific implementation, the second game behavior of the second preset condition can be determined according to the player's settings. Optionally, the second game behavior of the second preset condition can be to control the controlled virtual object to separate from the target area in the game scene.

[0086] In the above method, the player can control the movement of the controlled virtual object to switch and pause the sky background, which enriches the gameplay.

[0087] The present disclosure also provides another method for switching a sky background in a game. The method focuses on describing a sky background switching event, a sky background update pause event, target sky background information, and a method for setting switching parameters. As shown in FIG6 , the method includes the following specific steps:

[0088] Step S502: Displaying a game editing scene and an editing window in a graphical user interface; wherein the editing window includes a plurality of editable components.

[0089] The aforementioned game editing scene is a scene provided by the running game program, and can also be understood as a scene provided by the game editor. In the game editing scene, editable components can be edited. In specific implementations, when a game editing command is triggered, the game editing scene and editing window can be displayed in the graphical user interface. The game editing command can be determined based on the game rules. For example, the editing command can be an operation to enter the game editor or an operation to select a scene map for editing.

[0090] The editing window can include multiple editable components. The specific component types and configurations of these editable components can be set according to R&D requirements. In actual applications, the editing window can include multiple different types of editable components, such as terrain components, mechanism components, decoration components, and combination components. Furthermore, each type of editable component also contains multiple editable components. Editable components of the same type may have different display parameters in the game scene. This means that some editable components are visible in the game editing scene and in the game scene, while some are visible in the game editing scene but not in the game scene. For example, the large base plate component and sector-shaped cone component in the terrain component, and the cylindrical component and gear component in the mechanism component are all editable components that are visible in the game editing scene and in the game scene. However, the spawn point component and respawn alternative point component corresponding to the logic component in the mechanism component are all editable components that are visible in the game editing scene but not in the game scene.

[0091] In a specific embodiment, after the editing window is displayed in the graphical user interface, a selection operation for the target editable component will be responded to, and a virtual object corresponding to the target editable component will be generated in the game editing scene; wherein the virtual object is configured to be displayed with preset display parameters. The above-mentioned preset display parameters include whether it is visible or invisible in the game match scene. In specific implementation, the specific operation of the above-mentioned selection operation can be determined according to R&D requirements. For example, the selection operation can be dragging the target editable component to the game editing scene, or clicking or long pressing the target editing component in the editing window.

[0092] Step S504, in response to the editing operation on the target editable component, determine the switching conditions, switching parameters and target sky background information of the target editable component; wherein the switching parameters include the switching method and / or switching duration, the target editable component is a component among multiple editable components, and the switching conditions are configured to trigger the start or pause of updating the sky background information of the sky box of the game editing scene.

[0093] In actual applications, the switching parameters may include only the switching method, only the switching duration, or both the switching method and the switching duration. The switching conditions are equivalent to the sky background switching event and the sky background update pause event in the above embodiment. The specific operation of the above editing operation can be determined according to R&D requirements and player settings.

[0094] Step S506, according to the switching parameters corresponding to the target editable component, the sky background information of the sky box is updated from the current sky background information to the target sky background information, and the sky background of the game scene rendered during the information switching process of updating the sky box is dynamically displayed in the graphical user interface.

[0095] After setting the switching conditions, switching parameters, and target sky background information corresponding to the target editable component, you can trigger an interactive control in the graphical user interface to display the switching parameters corresponding to the target editable component in the graphical user interface, update the skybox's sky background information from the current sky background information to the target sky background information, and dynamically display the rendered game scene's sky background during the information switching process. The skybox's sky background information can also be understood as the game scene's sky background information.

[0096] In this way, players can freely set the sky background switching events, sky background pause update events, switching parameters and target sky background information corresponding to the target editable components in the game editing scene, thereby enriching the performance of sky background switching and helping to improve the player's gaming experience.

[0097] In an optional embodiment, a setting control is displayed in the above-mentioned graphical user interface; the above-mentioned step S506 can be implemented by the following steps 30-33:

[0098] Step 30, in response to the trigger operation for setting the control, the parameter setting panel corresponding to the target editable component is displayed in the editing window; wherein the parameter setting panel includes multiple editable controls; the editable controls are used to set the switching conditions, switching parameters and target sky background information of the target editable component.

[0099] In specific implementation, the above-mentioned trigger operation for the setting control can be a click operation or a long press operation on the setting control, etc.; triggering the setting control can display the parameter setting panel corresponding to the target editing component, and the parameter setting panel is used to set the sky background switching event, sky background pause update event, target sky background information and background switching parameters corresponding to the target editable component.

[0100] Step 31 : In response to a first setting operation on the parameter setting panel, determining a switching condition corresponding to a target editable component.

[0101] In specific implementation, the specific operation of the above-mentioned first setting operation can be determined according to the player's operation. The above-mentioned switching conditions include: a sky background switching event in which the target editable component starts background switching, and a sky background pause update event in which the target editable component pauses background switching. The above-mentioned parameter setting panel includes: a first editable control for setting the sky background switching event, and a second editable control for setting the sky background pause update event; therefore, in response to a first input operation on the first editable control, the sky background switching event corresponding to the target editable component can be set according to the first input operation; in response to a second input operation on the second editable control, the sky background pause update event corresponding to the target editable component can be set according to the second input operation.

[0102] The first and second input operations can be determined based on player input, allowing players to perform input operations using a full keyboard. In an optional embodiment, the first input operation includes setting a target component associated with the target editable component and setting a sky background switching event to: a controlled virtual object controlled by the terminal device moves into the scene space defined by the target component; and the second input operation sets a sky background pause update event to: the controlled virtual object moves out of the scene space defined by the target component. The scene control represents an area within the game scene.

[0103] In another optional embodiment, the above-mentioned first input operation includes: setting a switch control in the graphical user interface, and setting the sky background switch event to trigger the switch control; the second input operation includes: setting a pause control in the graphical user interface, and setting the sky background pause update event to trigger the pause control.

[0104] Step 32 : In response to the second setting parameter of the parameter setting panel, determining the switching parameter corresponding to the target editable component.

[0105] In specific implementation, the specific operation of the above-mentioned second setting operation can be determined according to the player's operation. The above-mentioned switching parameters include a switching method. Based on this, the setting method of the switching parameters is: in response to the click operation of the editable control corresponding to the switching method in the parameter setting panel, a plurality of preset switching methods are displayed in the parameter setting panel, and different switching methods correspond to different methods for determining the pixel points to be updated of the sky background information of the sky box, wherein the sky background information includes a plurality of pixel points; in response to the trigger operation of the target switching method in the plurality of preset switching methods, the target switching method is determined as the switching method corresponding to the target editable component. The above-mentioned multiple preset switching methods may include: a first switching method, a second switching method and a third switching method.

[0106] In a specific implementation, if the target switching mode includes a first switching mode; the method further includes: in response to a trigger operation for a target switching mode among a plurality of preset switching modes, displaying a transition setting control corresponding to the target switching mode in a parameter setting panel; wherein the transition setting control is used to set a transition effect for the connecting portion between the to-be-updated pixel points and the unupdated pixel points of the sky background information of the sky box; in response to a setting operation for the transition setting control, determining a transition effect corresponding to the target switching mode, and determining the target switching mode and the switching transition effect corresponding to the target switching mode as the switching mode corresponding to the target editable component. wherein the transition switching effect includes a transition color and / or a transition style.

[0107] In an optional embodiment, the switching parameters include a switching duration. Based on this, the switching parameters corresponding to the target editable component are determined by responding to an input operation for the switching duration in the parameter setting panel and determining the input value corresponding to the input operation as the switching duration corresponding to the target editable component. The switching duration is the duration corresponding to updating the skybox's sky background information from the current sky background information to the target sky background information. Specifically, the input value corresponding to the input operation can be determined based on the player's operation. For example, the input value can be 5 seconds or 10 seconds.

[0108] Step 33 : In response to the third setting operation on the parameter setting panel, determine the target sky background information corresponding to the target editable component.

[0109] During specific implementation, the specific operation of the second setting operation can be determined according to the player's operation.

[0110] In an optional embodiment, the target sky background information corresponding to the target editable component may be determined by the following steps 40-42:

[0111] Step 40 : In response to a triggering operation on an editable control corresponding to the target sky background information in the parameter setting panel, a custom background option and at least one preset sky background map are displayed in the parameter setting panel.

[0112] In specific implementation, the custom background option is used by players to set the target sky background information corresponding to the target editable component according to their own needs; the preset sky background map is a background map of a specified style provided by the system.

[0113] Step 41 : In response to a triggering operation on a first sky background map among at least one preset sky background map, target sky background information is determined based on the first sky background map.

[0114] The first sky background texture may be any one of the preset sky background textures, and the specific preset sky background texture of the first sky texture may be determined according to the player's operation. In a specific implementation, the first sky background texture may be determined as the target sky background information.

[0115] In an optional embodiment, a texture setting control may be displayed in a parameter setting panel in response to a triggering operation on a first sky background texture among at least one preset sky background texture. The texture setting control is used to set texture parameters of the first sky background texture. The texture parameters include at least one of the following: texture color, texture saturation, and texture transparency. In response to a setting operation on the texture setting control, the texture parameters of the first sky background texture are adjusted to obtain an adjusted first sky background texture. The adjusted first sky background texture is determined as the target sky background information. In this manner, players can adjust the selected sky background texture according to their needs, thereby quickly determining the target sky background information.

[0116] In an optional embodiment, in response to a trigger operation for a custom background option, a custom setting control may be displayed in the parameter setting panel; in response to a trigger operation for the custom setting control, multiple preset background parameters may be displayed in the parameter setting panel; in response to a setting operation for the multiple preset background parameters, multiple target background parameters may be obtained, and the multiple target background parameters may be determined as target sky background information. Specifically, the preset background parameters may include at least one of the following parameters: a first gradient color, a second gradient color, a gradient axis, an axis position, and a gradient contrast. When the target sky background information includes multiple target background parameters, a sky background including at least two gradient colors may be rendered according to the multiple target background parameters.

[0117] In an optional embodiment, in response to the triggering operation of the editable control corresponding to the target sky background information in the parameter setting panel, a no-transition-background option is displayed in the parameter setting panel; wherein, the no-transition-background option is used to indicate that the target editable component is invalid; in response to the triggering operation for the no-transition-background option, a pop-up window information is displayed in the graphical user interface; wherein, the pop-up window information is used to indicate that the function of applying the no-transition-background option will cause the target editable component to be invalid; in response to the confirmation operation for the pop-up window information, the target editable component is controlled to be invalid. In a specific implementation, if the no-transition-background option is triggered, the target editable component will not be able to switch to the sky background, and the target editable component will also be invalid at this time. The above pop-up window information can include the player's second confirmation of whether the no-transition-background option needs to be selected, and prompts the player of the phenomenon that occurs after the selection.

[0118] In a specific implementation, after a target editable component becomes invalid, a prompt message is displayed in the graphical user interface in response to a triggering operation on the target editable component. The prompt message indicates the reason for the invalidation of the target editable component and how to resolve the invalidation. Specifically, the invalidation reason may be that the option without a transition background is selected, and the resolution method may be that the target editable component is enabled only when the transition background is enabled.

[0119] In an optional embodiment, the parameter setting panel further includes a first interactive control; this first interactive control is used to preview the sky background switching effect corresponding to the target editable component in the game editing scene. Specifically, in response to a triggering operation on the first interactive control, the switching parameters set based on the target editable component are displayed in the graphical user interface. In the process of updating the sky box's sky background information from the current sky background information to the target sky background information set for the target editable component, the sky background of the game scene obtained by rendering the sky box's sky background information is used. In this method, players can use the preview function provided by the first interactive control to check whether the sky background switching effect meets their needs.

[0120] To facilitate understanding of the present disclosure, FIG7 illustrates a schematic diagram of a parameter setting panel provided by an embodiment of the present disclosure. The control corresponding to the sky background to be switched to in FIG7 is an editable control corresponding to the target sky background information. The "event that starts background switching" in FIG7 is the sky background switching event, and its corresponding editable control is the first editable control. Clicking the first editable control pops up a full keyboard. The "event that pauses background switching" is the sky background pause update event, and its corresponding editable control is the second editable control. Clicking the second editable control pops up a full keyboard, where players can enter the corresponding events for the sky background switching event and the sky background pause update event. Clicking the editable control corresponding to the background switching mode in FIG7 displays a drop-down list containing multiple preset switching modes. In FIG7 , the player selects the gradient switching mode. In FIG7 , the editable control corresponding to the background switching duration displays a numeric keypad. Clicking a number on the keypad allows players to set the background switching duration. In FIG7 , the background switching duration is set to 5 seconds. The sky background test control in FIG7 is also the first interactive control.

[0121] In an optional embodiment, the graphical user interface further displays a second interactive control for simulating a game scene and allowing the user to try out the game in the simulated game scene. Based on this, the method for switching the sky background in the above game can also be implemented through the following steps 50-55:

[0122] Step 50, in response to a trigger operation on the second interactive control, a game scene corresponding to the game editing scene is generated according to the editable components in the game editing scene, the game scene including a controlled virtual object corresponding to the terminal device and a virtual object generated according to the editable components and displayed with preset display parameters; wherein the preset display parameters include visible and invisible.

[0123] Step 51 : responding to a movement instruction for the controlled virtual object, controlling the controlled virtual object to move to a scene space corresponding to a target component, and determining whether a sky background switching event is satisfied.

[0124] Step 52: respond to the sky background switching event and determine the target sky background information and switching parameters corresponding to the sky background switching event.

[0125] Step 53, based on the switching parameters, updates the sky background information corresponding to the game scene from the current sky background information to the target sky background information, and dynamically displays the sky background of the dynamically changing game scene rendered in the process of updating the sky background information in the graphical user interface, wherein the process of updating the sky background information is the process of updating the sky background information corresponding to the game scene from the current sky background information to the target sky background information.

[0126] Step 54 , in the process of updating the sky background information, responding to a movement instruction for the controlled virtual object, controlling the controlled virtual object to separate from the scene space corresponding to the target component, and determining that a sky background update pause event is satisfied.

[0127] Step 55, responding to the sky background update pause event, suspending the process of updating the sky background information, and continuously displaying the sky background of the game scene rendered according to the sky background information corresponding to the sky background update pause event in the graphical user interface.

[0128] In the above method, players can try out the game in the generated game scene corresponding to the game editing scene; at the same time, when trying out the game, they can trigger the sky background switching event to display the sky background of the game scene rendered in the process of updating the current sky background information to the target sky background information, so that players can further determine whether the set sky background switching effect meets their own needs.

[0129] In an optional embodiment, the graphical user interface further displays a third interactive control, which controls the generation of game scene information corresponding to the game editing scene in response to a touch operation on the third interactive control; wherein the game scene information includes component information of an edited component in the game editing scene, and the edited component is an editing component that responds to the editing operation among multiple editable components in the editing window; and controls the transmission of the game scene information to a server; wherein the server is configured to communicate with a terminal device, the terminal device is configured with a game program, and the first terminal device is configured to obtain the game scene information from the server and generate a corresponding game scene according to the game scene information through the game program. The terminal device can be a terminal device that touches the third interactive control, or another terminal device that is communicatively connected to the server.

[0130] After the third interactive control is triggered by the terminal device, the game scene information corresponding to the game editing scene can be generated, and the game scene information can be saved in a preset location, which can be a map file. The map file can not only save the game scene information, but also save other map information (including but not limited to screenshots, map names, logs and other information). After the map file saves the game scene information, it will be uploaded to the server. After the server reviews it, the game scene generated by the game scene information can be published in the preset map pool, so that the terminal device connected to the server can download the corresponding game scene information from the server, and generate the corresponding game scene according to the game scene information through the game program, and then experience the game in the game scene. This method can publish the game scene information in the game editor and be experienced by other players, thereby realizing a fast UGC function.

[0131] In accordance with the above method embodiment, the present disclosure also provides a device for switching the sky background in a game, which provides a graphical user interface through a terminal device; and displays a game editing scene provided by a running game program in the graphical user interface, as shown in FIG8 . The device includes:

[0132] An editing window display module 80 is used to display an editing window in a graphical user interface, wherein the editing window includes a plurality of editable components;

[0133] The component editing module 81 is configured to respond to an editing operation on a target editable component and determine a switching condition, switching parameters, and target sky background information for the target editable component; wherein the switching parameters include a switching method and / or a switching duration; the target editable component is a component among multiple editable components; and the switching condition is configured to trigger the start or pause of updating the sky background information of the skybox of the game editing scene;

[0134] The background switching module 82 is used to update the sky background information of the sky box from the current sky background information to the target sky background information according to the switching parameters corresponding to the target editable component, and dynamically display the sky background of the game scene rendered during the information switching process of updating the sky box in the graphical user interface.

[0135] In the sky background switching device in the above-mentioned game, players can freely set the sky background switching related parameters in the game editing scene, which enriches the performance of the sky background switching. Players can also realize the sky background switching during the game, which helps to improve the player's gaming experience.

[0136] In a specific implementation, the above-mentioned device also includes a component selection module, which is used to: respond to a selection operation on a target editable component, and control the generation of a virtual object corresponding to the target editable component in the game editing scene; wherein the virtual object is configured to be displayed with preset display parameters.

[0137] In a specific implementation, a setting control is displayed in the above-mentioned graphical user interface; the above-mentioned component editing module 81 is used to: respond to a trigger operation on the setting control, and display a parameter setting panel corresponding to the target editable component in the editing window; wherein the parameter setting panel includes a plurality of editable controls; the editable controls are used to set the switching conditions, switching parameters and target sky background information of the target editable component; in response to a first setting operation on the parameter setting panel, determine the switching conditions corresponding to the target editable component; in response to a second setting parameter on the parameter setting panel, determine the switching parameter corresponding to the target editable component; in response to a third setting operation on the parameter setting panel, determine the target sky background information corresponding to the target editable component.

[0138] In this way, players can freely set the sky background switching events, sky switching parameters and target sky background information corresponding to the target editable components in the game editing scene, thereby enriching the performance of sky background switching and helping to improve the player's gaming experience.

[0139] In specific implementation, the above-mentioned switching conditions include: a sky background switching event in which the target editable component starts background switching, and a sky background pause update event in which the target editable component pauses background switching; the parameter setting panel includes: a first editable control for setting the sky background switching event, and a second editable control for setting the sky background pause update event; the above-mentioned component editing module 81 is also used to: respond to a first input operation for the first editable control, and set the sky background switching event corresponding to the target editable component according to the first input operation; respond to a second input operation for the second editable control, and set the sky background pause update event corresponding to the target editable component according to the second input operation.

[0140] In an optional embodiment, the above-mentioned first input operation includes: setting a target component associated with the target editable component, and setting the sky background switching event to: the controlled virtual object controlled by the terminal device moves to the scene space determined by the target component; the second input operation sets the sky background pause update event to: the controlled virtual object moves out of the scene space determined by the target component.

[0141] In the above method, players can switch and pause the sky background by controlling the movement of the controlled virtual object into the scene space determined by the target component and controlling the movement of the controlled virtual object out of the scene space determined by the target component, which enriches the gameplay and helps improve the player's gaming experience. In another optional embodiment, the first input operation includes: setting a switch control in the graphical user interface and setting the sky background switch event to trigger the switch control; the second input operation includes: setting a pause control in the graphical user interface and setting the sky background pause update event to trigger the pause control.

[0142] In the above method, players can trigger the sky background switching event and the sky background pause update event respectively through the switch control and pause control displayed in the graphical user interface, which is convenient for players to operate and enriches the gameplay, helping to improve the player's gaming experience.

[0143] Furthermore, the above-mentioned switching parameters include switching methods; the above-mentioned component editing module 81 is also used to: respond to a click operation on the editable control corresponding to the switching method in the parameter setting panel, and display multiple preset switching methods in the parameter setting panel, different switching methods correspond to different methods for determining the pixel points to be updated of the sky background information of the sky box, wherein the sky background information includes multiple pixel points; respond to a trigger operation on a target switching method among multiple preset switching methods, and determine the target switching method as the switching method corresponding to the target editable component.

[0144] In this method, players can freely set the switching method of the game screen in the parameter setting panel, and the sky background information of the sky box corresponding to different switching methods has different pixels to be updated, thereby enriching the performance of the sky background switching and helping to improve the player's gaming experience.

[0145] In a specific implementation, the above-mentioned target switching mode includes a first switching mode; the above-mentioned device also includes an effect setting module, which is used to: respond to the trigger operation of the target switching mode among multiple preset switching modes, and display the transition setting control corresponding to the target switching mode in the parameter setting panel; wherein the transition setting control is used to set the transition effect of the connecting part between the to-be-updated pixel points and the unupdated pixel points of the sky background information of the sky box; in response to the setting operation of the transition setting control, determine the transition effect corresponding to the target switching mode, and determine the target switching mode and the switching transition effect corresponding to the target switching mode as the switching mode corresponding to the target editable component.

[0146] In actual applications, the above-mentioned switching parameters include switching duration; the above-mentioned component editing module 81 is also used to: respond to the input operation for the switching duration in the parameter setting panel, and determine the input value corresponding to the input operation as the switching duration corresponding to the target editable component; wherein the switching duration is the duration corresponding to updating the sky background information of the sky box from the current sky background information to the target sky background information.

[0147] The sky background switching method in the above-mentioned game can trigger a sky background switching event when the player is playing the game, and dynamically update the sky background information corresponding to the game scene to the target sky background information according to the switching method and switching duration corresponding to the sky background switching event, and dynamically display the sky background of the dynamically changing game scene rendered based on the dynamically updated sky background information in the graphical user interface, thereby enriching the performance of the sky background switching and helping to improve the player's gaming experience. Furthermore, the above-mentioned component editing module 81 is also used to: respond to the triggering operation of the editable control corresponding to the target sky background information in the parameter setting panel, display the custom background option and at least one preset sky background map in the parameter setting panel; respond to the triggering operation of the first sky background map in the at least one preset sky background map, and determine the target sky background information based on the first sky background map.

[0148] In a specific implementation, the component editing module 81 is further configured to: respond to a triggering operation on a first sky background map in at least one preset sky background map, and determine the first sky background map as the target sky background information.

[0149] In this method, the custom background option allows players to customize the target background parameters, thereby improving their game participation and experience, as well as the flexibility of the sky background in the game scene. At the same time, determining the target sky background information based on multiple preset background parameters can make setting parameters more intuitive.

[0150] Furthermore, the above-mentioned component editing module 81 is also used to: respond to a triggering operation on a first sky background map in at least one preset sky background map, and display a map setting control in a parameter setting panel; wherein the map setting control is used to set the map parameters of the first sky background map; the map parameters include at least one of the following: map color, map saturation and map transparency; in response to a setting operation on the map setting control, adjust the map parameters of the first sky background map to obtain an adjusted first sky background map; and determine the adjusted first sky background map as the target sky background information.

[0151] The texture parameters of the first sky background texture are adjusted and customized through the texture setting controls in the parameter setting panel to improve the flexibility and richness of the target sky background information and enhance the player's sense of game participation.

[0152] In a specific implementation, the above-mentioned component editing module 81 is also used to: respond to a trigger operation for a custom background option, and display a custom setting control in the parameter setting panel; respond to a trigger operation for a custom setting control, and display multiple preset background parameters in the parameter setting panel; respond to a setting operation for multiple preset background parameters, and obtain multiple target background parameters, and determine the multiple target background parameters as target sky background information.

[0153] In a specific implementation, the above-mentioned preset background parameters include at least one of the following parameters: a first gradient color, a second gradient color, a gradient axis, an axis position, and a gradient contrast.

[0154] The custom background option allows players to customize target background parameters, enhancing their gaming experience and providing flexibility in setting sky backgrounds. Determining target sky background information based on multiple preset background parameters also makes setting parameters more intuitive.

[0155] Furthermore, the above-mentioned device also includes a no-transition module, which is used to: respond to the triggering operation of the editable control corresponding to the target sky background information in the parameter setting panel, and display the no-transition background option in the parameter setting panel; wherein the no-transition background option is used to indicate that the target editable component is invalid; respond to the triggering operation of the no-transition background option, and display pop-up information in the graphical user interface; wherein the pop-up information is used to indicate that the function of applying the no-transition background option will cause the target editable component to become invalid; respond to the confirmation operation of the pop-up information, and control the target editable component to become invalid.

[0156] Players can disable the target editable component by controlling the no transition background option displayed in the parameter setting panel. At this time, the target editable component will not be able to switch the sky background. This method can prevent players from operating it incorrectly.

[0157] Furthermore, the above-mentioned device also includes an information prompt module, which is used to: after responding to the confirmation operation of the pop-up information and controlling the invalidation of the target editable component, respond to the trigger operation of the target editable component and display prompt information in the graphical user interface; wherein the prompt information is used to indicate: the reason for the invalidation of the target editable component and the method to resolve the invalidation.

[0158] The prompt information displayed in the graphical user interface can indicate to the player the reason why the target editable component is invalid and the method to resolve the invalidation, so that the player can perform the operation to resolve the invalidation according to the instruction information.

[0159] Furthermore, the above-mentioned parameter setting panel also includes a first interactive control; the above-mentioned device also includes a first interactive module, which is used to: respond to the trigger operation of the first interactive control, display the switching parameters set based on the target editable component in the graphical user interface, and in the process of updating the sky background information of the sky box from the current sky background information to the target sky background information set by the target editable component, render the sky background information of the sky box to obtain the sky background of the game scene.

[0160] In this method, the player uses the preview function provided by the first interactive control to check whether the sky background switching effect meets his or her needs.

[0161] Furthermore, the above-mentioned device also includes a second interaction module, which is used to: respond to a trigger operation for a second interactive control, generate a game scene corresponding to the game editing scene according to the editable components in the game editing scene, the game scene including a controlled virtual object corresponding to the terminal device and a virtual object generated according to the editable components and displayed with preset display parameters; wherein the preset display parameters include visible and invisible; respond to a movement instruction for the controlled virtual object, control the controlled virtual object to move to the scene space corresponding to the target component, and determine whether a sky background switching event is satisfied; respond to the sky background switching event, determine the target sky background information and switching parameters corresponding to the sky background switching event; based on the switching parameters, change the sky background information corresponding to the game scene from the current sky background information to the target sky background information. The new target sky background information is dynamically displayed in the graphical user interface, and the sky background of the dynamically changing game scene rendered in the process of updating the sky background information is dynamically displayed in the graphical user interface, wherein the process of updating the sky background information is the process of updating the sky background information corresponding to the game scene from the current sky background information to the target sky background information; in the process of updating the sky background information, responding to the movement instructions for the controlled virtual object, controlling the separation of the scene space corresponding to the controlled virtual object and the target component, and determining that the sky background pause update event is satisfied; responding to the sky background pause update event, suspending the process of updating the sky background information, and continuously displaying the sky background of the game scene rendered according to the corresponding sky background information when responding to the sky background pause update event in the graphical user interface.

[0162] In the above method, players can try out the game in the generated game scene corresponding to the game editing scene; at the same time, when trying out the game, they can trigger the sky background switching event to display the sky background of the game scene rendered in the process of updating the current sky background information to the target sky background information, so that players can further determine whether the set sky background switching effect meets their own needs.

[0163] Furthermore, the above-mentioned second interactive module is also used to: determine, based on the switching duration, the change parameters of the sky background information corresponding to the unit time in the process of updating the current sky background information corresponding to the game scene to the target sky background information; dynamically update the sky background information corresponding to the game scene in chronological order according to the change parameters of the sky background information corresponding to the unit time, the current sky background information and the target sky background information; and dynamically display in the graphical user interface the sky background of the dynamically changing game scene rendered based on the dynamically updated sky background information.

[0164] The sky background switching method in the above-mentioned game can trigger a sky background switching event when the player is playing the game, and dynamically update the sky background information corresponding to the game scene to the target sky background information according to the switching method and switching duration corresponding to the sky background switching event, and dynamically display the dynamically changing sky background of the game scene rendered based on the dynamically updated sky background information in the graphical user interface. This method enriches the performance of the sky background switching and helps to improve the player's gaming experience.

[0165] Furthermore, the above-mentioned device also includes a third interactive module, which is used to: respond to touch operations on the third interactive control, control the generation of game scene information corresponding to the game editing scene; wherein the game scene information includes component information of the edited components in the game editing scene, and the edited components are editing components that respond to editing operations among multiple editable components in the editing window; control the transmission of the game scene information to the server; wherein the server is configured to communicate with the first terminal device, the first terminal device is configured with a game program, and the first terminal device is configured to obtain game scene information from the server, and generate a corresponding game scene according to the game scene information through the game program.

[0166] This method can publish the game scene information in the game editor and allow other players to experience it, thereby realizing a fast UGC function.

[0167] The sky background switching device in the game provided by the embodiment of the present disclosure has the same implementation principle and technical effects as those of the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the device embodiment, reference can be made to the corresponding content in the aforementioned method embodiment.

[0168] An embodiment of the present disclosure also provides an electronic device, as shown in FIG9 , which includes a processor and a memory, wherein the memory stores machine-executable instructions that can be executed by the processor, and the processor executes the machine-executable instructions to implement the sky background switching method in the above-mentioned game.

[0169] Specifically, a graphical user interface is provided through a terminal device, and a game editing scene provided by a running game program is displayed in the graphical user interface. The sky background switching method in the game includes: displaying an editing window in the graphical user interface, wherein the editing window includes multiple editable components; responding to an editing operation on a target editable component, determining a switching condition, switching parameters and target sky background information of the target editable component; wherein the switching parameters include a switching mode and / or a switching duration, the target editable component is a component among multiple editable components, and the switching condition is configured to trigger the start or pause of updating the sky background information of the sky box of the game editing scene; according to the switching parameters corresponding to the target editable component, the sky background information of the sky box is updated from the current sky background information to the target sky background information, and dynamically displaying the sky background of the game scene rendered during the information switching process of updating the sky box in the graphical user interface.

[0170] In the sky background switching method in the above game, players can freely set the sky background switching related parameters in the game editing scene, which enriches the performance of the sky background switching. Players can also realize the sky background switching during the game, which helps to improve the player's gaming experience.

[0171] In an optional embodiment, the above method further includes: in response to a selection operation on a target editable component, controlling the generation of a virtual object corresponding to the target editable component in the game editing scene; wherein the virtual object is configured to be displayed with preset display parameters.

[0172] In an optional embodiment, a setting control is displayed in the above-mentioned graphical user interface; the above-mentioned step of determining the switching conditions, switching parameters and target sky background information of the target editable component in response to the editing operation on the target editable component includes: responding to the trigger operation on the setting control, displaying the parameter setting panel corresponding to the target editable component in the editing window; wherein the parameter setting panel includes a plurality of editable controls; the editable controls are used to set the switching conditions, switching parameters and target sky background information of the target editable component; responding to the first setting operation on the parameter setting panel, determining the switching conditions corresponding to the target editable component; responding to the second setting parameters on the parameter setting panel, determining the switching parameters corresponding to the target editable component; responding to the third setting operation on the parameter setting panel, determining the target sky background information corresponding to the target editable component.

[0173] In this way, players can freely set the sky background switching events, sky switching parameters and target sky background information corresponding to the target editable components in the game editing scene, thereby enriching the performance of sky background switching and helping to improve the player's gaming experience.

[0174] In an optional embodiment, the above-mentioned switching conditions include: a sky background switching event in which the target editable component starts background switching, and a sky background pause update event in which the target editable component pauses background switching; the parameter setting panel includes: a first editable control for setting the sky background switching event, and a second editable control for setting the sky background pause update event; the above-mentioned step of determining the switching condition corresponding to the target editable component in response to the first setting operation on the parameter setting panel includes: responding to the first input operation on the first editable control, setting the sky background switching event corresponding to the target editable component according to the first input operation; responding to the second input operation on the second editable control, setting the sky background pause update event corresponding to the target editable component according to the second input operation.

[0175] In an optional embodiment, the above-mentioned first input operation includes: setting a target component associated with the target editable component, and setting the sky background switching event to: the controlled virtual object controlled by the terminal device moves to the scene space determined by the target component; the second input operation sets the sky background pause update event to: the controlled virtual object moves out of the scene space determined by the target component.

[0176] In the above method, players can switch and pause the sky background by controlling the movement of the controlled virtual object to the scene space determined by the target component and controlling the movement of the controlled virtual object out of the scene space determined by the target component, which enriches the gameplay and helps to improve the player's gaming experience.

[0177] In an optional embodiment, the above-mentioned first input operation includes: setting a switch control in the graphical user interface, and setting the sky background switch event to trigger the switch control; the second input operation includes: setting a pause control in the graphical user interface, and setting the sky background pause update event to trigger the pause control.

[0178] In the above method, players can trigger the sky background switching event and the sky background pause update event respectively through the switch control and pause control displayed in the graphical user interface, which is convenient for players to operate and enriches the gameplay, helping to improve the player's gaming experience.

[0179] In an optional embodiment, the above-mentioned switching parameters include a switching method; the above-mentioned step of determining the switching parameters corresponding to the target editable component in response to the second setting parameter of the parameter setting panel includes: responding to a click operation of the editable control corresponding to the switching method in the parameter setting panel, displaying multiple preset switching methods in the parameter setting panel, different switching methods corresponding to different methods for determining the pixel points to be updated of the sky background information of the sky box, wherein the sky background information includes multiple pixel points; responding to a trigger operation for a target switching method among the multiple preset switching methods, determining the target switching method as the switching method corresponding to the target editable component.

[0180] In this method, players can freely set the switching method of the game screen in the parameter setting panel, and the sky background information of the sky box corresponding to different switching methods has different pixels to be updated, thereby enriching the performance of the sky background switching and helping to improve the player's gaming experience.

[0181] In an optional embodiment, the above-mentioned target switching mode includes a first switching mode; the above-mentioned method also includes: in response to a trigger operation for a target switching mode among multiple preset switching modes, displaying a transition setting control corresponding to the target switching mode in a parameter setting panel; wherein the transition setting control is used to set the transition effect of the connecting part between the to-be-updated pixel points and the unupdated pixel points of the sky background information of the sky box; in response to a setting operation for the transition setting control, determining the transition effect corresponding to the target switching mode, and determining the target switching mode and the switching transition effect corresponding to the target switching mode as the switching mode corresponding to the target editable component.

[0182] In an optional embodiment, the above-mentioned switching parameters include switching duration; the above-mentioned step of determining the switching parameters corresponding to the target editable component in response to the second setting parameter of the parameter setting panel includes: responding to the input operation for the switching duration in the parameter setting panel, and determining the input value corresponding to the input operation as the switching duration corresponding to the target editable component; wherein the switching duration is the duration corresponding to updating the sky background information of the sky box from the current sky background information to the target sky background information.

[0183] The sky background switching method in the above-mentioned game can trigger a sky background switching event when the player is playing the game, and dynamically update the sky background information corresponding to the game scene to the target sky background information according to the switching method and switching duration corresponding to the sky background switching event, and dynamically display the dynamically changing sky background of the game scene rendered based on the dynamically updated sky background information in the graphical user interface. This method enriches the performance of the sky background switching and helps to improve the player's gaming experience.

[0184] In an optional embodiment, the above-mentioned step of determining the target sky background information corresponding to the target editable component in response to the third setting operation on the parameter setting panel includes: responding to the triggering operation of the editable control corresponding to the target sky background information in the parameter setting panel, displaying the custom background option and at least one preset sky background map in the parameter setting panel; responding to the triggering operation of the first sky background map in at least one preset sky background map, determining the target sky background information based on the first sky background map.

[0185] In an optional embodiment, the above-mentioned step of responding to a trigger operation on a first sky background map in at least one preset sky background map and determining the target sky background information based on the first sky background map includes: responding to a trigger operation on a first sky background map in at least one preset sky background map, and determining the first sky background map as the target sky background information.

[0186] In this method, the custom background option allows players to customize the target background parameters, thereby improving their game participation and experience, as well as the flexibility of the sky background in the game scene. At the same time, determining the target sky background information based on multiple preset background parameters can make setting parameters more intuitive.

[0187] In an optional embodiment, the above-mentioned step of responding to a trigger operation on a first sky background map in at least one preset sky background map and determining the target sky background information based on the first sky background map includes: responding to a trigger operation on a first sky background map in at least one preset sky background map, displaying a map setting control in a parameter setting panel; wherein the map setting control is used to set map parameters of the first sky background map; the map parameters include at least one of the following: map color, map saturation and map transparency; in response to a setting operation on the map setting control, adjusting the map parameters of the first sky background map to obtain an adjusted first sky background map; and determining the adjusted first sky background map as the target sky background information.

[0188] The texture parameters of the first sky background texture are adjusted and customized through the texture setting controls in the parameter setting panel to improve the flexibility and richness of the target sky background information and enhance the player's sense of game participation.

[0189] In an optional embodiment, after the above-mentioned step of displaying a custom background option and at least one preset sky background map in the parameter setting panel in response to a triggering operation on an editable control corresponding to the target sky background information in the parameter setting panel, the above-mentioned method further includes: displaying a custom setting control in the parameter setting panel in response to a triggering operation on the custom background option; displaying multiple preset background parameters in the parameter setting panel in response to a triggering operation on the custom setting control; obtaining multiple target background parameters in response to a setting operation on multiple preset background parameters, and determining the multiple target background parameters as the target sky background information.

[0190] In an optional embodiment, the preset background parameters include at least one of the following parameters: a first gradient color, a second gradient color, a gradient axis, an axis position, and a gradient contrast.

[0191] The custom background option allows players to customize target background parameters, enhancing their gaming experience and providing flexibility in setting sky backgrounds. Determining target sky background information based on multiple preset background parameters also makes setting parameters more intuitive.

[0192] In an optional embodiment, the above method also includes: responding to a trigger operation on an editable control corresponding to the target sky background information in the parameter setting panel, displaying a no transition background option in the parameter setting panel; wherein the no transition background option is used to indicate that the target editable component is invalid; responding to a trigger operation on the no transition background option, displaying pop-up information in a graphical user interface; wherein the pop-up information is used to indicate that the function of applying the no transition background option will cause the target editable component to be invalid; responding to a confirmation operation on the pop-up information, controlling the target editable component to be invalid.

[0193] Players can disable the target editable component by controlling the no transition background option displayed in the parameter setting panel. At this time, the target editable component will not be able to switch the sky background. This method can prevent players from operating it incorrectly.

[0194] In an optional embodiment, after the above-mentioned step of responding to the confirmation operation on the pop-up information and controlling the invalidation of the target editable component, the above-mentioned method further includes: responding to the trigger operation on the target editable component and displaying prompt information in the graphical user interface; wherein the prompt information is used to indicate: the reason for the invalidation of the target editable component and the method for resolving the invalidation.

[0195] The prompt information displayed in the graphical user interface can indicate to the player the reason why the target editable component is invalid and the method to resolve the invalidation, so that the player can perform the operation to resolve the invalidation according to the instruction information.

[0196] In an optional embodiment, the parameter setting panel also includes a first interactive control; the method also includes: responding to a trigger operation on the first interactive control, displaying switching parameters based on the target editable component setting in the graphical user interface, and in the process of updating the sky background information of the sky box from the current sky background information to the target sky background information set by the target editable component, rendering the sky background information of the sky box to obtain the sky background of the game scene.

[0197] In this method, the player uses the preview function provided by the first interactive control to check whether the sky background switching effect meets his or her needs.

[0198] In an optional embodiment, the above method also includes: responding to a trigger operation for a second interactive control, generating a game scene corresponding to the game editing scene according to the editable component in the game editing scene, the game scene including a controlled virtual object corresponding to the terminal device and a virtual object generated according to the editable component and displayed with preset display parameters; wherein the preset display parameters include visible and invisible; responding to a movement instruction for the controlled virtual object, controlling the controlled virtual object to move to the scene space corresponding to the target component, and determining that a sky background switching event is satisfied; responding to the sky background switching event, determining the target sky background information and switching parameters corresponding to the sky background switching event; based on the switching parameters, updating the sky background information corresponding to the game scene from the current sky background information to the target sky background information. Mark the sky background information, and dynamically display in the graphical user interface the sky background of the dynamically changing game scene rendered in the process of updating the sky background information, wherein the process of updating the sky background information is the process of updating the sky background information corresponding to the game scene from the current sky background information to the target sky background information; in the process of updating the sky background information, respond to the movement instructions for the controlled virtual object, control the controlled virtual object and the scene space corresponding to the target component to separate, and determine that the sky background pause update event is satisfied; respond to the sky background pause update event, suspend the process of updating the sky background information, and continuously display in the graphical user interface the sky background of the game scene rendered according to the corresponding sky background information when responding to the sky background pause update event.

[0199] In the above method, players can try out the game in the generated game scene corresponding to the game editing scene; at the same time, when trying out the game, they can trigger the sky background switching event to display the sky background of the game scene rendered in the process of updating the current sky background information to the target sky background information, so that players can further determine whether the set sky background switching effect meets their own needs.

[0200] In an optional embodiment, the above-mentioned switching parameters include switching duration; based on the switching parameters, the sky background information corresponding to the game scene is updated from the current sky background information to the target sky background information, and dynamically displayed in the graphical user interface, the step of rendering the dynamically changing sky background of the game scene in the process of updating the sky background information, including: according to the switching duration, determining the change parameters of the sky background information corresponding to the unit time in the process of updating the current sky background information corresponding to the game scene to the target sky background information; dynamically updating the sky background information corresponding to the game scene in chronological order according to the change parameters of the sky background information corresponding to the unit time, the current sky background information and the target sky background information; dynamically displaying in the graphical user interface the sky background of the dynamically changing game scene rendered based on the dynamically updated sky background information.

[0201] The sky background switching method in the above-mentioned game can trigger a sky background switching event when the player is playing the game, and dynamically update the sky background information corresponding to the game scene to the target sky background information according to the switching method and switching duration corresponding to the sky background switching event, and dynamically display the dynamically changing sky background of the game scene rendered based on the dynamically updated sky background information in the graphical user interface. This method enriches the performance of the sky background switching and helps to improve the player's gaming experience.

[0202] In an optional embodiment, the above method also includes: responding to a touch operation on a third interactive control, controlling the generation of game scene information corresponding to the game editing scene; wherein the game scene information includes component information of the edited component in the game editing scene, and the edited component is an editing component that responds to the editing operation among multiple editable components in the editing window; controlling the transmission of the game scene information to the server; wherein the server is configured to be communicatively connected with the first terminal device, the first terminal device is configured with a game program, and the first terminal device is configured to obtain the game scene information from the server, and generate a corresponding game scene according to the game scene information through the game program.

[0203] This method can publish the game scene information in the game editor and allow other players to experience it, thereby realizing a fast UGC function.

[0204] Furthermore, the electronic device shown in FIG9 further includes a bus 102 and a communication interface 103 , and the processor 101 , the communication interface 103 and the memory 100 are connected via the bus 102 .

[0205] Memory 100 may include high-speed random access memory (RAM) and may also include non-volatile memory, such as at least one disk storage device. Communication between the system network element and at least one other network element is achieved through at least one communication interface 103 (which may be wired or wireless), and may utilize the Internet, a wide area network, a local area network, a metropolitan area network, etc. Bus 102 may be an ISA bus, a PCI bus, or an EISA bus. The bus may be classified as an address bus, a data bus, a control bus, etc. For ease of illustration, FIG9 shows only one bidirectional arrow, but this does not indicate that there is only one bus or only one type of bus.

[0206] The processor 101 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by an integrated logic circuit of hardware in the processor 101 or by instructions in the form of software. The above-mentioned processor 101 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, or discrete hardware components. The various methods, steps, and logic block diagrams disclosed in the embodiments of the present disclosure can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present disclosure can be directly embodied as being executed by a hardware decoding processor, or can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium well-known in the art, such as a random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or register. The storage medium is located in the memory 100, and the processor 101 reads the information in the memory 100 and, in conjunction with its hardware, completes the steps of the method of the aforementioned embodiment.

[0207] The embodiment of the present disclosure also provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by the processor, the computer-executable instructions prompt the processor to implement the sky background switching method in the above-mentioned game. The specific implementation can be found in the method embodiment, which will not be repeated here.

[0208] Specifically, a graphical user interface is provided through a terminal device, and a game editing scene provided by a running game program is displayed in the graphical user interface. The sky background switching method in the game includes: displaying an editing window in the graphical user interface, wherein the editing window includes multiple editable components; responding to an editing operation on a target editable component, determining a switching condition, switching parameters and target sky background information of the target editable component; wherein the switching parameters include a switching mode and / or a switching duration, the target editable component is a component among multiple editable components, and the switching condition is configured to trigger the start or pause of updating the sky background information of the sky box of the game editing scene; according to the switching parameters corresponding to the target editable component, the sky background information of the sky box is updated from the current sky background information to the target sky background information, and dynamically displaying the sky background of the game scene rendered during the information switching process of updating the sky box in the graphical user interface.

[0209] In the sky background switching method in the above game, players can freely set the sky background switching related parameters in the game editing scene, which enriches the performance of the sky background switching. Players can also realize the sky background switching during the game, which helps to improve the player's gaming experience.

[0210] In an optional embodiment, the above method further includes: in response to a selection operation on a target editable component, controlling the generation of a virtual object corresponding to the target editable component in the game editing scene; wherein the virtual object is configured to be displayed with preset display parameters.

[0211] In an optional embodiment, a setting control is displayed in the above-mentioned graphical user interface; the above-mentioned step of determining the switching conditions, switching parameters and target sky background information of the target editable component in response to the editing operation on the target editable component includes: responding to the trigger operation on the setting control, displaying the parameter setting panel corresponding to the target editable component in the editing window; wherein the parameter setting panel includes a plurality of editable controls; the editable controls are used to set the switching conditions, switching parameters and target sky background information of the target editable component; responding to the first setting operation on the parameter setting panel, determining the switching conditions corresponding to the target editable component; responding to the second setting parameters on the parameter setting panel, determining the switching parameters corresponding to the target editable component; responding to the third setting operation on the parameter setting panel, determining the target sky background information corresponding to the target editable component.

[0212] In this way, players can freely set the sky background switching events, sky switching parameters and target sky background information corresponding to the target editable components in the game editing scene, thereby enriching the performance of sky background switching and helping to improve the player's gaming experience.

[0213] In an optional embodiment, the above-mentioned switching conditions include: a sky background switching event in which the target editable component starts background switching, and a sky background pause update event in which the target editable component pauses background switching; the parameter setting panel includes: a first editable control for setting the sky background switching event, and a second editable control for setting the sky background pause update event; the above-mentioned step of determining the switching condition corresponding to the target editable component in response to the first setting operation on the parameter setting panel includes: responding to the first input operation on the first editable control, setting the sky background switching event corresponding to the target editable component according to the first input operation; responding to the second input operation on the second editable control, setting the sky background pause update event corresponding to the target editable component according to the second input operation.

[0214] In an optional embodiment, the above-mentioned first input operation includes: setting a target component associated with the target editable component, and setting the sky background switching event to: the controlled virtual object controlled by the terminal device moves to the scene space determined by the target component; the second input operation sets the sky background pause update event to: the controlled virtual object moves out of the scene space determined by the target component.

[0215] In the above method, players can switch and pause the sky background by controlling the movement of the controlled virtual object to the scene space determined by the target component and controlling the movement of the controlled virtual object out of the scene space determined by the target component, which enriches the gameplay and helps to improve the player's gaming experience.

[0216] In an optional embodiment, the above-mentioned first input operation includes: setting a switch control in the graphical user interface, and setting the sky background switch event to trigger the switch control; the second input operation includes: setting a pause control in the graphical user interface, and setting the sky background pause update event to trigger the pause control.

[0217] In the above method, players can trigger the sky background switching event and the sky background pause update event respectively through the switch control and pause control displayed in the graphical user interface, which is convenient for players to operate and enriches the gameplay, helping to improve the player's gaming experience.

[0218] In an optional embodiment, the above-mentioned switching parameters include a switching method; the above-mentioned step of determining the switching parameters corresponding to the target editable component in response to the second setting parameter of the parameter setting panel includes: responding to a click operation of the editable control corresponding to the switching method in the parameter setting panel, displaying multiple preset switching methods in the parameter setting panel, different switching methods corresponding to different methods for determining the pixel points to be updated of the sky background information of the sky box, wherein the sky background information includes multiple pixel points; responding to a trigger operation for a target switching method among the multiple preset switching methods, determining the target switching method as the switching method corresponding to the target editable component.

[0219] In this method, players can freely set the switching method of the game screen in the parameter setting panel, and the sky background information of the sky box corresponding to different switching methods has different pixels to be updated, thereby enriching the performance of the sky background switching and helping to improve the player's gaming experience.

[0220] In an optional embodiment, the above-mentioned target switching mode includes a first switching mode; the above-mentioned method also includes: in response to a trigger operation for a target switching mode among multiple preset switching modes, displaying a transition setting control corresponding to the target switching mode in a parameter setting panel; wherein the transition setting control is used to set the transition effect of the connecting part between the to-be-updated pixel points and the unupdated pixel points of the sky background information of the sky box; in response to a setting operation for the transition setting control, determining the transition effect corresponding to the target switching mode, and determining the target switching mode and the switching transition effect corresponding to the target switching mode as the switching mode corresponding to the target editable component.

[0221] In an optional embodiment, the above-mentioned switching parameters include switching duration; the above-mentioned step of determining the switching parameters corresponding to the target editable component in response to the second setting parameter of the parameter setting panel includes: responding to the input operation for the switching duration in the parameter setting panel, and determining the input value corresponding to the input operation as the switching duration corresponding to the target editable component; wherein the switching duration is the duration corresponding to updating the sky background information of the sky box from the current sky background information to the target sky background information.

[0222] The sky background switching method in the above-mentioned game can trigger a sky background switching event when the player is playing the game, and dynamically update the sky background information corresponding to the game scene to the target sky background information according to the switching method and switching duration corresponding to the sky background switching event, and dynamically display the dynamically changing sky background of the game scene rendered based on the dynamically updated sky background information in the graphical user interface. This method enriches the performance of the sky background switching and helps to improve the player's gaming experience.

[0223] In an optional embodiment, the above-mentioned step of determining the target sky background information corresponding to the target editable component in response to the third setting operation on the parameter setting panel includes: responding to the triggering operation of the editable control corresponding to the target sky background information in the parameter setting panel, displaying the custom background option and at least one preset sky background map in the parameter setting panel; responding to the triggering operation of the first sky background map in at least one preset sky background map, determining the target sky background information based on the first sky background map.

[0224] In an optional embodiment, the above-mentioned step of responding to a trigger operation on a first sky background map in at least one preset sky background map and determining the target sky background information based on the first sky background map includes: responding to a trigger operation on a first sky background map in at least one preset sky background map, and determining the first sky background map as the target sky background information.

[0225] In this method, the custom background option allows players to customize the target background parameters, thereby improving their game participation and experience, as well as the flexibility of the sky background in the game scene. At the same time, determining the target sky background information based on multiple preset background parameters can make setting parameters more intuitive.

[0226] In an optional embodiment, the above-mentioned step of responding to a trigger operation on a first sky background map in at least one preset sky background map and determining the target sky background information based on the first sky background map includes: responding to a trigger operation on a first sky background map in at least one preset sky background map, displaying a map setting control in a parameter setting panel; wherein the map setting control is used to set map parameters of the first sky background map; the map parameters include at least one of the following: map color, map saturation and map transparency; in response to a setting operation on the map setting control, adjusting the map parameters of the first sky background map to obtain an adjusted first sky background map; and determining the adjusted first sky background map as the target sky background information.

[0227] The texture parameters of the first sky background texture are adjusted and customized through the texture setting controls in the parameter setting panel to improve the flexibility and richness of the target sky background information and also enhance the player's sense of participation in the game. In an optional embodiment, after the above-mentioned step of displaying a custom background option and at least one preset sky background texture in the parameter setting panel in response to a triggering operation on an editable control corresponding to the target sky background information in the parameter setting panel, the above-mentioned method further includes: displaying a custom setting control in the parameter setting panel in response to a triggering operation on the custom background option; displaying multiple preset background parameters in the parameter setting panel in response to a triggering operation on the custom setting control; obtaining multiple target background parameters in response to a setting operation on multiple preset background parameters, and determining the multiple target background parameters as the target sky background information.

[0228] In an optional embodiment, the preset background parameters include at least one of the following parameters: a first gradient color, a second gradient color, a gradient axis, an axis position, and a gradient contrast.

[0229] The custom background option allows players to customize target background parameters, enhancing their gaming experience and providing flexibility in setting sky backgrounds. Determining target sky background information based on multiple preset background parameters also makes setting parameters more intuitive.

[0230] In an optional embodiment, the above method also includes: responding to a trigger operation on an editable control corresponding to the target sky background information in the parameter setting panel, displaying a no transition background option in the parameter setting panel; wherein the no transition background option is used to indicate that the target editable component is invalid; responding to a trigger operation on the no transition background option, displaying pop-up information in a graphical user interface; wherein the pop-up information is used to indicate that the function of applying the no transition background option will cause the target editable component to be invalid; responding to a confirmation operation on the pop-up information, controlling the target editable component to be invalid.

[0231] Players can disable the target editable component by controlling the no transition background option displayed in the parameter setting panel. At this time, the target editable component will not be able to switch the sky background. This method can prevent players from operating it incorrectly.

[0232] In an optional embodiment, after the above-mentioned step of responding to the confirmation operation on the pop-up information and controlling the invalidation of the target editable component, the above-mentioned method further includes: responding to the trigger operation on the target editable component and displaying prompt information in the graphical user interface; wherein the prompt information is used to indicate: the reason for the invalidation of the target editable component and the method for resolving the invalidation.

[0233] The prompt information displayed in the graphical user interface can indicate to the player the reason why the target editable component is invalid and the method to resolve the invalidation, so that the player can perform the operation to resolve the invalidation according to the instruction information.

[0234] In an optional embodiment, the parameter setting panel also includes a first interactive control; the method also includes: responding to a trigger operation on the first interactive control, displaying switching parameters based on the target editable component setting in the graphical user interface, and in the process of updating the sky background information of the sky box from the current sky background information to the target sky background information set by the target editable component, rendering the sky background information of the sky box to obtain the sky background of the game scene.

[0235] In this method, the player uses the preview function provided by the first interactive control to check whether the sky background switching effect meets his or her needs.

[0236] In an optional embodiment, the above method also includes: responding to a trigger operation for a second interactive control, generating a game scene corresponding to the game editing scene according to the editable component in the game editing scene, the game scene including a controlled virtual object corresponding to the terminal device and a virtual object generated according to the editable component and displayed with preset display parameters; wherein the preset display parameters include visible and invisible; responding to a movement instruction for the controlled virtual object, controlling the controlled virtual object to move to the scene space corresponding to the target component, and determining that a sky background switching event is satisfied; responding to the sky background switching event, determining the target sky background information and switching parameters corresponding to the sky background switching event; based on the switching parameters, updating the sky background information corresponding to the game scene from the current sky background information to the target sky background information. Mark the sky background information, and dynamically display in the graphical user interface the sky background of the dynamically changing game scene rendered in the process of updating the sky background information, wherein the process of updating the sky background information is the process of updating the sky background information corresponding to the game scene from the current sky background information to the target sky background information; in the process of updating the sky background information, respond to the movement instructions for the controlled virtual object, control the controlled virtual object and the scene space corresponding to the target component to separate, and determine that the sky background pause update event is satisfied; respond to the sky background pause update event, suspend the process of updating the sky background information, and continuously display in the graphical user interface the sky background of the game scene rendered according to the corresponding sky background information when responding to the sky background pause update event.

[0237] In the above method, players can try out the game in the generated game scene corresponding to the game editing scene; at the same time, when trying out the game, they can trigger the sky background switching event to display the sky background of the game scene rendered in the process of updating the current sky background information to the target sky background information, so that players can further determine whether the set sky background switching effect meets their own needs.

[0238] In an optional embodiment, the above-mentioned switching parameters include switching duration; based on the switching parameters, the sky background information corresponding to the game scene is updated from the current sky background information to the target sky background information, and dynamically displayed in the graphical user interface, the step of rendering the dynamically changing sky background of the game scene in the process of updating the sky background information, including: according to the switching duration, determining the change parameters of the sky background information corresponding to the unit time in the process of updating the current sky background information corresponding to the game scene to the target sky background information; dynamically updating the sky background information corresponding to the game scene in chronological order according to the change parameters of the sky background information corresponding to the unit time, the current sky background information and the target sky background information; dynamically displaying in the graphical user interface the sky background of the dynamically changing game scene rendered based on the dynamically updated sky background information.

[0239] The sky background switching method in the above-mentioned game can trigger a sky background switching event when the player is playing the game, and dynamically update the sky background information corresponding to the game scene to the target sky background information according to the switching method and switching duration corresponding to the sky background switching event, and dynamically display the dynamically changing sky background of the game scene rendered based on the dynamically updated sky background information in the graphical user interface. This method enriches the performance of the sky background switching and helps to improve the player's gaming experience.

[0240] In an optional embodiment, the above method also includes: responding to a touch operation on a third interactive control, controlling the generation of game scene information corresponding to the game editing scene; wherein the game scene information includes component information of the edited component in the game editing scene, and the edited component is an editing component that responds to the editing operation among multiple editable components in the editing window; controlling the transmission of the game scene information to the server; wherein the server is configured to be communicatively connected with the first terminal device, the first terminal device is configured with a game program, and the first terminal device is configured to obtain the game scene information from the server, and generate a corresponding game scene according to the game scene information through the game program.

[0241] This method can publish the game scene information in the game editor and allow other players to experience it, thereby realizing a fast UGC function.

[0242] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a terminal device, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0243] In the description of this disclosure, it should be noted that terms such as "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer" indicate positions or locations based on those shown in the accompanying drawings. These terms are intended solely to facilitate and simplify the description of this disclosure and are not intended to indicate or imply that the devices or components referred to must have, be constructed, or operate in a specific orientation. Therefore, they should not be construed as limitations on this disclosure. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.

[0244] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The scope of protection of the present disclosure is not limited thereto. Although the present disclosure has been described in detail with reference to the above-described embodiments, those skilled in the art should understand that any person skilled in the art can modify or easily conceive of changes to the technical solutions described in the above-described embodiments within the technical scope disclosed in the present disclosure, or replace some of the technical features therein with equivalents. Such modifications, changes, or replacements do not deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the scope of protection of the present disclosure. Therefore, the scope of protection of the present disclosure shall be subject to the scope of protection of the claims.

Claims

1. A method for switching sky background in a game, providing a graphical user interface through a terminal device, and displaying a game editing scene provided by running a game program in the graphical user interface, the method comprising: Displaying an editing window in the graphical user interface, wherein the editing window includes a plurality of editable components; In response to an editing operation on a target editable component, a switching condition, a switching parameter, and target sky background information of the target editable component are determined; wherein the switching parameter includes a switching mode and / or a switching duration, the target editable component is a component among the multiple editable components, and the switching condition is configured to trigger the start or pause of updating the sky background information of the sky box of the game editing scene; According to the switching parameters corresponding to the target editable component, the sky background information of the sky box is updated from the current sky background information to the target sky background information, and the sky background of the game scene rendered during the information switching process of updating the sky box is dynamically displayed in the graphical user interface.

2. The method according to claim 1, wherein: The method further comprises: In response to a selection operation on the target editable component, control the generation of a virtual object corresponding to the target editable component in the game editing scene; wherein the virtual object is configured to be displayed with preset display parameters.

3. The method according to claim 1, wherein: The graphical user interface displays a setting control; The step of determining the switching condition, switching parameters and target sky background information of the target editable component in response to the editing operation on the target editable component comprises: In response to a trigger operation on the setting control, a parameter setting panel corresponding to the target editable component is displayed in the editing window; wherein the parameter setting panel includes a plurality of editable controls; the editable controls are used to set the switching condition, the switching parameters and the target sky background information of the target editable component; In response to a first setting operation on the parameter setting panel, determining a switching condition corresponding to the target editable component; In response to a second setting parameter for the parameter setting panel, determining a switching parameter corresponding to the target editable component; In response to a third setting operation on the parameter setting panel, target sky background information corresponding to the target editable component is determined.

4. The method according to claim 3, wherein: The switching condition includes: a sky background switching event for the target editable component to start background switching, and a sky background pause update event for the target editable component to pause background switching; the parameter setting panel includes: a first editable control for setting the sky background switching event, and a second editable control for setting the sky background pause update event; The step of determining the switching condition corresponding to the target editable component in response to the first setting operation on the parameter setting panel includes: In response to a first input operation on the first editable control, setting a sky background switching event corresponding to the target editable component according to the first input operation; In response to a second input operation directed to the second editable control, a sky background pause update event corresponding to the target editable component is set according to the second input operation.

5. The method according to claim 4, wherein: The first input operation includes: setting a target component associated with the target editable component, and setting the sky background switching event to: the controlled virtual object controlled by the terminal device moves to the scene space determined by the target component; the second input operation sets the sky background pause update event to: the controlled virtual object moves out of the scene space determined by the target component.

6. The method according to claim 4, wherein: The first input operation includes: setting a switch control in the graphical user interface, and setting the sky background switch event to trigger the switch control; the second input operation includes: setting a pause control in the graphical user interface, and setting the sky background pause update event to trigger the pause control.

7. The method according to claim 3, wherein: The switching parameter includes a switching mode; the step of determining the switching parameter corresponding to the target editable component in response to the second setting parameter of the parameter setting panel includes: In response to a click operation on an editable control corresponding to a switching mode in the parameter setting panel, a plurality of preset switching modes are displayed in the parameter setting panel, wherein different switching modes correspond to different modes for determining pixel points to be updated of sky background information of the sky box, wherein the sky background information includes a plurality of pixel points; In response to a triggering operation on a target switching mode among the plurality of preset switching modes, the target switching mode is determined as a switching mode corresponding to the target editable component.

8. The method according to claim 7, wherein: The target switching mode includes a first switching mode; and the method further includes: In response to a trigger operation for a target switching mode among the plurality of preset switching modes, a transition setting control corresponding to the target switching mode is displayed in the parameter setting panel; wherein the transition setting control is used to set a transition effect of a connecting portion between pixels to be updated and pixels not updated of the sky background information of the sky box; In response to a setting operation on the transition setting control, a transition effect corresponding to the target switching mode is determined, and the target switching mode and the switching transition effect corresponding to the target switching mode are determined as the switching mode corresponding to the target editable component.

9. The method according to claim 3, wherein: The switching parameter includes a switching duration; the step of determining the switching parameter corresponding to the target editable component in response to the second setting parameter of the parameter setting panel includes: In response to an input operation on the switching duration in the parameter setting panel, the input value corresponding to the input operation is determined as the switching duration corresponding to the target editable component; wherein the switching duration is the duration corresponding to updating the sky background information of the sky box from the current sky background information to the target sky background information.

10. The method according to claim 3, wherein: The step of determining the target sky background information corresponding to the target editable component in response to the third setting operation on the parameter setting panel includes: In response to a triggering operation on an editable control corresponding to the target sky background information in the parameter setting panel, displaying a custom background option and at least one preset sky background map in the parameter setting panel; In response to a triggering operation on a first sky background map among the at least one preset sky background map, the target sky background information is determined based on the first sky background map.

11. The method according to claim 10, wherein: The step of determining the target sky background information based on the first sky background map in response to a triggering operation on the first sky background map in the at least one preset sky background map comprises: In response to a triggering operation on a first sky background map among the at least one preset sky background map, the first sky background map is determined as the target sky background information.

12. The method according to claim 10, wherein: The step of determining the target sky background information based on the first sky background map in response to a triggering operation on the first sky background map in the at least one preset sky background map comprises: In response to a triggering operation on a first sky background map among the at least one preset sky background map, a map setting control is displayed in the parameter setting panel; wherein the map setting control is used to set map parameters of the first sky background map; the map parameters include at least one of the following: map color, map saturation, and map transparency; In response to a setting operation on the map setting control, the map parameters of the first sky background map are adjusted to obtain an adjusted first sky background map; and the adjusted first sky background map is determined as the target sky background information.

13. The method according to claim 10, wherein: After the step of displaying a custom background option and at least one preset sky background map in the parameter setting panel in response to a triggering operation of an editable control corresponding to the target sky background information in the parameter setting panel, the method further comprises: In response to a trigger operation for the custom background option, displaying a custom setting control in the parameter setting panel; In response to a trigger operation on the custom setting control, a plurality of preset background parameters are displayed in the parameter setting panel; In response to the setting operation for the plurality of preset background parameters, a plurality of target background parameters are obtained, and the plurality of target background parameters are determined as the target sky background information.

14. The method according to claim 13, wherein: The preset background parameters include at least one of the following parameters: a first gradient color, a second gradient color, a gradient axis, an axis position, and a gradient contrast.

15. The method according to claim 10, wherein: The method further comprises: In response to a triggering operation on an editable control corresponding to the target sky background information in the parameter setting panel, a no transition background option is displayed in the parameter setting panel; wherein the no transition background option is used to indicate that the target editable component is invalid; In response to a trigger operation for the no-transition-background option, a pop-up window message is displayed in the graphical user interface; wherein the pop-up window message is used to indicate that a function of applying the no-transition-background option will cause the target editable component to become invalid; In response to a confirmation operation on the pop-up window information, the target editable component is controlled to be invalid.

16. The method according to claim 15, wherein: After the step of controlling the target editable component to be invalid in response to the confirmation operation on the pop-up window information, the method further includes: In response to a trigger operation on the target editable component, prompt information is displayed in the graphical user interface; wherein the prompt information is used to indicate: the reason why the target editable component is invalid, and the method for resolving the invalidation.

17. The method according to claim 3, wherein: The parameter setting panel also includes a first interactive control; the method also includes: In response to a trigger operation on the first interactive control, switching parameters based on the target editable component setting are displayed in the graphical user interface, and in the process of updating the sky background information of the sky box from the current sky background information to the target sky background information set by the target editable component, the sky background of the game scene is obtained by rendering the sky background information of the sky box.

18. The method according to claim 5, wherein: The method further comprises: In response to a trigger operation on a second interactive control, a game scene corresponding to the game editing scene is generated according to the editable component in the game editing scene, wherein the game scene includes a controlled virtual object corresponding to the terminal device and a virtual object generated according to the editable component and displayed with preset display parameters; wherein the preset display parameters include visible and invisible; In response to a movement instruction for the controlled virtual object, the controlled virtual object is controlled to move to a scene space corresponding to the target component, and it is determined that the sky background switching event is satisfied; In response to the sky background switching event, determining target sky background information and switching parameters corresponding to the sky background switching event; Based on the switching parameters, the sky background information corresponding to the game scene is updated from the current sky background information to the target sky background information, and the sky background of the game scene that is dynamically changed and rendered in the process of updating the sky background information is dynamically displayed in the graphical user interface, wherein the process of updating the sky background information is the process of updating the sky background information corresponding to the game scene from the current sky background information to the target sky background information; In the process of updating the sky background information, responding to a movement instruction for the controlled virtual object, controlling the controlled virtual object to be separated from the scene space corresponding to the target component, and determining that the sky background update pause event is satisfied; In response to the sky background update pause event, the process of updating the sky background information is paused, and the sky background of the game scene rendered according to the corresponding sky background information in response to the sky background update pause event is continuously displayed in the graphical user interface.

19. The method according to claim 18, wherein: The switching parameters include a switching duration; based on the switching parameters, the sky background information corresponding to the game scene is updated from the current sky background information to the target sky background information, and the sky background of the game scene that is dynamically changed is rendered in the graphical user interface during the process of updating the sky background information, comprising: Determining, according to the switching duration, a change parameter of the sky background information corresponding to a unit time in the process of updating the current sky background information corresponding to the game scene to the target sky background information; Dynamically updating the sky background information corresponding to the game scene in chronological order according to the change parameter of the sky background information corresponding to the unit time, the current sky background information and the target sky background information; The sky background of the game scene that changes dynamically is dynamically displayed in the graphical user interface and is rendered based on the dynamically updated sky background information.

20. The method according to claim 1, wherein: The method further comprises: In response to a touch operation on a third interactive control, control the generation of game scene information corresponding to the game editing scene; wherein the game scene information includes component information of an edited component in the game editing scene, and the edited component is an editing component that responds to an editing operation among a plurality of editable components included in the editing window; Control the transmission of the game scene information to a server; wherein the server is configured to be communicatively connected with a first terminal device, the first terminal device is configured with the game program, the first terminal device is configured to obtain the game scene information from the server, and generate a corresponding game scene according to the game scene information through the game program.

21. A device for switching sky background in a game, providing a graphical user interface through a terminal device; Displaying a game editing scene provided by running a game program in the graphical user interface, the device comprises: An editing window display module, used for displaying an editing window in the graphical user interface, wherein the editing window includes a plurality of editable components; A component editing module, for responding to an editing operation on a target editable component, determining a switching condition, a switching parameter, and a target sky background information of the target editable component; wherein the switching parameter includes a switching mode and / or a switching duration, the target editable component is a component among the multiple editable components, and the switching condition is configured to trigger the start or pause of updating the sky background information of the sky box of the game editing scene; A background switching module is used to update the sky background information of the sky box from the current sky background information to the target sky background information according to the switching parameters corresponding to the target editable component, and dynamically display in the graphical user interface the sky background of the game scene rendered during the information switching process of updating the sky box.

22. An electronic device comprising a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the sky background switching method in the game described in any one of claims 1 to 20.

23. A computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the sky background switching method in the game described in any one of claims 1 to 20.

Citation Information

Patent Citations

  • User interface editing method and device in game and storage medium

    CN114201167A

  • Game scene editing method and device, equipment and medium

    CN115430142A

  • Game configuration file editing method and device, terminal equipment and storage medium

    CN115779439A

  • Controlling a user interface of a computer device

    US20160220897A1