Method and apparatus for sky background switching in game, and electronic device
By responding to sky background switching events in the game terminal device and dynamically updating and rendering sky backgrounds, the problem that sky background switching can only be used in the editing mode in the existing technology is solved, improving the game experience and background performance.
Patent Information
- Application Number
- PCT/CN2023/107201
- 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
In the prior art, the sky background switching in the game can only be implemented in the editing mode of the game level, resulting in poor player experience, and the background switching of the sky box is monotonous, making it difficult to meet the needs of players.
By providing a graphical user interface on the terminal device, responding to the sky background switching event, updating the sky background information of the game scene, dynamically rendering the sky background changes, supporting the sky background switching in the game levels, and enriching background performance by switching parameters.
It improves the player's gaming experience, realizes the sky background switching in the game levels, enriches background performance, and enhances the visual effects of the game.
Smart Images

Figure CN2023107201_28112024_PF_FP_ABST
Abstract
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 202310602726.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 the game scene with a skybox, and then use the movement of the skybox to switch the background within the game scene. However, this method only allows background switching in the game level editing mode, resulting in a poor gaming experience for players. Furthermore, because the skybox relies solely on motion controls when switching, the background switching performance is relatively monotonous, making it difficult to meet player needs.
[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 switch the sky background in the game level, enrich the sky background switching performance 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; the graphical user interface displays part of the game scene and the sky background corresponding to the game scene; wherein the sky background is a background generated according to sky background information; the method comprises: responding to a sky background switching event, determining 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, and dynamically displaying 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.
[0008] According to one aspect of the present disclosure, a device for switching a sky background in a game is provided, which provides a graphical user interface through a terminal device; the graphical user interface displays a scene screen of a part of the game scene and a sky background corresponding to the game scene; wherein the sky background is a background generated according to sky background information; the device includes: an information acquisition module, which is used to respond to a sky background switching event, determine the target sky background information and switching parameters corresponding to the sky background switching event; a sky background switching module, which is used to update 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 parameters, 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.
[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 a sky background in a game. The method first responds to a sky background switching event and determines the target sky background information and switching parameters corresponding to the sky background switching event. Then, 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. The sky background of the game scene, which is dynamically changed during the sky background information updating process, is dynamically displayed in a graphical user interface. The sky background information updating process 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 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 the sky background switching through the switching parameters, helping to enhance 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 sky background switching device 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 game scene that is rendered and dynamically changes 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 style 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. 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; the 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, and in the process of updating the sky background information of the sky box (equivalent to the sky background information corresponding to the game scene) 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 obtained by rendering the sky background information of the sky box. In this way, players can check whether the sky background switching effect meets their needs through the preview function provided by the first interactive control.
[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 play 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 be communicatively connected to a first terminal device, the first terminal device is configured with a game program, and the second 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 first terminal device can be a terminal device that touches the third interactive control, or it can be 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, etc.). 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 response to the above method embodiment, the present disclosure also provides a device for switching a sky background in a game, which provides a graphical user interface through a terminal device; the graphical user interface displays a scene image of a portion of a game scene and a sky background corresponding to the game scene; wherein the sky background is generated based on sky background information; as shown in FIG8 , the device includes:
[0132] The information acquisition module 70 is used to respond to a sky background switching event and determine target sky background information and switching parameters corresponding to the sky background switching event.
[0133] The sky background switching module 71 is used to update 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 parameters, and dynamically display the dynamically changing sky background of the 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.
[0134] In the sky background switching device in the above-mentioned game, players can trigger the sky background switching event to switch the sky background corresponding to the game scene during the 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.
[0135] Furthermore, the process of updating the sky background information lasts for a preset time period.
[0136] By continuing the process of updating the sky background information for a preset time, the process of updating the sky background is dynamically displayed in the graphical user interface, so that players can intuitively see the changes in the sky background of the game scene that is in the process of changing by adjusting the game perspective.
[0137] The above-mentioned device also includes a game start module, which is used to: respond to the sky background switching event and determine the target sky background information and switching parameters corresponding to the sky background switching event, respond to the game start instruction, and control the graphical user interface to display the game scene corresponding to the game game.
[0138] By triggering the game start command, the game scene corresponding to the game game is displayed on the graphical user interface. Since the controlled virtual object is in the game level or game game, the game perspective is focused on the current game game to facilitate the player's subsequent operations.
[0139] In a specific implementation, the game scene includes a sky box, the sky background information is the attribute information corresponding to the sky box, and the sky background is the background generated according to the sky background information of the sky box.
[0140] The sky box can cover the entire game scene and provide a sky background for the game scene based on the sky background information, so that the entire sky background information corresponding to the game scene can be quickly updated from the current sky background information to the target sky background information.
[0141] Furthermore, the above-mentioned device also includes a switching pause module, which is used to: respond to a sky background pause update event during the process of updating the sky background information, pause the process of updating the sky background information, and continuously display 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.
[0142] During the process of updating the sky background information, the user can trigger the sky background update pause event in real time to pause the sky background information corresponding to the sky background rendering of the game scene. This method allows players to flexibly control the entire update process of the sky background in the game scene.
[0143] In actual applications, the sky background of the game scene rendered according to the corresponding sky background information in response to the sky background pause update event includes: the first part of the sky background of the game scene rendered by the current sky background information, and the second part of the sky background of the game scene rendered by the target sky background information.
[0144] Since the sky background update pause event occurs at any time in 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, it is usually composed of the first part of the sky background of the game scene rendered by the current sky background information and the second part of the sky background of the game scene rendered by the target sky background information. This process facilitates the player to flexibly control the entire update process of the sky background in the game scene, that is, the timing when the player triggers the pause update event of the sky background can flexibly determine the proportion of the first part and the second part of the sky scene of the entire game scene.
[0145] In an optional embodiment, in the sky background corresponding to the game scene, a preset transition effect corresponding to the connecting part of the first part of the sky background of the game scene rendered by the current sky background information and the second part of the sky background of the game scene rendered by the target sky background information is displayed.
[0146] When implementing the sky background update, there is a preset transition effect, which can show the dynamic transition effect of the sky background update to the player, so as to make the sky background update process more natural.
[0147] In an optional embodiment, the apparatus further includes a first event triggering module configured to: before responding to a sky background switching event, respond to a control instruction for a controlled virtual object corresponding to the terminal device, control the controlled virtual object to perform a first gaming behavior that satisfies a first preset condition, and control the triggering of the sky background switching event. The apparatus further includes a second event triggering module configured to: before responding to a sky background pause update event, respond to a control instruction for a controlled virtual object corresponding to the terminal device, control the controlled virtual object to perform a second gaming behavior that satisfies a second preset condition, and control the triggering of the sky background pause update event.
[0148] 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.
[0149] Furthermore, the first game behavior of the above-mentioned first preset condition is to control the controlled virtual object to move to the target area in the game scene; the second game behavior of the above-mentioned second preset condition is to control the controlled virtual object to separate from the target area in the game scene.
[0150] In the above method, the player can switch and pause the sky background by controlling the movement of the controlled virtual object to the target area and controlling the separation of the controlled virtual object from the target area in the game scene, thereby enriching the gameplay.
[0151] In an optional embodiment, the above-mentioned graphical user interface further displays a switch control and a pause control; the sky background switch event includes triggering the switch control; the sky background pause update event includes triggering the pause control.
[0152] 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.
[0153] In a specific implementation, the above-mentioned switching parameters include the switching duration; the above-mentioned sky background switching module 71 is used to: determine, according to 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; 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.
[0154] 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.
[0155] Furthermore, the above-mentioned switching parameters also include a first switching mode; the sky background information includes multiple pixel points; the above-mentioned sky background switching module 71 is also used to: dynamically determine the pixel points to be updated among the multiple pixel points in the sky background information in chronological order according to the first switching mode and the change parameters; wherein the pixel points to be updated are some of the multiple pixel points in the sky background information; determine the target pixel value corresponding to the pixel point to be updated according to the target sky background information; and update the pixel value of the pixel point to be updated from the current pixel value determined according to the current sky background information to the target pixel value.
[0156] Furthermore, the above-mentioned switching parameters also include a second switching method; the sky background information includes multiple pixel points; the above-mentioned sky background switching module 71 is also used to: 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, including: determining the pixel points to be updated among the multiple pixel points in the sky background information according to the second switching method; wherein the pixel points to be updated are all the pixel points among the multiple pixel points in the sky background information; determining the target pixel value corresponding to the pixel point to be updated according to the target sky background information, and determining the current pixel value corresponding to the pixel point to be updated according to the current sky background information; dynamically updating the pixel value of the pixel point to be updated according to the change parameters, the target pixel value and the current pixel value in chronological order.
[0157] In a specific implementation, the above-mentioned change parameter is the ratio of the target sky background information and the current sky background information in the updated sky background information. Furthermore, the above-mentioned change parameter is the ratio of the target sky background information and the current sky background information in the updated sky background information: the change parameter is the ratio of the pixel points of the target sky background information and the pixel points of the current sky background information in the updated sky background information.
[0158] In actual applications, the above-mentioned change parameters are the proportion of pixel points of the target sky background information and the pixel points of the current sky background information in the updated sky background information, including at least one of the following: the proportion 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 in the updated sky background information; and the proportion of the number of pixel points in the current sky background information and the number of pixel points in the target sky background information in the updated sky background information.
[0159] 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.
[0160] In an optional embodiment, the above-mentioned switching parameters include a third switching method; the above-mentioned device also includes a sky switching module, which is used to: according to the third switching method, switch the sky background information corresponding to the game scene from the current sky background information to the target sky background information, and continuously display the sky background of the game scene rendered based on the target sky background information in the graphical user interface.
[0161] 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.
[0162] Furthermore, the above-mentioned device also includes an information setting module, including: a window display unit, used to display a game editing scene and an editing window in a graphical user interface; wherein the editing window includes multiple editable components; a component selection unit, 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, and the target editable component is a component among multiple editable components; a component editing unit, used to respond to an editing operation on a target editable component, and determine the switching conditions, switching parameters and target sky background information corresponding to the target editable component; wherein the 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.
[0163] 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.
[0164] In a specific implementation, a setting control is displayed in the above-mentioned graphical user interface; the above-mentioned component editing unit 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 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; 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 parameters 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.
[0165] 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.
[0166] Furthermore, 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; the above-mentioned component editing unit is used to: respond to the 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 the 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.
[0167] In a specific implementation, the above-mentioned component editing unit 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 at least one preset sky background map, and determine the target sky background information based on the first sky background map.
[0168] 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.
[0169] In an optional embodiment, the above-mentioned component editing unit is also used to: respond to a trigger operation for a custom background option, display a custom setting control in the parameter setting panel; respond to a trigger operation for a custom setting control, display multiple preset background parameters in the parameter setting panel; respond to a setting operation for multiple preset background parameters, obtain multiple target background parameters, and determine the multiple target background parameters as target sky background information.
[0170] 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.
[0171] 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.
[0172] In an optional embodiment, the parameter setting panel also includes a first interactive control; the device includes a switching display module, which is used to: respond to a trigger operation on the first interactive control, display the switching parameters set based on the target editable component in the graphical user interface, and render the sky background of the game scene in 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.
[0173] 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.
[0174] 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.
[0175] 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.
[0176] Specifically, a graphical user interface is provided through a terminal device; the graphical user interface displays part of the game scene and the sky background corresponding to the game scene; wherein the sky background is a background generated according to the sky background information; the sky background switching method in the game includes: responding to a 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, and dynamically displaying 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.
[0177] In the sky background switching method in this game, players can trigger the sky background switching event to switch the sky background corresponding to the game scene during the 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.
[0178] In an optional embodiment, the process of updating the sky background information continues for a preset time period.
[0179] By continuing the process of updating the sky background information for a preset time, the process of updating the sky background is dynamically displayed in the graphical user interface, so that players can intuitively see the changes in the sky background of the game scene that is in the process of changing by adjusting the game perspective.
[0180] In an optional embodiment, before the above-mentioned step of responding to the sky background switching event and determining the target sky background information and switching parameters corresponding to the sky background switching event, the above-mentioned method also includes: responding to the game start instruction and controlling the graphical user interface to display the game scene corresponding to the game game.
[0181] By triggering the game start command, the game scene corresponding to the game game is displayed on the graphical user interface. Since the controlled virtual object is in the game level or game game, the game perspective is focused on the current game game to facilitate the player's subsequent operations.
[0182] In an optional embodiment, the game scene includes a sky box, the sky background information is attribute information corresponding to the sky box, and the sky background is a background generated according to the sky background information of the sky box.
[0183] The sky box can cover the entire game scene and provide a sky background for the game scene based on the sky background information, so that the entire sky background information corresponding to the game scene can be quickly updated from the current sky background information to the target sky background information.
[0184] In an optional embodiment, the above method also includes: in the process of updating the sky background information, responding to a sky background update pause event, pausing the process of updating the sky background information, and continuously displaying in the graphical user interface the sky background of the game scene rendered according to the corresponding sky background information in response to the sky background update pause event.
[0185] During the process of updating the sky background information, the user can trigger the sky background update pause event in real time to pause the sky background information corresponding to the sky background rendering of the game scene. This method allows players to flexibly control the entire update process of the sky background in the game scene.
[0186] In an optional embodiment, the sky background of the game scene rendered according to the corresponding sky background information in response to the sky background pause update event includes: a sky background consisting of the first part of the sky background of the game scene rendered by the current sky background information, and the second part of the sky background of the game scene rendered by the target sky background information.
[0187] Since the sky background update pause event occurs at any time in 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, it is usually composed of the first part of the sky background of the game scene rendered by the current sky background information and the second part of the sky background of the game scene rendered by the target sky background information. This process facilitates the player to flexibly control the entire update process of the sky background in the game scene, that is, the timing when the player triggers the pause update event of the sky background can flexibly determine the proportion of the first part and the second part of the sky scene of the entire game scene.
[0188] In an optional embodiment, the above-mentioned sky background corresponding to the game scene displays a preset transition effect corresponding to the connecting part of the first part of the sky background of the game scene obtained by rendering the current sky background information and the second part of the sky background of the game scene obtained by rendering the target sky background information.
[0189] When implementing the sky background update, there is a preset transition effect, which can show the dynamic transition effect of the sky background update to the player, so as to make the sky background update process more natural.
[0190] In an optional embodiment, before the above-mentioned step of responding to the sky background switching event, the method further includes: responding to a control instruction for the controlled virtual object corresponding to the terminal device, controlling the controlled virtual object to perform a first game behavior that meets a first preset condition; controlling the triggering of the sky background switching event; before the step of responding to the sky background pause update event, the above-mentioned method further includes: responding to a 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 a second preset condition; controlling the triggering of the sky background pause update event.
[0191] 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.
[0192] In an optional embodiment, the first game behavior of the first preset condition is to control the controlled virtual object to move to the target area in the game scene; the second game behavior of the second preset condition is to control the controlled virtual object to separate from the target area in the game scene.
[0193] In the above method, the player can switch and pause the sky background by controlling the movement of the controlled virtual object to the target area and controlling the separation of the controlled virtual object from the target area in the game scene, thereby enriching the gameplay.
[0194] In an optional embodiment, the above-mentioned graphical user interface further displays a switch control and a pause control; the sky background switch event includes triggering the switch control; the sky background pause update event includes triggering the pause control.
[0195] 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.
[0196] 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.
[0197] 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.
[0198] In an optional embodiment, the above-mentioned switching parameters also include a first switching method; the sky background information includes multiple pixel points; the above-mentioned step of dynamically updating the sky background information corresponding to the game scene in chronological order based on the change parameters of the sky background information corresponding to the unit time, the current sky background information and the target sky background information includes: dynamically determining the pixel points to be updated among the multiple pixel points in the sky background information in chronological order according to the first switching method and the change parameters; wherein the pixel points to be updated are some of the multiple pixel points in the sky background information; determining the target pixel value corresponding to the pixel point to be updated according to the target sky background information; and updating the pixel value of the pixel point to be updated from the current pixel value determined according to the current sky background information to the target pixel value.
[0199] In an optional embodiment, the above-mentioned switching parameters also include a second switching method; the sky background information includes multiple pixel points; the above-mentioned step of 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 includes: determining the pixel points to be updated among the multiple pixel points in the sky background information according to the second switching method; wherein the pixel points to be updated are all the pixel points among the multiple pixel points in the sky background information; determining the target pixel value corresponding to the pixel point to be updated according to the target sky background information, and determining the current pixel value corresponding to the pixel point to be updated according to the current sky background information; and dynamically updating the pixel value of the pixel point to be updated according to the change parameters, the target pixel value and the current pixel value in chronological order.
[0200] In an optional embodiment, the above-mentioned change parameter is the proportion of the target sky background information and the current sky background information in the updated sky background information.
[0201] In an optional embodiment, the above-mentioned changing parameter is the ratio of the target sky background information and the current sky background information in the updated sky background information: the changing parameter is the ratio of the pixels of the target sky background information and the pixels of the current sky background information in the updated sky background information. In an optional embodiment, the above-mentioned changing parameter is the ratio of the pixels of the target sky background information and the pixels of the current sky background information in the updated sky background information, including at least one of the following: the ratio of the pixel value of each pixel in the current sky background information and the pixel value of each pixel in the target sky background information in the updated sky background information; and the ratio of the number of pixels in the current sky background information and the number of pixels in the target sky background information in the updated sky background information.
[0202] 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.
[0203] In an optional embodiment, the above-mentioned switching parameters include a third switching mode; the above-mentioned method also includes: according to the third switching mode, switching the sky background information corresponding to the game scene from the current sky background information to the target sky background information, and continuously displaying the sky background of the game scene rendered based on the target sky background information in the graphical user interface.
[0204] 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.
[0205] In an optional embodiment, the target sky background information and switching parameters corresponding to the above-mentioned sky background switching event are determined in the following manner: displaying a game editing scene and an editing window in a graphical user interface; wherein the editing window includes multiple editable components; in response to a selection operation on the 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, and the target editable component is a component among the multiple editable components; in response to an editing operation on the target editable component, determining the switching conditions, switching parameters and target sky background information corresponding to the target editable component; wherein the 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.
[0206] 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.
[0207] In an optional embodiment, a setting control is displayed in the above-mentioned graphical user interface; the above-mentioned step of responding to the editing operation on the target editable component and determining the switching conditions, switching parameters and target sky background information corresponding to the target editable component includes: responding to the triggering 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.
[0208] 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.
[0209] In an optional embodiment, the above-mentioned parameter setting panel includes: a first editable control for setting a sky background switching event, and a second editable control for setting a sky background pause update event; the above-mentioned step of responding to the first setting operation on the parameter setting panel and determining the switching condition corresponding to the target editable component 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.
[0210] 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.
[0211] 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.
[0212] 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.
[0213] 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.
[0214] 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.
[0215] 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 set based on the target editable component in the graphical user interface, and rendering the sky background of the game scene in 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.
[0216] 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.
[0217] Furthermore, the electronic device shown in FIG8 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 .
[0218] 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. Buses can be classified as address buses, data buses, control buses, etc. For ease of illustration, FIG8 uses only one bidirectional arrow, but this does not mean that there is only one bus or only one type of bus.
[0219] 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.
[0220] 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.
[0221] Specifically, a graphical user interface is provided through a terminal device; the graphical user interface displays part of the game scene and the sky background corresponding to the game scene; wherein the sky background is a background generated according to the sky background information; the sky background switching method in the game includes: responding to a 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, and dynamically displaying 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.
[0222] In the sky background switching method in this game, players can trigger the sky background switching event to switch the sky background corresponding to the game scene during the 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.
[0223] In an optional embodiment, the process of updating the sky background information continues for a preset time period.
[0224] By continuing the process of updating the sky background information for a preset time, the process of updating the sky background is dynamically displayed in the graphical user interface, so that players can intuitively see the changes in the sky background of the game scene that is in the process of changing by adjusting the game perspective.
[0225] In an optional embodiment, before the above-mentioned step of responding to the sky background switching event and determining the target sky background information and switching parameters corresponding to the sky background switching event, the above-mentioned method also includes: responding to the game start instruction and controlling the graphical user interface to display the game scene corresponding to the game game.
[0226] By triggering the game start command, the game scene corresponding to the game game is displayed on the graphical user interface. Since the controlled virtual object is in the game level or game game, the game perspective is focused on the current game game to facilitate the player's subsequent operations.
[0227] In an optional embodiment, the game scene includes a sky box, the sky background information is attribute information corresponding to the sky box, and the sky background is a background generated according to the sky background information of the sky box.
[0228] The sky box can cover the entire game scene and provide a sky background for the game scene based on the sky background information, so that the entire sky background information corresponding to the game scene can be quickly updated from the current sky background information to the target sky background information.
[0229] In an optional embodiment, the above method also includes: in the process of updating the sky background information, responding to a sky background update pause event, pausing the process of updating the sky background information, and continuously displaying in the graphical user interface the sky background of the game scene rendered according to the corresponding sky background information in response to the sky background update pause event.
[0230] During the process of updating the sky background information, the user can trigger the sky background update pause event in real time to pause the sky background information corresponding to the sky background rendering of the game scene. This method allows players to flexibly control the entire update process of the sky background in the game scene.
[0231] In an optional embodiment, the sky background of the game scene rendered according to the corresponding sky background information in response to the sky background pause update event includes: a sky background consisting of the first part of the sky background of the game scene rendered by the current sky background information, and the second part of the sky background of the game scene rendered by the target sky background information.
[0232] Since the sky background update pause event occurs at any time in 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, it is usually composed of the first part of the sky background of the game scene rendered by the current sky background information and the second part of the sky background of the game scene rendered by the target sky background information. This process facilitates the player to flexibly control the entire update process of the sky background in the game scene, that is, the timing when the player triggers the pause update event of the sky background can flexibly determine the proportion of the first part and the second part of the sky scene of the entire game scene.
[0233] In an optional embodiment, the above-mentioned sky background corresponding to the game scene displays a preset transition effect corresponding to the connecting part of the first part of the sky background of the game scene obtained by rendering the current sky background information and the second part of the sky background of the game scene obtained by rendering the target sky background information.
[0234] When implementing the sky background update, there is a preset transition effect, which can show the dynamic transition effect of the sky background update to the player, so as to make the sky background update process more natural.
[0235] In an optional embodiment, before the above-mentioned step of responding to the sky background switching event, the method further includes: responding to a control instruction for the controlled virtual object corresponding to the terminal device, controlling the controlled virtual object to perform a first game behavior that meets a first preset condition; controlling the triggering of the sky background switching event; before the step of responding to the sky background pause update event, the above-mentioned method further includes: responding to a 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 a second preset condition; controlling the triggering of the sky background pause update event.
[0236] 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.
[0237] In an optional embodiment, the first game behavior of the first preset condition is to control the controlled virtual object to move to the target area in the game scene; the second game behavior of the second preset condition is to control the controlled virtual object to separate from the target area in the game scene.
[0238] In the above method, the player can switch and pause the sky background by controlling the movement of the controlled virtual object to the target area and controlling the separation of the controlled virtual object from the target area in the game scene, thereby enriching the gameplay.
[0239] In an optional embodiment, the above-mentioned graphical user interface further displays a switch control and a pause control; the sky background switch event includes triggering the switch control; the sky background pause update event includes triggering the pause control.
[0240] 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.
[0241] 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.
[0242] 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.
[0243] In an optional embodiment, the above-mentioned switching parameters also include a first switching method; the sky background information includes multiple pixel points; the above-mentioned step of dynamically updating the sky background information corresponding to the game scene in chronological order based on the change parameters of the sky background information corresponding to the unit time, the current sky background information and the target sky background information includes: dynamically determining the pixel points to be updated among the multiple pixel points in the sky background information in chronological order according to the first switching method and the change parameters; wherein the pixel points to be updated are some of the multiple pixel points in the sky background information; determining the target pixel value corresponding to the pixel point to be updated according to the target sky background information; and updating the pixel value of the pixel point to be updated from the current pixel value determined according to the current sky background information to the target pixel value.
[0244] In an optional embodiment, the above-mentioned switching parameters also include a second switching method; the sky background information includes multiple pixel points; the above-mentioned step of 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 includes: determining the pixel points to be updated among the multiple pixel points in the sky background information according to the second switching method; wherein the pixel points to be updated are all the pixel points among the multiple pixel points in the sky background information; determining the target pixel value corresponding to the pixel point to be updated according to the target sky background information, and determining the current pixel value corresponding to the pixel point to be updated according to the current sky background information; and dynamically updating the pixel value of the pixel point to be updated according to the change parameters, the target pixel value and the current pixel value in chronological order.
[0245] In an optional embodiment, the above-mentioned change parameter is the proportion of the target sky background information and the current sky background information in the updated sky background information.
[0246] In an optional embodiment, the above-mentioned change parameter is the proportion of the target sky background information and the current sky background information in the updated sky background information: the change parameter is the proportion of the pixel points of the target sky background information and the pixel points of the current sky background information in the updated sky background information.
[0247] In an optional embodiment, the above-mentioned change parameter is the ratio of pixel points of the target sky background information and pixel points of the current sky background information in the updated sky background information, including at least one of the following: 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 in the updated sky background information; and the ratio of the number of pixel points in the current sky background information and the number of pixel points in the target sky background information in the updated sky background information.
[0248] 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.
[0249] In an optional embodiment, the above-mentioned switching parameters include a third switching mode; the above-mentioned method also includes: according to the third switching mode, switching the sky background information corresponding to the game scene from the current sky background information to the target sky background information, and continuously displaying the sky background of the game scene rendered based on the target sky background information in the graphical user interface.
[0250] 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.
[0251] In an optional embodiment, the target sky background information and switching parameters corresponding to the above-mentioned sky background switching event are determined in the following manner: displaying a game editing scene and an editing window in a graphical user interface; wherein the editing window includes multiple editable components; in response to a selection operation on the 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, and the target editable component is a component among the multiple editable components; in response to an editing operation on the target editable component, determining the switching conditions, switching parameters and target sky background information corresponding to the target editable component; wherein the 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.
[0252] 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.
[0253] In an optional embodiment, a setting control is displayed in the above-mentioned graphical user interface; the above-mentioned step of responding to the editing operation on the target editable component and determining the switching conditions, switching parameters and target sky background information corresponding to the target editable component includes: responding to the triggering 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.
[0254] 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.
[0255] In an optional embodiment, the above-mentioned parameter setting panel includes: a first editable control for setting a sky background switching event, and a second editable control for setting a sky background pause update event; the above-mentioned step of responding to the first setting operation on the parameter setting panel and determining the switching condition corresponding to the target editable component 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.
[0256] 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.
[0257] 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.
[0258] 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 trigger 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 trigger operation on the custom background option; displaying multiple preset background parameters in the parameter setting panel in response to a trigger 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.
[0259] 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.
[0260] 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.
[0261] 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 set based on the target editable component in the graphical user interface, and rendering the sky background of the game scene in 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.
[0262] 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.
[0263] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it 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. The computer software product 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 various embodiments 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.
[0264] In the description of this disclosure, it should be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings and are intended solely to facilitate the description of this disclosure and simplify the description. They do not indicate or imply that the devices or components referred to must have a specific orientation, 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.
[0265] Finally, it should be noted that the above 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 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 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 should be based on 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; the graphical user interface displays a part of the game scene and the sky background corresponding to the game scene; wherein, The sky background is a background generated according to sky background information; the method comprises: In response to a 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 dynamically changing sky background of the 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.
2. The method according to claim 1, wherein: The process of updating the sky background information lasts for a preset time period.
3. The method according to claim 1, wherein: Before the step of responding to the sky background switching event and determining the target sky background information and switching parameters corresponding to the sky background switching event, the method further includes: In response to a game start instruction, the graphical user interface is controlled to display a game scene corresponding to the game match.
4. The method according to claim 1, wherein: The game scene includes a sky box, the sky background information is attribute information corresponding to the sky box, and the sky background is a background generated according to the sky background information of the sky box.
5. The method according to claim 1, wherein: The method further comprises: During the process of updating the sky background information, a 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 sky background information corresponding to the response to the sky background pause update event is continuously displayed in the graphical user interface.
6. The method according to claim 5, wherein: The sky background of the game scene rendered according to the corresponding sky background information in response to the sky background pause update event includes: the first part of the sky background of the game scene rendered by the current sky background information, and the second part of the sky background of the game scene rendered by the target sky background information.
7. The method according to claim 6, wherein: In the sky background corresponding to the game scene, a preset transition effect corresponding to the connecting part between the first part of the sky background of the game scene rendered by the current sky background information and the second part of the sky background of the game scene rendered by the target sky background information is displayed.
8. The method according to claim 5, wherein: Before the step of responding to the sky background switching event, the method further includes: In response to a control instruction for a controlled virtual object corresponding to the terminal device, controlling the controlled virtual object to perform a first game behavior that meets a first preset condition; Control triggering the sky background switching event; Before the step of responding to the sky background pause update event, the method also includes: responding to a 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 a second preset condition; and controlling the triggering of the sky background pause update event.
9. The method according to claim 8, wherein: The first game behavior of the first preset condition is to control the controlled virtual object to move to the target area in the game scene; the second game behavior of the second preset condition is to control the controlled virtual object to separate from the target area in the game scene.
10. The method according to claim 5, wherein: The graphical user interface also displays a switch control and a pause control; the sky background switch event includes triggering the switch control; the sky background pause update event includes triggering the pause control.
11. The method according to claim 1, 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.
12. The method according to claim 11, wherein: The switching parameters also include a first switching mode; the sky background information includes a plurality of pixel points; The change parameter of the sky background information corresponding to the unit time, the current sky background information and the target sky background information Background information, the step of dynamically updating the sky background information corresponding to the game scene in chronological order includes: Dynamically determine, in chronological order, pixel points to be updated among the plurality of pixel points in the sky background information according to the first switching mode and the change parameter; wherein the pixel points to be updated are part of the plurality of pixel points in the sky background information; Determine a target pixel value corresponding to the pixel point to be updated according to the target sky background information; The pixel value of the pixel point to be updated is updated from the current pixel value determined according to the current sky background information to the target pixel value.
13. The method according to claim 11, wherein: The switching parameters also include a second switching mode; the sky background information includes a plurality of pixel points; The step of 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 comprises: 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; Determine a target pixel value corresponding to the pixel to be updated according to the target sky background information, and determine a current pixel value corresponding to the pixel to be updated according to the current sky background information; In chronological order, the pixel value of the pixel point to be updated is dynamically updated according to the change parameter, the target pixel value and the current pixel value.
14. The method according to claim 11, wherein: The change parameter is the proportion of the target sky background information and the current sky background information in the updated sky background information.
15. The method according to claim 14, wherein: 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 change parameter is the proportion of the pixel points of the target sky background information and the pixel points of the current sky background information in the updated sky background information.
16. The method according to claim 15, wherein: The change parameter is the proportion of the pixels of the target sky background information and the pixels of the current sky background information in the updated sky background information, including at least one of the following: the proportion of the pixel value of each pixel in the current sky background information and the pixel value of each pixel in the target sky background information in the updated sky background information; and, in the updated sky background information, a ratio of the number of pixels in the current sky background information to the number of pixels in the target sky background information.
17. The method according to claim 1, wherein: The switching parameter includes a third switching mode; and the method further includes: 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.
18. The method according to claim 3, wherein: The target sky background information and switching parameters corresponding to the sky background switching event are determined in the following manner: Displaying a game editing scene and an editing window in the graphical user interface; wherein the editing window includes a plurality of editable components; In response to a selection operation on a target editable component, control generating 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, and the target editable component is a component among the multiple editable components; In response to an editing operation on the target editable component, the switching conditions, switching parameters and target sky background information corresponding to the target editable component are determined; wherein the 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.
19. The method according to claim 18, wherein: The graphical user interface displays a setting control; The step of determining the switching condition, switching parameters and target sky background information corresponding to 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.
20. The method according to claim 19, wherein: 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.
21. The method according to claim 19, 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.
22. The method according to claim 21, 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.
23. The method according to claim 22, 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.
24. The method according to claim 19, 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 set based on the target editable component are displayed in the graphical user interface, and in 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, the sky background of the game scene is rendered.
25. A device for switching sky background in a game, providing a graphical user interface through a terminal device; the graphical user interface displays a scene screen of a part of the game scene and the sky background corresponding to the game scene; wherein, The sky background is a background generated according to sky background information; the device comprises: An information acquisition module, used to respond to a sky background switching event and determine target sky background information and switching parameters corresponding to the sky background switching event; The sky background switching module is used to update 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 parameters, and dynamically display the dynamically changing sky background of the game scene rendered in the graphical user interface during 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.
26. 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 24.
27. 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 24.
Citation Information
Patent Citations
Virtual reality game scene change method and device, processor and terminal
CN108114467A
Background dynamic switching method and device of application program and electronic device
CN109766153A
Scene switching method and device, electronic equipment and storage medium
CN110889384A
Lens switching method and device in game, and electronic equipment
CN111803946A
Method and device for switching weather types in game, storage medium and electronic device
CN114419214A
