Methods, devices, and electronic equipment for switching sky backgrounds in games.
The method and apparatus for dynamic sky background switching in games address the limitations of existing technologies by enabling real-time updates and transitions, enhancing player experience and reducing development complexity.
Patent Information
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- NETEASE (HANGZHOU) NETWORK CO LTD
- Filing Date
- 2023-07-13
- Publication Date
- 2026-05-27
Smart Images

Figure 2026517032000001_ABST
Abstract
Description
Technical Field
[0001] Cross-reference to Related Applications This application claims the priority of a Chinese patent application with an application number of 202310602726.1 and a title of "Method, Apparatus, and Electronic Device for Switching Sky Background in Games" filed on May 25, 2023, and incorporates the entire disclosure of the Chinese patent application herein for reference.
[0002] This disclosure relates to the technical field of game interaction design, and in particular, to a method, apparatus, and electronic device for switching the sky background in games.
Background Art
[0003] When a user displays their original content or provides it to other users via an Internet platform, it is generally necessary to switch the background to indicate a change in location or to boost the mood. In related technologies, the game scene is generally encapsulated by a skybox, and then the movement of the skybox is used to achieve the switching of the background in the game scene. However, this method can only achieve background switching in the editing mode of the game stage, resulting in a poor gaming experience for players. At the same time, since the skybox simply depends on the mover when switching, the expression of background switching is monotonous and it is difficult to meet the needs of players.
Summary of the Invention
[0004] An object of this disclosure is to provide a method, apparatus, and electronic device for switching the sky background in a game to switch the sky background in the game stage, enrich the expression of the sky background switching, and improve the gaming experience of players.
[0005] According to one aspect of the present disclosure, a method for switching sky backgrounds in a game is provided, and a graphical user interface is provided via a terminal device, wherein the graphical user interface displays some game scenes and sky backgrounds corresponding to the game scenes, and the sky backgrounds are backgrounds generated based on sky background information, and the method includes the steps of: determining target sky background information and switching parameters corresponding to a sky background switching event in response to a sky background switching event; updating the sky background information corresponding to a game scene from current sky background information to target sky background information based on the switching parameters, and dynamically displaying the dynamically changing sky background of the game scene obtained by rendering during the process of updating the sky background information on the graphical user interface, wherein the process of updating the sky background information is a process of updating the sky background information corresponding to a game scene from current sky background information to target sky background information.
[0006] According to one aspect of the present disclosure, a sky background switching device in a game is provided, which provides a graphical user interface via a terminal device, the graphical user interface displays some game scene screens and a sky background corresponding to the game scene, the sky background being a background generated based on sky background information, and the device includes an information acquisition module configured to determine target sky background information and switching parameters corresponding to a sky background switching event in response to a sky background switching event, and a sky background switching module configured to update the sky background information corresponding to the game scene from current sky background information to target sky background information based on the switching parameters, and to dynamically display the dynamically changing sky background of the game scene obtained by rendering during the process of updating the sky background information on the graphical user interface, wherein the process of updating the sky background information is a process of updating the sky background information corresponding to the game scene from current sky background information to target sky background information.
[0007] According to one aspect of the present disclosure, an electronic device is provided, the electronic device including a processor and a memory, the memory storing device-executable instructions that can be executed by the processor, the processor executing the device-executable instructions to realize a method for switching the sky background in the above game.
[0008] According to one aspect of the present disclosure, a computer-readable storage medium is provided, 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 cause the processor to implement a method for switching the sky background in the game.
[0009] The embodiments of this disclosure provide the following beneficial effects.
[0010] This disclosure provides a method, apparatus, and electronic device for switching sky backgrounds in a game. First, in response to a sky background switching event, the system determines target sky background information and switching parameters corresponding to the event. Next, based on the switching parameters, it updates the sky background information corresponding to the game scene from the current sky background information to the target sky background information. During the process of updating the sky background information, the system dynamically displays the dynamically changing sky background of the game scene, which is rendered, on a graphical user interface. Here, the process of updating the sky background information is the process of updating the sky background information corresponding to the game scene from the current sky background information to the target sky background information. In this system, the player can trigger a sky background switching event to enable switching of the sky background corresponding to the game scene during a game. At the same time, the system enriches the expression of sky background switching through switching parameters, which helps to improve the player's gaming experience.
[0011] Other features and advantages of this disclosure are described in the following specification, or some features and advantages can be inferred from or uniquely confirmed from the specification, or can be known by practicing the above-described technology of this disclosure.
[0012] To make the above-mentioned objectives, features, and advantages of this disclosure clearer, preferred embodiments will be described in detail below with reference to the accompanying drawings. [Brief explanation of the drawing]
[0013] [Figure 1] Figure 1 is a flowchart of a method for switching the sky background in a game according to one embodiment of the present disclosure. [Figure 2] Figure 2 is a flowchart of a method for switching the sky background in another game according to one embodiment of the present disclosure. [Figure 3] Figure 3 is a schematic diagram illustrating how to update the sky background based on a first switching method according to one embodiment of the present disclosure. [Figure 4] Figure 4 is a schematic diagram illustrating how the sky background is updated based on a second switching method according to one embodiment of the present disclosure. [Figure 5] Figure 5 is a flowchart of a method for switching the sky background in another game according to one embodiment of the present disclosure. [Figure 6] Figure 6 is a flowchart of a method for switching the sky background in another game according to one embodiment of the present disclosure. [Figure 7] Figure 7 is a schematic diagram of a parameter setting panel according to one embodiment of the present disclosure. [Figure 8] Figure 8 is a schematic diagram of the configuration of a sky background switching device in a game according to one embodiment of the present disclosure. [Figure 9] Figure 9 is a schematic diagram of the configuration of an electronic device according to one embodiment of the present disclosure. [Modes for carrying out the invention]
[0014] To further clarify the objectives, technical solutions, and advantages of the embodiments of this disclosure, the technical solutions of the embodiments of this disclosure will be described clearly and completely below with reference to the drawings of the embodiments of this disclosure. Clearly, the embodiments described are a subset of, but not all, embodiments of this disclosure. Typically, the components of the embodiments of this disclosure described and illustrated in the drawings herein may be arranged and designed in a variety of different configurations.
[0015] Accordingly, the detailed description of the embodiments of the Disclosure provided in the following drawings is not intended to limit the scope of the claimed Disclosure, but merely to illustrate selected embodiments of the Disclosure. All other embodiments that can be obtained based on the embodiments of the Disclosure, without any creative work by a person skilled in the art, are all within the scope of the Disclosure.
[0016] When users display or provide their original content to other users via an internet platform, background changes are generally necessary to indicate a change of location or to evoke emotion. Therefore, background changes have many application scenarios and use needs in UGC (User Generated Content).
[0017] In related technologies, if a UGC player needs to switch backgrounds, the only way to do so is to use a skybox component to close the game scene and have the skybox component's movement trigger the background change. This method is difficult to implement and places a high demand on game developers. Furthermore, due to game optimization issues, the background cannot be sufficiently detailed, severely limiting the size of the player's game stage. Currently, the officially provided background switching is only available in game stage editing mode, and because the skybox resource is stored in the game scene, dynamically adjusting the skybox during gameplay requires the client to reload the game scene, interrupting the user's gaming experience.
[0018] In the related art, a plurality of skybox resources are also provided. When these skybox resources do not dynamically switch the skybox, each map can only be used by a player alone, and the creation limit of UGC is greatly restricted. At the same time, the skybox in the related art simply depends on the locomotor when switching the background, so the expression of background switching is monotonous and it is difficult to meet the needs of players.
[0019] Based on the above problems, embodiments of the present disclosure provide a method, an apparatus, and an electronic device for switching a sky background in a game applicable to a scene of switching a sky background and a pause switching of a game scene in a game stage.
[0020] The method for switching the sky background in a game according to an embodiment of the present disclosure can be executed on a local terminal device or a server. When the interaction control method in the game is executed on the server, the method can be realized and executed based on a cloud interaction system, where the cloud interaction system includes a server and a client device.
[0021] In selectable embodiments, the cloud interaction system can run various cloud applications, such as cloud games. Taking cloud games as an example, cloud games are a game format based on cloud computing. In the execution mode of cloud games, the entity executing the game program and the entity displaying the game screen are separated. The memory and execution of the method for switching the sky background in the game are completed on the cloud game server, and the client device is used for receiving and transmitting data and displaying the game screen. For example, the client device may be a display device with data transmission capabilities that is close to the user, such as a mobile terminal, television, computer, or palmtop computer. However, the information processing is performed by the cloud game server in the cloud. When playing a game, the player operates the client device to send operation commands to the cloud game server. The cloud game server executes the game based on the operation commands, encodes and compresses data such as the game screen, sends it back to the client device via the network, and finally decodes it and outputs the game screen.
[0022] In a selectable embodiment, taking a game as an example, a game program is stored in a local terminal device and used to display a game screen. The local terminal device is used to interact with a player via a graphical user interface, that is, usually, the game program is downloaded, installed, and executed via an electronic device. The manner in which the local terminal device provides a graphical user interface to the player may include multiple types. For example, it may be rendered and displayed on the display of the terminal, or provided to the player by holographic projection. For example, the local terminal device may include a display and a processor. The display is used to display a graphical user interface, which includes a game screen. The processor is used to execute the game, generate a graphical user interface, and control the display of the graphical user interface on the display.
[0023] In one possible embodiment, the embodiments of the present disclosure provide a method for switching a sky background in a game. A graphical user interface is provided by a terminal device, where the terminal device may be the aforementioned local terminal device or the client device in the aforementioned cloud interaction system. The graphical user interface displays some game scenes and the sky background corresponding to the game scenes. The sky background is a background generated based on sky background information. As shown in FIG. 1, the method includes the following specific steps.
[0024] In step S102, in response to a sky background switching event, determine the target sky background information and switching parameters corresponding to the sky background switching event.
[0025] The above sky background switching event represents an event that initiates the updating of sky background information corresponding to a game scene. This sky background switching event may be determined according to the player's settings or research and development needs. Similarly, the target sky background information and switching parameters corresponding to the sky background switching event can also be determined according to the player's settings or needs. Specifically, the player can set the sky background switching event, and the target sky background information and switching parameters corresponding to this event, in the game editor. The above switching parameters are at least one of the following parameters: switching time length and switching method. The switching time length 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 time length may be 0 seconds, 3 seconds, or 5 seconds, etc.
[0026] In the selectable embodiments, the sky background switching event may be a trigger operation on a switching control displayed in a graphical user interface, or it may be when a controlled virtual object controlled by a terminal device enters the target area, and is not specifically limited thereto.
[0027] In concrete terms, when a player triggers a sky background switching event, the system first retrieves the current sky background information for the game scene, as well as the target sky background information and switching parameters corresponding to the sky background switching event. Here, the current sky background information is the sky background information corresponding to the game scene when the sky background switching event occurred. Specifically, this sky background information may be a sky background map, or it may be background parameters for controlling the sky background map.
[0028] In the selectable embodiments, the game scene includes a skybox, the sky background information corresponding to the game scene is attribute information corresponding to the skybox, and the sky background is a background generated based on the sky background information of the skybox. The skybox can cover the entire game scene and provide a sky background to the game scene based on the sky background information. The sky background information corresponding to the skybox described below is the sky background information corresponding to the game scene.
[0029] In step S104, based on the above 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 dynamically changing sky background of the game scene, obtained by rendering during the process of updating the sky background information, is dynamically displayed on the graphical user interface. Here, 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.
[0030] After 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. In the process of updating the sky background information, the updated sky background information corresponding to the game scene is calculated in real time each time an update occurs, and the sky background of the game scene rendered based on the updated sky background information is displayed in the graphical user interface. This allows the updated sky background to be dynamically displayed in the graphical user interface, so that the player can directly see the changes in the sky background of the game scene as it changes by adjusting the game field of view.
[0031] In selectable embodiments, the process of updating the sky background information may continue for a predetermined duration, or it may be completed immediately, specifically determined according to the player's settings. Typically, the predetermined duration is matched to the switching duration and can be determined according to the player's settings.
[0032] The method for switching the sky background in a game according to the embodiment of this disclosure enables the switching of the sky background corresponding to the game scene during a game match by triggering a sky background switching event by the player. At the same time, the method helps to enrich the expression of the sky background switching by switching parameters, thereby improving the player's gaming experience.
[0033] The method for switching the sky background in a game according to the embodiment of this disclosure is implemented based on the above embodiment, and when the switching parameter is the switching time length, the method updates 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, and dynamically displays the dynamically changing sky background of the game scene obtained by rendering during the process of updating the sky background information on the graphical user interface (implemented by steps S206 to S210 below). As shown in Figure 2, the method includes the following specific steps.
[0034] In step S202, in response to the game start command, the graphical user interface is controlled to display a game scene corresponding to the game match.
[0035] The above game start command may be determined according to the game rules. For example, the game start command may be triggered when the player triggers the game start control in the graphical user interface, or the game start command may be triggered when the player triggers any area in the graphical user interface. When displaying a game scene corresponding to a game match in the graphical user interface, the controlled virtual object controlled by the terminal device is the game stage or the game match.
[0036] In step S204, 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, where the switching parameters include the switching time length.
[0037] In step S206, during the process of updating the current sky background information corresponding to the game scene to the target sky background information based on the switching time length, the change parameters of the sky background information corresponding to a unit of time are determined.
[0038] In concrete implementation, the change parameter is the ratio of the target sky background information to the current sky background information in the updated sky background information. The above unit time is the time frame in which the sky background information corresponding to the game scene changes during 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 10 unit times are included in 1 second. Therefore, the longer the switching time, the more unit time the sky background information changes during the process of updating the current sky background information corresponding to the game scene to the target sky background information. As time progresses, the change parameter corresponding to the unit time gradually increases until the ratio of the target sky background information in the updated sky background information becomes 1, at which point the updated sky background information is also the target sky background information.
[0039] In step S208, the sky background information corresponding to the game scene is dynamically updated in chronological order based on the sky background information change parameter corresponding to the unit time, the current sky background information, and the target sky background information.
[0040] In concrete implementation, the switching parameters may further include the switching method, thereby different switching methods having different ways of determining the sky background information corresponding to the dynamically updated game scene based on the sky background information change parameter corresponding to a unit time, the current sky background information, and the target sky background information.
[0041] In selectable embodiments, if the switching parameter further includes a first switching method and the sky background information includes multiple pixel points, step S208 may be implemented by the following steps 10 to 12.
[0042] In step 10, the pixel points to be updated among multiple pixel points in the sky background information are dynamically determined in chronological order based on the first switching method and change parameters, where the pixel points to be updated are a subset of the multiple pixel points in the sky background information.
[0043] Specifically, the first switching method described above is a method that gradually displays the sky background obtained by rendering based on the target sky background information from one end to the other of the sky background of the game scene. In other words, it replaces the current sky background information corresponding to the game scene with the target sky background information by advancing it from one end to the other. This first switching method may also be called the advancing method or the burning method. When the switching parameters include the first switching method, it is necessary to dynamically determine which parts of the sky background information's pixel points are the pixel points to be updated based on the change parameters.
[0044] Based on the above description, the above change parameter is the ratio of pixel points in the updated sky background information to the pixel points in the current sky background information. In selectable embodiments, the above change parameter may be the ratio of the number of pixel points in the current sky background information to the number of pixel points in the target sky background information in the updated sky background information.
[0045] In step 11, the target pixel value corresponding to the pixel point to be updated is determined based on the target sky background information.
[0046] In practical implementation, if the target sky background information is a sky background map, the pixel values corresponding to the pixel points to be updated in the sky background map can be determined as the target pixel values. If the target sky background information is background parameters, the target pixel values of the pixel points to be updated can be determined based on the background parameters.
[0047] In step 12, the pixel value of the pixel point to be updated is updated from the current pixel value determined based on the current sky background information to the target pixel value.
[0048] As shown in Figure 3, this is a schematic diagram illustrating how the sky background is updated based on the first switching method according to an embodiment of the present disclosure. Figure 3 is a schematic diagram of the sky background obtained by rendering during the process of updating the current sky background to target sky background information. Here, the right-hand portion of the transition line at the countdown position in the first figure in Figure 3 is the sky background of the game scene obtained by rendering based on the target sky background information, and the right-hand portion of the transition line is the sky background of the game scene obtained by rendering 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. As can be seen from Figure 3, the proportion of the sky background of the game scene obtained by rendering based on the target sky background information to the updated sky background gradually increases in chronological order.
[0049] In another selectable embodiment, if the switching parameter further includes a second switching method and the sky background information includes multiple pixel points, step S208 above may be implemented by the following steps 20-22.
[0050] In step 20, based on the second switching method, the pixel points to be updated among multiple pixel points in the sky background information are determined, where the pixel points to be updated are all of the multiple pixel points in the sky background information.
[0051] Specifically, the second switching method described above is for the sky background of the game scene. It is based on the sky background obtained by rendering based on the current sky background information, and the entire sky background gradually appears as a sky background obtained by rendering based on the target sky background information. This method may also be called a gradient method or a transition method. When the switching parameter includes the second switching method, all pixel points in the sky background information are determined to be the pixel points to be updated.
[0052] In step 21, the target pixel value corresponding to the pixel point to be updated is determined based on the target sky background information, and the current pixel value corresponding to the pixel point to be updated is determined based on the current sky background information.
[0053] In concrete implementation, if the target sky background information is a sky background map, the pixel value corresponding to the pixel point 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 of the pixel point to be updated can be determined based on the background parameters. The current pixel value mentioned above is the pixel value corresponding to the pixel point to be updated in the current sky background information.
[0054] In step 22, the pixel values of the pixel points to be updated are dynamically updated in chronological order based on the change parameters, target pixel values, and current pixel values.
[0055] In concrete implementation, the change parameter may be the ratio of pixel points in the updated sky background information to the pixel points in the current sky background information. In selectable embodiments, the change parameter may be the ratio of the pixel value of each pixel point in the updated sky background information to the pixel value of each pixel point in the target sky background information.
[0056] As shown in Figure 4, this is a schematic diagram illustrating how the sky background is updated based on the second switching method according to an embodiment of the present disclosure. Figure 4 is a schematic diagram of the sky background obtained by rendering during the process of updating the current sky background to 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, the sky background of the game scene obtained by rendering based on the target sky background information gradually appears in the updated sky background in chronological order, that is, its proportion gradually increases.
[0057] In one specific embodiment, for each pixel point to be updated, the current pixel value corresponding to that pixel point and the target pixel value are added together to obtain the sum, and the product of this sum and the change parameter can be determined as the pixel value of the pixel point to be updated.
[0058] In step S210, the graphical user interface dynamically displays the sky background of the dynamically changing game scene, which is rendered based on dynamically updated sky background information.
[0059] The sky background switching method in the above game triggers a sky background switching event when a player plays a game. According to the switching method and switching time length corresponding to the sky background switching event, the sky background information corresponding to the game scene is dynamically updated to the target sky background information. Based on the dynamically updated sky background information, the dynamically changing sky background of the game scene, obtained by rendering, can be dynamically displayed on the graphical user interface. In this way, the method enriches the expression of sky background switching and helps to improve the player's gaming experience.
[0060] Based on the above embodiment, the following embodiment describes a switching parameter that includes a third switching method, which is a method of switching the sky background of the game scene when switching immediately.
[0061] Specifically, in response to a sky background switching event, the system determines the target sky background information and switching parameters corresponding to the sky background switching event. Here, the switching parameters include a third switching method, and based on the third switching method, the system switches the sky background information corresponding to the game scene from the current sky background information to the target sky background information. The system then continuously displays the sky background of the game scene, which is rendered based on the target sky background information, in the graphical user interface.
[0062] This method allows for the immediate switching of sky background information corresponding to the game scene to the target sky background information when a sky background switching event is triggered. As a result, the sky background in the graphical user interface immediately 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 enables rapid sky background switching.
[0063] Based on the above embodiment, the following embodiment describes a method for temporarily pausing the switching of the sky background.
[0064] Specifically, during the process of updating the sky background information, in response to a sky background update pause event, the process of updating the sky background information is paused, and the sky background of the game scene, rendered based on the corresponding sky background information at the time of the sky background update pause event, is continuously displayed in the graphical user interface.
[0065] During the process of updating the sky background information, if the sky background information corresponding to the game scene has not been switched to the target sky background information, the player can trigger a sky background update pause event. This will immediately stop updating the sky background information corresponding to the game scene, and the sky background effect of the game scene, rendered based on the corresponding sky background information at the time of the sky background update pause event, will be continuously 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 sky background consisting of a first part of the game scene's sky background obtained by rendering the current sky background information and a second part of the game scene's sky background obtained by rendering the target sky background information, where the first and second parts can constitute a complete sky background.
[0066] In some embodiments, the sky background corresponding to the game scene displays a pre-configured transition effect that corresponds to the connection between the first part of the game scene's sky background, obtained by rendering the current sky background information, and the second part of the game scene's sky background, obtained by rendering the target sky background information. This pre-configured transition effect is the corresponding transition effect in the first switching method, and includes a transition color and a transition style, which can be determined in the game editor according to the needs.
[0067] In practical implementation, the above-mentioned sky background update pause event can be determined according to the player's settings or research and development needs. Specifically, the player can set a sky background update pause event in the game editor, which is used to indicate a trigger event that pauses the updating of sky background information corresponding to the game scene. In an optional embodiment, the graphical user interface further displays a toggle control and a pause control, the sky background toggle event includes triggering the toggle control, and the sky background update pause event includes triggering the pause control.
[0068] Based on the above description, embodiments of the present disclosure further provide a method for switching sky backgrounds in another game, which includes the following specific steps, as shown in Figure 5.
[0069] In step S402, in response to a control command for the controlled virtual object corresponding to the terminal device, the controlled virtual object is controlled to perform a first game action that satisfies a first pre-set condition, and is controlled to trigger a sky background switching event.
[0070] In concrete implementation, the first game action of the first pre-set condition may be determined by the player's settings, and selectively, the first game action of the first pre-set condition may be to control the controlled virtual object to move to a target area in the game scene. This target area is a scene area in the game scene, and the specific area in the game scene that this scene area is can be determined by the player's settings.
[0071] In step S404, in response to the sky background switching event, the target sky background information and switching parameters corresponding to the sky background switching event are determined.
[0072] In 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 dynamically changing sky background of the game scene obtained by rendering during the process of updating the sky background information is dynamically displayed in the graphical user interface.
[0073] In step S408, during the process of updating the sky background information, in response to a control command to the controlled virtual object corresponding to the terminal device, the controlled virtual object is controlled to perform a second game action that satisfies a second pre-set condition, and the sky background update pause event is triggered.
[0074] In step S410, in response to the sky background update pause event, the process of updating the sky background information is paused, and the sky background of the game scene, rendered based on the corresponding sky background information at the time of the sky background update pause event, is continuously displayed in the graphical user interface.
[0075] In concrete implementation, the second game action of the second pre-set condition described above may be determined by the player's settings, and selectively, the second game action of the second pre-set condition may be to control the controlled virtual object so as to separate it from the target area in the game scene.
[0076] In the above method, the player can control the switching of the sky background and the pausing of the game by controlling the movement of the controlled virtual object, thereby enriching the way the game is played.
[0077] An embodiment of the present disclosure further provides a method for switching sky backgrounds in another game, the method focusing on a sky background switching event, a sky background update pause event, a method for setting target sky background information and switching parameters, the method including the following specific steps as shown in Figure 6.
[0078] In step S502, the game editing scene and editing window are displayed in the graphical user interface, and the editing window contains multiple editable components.
[0079] The above-mentioned game editing scene is a scene provided by executing the game program, and may also be understood as a scene provided by the game editor. In the game editing scene, editing operations can be performed on editable components. Specifically, when the player triggers a game editing command, the game editing scene and editing window can be displayed in the graphical user interface, and the game editing command can be determined based on the game rules. For example, the editing command may be an operation to enter the game editor, or it may be an operation to select and edit a scene map.
[0080] The editing window described above may contain multiple editable components, and the specific component types and forms included in such editable components may be set according to the needs of research and development. In actual applications, the editing window may contain multiple different types of editable components, such as terrain components, engine components, decorative components, and combination components. Furthermore, each type of editable component may contain multiple editable components, and the same type of editable component may have different display parameters in the game play scene. That is, some editable components may be visible in both the game editing scene and the game play scene, while some editable components may be visible in the game editing scene but not in the game play scene. For example, the large base plate component and the frustocone sector component in the terrain components, and the cylinder component and gear component in the engine components are all editable components that are visible in both the game editing scene and the game play scene, but the birth point component and resurrection candidate point component, which correspond to the logic component in the engine components, are all editable components that are visible in the game editing scene but not in the game play scene.
[0081] In one specific embodiment, after displaying an editing window in the graphical user interface, the system controls the generation of a virtual object corresponding to the target editable component in the game editing scene in response to a selection operation on the target editable component, where the virtual object is configured to be displayed with pre-set display parameters. These pre-set display parameters include being visible or invisible in the game scene. In specific implementation, the specific operation of the selection operation may be determined according to the needs of research and development. For example, the selection operation may be dragging the target editable component into the game editing scene, or it may be an operation such as clicking or long-pressing the target editable component in the editing window.
[0082] In step S504, in response to an editing operation on the target editable component, the switching conditions, switching parameters, and target sky background information of the target editable component are determined, where the switching parameters include the switching method and / or switching time, 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 skybox in the game editing scene.
[0083] In actual applications, the above switching parameters may include only the switching method, only the switching time, or both the switching method and the switching time. The above switching conditions correspond 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 by the needs of research and development and the player's settings.
[0084] In step S506, the sky box's sky background information is updated from the current sky background information to the target sky background information based on the switching parameters corresponding to the target editable component, and the sky background of the game scene rendered during the information switching process for updating the sky box is dynamically displayed in the graphical user interface.
[0085] After setting the switching conditions, switching parameters, and target sky background information corresponding to the target editable component, triggering a certain interaction control in the graphical user interface will update the sky box's sky background information from the current sky background information to the target sky background information based on the switching parameters corresponding to the target editable component in the graphical user interface. The sky background of the game scene, rendered during the information switching process that updates the sky box, can then be dynamically displayed in the graphical user interface. Here, the sky box's sky background information may be understood as the game scene's sky background information.
[0086] In this system, players can freely set sky background switching events, sky background update pause events, switching parameters, and target sky background information corresponding to target editable components in the game editing scene. This enriches the expression of sky background switching and helps improve the player's gaming experience.
[0087] In the selectable embodiment, setting controls are displayed in the graphical user interface, and step S506 may be implemented by the following steps 30 to 33.
[0088] In step 30, in response to a trigger operation on the setting control, the editing window displays a parameter setting panel corresponding to the target editable component, where the parameter setting panel contains multiple editable controls used to set the switching conditions, switching parameters, and target sky background information for the target editable component.
[0089] In concrete implementation, the trigger operation for the above setting control may be a click operation or a long press operation on the setting control. When the setting control is triggered, a parameter setting panel corresponding to the target editable component can be displayed. This parameter setting panel is used to set the sky background switching event, sky background update pause event, target sky background information, and background switching parameters corresponding to the target editable component.
[0090] In step 31, in response to the first setting operation on the parameter setting panel, the switching conditions corresponding to the target editable component are determined.
[0091] In concrete implementation, the specific operation of the first setting operation described above can be determined by the player's operation. The switching conditions described above include a sky background switching event, in which the target editable component initiates a background switching, and a sky background update pause event, in which the target editable component pauses the background switching. The parameter setting panel described above includes a first editable control for setting the sky background switching event, and a second editable control for setting the sky background update pause event. Therefore, in response to a first input operation on the first editable control, a sky background switching event corresponding to the target editable component can be set based on the first input operation, and in response to a second input operation on the second editable control, a sky background update pause event corresponding to the target editable component can be set based on the second input operation.
[0092] The first and second input operations described above can be determined in response to player input, and the player can perform input operations using a full keyboard. In one selectable embodiment, the first input operation includes setting a target component associated with a target editable component and setting a sky background switch event so that a controlled virtual object controlled by a terminal device moves to the scene space determined by the target component, and the second input operation includes setting a sky background update pause event so that the controlled virtual object moves out of the scene space determined by the target component. The scene control is a region in the game scene.
[0093] In another selectable embodiment, the first input operation includes setting a toggle control in the graphical user interface and setting a sky background toggle event as the toggle trigger control, and the second input operation includes setting a pause control in the graphical user interface and setting a sky background update pause event as the pause trigger control.
[0094] In step 32, the toggle parameter corresponding to the target editable component is determined in response to the second setting parameter for the parameter setting panel.
[0095] In concrete implementation, the specific operation of the second setting operation described above can be determined by the player's operation. The above switching parameter includes a switching method. Based on this, the setting method for the switching parameter displays multiple pre-set switching methods in the parameter setting panel in response to a click operation on an editable control corresponding to the switching method in the parameter setting panel, and the different switching methods correspond to different methods for determining the pixel points to be updated for the sky background information of the skybox, where the sky background information includes multiple pixel points, and in response to a trigger operation on the target switching method among the multiple pre-set switching methods, the target switching method is determined as the switching method corresponding to the target editable component. The above multiple pre-set switching methods may include a first switching method, a second switching method, and a third switching method.
[0096] In concrete implementation, if the target switching method includes a first switching method, the method further includes the steps of: displaying a transition setting control corresponding to the target switching method in a parameter setting panel in response to a trigger operation on the target switching method among a plurality of pre-set switching methods, wherein the transition style control is used to set the transition effect of the connection portion between the pixel points to be updated and the unupdated pixel points of the sky box's sky background information; and determining the transition effect corresponding to the target switching method in response to a setting operation on the transition setting control, and determining the target switching method and the switching transition effect corresponding to the target switching method as a switching method corresponding to the target editable component. Here, the transition switching effect includes a transition color and / or a transition style.
[0097] In one selectable embodiment, the switching parameter includes a switching time length, and based on this, the method for determining the switching parameter corresponding to the target editable component is to determine the input value corresponding to the input operation as the switching time length corresponding to the target editable component in response to the input operation for the switching time length in the parameter setting panel, where the switching time length is the time length corresponding to updating the sky box'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 by the player's operation. For example, the input value may be 5 seconds or 10 seconds.
[0098] In step 33, in response to a third setting operation on the parameter setting panel, the target sky background information corresponding to the target editable component is determined.
[0099] In practical implementation, the specific operation of the second setting operation described above can be determined by the player's actions.
[0100] In one selectable embodiment, the target sky background information corresponding to the target editable component can be determined by steps 40-42 below.
[0101] In step 40, in response to a trigger operation on an editable control corresponding to the target sky background information in the parameter setting panel, the parameter setting panel displays custom background options and at least one pre-configured sky background map.
[0102] In practical terms, the customizable background option is used to set target sky background information corresponding to the target-editable component according to the player's needs, while the pre-configured sky background map is a background map of a specified style provided by the system.
[0103] In step 41, in response to a trigger operation on the first sky background map among at least one pre-configured sky background map, the target sky background information is determined based on the first sky background map.
[0104] The first sky background map described above may be any one of the pre-configured sky background maps, and which specific pre-configured sky background map it is can be determined by the player's actions. When actually implementing this, the first sky background map can be determined as the target sky background information.
[0105] In one selectable embodiment, in response to a trigger operation on a first sky background map from at least one pre-configured sky background map, a map setting control may be displayed on the parameter setting panel, where the map setting control is used to set the map parameters of the first sky background map, which include at least one of map color, map saturation, and map transparency. In response to a setting operation on the map setting control, the map parameters of the first sky background map are adjusted, the adjusted first sky background map is obtained, and the adjusted first sky background map is determined as the target sky background information. In this method, the player can adjust the sky background map selected according to their needs, thereby enabling them to quickly determine the target sky background information.
[0106] In one selectable embodiment, a customization setting control is displayed in the parameter setting panel in response to a trigger operation on a customization background option. In response to a trigger operation on the customization setting control, multiple pre-configured background parameters are displayed in the parameter setting panel. In response to setting operations on multiple pre-configured background parameters, multiple target background parameters can be obtained, and these multiple target background parameters can be determined as target sky background information. Specifically, the above pre-configured background parameters include at least one parameter from among a first gradient color, a second gradient color, a gradient axis direction, axis position, and a gradient contrast. If the target sky background information consists of multiple target background parameters, a sky background containing at least two types of gradient colors can be obtained by rendering based on the multiple target background parameters.
[0107] In one selectable embodiment, in response to a trigger operation on an editable control corresponding to the target sky background information in the parameter setting panel, a "no transition background" option is displayed in the parameter setting panel, where the "no transition background" option is used to indicate that the target editable component will be disabled. In response to a trigger operation on the "no transition background" option, popup window information is displayed in the graphical user interface, where the popup window information is used to indicate the function to apply the "no transition background" option, and the target editable component will be disabled. In response to a confirmation operation on the popup window information, control is made to disable the target editable component. Specifically, when the "no transition background" option is triggered, the target editable component cannot switch the sky background, and at this time, the target editable component is also disabled. The popup window information can secondarily determine whether the player needs to select the "no transition background" option and can present the phenomena that occur after the player makes a selection.
[0108] In concrete implementation, after a target-editable component is disabled, information is displayed on the graphical user interface in response to a trigger operation on the target-editable component. This information is used to indicate the reason why the target-editable component was disabled and how to reactivate it. Specifically, the reason for disabling it may be that the no-transition background option was selected, and the method for reactivating it may be to switch to a background with a transition and then re-enable the target-editable component.
[0109] In one selectable embodiment, the parameter setting panel further includes a first interaction control used to preview the sky background switching effect corresponding to a target editable component in the game editing scene. Specifically, in response to a trigger operation on the first interaction control, the graphical user interface displays switching parameters set based on the target editable component, and renders the sky background of the game scene obtained from the sky box's sky background information in the process of updating the sky box's sky background information (corresponding to the sky background information corresponding to the game scene) from the current sky background information to the target sky background information set for the target editable component. In this method, the player can view whether the sky background switching effect meets their needs using the preview function provided by the first interaction control.
[0110] To facilitate understanding of the implementation of this disclosure, Figure 7 is a schematic diagram of a parameter setting panel according to an embodiment of this disclosure, where the control corresponding to the switched sky background in Figure 7 is an editable control corresponding to the target sky background information. In Figure 7, the "event to start background switching" is a sky background switching event, and the corresponding editable control is the first editable control, which, when the player clicks the first editable control, can pop up a full keyboard. The "event to switch to background pause" is a sky background update pause event, and the corresponding editable control is the second editable control, which, when the player clicks the second editable control, can pop up a full keyboard, and the player can input the corresponding events as a sky background switching event and a sky background update pause event in the popped-up full keyboard. When the player clicks the editable control corresponding to the background switching method in Figure 7, a dropdown list containing multiple pre-configured switching methods appears, and in Figure 7, the player selects the gradient switching method. The editable control corresponding to the background transition time in Figure 7 can pop up a keypad displaying numbers, allowing the player to set the background transition time by clicking the numbers on the keypad. In Figure 7, the background transition time is set to 5 seconds. The sky background test control in Figure 7 is the first interaction control.
[0111] In one selectable embodiment, the graphical user interface further displays a second interaction control, which simulates a game match scene and is used to try playing the game in the simulated game match scene. Based on this, the method for switching the sky background in the above game may be implemented by the following steps 50-55.
[0112] In step 50, in response to a trigger operation on the second interaction control, a game scene corresponding to the game editing scene is generated based on the editable components in the game editing scene, and the game scene includes a controlled virtual object corresponding to the terminal device and a virtual object displayed with pre-configured display parameters generated based on the editable components, where the pre-configured display parameters include visible and invisible.
[0113] In step 51, in response to a move command for the controlled virtual object, the system controls the controlled virtual object to move to the scene space corresponding to the target component, and it is determined that the sky background switching event is satisfied.
[0114] In step 52, 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.
[0115] In step 53, 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. During the process of updating the sky background information, the dynamically changing sky background of the rendered game scene is dynamically displayed in the graphical user interface. Here, 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.
[0116] In step 54, during the process of updating the sky background information, in response to a movement command for the controlled virtual object, the controlled virtual object is controlled to separate from the scene space corresponding to the target component, and it is determined that the sky background update pause event is met.
[0117] In step 55, in response to the sky background update pause event, the process of updating the sky background information is paused, and the sky background of the game scene, rendered based on the corresponding sky background information at the time of the sky background update pause event, is continuously displayed in the graphical user interface.
[0118] In the above method, players can try out the game in the game scene corresponding to the generated game editing scene. At the same time, when trying out the game, a sky background switching event is triggered, which displays the sky background of the game scene obtained by rendering during the process of updating the current sky background information to the target sky background information. This allows players to further determine whether the set sky background switching effect meets their needs.
[0119] In one selectable embodiment, the graphical user interface further displays a third interaction control, which is controlled to generate game scene information corresponding to a game editing scene in response to a touch operation on the third interaction control, where the game scene information includes component information of edited components in the game editing scene, and the edited components are editable components that respond to editing operations from among a plurality of editable components contained in the editing window. The game scene information is controlled to be transmitted to a server, where the server is configured to communicate with a first terminal device, the first terminal device is equipped with a game program, and the second terminal device is configured to obtain game scene information from the server and have the game program generate a corresponding game scene based on the game scene information. The first terminal device may be a terminal device that touches the third interaction control, or it may be another terminal device that is connected to the server in a communicative manner.
[0120] After a terminal device triggers a third interaction control, game scene information corresponding to the game editing scene can be generated. This game scene information can be saved to a pre-configured location, which may be a map file. This map file can store not only the game scene information but also other map information (including, but not limited to, screenshots, map names, logs, etc.). After saving the game scene information, the map file is uploaded to the server. After passing a review, the server can publish the game scene generated by the game scene information to a pre-configured map pool. This allows terminal devices connected to the server to download the corresponding game scene information from the server, generate the corresponding game scene based on the game scene information using a game program, and then experience the game in that game scene. This method allows game scene information in the game editor to be published and experienced by other players, thereby enabling rapid user-generated content (UGC).
[0121] In contrast to the embodiments of the above method, the embodiments of this disclosure further provide a sky background switching device in a game, which provides a graphical user interface via a terminal device, and which displays scene screens of some game scenes and sky backgrounds corresponding to the game scenes, where the sky background is a background generated based on sky background information. As shown in Figure 8, the device, An information acquisition module 70 is configured to determine target sky background information and switching parameters corresponding to a sky background switching event in response to a sky background switching event. A sky background switching module 71 is configured to update the sky background information corresponding to a game scene from the current sky background information to the target sky background information based on switching parameters, and to dynamically display the dynamically changing sky background of the game scene, which is rendered during the process of updating the sky background information, on a graphical user interface, wherein the process of updating the sky background information is the process of updating the sky background information corresponding to a game scene from the current sky background information to the target sky background information of the sky background switching module 71.
[0122] In the above-mentioned game, the sky background switching device allows the player to trigger a sky background switching event, thereby enabling the sky background to switch to one that corresponds to the game scene during a game match. At the same time, this method enriches the expression of sky background switching through switching parameters, which helps to improve the player's gaming experience.
[0123] Furthermore, the process of updating the sky background information continues for a predetermined duration.
[0124] By ensuring that the process of updating the sky background information continues for a predetermined duration, it becomes easier to dynamically display the sky background update process in the graphical user interface. This allows players to directly observe the changes in the sky background of the game scene as it progresses by adjusting the game's field of view.
[0125] The above-mentioned device further includes a game start module, which is configured to respond to a sky background switching event and, in response to a game start command, control the graphical user interface to display a game scene corresponding to a game match, before determining the target sky background information and switching parameters corresponding to the sky background switching event.
[0126] By triggering the game start command, the graphical user interface displays a game scene corresponding to the game match. Since the controlled virtual object is the game stage or game match, the game's field of view is focused on the current game match, making it easier for the player to perform subsequent operations.
[0127] In concrete terms, the above game scene includes a skybox, the sky background information is attribute information corresponding to the skybox, and the sky background is a background generated based on the sky background information of the skybox.
[0128] The skybox can cover the entire game scene, providing a sky background to the game scene based on sky background information, and then rapidly updating the entire sky background information corresponding to the game scene from the current sky background information to the target sky background information.
[0129] Furthermore, the above device further includes a switching pause module, which is configured to pause the process of updating sky background information in response to a sky background update pause event during the process of updating sky background information, and to continuously display the sky background of the game scene rendered based on the corresponding sky background information in the graphical user interface in response to the sky background update pause event.
[0130] During the process of updating the sky background information, the user can trigger a sky background update pause event in real time to pause the sky background of the game scene rendered with the corresponding sky background information when updating the sky background switch event. This method helps the player flexibly control the entire sky background update process in the game scene.
[0131] In actual applications, when responding to the above sky background update pause event, the sky background of the game scene rendered based on the corresponding sky background information includes a sky background consisting of a first part of the game scene's sky background obtained by rendering the current sky background information, and a second part of the game scene's sky background obtained by rendering the target sky background information.
[0132] The Sky Background Update Pause event occurs at some point during 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. Therefore, it typically consists of a first part of the game scene's sky background obtained by rendering the current sky background information, and a second part of the game scene's sky background obtained by rendering the target sky background information. This process helps the player flexibly control the entire sky background update process in the game scene, meaning that the timing at which the player triggers the Sky Background Update Pause event allows for flexible determination of the proportion of the sky scene occupied by the first and second parts within the entire game scene.
[0133] In the selectable embodiment, the sky background corresponding to the game scene displays a pre-configured transition effect that corresponds to the connection between the first part of the game scene's sky background obtained by rendering the current sky background information and the second part of the game scene's sky background obtained by rendering the target sky background information.
[0134] When updating the sky background, it has pre-set transition effects, allowing the player to see the dynamic transition effects of the sky background update, making the sky background update process more natural.
[0135] In an optional embodiment, the device further includes a first event trigger module, which is configured to control a controlled virtual object corresponding to a terminal device to perform a first game action that satisfies a first pre-set condition, and to trigger a sky background switching event, in response to a control command to the controlled virtual object corresponding to a terminal device, before responding to a sky background update pause event. The device further includes a second event trigger module, which is configured to control a controlled virtual object corresponding to a terminal device to perform a second game action that satisfies a second pre-set condition, and to trigger a sky background update pause event, in response to a control command to the controlled virtual object corresponding to a terminal device, before responding to a sky background update pause event.
[0136] In the above method, the player can control the switching of the sky background and the pausing of the game by controlling the movement of the controlled virtual object, thereby enriching the way the game is played.
[0137] Furthermore, the first game action under the first pre-set condition is to control the controlled virtual object so that it moves to the target area in the game scene, and the second game action under the second pre-set condition is to control the controlled virtual object so that it separates from the target area in the game scene.
[0138] In the above method, the player can control the movement of the controlled virtual object to the target area and control the separation of the controlled virtual object from the target area in the game scene, thereby enabling the switching of the sky background and the pausing of the game, and enriching the way the game is played.
[0139] In an optional embodiment, the graphical user interface further displays a toggle control and a pause control, the sky background toggle event includes triggering the toggle control, and the sky background update pause event includes triggering the pause control.
[0140] In the above method, players can trigger sky background switching events and sky background update pause events, respectively, using the switching and pause controls displayed on the graphical user interface, making player operation easier and enriching the gameplay.
[0141] In concrete implementation, the above switching parameter includes the switching time length, and the sky background switching module 71 determines the change parameter for 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 based on the switching time length, dynamically updates the sky background information corresponding to the game scene in chronological order based on the change parameter for the sky background information corresponding to a unit time, the current sky background information, and the target sky background information, and dynamically displays the dynamically changing sky background of the game scene obtained by rendering based on the dynamically updated sky background information in the graphical user interface.
[0142] The sky background switching method in the above game triggers a sky background switching event when the player plays a game. According to the switching method and switching time length corresponding to the sky background switching event, the sky background information corresponding to the game scene is dynamically updated to the target sky background information. Based on the dynamically updated sky background information, the dynamically changing sky background of the game scene, obtained by rendering, can be dynamically displayed on the graphical user interface. In this way, the method enriches the expression of sky background switching and helps to improve the player's gaming experience.
[0143] Furthermore, the above switching parameters further include a first switching method, the sky background information includes a plurality of pixel points, and the sky background switching module 71 further dynamically determines, in chronological order, the pixel points to be updated among the plurality of pixel points in the sky background information based on the first switching method and the change parameters, where the pixel points to be updated are a subset of the plurality of pixel points in the sky background information, and the module is further configured to determine a target pixel value corresponding to the pixel points to be updated based on the target sky background information, and to update the pixel value of the pixel points to be updated from the current pixel value determined based on the current sky background information to the target pixel value.
[0144] Furthermore, the above switching parameter further includes a second switching method, the sky background information includes multiple pixel points, and the sky background switching module 71 is configured to dynamically update the sky background information corresponding to the game scene in chronological order based on the change parameter of the sky background information corresponding to a unit time, the current sky background information, and the target sky background information, determine the update target pixel points, which are all of the multiple pixel points in the sky background information, based on the second switching method, determine the target pixel value corresponding to the update target pixel points based on the target sky background information, determine the current pixel value corresponding to the update target pixel points based on the current sky background information, and dynamically update the pixel value of the update target pixel points in chronological order based on the change parameter, the target pixel value, and the current pixel value.
[0145] In concrete implementation, the above change parameter is the ratio of the target sky background information to the current sky background information in the updated sky background information. Furthermore, the fact that the above change parameter is the ratio of the target sky background information to the current sky background information in the updated sky background information means that the change parameter is the ratio of the pixel points of the target sky background information to the pixel points of the current sky background information in the updated sky background information.
[0146] In actual applications, the above change parameter being the ratio of pixel points in the updated sky background information to the pixel points in the current sky background information means that it includes at least one of the following: the ratio of the pixel value of each pixel point in the current sky background information to the pixel value of each pixel point in the target sky background information, and the ratio of the number of pixel points in the updated sky background information to the number of pixel points in the target sky background information.
[0147] The sky background switching method in the above game triggers a sky background switching event when a player plays a game. According to the switching method and switching time length corresponding to the sky background switching event, the sky background information corresponding to the game scene is dynamically updated to the target sky background information. Based on the dynamically updated sky background information, the dynamically changing sky background of the game scene, obtained by rendering, can be dynamically displayed on the graphical user interface. In this way, the method enriches the expression of sky background switching and helps to improve the player's gaming experience.
[0148] In an optional embodiment, the switching parameter includes a third switching method, and the device further includes a sky switching module, which is configured to switch sky background information corresponding to a game scene from current sky background information to target sky background information according to the third switching method, and to continuously display the sky background of the game scene obtained by rendering based on the target sky background information in the graphical user interface.
[0149] This method allows for the immediate switching of sky background information corresponding to the game scene to the target sky background information when a sky background switching event is triggered. As a result, the sky background in the graphical user interface immediately 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 enables rapid sky background switching.
[0150] Furthermore, the above device further includes an information setting module, the information setting module includes a window display unit for displaying a game editing scene and an editing window in a graphical user interface, the window display unit having an editing window containing multiple editable components; a component selection unit for controlling the generation of a virtual target corresponding to a target editable component in the game editing scene in response to a selection operation on a target editable component, the virtual target being configured to be displayed with pre-set display parameters, and the target editable component being a component among multiple editable components; and a component editing unit for determining switching conditions, switching parameters, and target sky background information corresponding to a target editable component in response to an editing operation on the target editable component, the switching conditions including a sky background switching event in which the target editable component starts switching backgrounds, and a sky background update pause event in which the target editable component pauses switching backgrounds.
[0151] In this system, players can freely set sky background switching events, sky background update pause events, switching parameters, and target sky background information corresponding to target editable components in the game editing scene. This enriches the expression of sky background switching and helps improve the player's gaming experience.
[0152] In concrete implementation, the graphical user interface displays setting controls, and the component editing unit, in response to a trigger operation on the setting controls, displays a parameter setting panel corresponding to the target editable component in the editing window. The parameter setting panel contains multiple editable controls, which are used to set the switching conditions, switching parameters, and target sky background information for the target editable component. The system is configured to determine the switching conditions corresponding to the target editable component in response to a first setting operation on the parameter setting panel, determine the switching parameters corresponding to the target editable component in response to a second setting parameter on the parameter setting panel, and determine the target sky background information corresponding to the target editable component in response to a third setting operation on the parameter setting panel.
[0153] In this system, players can freely set sky background switching events, sky switching parameters, and target sky background information corresponding to target editable components in the game editing scene. This enriches the expression of sky background switching and helps improve the player's gaming experience.
[0154] Furthermore, the 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 update pause event. The component editing unit is configured to set a sky background switching event corresponding to the target editable component in response to a first input operation on the first editable control, and to set a sky background update pause event corresponding to the target editable component in response to a second input operation on the second editable control.
[0155] In concrete implementation, the component editing unit is further configured to display customizable background options and at least one pre-configured 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, and to determine the target sky background information based on the first sky background map in response to a trigger operation on the first sky background map among the at least one pre-configured sky background map.
[0156] In this system, players can freely set sky background switching events, sky background update pause events, switching parameters, and target sky background information corresponding to target editable components in the game editing scene. This enriches the expression of sky background switching and helps improve the player's gaming experience.
[0157] In selectable embodiments, the component editing unit is further configured to display customization settings controls on the parameter setting panel in response to a trigger operation on a customization background option, to display a number of pre-configured background parameters on the parameter setting panel in response to a trigger operation on the customization settings controls, to acquire a number of target background parameters in response to a configuration operation on a number of pre-configured background parameters, and to determine the number of target background parameters as target sky background information.
[0158] In concrete implementation, the above-mentioned pre-set background parameters include at least one of the following parameters: first gradient color, second gradient color, gradient axis direction, axis position, and gradient contrast.
[0159] By customizing background options, players can customize target background parameters, thereby improving their sense of immersion and experience in the game, as well as the flexibility of the sky background in game scenes. At the same time, determining target sky background information based on multiple pre-set background parameters improves the intuitiveness of parameter setting.
[0160] In an optional embodiment, the parameter setting panel further includes a first interaction control, the device includes a toggle display module, which, in response to a trigger operation on the first interaction control, displays toggle parameters set based on a target editable component in a graphical user interface, and is configured to render and obtain 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.
[0161] In this system, the player can view whether the effect of the sky background change meets their needs through the preview function provided by the first interaction control.
[0162] The sky background switching device in a game provided by the embodiments of this disclosure has the same implementation principle and technical effects as the embodiments of the method described above. For the sake of brevity, parts not mentioned in the embodiments of the device can be referred to in the corresponding parts of the embodiments of the method described above.
[0163] Embodiments of the present disclosure further provide an electronic device, as shown in Figure 9, which includes a processor and a memory, the memory storing device-executable instructions that can be executed by the processor, and the processor executes the device-executable instructions to implement a method for switching the sky background in the game.
[0164] Specifically, a graphical user interface is provided via a terminal device, and the graphical user interface displays some game scenes and sky backgrounds corresponding to the game scenes, where the sky background is a background generated based on sky background information, and the method for switching the sky background in the game includes the steps of: determining target sky background information and switching parameters corresponding to a sky background switching event in response to a sky background switching event; 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 parameters; and dynamically displaying the dynamically changing sky background of the game scene, which is rendered during the process of updating the sky background information, on the graphical user interface, where 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.
[0165] In this game, the method for switching the sky background allows the player to trigger a sky background switching event, thereby enabling the sky background to switch to match the game scene during a game match. At the same time, this method enriches the expression of sky background switching through switching parameters, which helps to improve the player's gaming experience.
[0166] In the selectable embodiment, the process of updating the above sky background information continues for a predetermined time duration.
[0167] By making the process of updating the sky background information continue for a predetermined duration, it becomes easier to dynamically display the sky background update process in the graphical user interface. This allows players to directly see the changes in the sky background of the changing game scene by adjusting the game's field of view.
[0168] In an optional embodiment, prior to the step of determining the target sky background information and switching parameters corresponding to the sky background switching event in response to the sky background switching event, the method further includes the step of controlling the graphical user interface to display a game scene corresponding to a game match in response to a game start command.
[0169] By triggering the game start command, the graphical user interface displays a game scene corresponding to the game match. Since the controlled virtual object is the game stage or game match, the game's field of view is focused on the current game match, making it easier for the player to perform subsequent operations.
[0170] In the selectable embodiment, the game scene includes a skybox, the sky background information is attribute information corresponding to the skybox, and the sky background is a background generated based on the sky background information of the skybox.
[0171] The skybox can cover the entire game scene, providing a sky background to the game scene based on sky background information, and then rapidly updating the entire sky background information corresponding to the game scene from the current sky background information to the target sky background information.
[0172] In an optional embodiment, the method further includes the step of pausing the sky background information update process in response to a sky background update pause event, and continuously displaying the sky background of the game scene rendered based on the corresponding sky background information in the graphical user interface in response to the sky background update pause event.
[0173] During the process of updating the sky background information, the user can trigger a sky background update pause event in real time to pause the sky background of the game scene rendered with the corresponding sky background information when updating the sky background switch event. This method helps the player flexibly control the entire sky background update process in the game scene.
[0174] In an optional embodiment, the sky background of a game scene rendered based on the corresponding sky background information in response to the sky background update pause event described above includes a sky background consisting of a first part of the game scene sky background obtained by rendering the current sky background information, and a second part of the game scene sky background obtained by rendering the target sky background information.
[0175] The Sky Background Update Pause event occurs at some point during 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. Therefore, it typically consists of a first part of the game scene's sky background obtained by rendering the current sky background information, and a second part of the game scene's sky background obtained by rendering the target sky background information. This process helps the player flexibly control the entire sky background update process in the game scene, meaning that the timing at which the player triggers the Sky Background Update Pause event allows for flexible determination of the proportion of the sky scene occupied by the first and second parts within the entire game scene.
[0176] In the selectable embodiment, the sky background corresponding to the game scene displays a pre-set transition effect that corresponds to the connection between the first part of the game scene's sky background obtained by rendering the current sky background information and the second part of the game scene's sky background obtained by rendering the target sky background information.
[0177] When updating the sky background, it has pre-set transition effects, allowing the player to see the dynamic transition effects of the sky background update, making the sky background update process more natural.
[0178] In an optional embodiment, prior to the step of responding to the sky background switching event, the method further includes the steps of controlling a controlled virtual object to perform a first game action that satisfies a first preset condition in response to a control command for the controlled virtual object corresponding to a terminal device, and controlling to trigger a sky background switching event. Prior to the step of responding to a sky background update pause event, the method further includes the steps of controlling a controlled virtual object to perform a second game action that satisfies a second preset condition in response to a control command for the controlled virtual object corresponding to a terminal device, and controlling to trigger a sky background update pause event.
[0179] In the above method, the player can control the switching of the sky background and the pausing of the game by controlling the movement of the controlled virtual object, enriching the way the game is played.
[0180] In the selectable embodiment, the first game action of the first preset condition is to control the controlled virtual object to move to the target area in the game scene, and the second game action of the second preset condition is to control the controlled virtual object to move away from the target area in the game scene.
[0181] In the above method, the player can control the movement of the controlled virtual object to the target area and control the separation of the controlled virtual object from the target area in the game scene, thereby enabling the switching of the sky background and the pausing of the game, and enriching the way the game is played.
[0182] In an optional embodiment, the graphical user interface further displays a toggle control and a pause control, the sky background toggle event includes triggering the toggle control, and the sky background update pause event includes triggering the pause control.
[0183] In the above method, players can trigger sky background switching events and sky background update pause events, respectively, via the switching and pause controls displayed on the graphical user interface, making player operation easier and enriching the gameplay.
[0184] In selectable embodiments, the switching parameter includes a switching time length, and based on the switching parameter, the steps include 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 dynamically changing sky background of the game scene obtained by rendering during the process of updating the sky background information on the graphical user interface, which includes determining the change parameter of the sky background information corresponding to a unit time during the process of updating the current sky background information corresponding to the game scene to the target sky background information based on the switching time length, dynamically updating the sky background information corresponding to the game scene in chronological order based on the change parameter of the sky background information corresponding to a unit time, the current sky background information, and the target sky background information, and dynamically displaying the dynamically changing sky background of the game scene obtained by rendering based on the dynamically updated sky background information on the graphical user interface.
[0185] The sky background switching method in the above game triggers a sky background switching event when the player plays a game. According to the switching method and switching time length corresponding to the sky background switching event, the sky background information corresponding to the game scene is dynamically updated to the target sky background information. Based on the dynamically updated sky background information, the dynamically changing sky background of the game scene, obtained by rendering, can be dynamically displayed on the graphical user interface. In this way, the method enriches the expression of sky background switching and helps to improve the player's gaming experience.
[0186] In selectable embodiments, the switching parameter further includes a first switching method, the sky background information includes a plurality of pixel points, and the step of dynamically updating the sky background information corresponding to the game scene in chronological order based on the change parameter of the sky background information corresponding to the unit time, the current sky background information, and the target sky background information includes the step of dynamically determining, in chronological order, the update target pixel points which are some of the pixel points among the plurality of pixel points in the sky background information, based on the first switching method and the change parameter; the step of determining the target pixel value corresponding to the update target pixel point based on the target sky background information; and the step of updating the pixel value of the update target pixel point from the current pixel value determined based on the current sky background information to the target pixel value.
[0187] In selectable embodiments, the switching parameter further includes a second switching method, the sky background information includes a plurality of pixel points, and the step of dynamically updating the sky background information corresponding to the game scene in chronological order based on the change parameter of the sky background information corresponding to the unit time, the current sky background information, and the target sky background information includes the step of determining the update target pixel points, which are all of the plurality of pixel points in the sky background information, based on the second switching method; determining the target pixel value corresponding to the update target pixel points based on the target sky background information, determining the current pixel value corresponding to the update target pixel points based on the current sky background information; and dynamically updating the pixel value of the update target pixel points in chronological order based on the change parameter, the target pixel value, and the current pixel value.
[0188] In the selectable embodiment, the above change parameter is the ratio of the target sky background information to the current sky background information in the updated sky background information.
[0189] In a selectable embodiment, the change parameter being the ratio of target sky background information to current sky background information in the updated sky background information means that the change parameter is the ratio of pixel points in the target sky background information to pixel points in the current sky background information in the updated sky background information. In a selectable embodiment, the change parameter being the ratio of pixel points in the target sky background information to pixel points in the current sky background information in the updated sky background information means that it includes at least one of the ratio of the pixel value of each pixel point in the current sky background information to the pixel value of each pixel point in the target sky background information, and the ratio of the number of pixel points in the current sky background information to the number of pixel points in the target sky background information in the updated sky background information.
[0190] The sky background switching method in the above game triggers a sky background switching event when the player plays a game. According to the switching method and switching time length corresponding to the sky background switching event, the sky background information corresponding to the game scene is dynamically updated to the target sky background information. Based on the dynamically updated sky background information, the dynamically changing sky background of the game scene, obtained by rendering, can be dynamically displayed on the graphical user interface. In this way, the method enriches the expression of sky background switching and helps to improve the player's gaming experience.
[0191] In an optional embodiment, the switching parameter includes a third switching method, the method further includes the steps of switching sky background information corresponding to a game scene from current sky background information to target sky background information based on the third switching method, and continuously displaying the sky background of the game scene obtained by rendering based on the target sky background information in a graphical user interface.
[0192] This method allows for the immediate switching of sky background information corresponding to the game scene to the target sky background information when a sky background switching event is triggered. As a result, the sky background in the graphical user interface immediately 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 enables rapid sky background switching.
[0193] In a selectable embodiment, the target sky background information and switching parameters corresponding to the sky background switching event are determined by the following steps: displaying a game editing scene and an editing window in a graphical user interface, wherein the editing window includes multiple editable components; controlling the game editing scene to generate a virtual object corresponding to the target editable component in response to a selection operation on the target editable component, wherein the virtual object is configured to be displayed with pre-set display parameters, and the target editable component is one of the multiple editable components; and determining switching conditions, switching parameters, and target sky background information corresponding to the target editable component in response to an editing operation on the target editable component, wherein the switching conditions include a sky background switching event in which the target editable component starts switching backgrounds, and a sky background update pause event in which the target editable component pauses switching backgrounds.
[0194] In this system, players can freely set sky background switching events, sky background update pause events, switching parameters, and target sky background information corresponding to target editable components in the game editing scene. This enriches the expression of sky background switching and helps improve the player's gaming experience.
[0195] In a selectable embodiment, a setting control is displayed in the graphical user interface, and the step of determining the switching conditions, switching parameters, and target sky background information corresponding to the target editable component in response to an editing operation on the target editable component includes the step of displaying a parameter setting panel corresponding to the target editable component in the editing window in response to a trigger operation on the setting control, wherein the parameter setting panel includes a plurality of editable controls, and the editable controls are for setting the switching conditions, switching parameters, and target sky background information of the target editable component; the step of determining the switching conditions corresponding to the target editable component in response to a first setting operation on the parameter setting panel; the step of determining the switching parameters corresponding to the target editable component in response to a second setting parameter on the parameter setting panel; and the step of determining the target sky background information corresponding to the target editable component in response to a third setting operation on the parameter setting panel.
[0196] In this system, players can freely set sky background switching events, sky switching parameters, and target sky background information corresponding to target editable components in the game editing scene. This enriches the expression of sky background switching and helps improve the player's gaming experience.
[0197] In an optional embodiment, the 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 update pause event, and the step of determining the switching condition corresponding to a target editable component in response to a first setting operation on the parameter setting panel includes the step of setting a sky background switching event corresponding to the target editable component in response to a first input operation on the first editable control, and the step of setting a sky background update pause event corresponding to the target editable component in response to a second input operation on the second editable control.
[0198] In an optional embodiment, the step of determining target sky background information corresponding to a target editable component in response to a third setting operation on the parameter setting panel includes the steps of displaying customizable background options and at least one pre-configured sky background map on the parameter setting panel in response to a trigger operation on an editable control corresponding to the target sky background information on the parameter setting panel, and determining target sky background information based on the first sky background map in response to a trigger operation on a first sky background map among the at least one pre-configured sky background map.
[0199] In this system, players can freely set sky background switching events, sky background update pause events, switching parameters, and target sky background information corresponding to target editable components in the game editing scene. This enriches the expression of sky background switching and helps improve the player's gaming experience.
[0200] In an optional embodiment, after the step of displaying a custom background option and at least one pre-configured 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 method further includes the steps of displaying a custom setting control in the parameter setting panel in response to a trigger operation on a custom background option; displaying a plurality of pre-configured background parameters in the parameter setting panel in response to a trigger operation on a custom setting control; and obtaining a plurality of target background parameters and determining the plurality of target background parameters as target sky background information in response to a setting operation on the plurality of pre-configured background parameters.
[0201] In selectable embodiments, the preset background parameters include at least one of the following parameters: first gradient color, second gradient color, gradient axis direction, axis position, and gradient contrast.
[0202] By customizing background options, players can customize target background parameters, thereby improving their sense of immersion and experience in the game, as well as the flexibility of the sky background in game scenes. At the same time, determining target sky background information based on multiple pre-set background parameters improves the intuitiveness of parameter setting.
[0203] In an optional embodiment, the parameter setting panel further includes a first interaction control, the method further includes the step of rendering to obtain 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, in response to a trigger operation on the first interaction control, a toggle parameter set based on a target editable component in the graphical user interface, and updating the sky background information corresponding to the game scene from the current sky background information to the target sky background information.
[0204] In this system, the player can view whether the effect of the sky background change meets their needs through the preview function provided by the first interaction control.
[0205] Furthermore, the electronic device shown in Figure 8 further includes a bus 102 and a communication interface 103, and the processor 101, communication interface 103, and memory 100 are connected via the bus 102.
[0206] Here, memory 100 may include high-speed random access memory (RAM) and may further include non-volatile memory, such as at least one disk memory. Communication connections between system network elements and at least one other network element are implemented by using at least one communication interface 103 (which may be wired or wireless), which may be 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, an EISA bus, etc. Buses may be classified into address buses, data buses, control buses, etc. For ease of representation, only one bidirectional arrow is used for representation in Figure 8, but this does not mean that only one bus or one type of bus exists.
[0207] The processor 101 may be an integrated circuit chip and has signal processing capabilities. In the implementation process, each step of the above method can be completed by hardware integrated logic circuits or software-based instructions in the processor 101. The processor 101 may be a general-purpose processor including a Central Processing Unit (CPU), a Network Processor (NP), a Digital Signal Processing (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. Each method, step, and logic block diagram disclosed in the embodiments of this disclosure can be implemented or executed. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in relation to the embodiments of this disclosure may be performed directly by a hardware decoding processor or by a combination of hardware and software modules within the decoding processor. The software module may be located in a mature storage medium in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or registers. The storage medium is located in memory 100, and the processor 101 reads the information in memory 100 and, in combination with the processor hardware, completes the steps of the method in the above embodiment.
[0208] Embodiments of this disclosure further provide a computer-readable storage medium in which computer-executable instructions are stored, and when such computer-executable instructions are invoked and executed by a processor, the computer-executable instructions cause the processor to implement a method for switching the sky background in the game described above. For specific implementations, please refer to the embodiments of the method, which will be omitted here.
[0209] Specifically, a graphical user interface is provided via a terminal device, and the graphical user interface displays some game scenes and sky backgrounds corresponding to the game scenes. The sky background is a background generated based on sky background information. The method for switching the sky background in the game includes the steps of: responding to a sky background switching event, determining target sky background information and switching parameters corresponding to the sky background switching event; 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 parameters; and dynamically displaying the dynamically changing sky background of the game scene, which is rendered during the process of updating the sky background information, on the graphical user interface. 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.
[0210] In this game, the method for switching the sky background allows the player to trigger a sky background switching event, thereby enabling the sky background to switch to match the game scene during a game match. At the same time, this method enriches the expression of the sky background switching through switching parameters, which helps to improve the player's gaming experience.
[0211] In the selectable embodiment, the process of updating the above sky background information continues for a predetermined time duration.
[0212] By making the process of updating the sky background information continue for a predetermined duration, it becomes easier to dynamically display the sky background update process in the graphical user interface. This allows players to directly see the changes in the sky background of the changing game scene by adjusting the game's field of view.
[0213] In an optional embodiment, prior to the step of determining the target sky background information and switching parameters corresponding to the sky background switching event in response to the sky background switching event, the method further includes the step of controlling the graphical user interface to display a game scene corresponding to a game match in response to a game start command.
[0214] By triggering the game start command, the graphical user interface displays a game scene corresponding to the game match. Since the controlled virtual object is the game stage or game match, the game's field of view is focused on the current game match, making it easier for the player to perform subsequent operations.
[0215] In the selectable embodiment, the game scene includes a skybox, the sky background information is attribute information corresponding to the skybox, and the sky background is a background generated based on the sky background information of the skybox.
[0216] The skybox can cover the entire game scene, providing a sky background to the game scene based on sky background information, and then rapidly updating the entire sky background information corresponding to the game scene from the current sky background information to the target sky background information.
[0217] In an optional embodiment, the method further includes the step of pausing the sky background information update process in response to a sky background update pause event, and continuously displaying the sky background of the game scene rendered based on the corresponding sky background information in the graphical user interface in response to the sky background update pause event.
[0218] During the process of updating the sky background information, the user can trigger a sky background update pause event in real time to pause the sky background of the game scene rendered with the corresponding sky background information when updating the sky background switch event. This method helps the player flexibly control the entire sky background update process in the game scene.
[0219] In an optional embodiment, the sky background of a game scene rendered based on the corresponding sky background information in response to the sky background update pause event described above includes a sky background consisting of a first part of the game scene sky background obtained by rendering the current sky background information, and a second part of the game scene sky background obtained by rendering the target sky background information.
[0220] The Sky Background Update Pause event occurs at some point during 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. Therefore, it typically consists of a first part of the game scene's sky background obtained by rendering the current sky background information, and a second part of the game scene's sky background obtained by rendering the target sky background information. This process helps the player flexibly control the entire sky background update process in the game scene, meaning that the timing at which the player triggers the Sky Background Update Pause event allows for flexible determination of the proportion of the sky scene occupied by the first and second parts within the entire game scene.
[0221] In the selectable embodiment, the sky background corresponding to the game scene displays a pre-set transition effect that corresponds to the connection between the first part of the game scene's sky background obtained by rendering the current sky background information and the second part of the game scene's sky background obtained by rendering the target sky background information.
[0222] When updating the sky background, it has pre-set transition effects, allowing the player to see the dynamic transition effects of the sky background update, making the sky background update process more natural.
[0223] In an optional embodiment, prior to the step of responding to the sky background switching event, the method further includes the steps of controlling a controlled virtual object to perform a first game action that satisfies a first preset condition in response to a control command for the controlled virtual object corresponding to a terminal device, and controlling to trigger a sky background switching event. Prior to the step of responding to a sky background update pause event, the method further includes the steps of controlling a controlled virtual object to perform a second game action that satisfies a second preset condition in response to a control command for the controlled virtual object corresponding to a terminal device, and controlling to trigger a sky background update pause event.
[0224] In the above method, the player can control the switching of the sky background and the pausing of the game by controlling the movement of the controlled virtual object, enriching the way the game is played.
[0225] In the selectable embodiment, the first game action of the first preset condition is to control the controlled virtual object to move to the target area in the game scene, and the second game action of the second preset condition is to control the controlled virtual object to move away from the target area in the game scene.
[0226] In the above method, the player can control the movement of the controlled virtual object to the target area and control the separation of the controlled virtual object from the target area in the game scene, thereby enabling the switching of the sky background and the pausing of the game, and enriching the way the game is played.
[0227] In an optional embodiment, the graphical user interface further displays a toggle control and a pause control, the sky background toggle event includes triggering the toggle control, and the sky background update pause event includes triggering the pause control.
[0228] In the above method, players can trigger sky background switching events and sky background update pause events, respectively, via the switching and pause controls displayed on the graphical user interface, making player operation easier and enriching the gameplay.
[0229] In selectable embodiments, the switching parameter includes a switching time length, and based on the switching parameter, the steps include 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 dynamically changing sky background of the game scene obtained by rendering during the process of updating the sky background information on the graphical user interface, which includes determining the change parameter of the sky background information corresponding to a unit time during the process of updating the current sky background information corresponding to the game scene to the target sky background information based on the switching time length, dynamically updating the sky background information corresponding to the game scene in chronological order based on the change parameter of the sky background information corresponding to a unit time, the current sky background information, and the target sky background information, and dynamically displaying the dynamically changing sky background of the game scene obtained by rendering based on the dynamically updated sky background information on the graphical user interface.
[0230] The sky background switching method in the above game triggers a sky background switching event when the player plays a game. According to the switching method and switching time length corresponding to the sky background switching event, the sky background information corresponding to the game scene is dynamically updated to the target sky background information. Based on the dynamically updated sky background information, the dynamically changing sky background of the game scene, obtained by rendering, can be dynamically displayed on the graphical user interface. In this way, the method enriches the expression of sky background switching and helps to improve the player's gaming experience.
[0231] In selectable embodiments, the switching parameter further includes a first switching method, the sky background information includes a plurality of pixel points, and the step of dynamically updating the sky background information corresponding to the game scene in chronological order based on the change parameter of the sky background information corresponding to the unit time, the current sky background information, and the target sky background information includes the step of dynamically determining, in chronological order, the update target pixel points which are some of the pixel points among the plurality of pixel points in the sky background information, based on the first switching method and the change parameter; the step of determining the target pixel value corresponding to the update target pixel point based on the target sky background information; and the step of updating the pixel value of the update target pixel point from the current pixel value determined based on the current sky background information to the target pixel value.
[0232] In selectable embodiments, the switching parameter further includes a second switching method, the sky background information includes a plurality of pixel points, and the step of dynamically updating the sky background information corresponding to the game scene in chronological order based on the change parameter of the sky background information corresponding to the unit time, the current sky background information, and the target sky background information includes the step of determining the update target pixel points, which are all of the plurality of pixel points in the sky background information, based on the second switching method; determining the target pixel value corresponding to the update target pixel points based on the target sky background information, determining the current pixel value corresponding to the update target pixel points based on the current sky background information; and dynamically updating the pixel value of the update target pixel points in chronological order based on the change parameter, the target pixel value, and the current pixel value.
[0233] In the selectable embodiment, the above change parameter is the ratio of the target sky background information to the current sky background information in the updated sky background information.
[0234] In the selectable embodiment, the change parameter being the ratio of the target sky background information to the current sky background information in the updated sky background information means that the change parameter is the ratio of the pixel points of the target sky background information to the pixel points of the current sky background information in the updated sky background information.
[0235] In an selectable embodiment, the change parameter being the ratio of pixel points in the updated sky background information to the pixel points in the current sky background information includes at least one of the following: the ratio of the pixel value of each pixel point in the current sky background information to the pixel value of each pixel point in the target sky background information, and the ratio of the number of pixel points in the updated sky background information to the number of pixel points in the target sky background information.
[0236] The sky background switching method in the above game triggers a sky background switching event when the player plays a game. According to the switching method and switching time length corresponding to the sky background switching event, the sky background information corresponding to the game scene is dynamically updated to the target sky background information. Based on the dynamically updated sky background information, the dynamically changing sky background of the game scene, obtained by rendering, can be dynamically displayed on the graphical user interface. In this way, the method enriches the expression of sky background switching and helps to improve the player's gaming experience.
[0237] In an optional embodiment, the switching parameter includes a third switching method, the method further includes the steps of switching sky background information corresponding to a game scene from current sky background information to target sky background information based on the third switching method, and continuously displaying the sky background of the game scene obtained by rendering based on the target sky background information in a graphical user interface.
[0238] This method allows for the immediate switching of sky background information corresponding to the game scene to the target sky background information when a sky background switching event is triggered. As a result, the sky background in the graphical user interface immediately 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 enables rapid sky background switching.
[0239] In a selectable embodiment, the target sky background information and switching parameters corresponding to the sky background switching event are determined by the following steps: displaying a game editing scene and an editing window in a graphical user interface, wherein the editing window includes multiple editable components; controlling the game editing scene to generate a virtual object corresponding to the target editable component in response to a selection operation on the target editable component, wherein the virtual object is configured to be displayed with pre-set display parameters, and the target editable component is one of the multiple editable components; and determining switching conditions, switching parameters, and target sky background information corresponding to the target editable component in response to an editing operation on the target editable component, wherein the switching conditions include a sky background switching event in which the target editable component starts switching backgrounds, and a sky background update pause event in which the target editable component pauses switching backgrounds.
[0240] In this system, players can freely set sky background switching events, sky background update pause events, switching parameters, and target sky background information corresponding to target editable components in the game editing scene. This enriches the expression of sky background switching and helps improve the player's gaming experience.
[0241] In a selectable embodiment, a setting control is displayed in the graphical user interface, and the step of determining the switching conditions, switching parameters, and target sky background information corresponding to the target editable component in response to an editing operation on the target editable component includes the step of displaying a parameter setting panel corresponding to the target editable component in the editing window in response to a trigger operation on the setting control, wherein the parameter setting panel includes a plurality of editable controls, and the editable controls are for setting the switching conditions, switching parameters, and target sky background information of the target editable component; the step of determining the switching conditions corresponding to the target editable component in response to a first setting operation on the parameter setting panel; the step of determining the switching parameters corresponding to the target editable component in response to a second setting parameter on the parameter setting panel; and the step of determining the target sky background information corresponding to the target editable component in response to a third setting operation on the parameter setting panel.
[0242] In this system, players can freely set sky background switching events, sky switching parameters, and target sky background information corresponding to target editable components in the game editing scene. This enriches the expression of sky background switching and helps improve the player's gaming experience.
[0243] In an optional embodiment, the 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 update pause event, and the step of determining the switching condition corresponding to a target editable component in response to a first setting operation on the parameter setting panel includes the step of setting a sky background switching event corresponding to the target editable component in response to a first input operation on the first editable control, and the step of setting a sky background update pause event corresponding to the target editable component in response to a second input operation on the second editable control.
[0244] In an optional embodiment, the step of determining target sky background information corresponding to a target editable component in response to a third setting operation on the parameter setting panel includes the steps of displaying customizable background options and at least one pre-configured sky background map on the parameter setting panel in response to a trigger operation on an editable control corresponding to the target sky background information on the parameter setting panel, and determining target sky background information based on the first sky background map in response to a trigger operation on a first sky background map among the at least one pre-configured sky background map.
[0245] In this system, players can freely set sky background switching events, sky background update pause events, switching parameters, and target sky background information corresponding to target editable components in the game editing scene. This enriches the expression of sky background switching and helps improve the player's gaming experience.
[0246] In an optional embodiment, after the step of displaying a custom background option and at least one pre-configured 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 method further includes the steps of displaying a custom setting control in the parameter setting panel in response to a trigger operation on a custom background option; displaying a plurality of pre-configured background parameters in the parameter setting panel in response to a trigger operation on a custom setting control; and obtaining a plurality of target background parameters and determining the plurality of target background parameters as target sky background information in response to a setting operation on the plurality of pre-configured background parameters.
[0247] In selectable embodiments, the preset background parameters include at least one of the following parameters: first gradient color, second gradient color, gradient axis direction, axis position, and gradient contrast.
[0248] By customizing background options, players can customize target background parameters, thereby improving their sense of immersion and experience in the game, as well as the flexibility of the sky background in game scenes. At the same time, determining target sky background information based on multiple pre-set background parameters improves the intuitiveness of parameter setting.
[0249] In an optional embodiment, the parameter setting panel further includes a first interaction control, the method further includes the step of rendering to obtain 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, in response to a trigger operation on the first interaction control, a toggle parameter set based on a target editable component in the graphical user interface, and updating the sky background information corresponding to the game scene from the current sky background information to the target sky background information.
[0250] In this system, the player can view whether the effect of the sky background change meets their needs through the preview function provided by the first interaction control.
[0251] When a function is implemented in the form of a software function unit and sold or used as an independent product, it can be stored on a computer-readable storage medium. Based on this understanding, the technical solutions of the present disclosure, either essentially or in part with respect to the prior art, or parts of such technical solutions, can be embodied in the form of a software product, which is stored on a single storage medium and contains several instructions for causing a single computer device (which may be a personal computer, terminal device, or network device, etc.) to perform all or part of the steps of each embodiment of the present disclosure. The aforementioned storage mediums include a variety of media capable of storing program code, such as U disks, mobile hard disks, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0252] Furthermore, in the description of this disclosure, the directional or positional relationships indicated by terms such as “center,” “up,” “down,” “left,” “right,” “vertical,” “horizontal,” “inside,” and “outside” are directional or positional relationships shown based on the drawings and are merely for the purpose of facilitating and simplifying the description of this disclosure. They do not indicate or imply that the referred devices or elements have a specific orientation or must be configured and operated in a specific orientation, and should not be understood as limiting this disclosure. In addition, the terms “first,” “second,” and “third” are used for illustrative purposes only and should not be understood as indicating or implying relative importance.
[0253] Finally, it should be noted that the above embodiments are merely specific embodiments of the Disclosure, intended to illustrate the technical solutions of the Disclosure, and not to limit them, and the scope of protection of the Disclosure is not limited thereto. Although the Disclosure has been described in detail with reference to the above embodiments, those skilled in the art should understand the following: Within the technical scope disclosed herein, those skilled in the art can still modify or easily change the technical solutions described in the above embodiments, or make equivalent substitutions for some of their technical features. Such modifications, changes, or substitutions should all be included within the scope of protection of the Disclosure without causing the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the Disclosure. Therefore, the scope of protection of the Disclosure should be based on the scope of protection of the claims.
Claims
1. A method for switching sky backgrounds in a game, wherein a graphical user interface is provided via a terminal device, the graphical user interface displays some game scenes and sky backgrounds corresponding to the game scenes, and the sky backgrounds are backgrounds generated based on sky background information, and the method for switching sky backgrounds in a game is: The steps include: determining target sky background information and switching parameters corresponding to a sky background switching event in response to a sky background switching event; A method for switching the sky background in a game, comprising the steps of: 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; dynamically displaying the dynamically changing sky background of the game scene, obtained by rendering during the process of updating the sky background information, in the graphical user interface, wherein the process of updating the sky background information is a 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 for switching the sky background in a game according to claim 1, wherein the process of updating the sky background information continues for a predetermined duration.
3. In response to the aforementioned sky background switching event, before the step of determining the target sky background information and switching parameters corresponding to the sky background switching event, the sky background switching method in the game is: A method for switching a sky background in a game according to claim 1, further comprising the step of controlling the graphical user interface to display a game scene corresponding to a game match in response to a game start command.
4. A method for switching sky backgrounds in a game according to claim 1, wherein the game scene includes a skybox, the sky background information is attribute information corresponding to the skybox, and the sky background is a background generated based on the sky background information of the skybox.
5. A method for switching the sky background in a game according to claim 1, further comprising the steps of: in the process of updating the sky background information, in response to a sky background update pause event, pausing the process of updating the sky background information; and continuously displaying the sky background of the game scene, which was rendered based on the corresponding sky background information at the time of the sky background update pause event, on the graphical user interface.
6. A method for switching sky backgrounds in a game according to claim 5, wherein the sky background of the game scene obtained by rendering based on the corresponding sky background information in response to the sky background update pause event includes a sky background consisting of a first part of the sky background of the game scene obtained by rendering the current sky background information and a second part of the sky background of the game scene obtained by rendering the target sky background information.
7. A method for switching sky backgrounds in a game according to claim 6, wherein the sky background corresponding to the game scene displays a preset transition effect corresponding to the connection between the first part of the game scene's sky background obtained by rendering the current sky background information and the second part of the game scene's sky background obtained by rendering the target sky background information.
8. Prior to the step of responding to the aforementioned sky background switching event, the method for switching the sky background in the game is: The steps include controlling the controlled virtual object to perform a first game action that satisfies a first pre-set condition in response to a control command for the controlled virtual object corresponding to the terminal device, The method further includes the step of controlling the triggering of the aforementioned sky background switching event, Prior to the step of responding to the sky background update pause event, the method for switching the sky background in the game includes the step of controlling the controlled virtual object to perform a second game action that satisfies a second preset condition in response to a control command for the controlled virtual object corresponding to the terminal device, A method for switching sky backgrounds in a game according to claim 5, further comprising the step of controlling to trigger the aforementioned sky background update pause event.
9. A method for switching the sky background in a game according to claim 8, wherein the first game action of the first pre-set condition is to control the controlled virtual object to move to the target area in the game scene, and the second game action of the second pre-set condition is to control the controlled virtual object to separate from the target area in the game scene.
10. A method for switching a sky background in a game according to claim 5, wherein the graphical user interface further displays a toggle control and a pause control, the sky background switching event includes triggering the toggle control, and the sky background update pause event includes triggering the pause control.
11. The switching parameter includes a switching time length, and based on the switching parameter, the steps include 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 dynamically changing sky background of the game scene, obtained by rendering during the process of updating the sky background information, on the graphical user interface. In the process of updating the current sky background information corresponding to the game scene with the target sky background information based on the aforementioned switching time length, the steps include determining the change parameters of the sky background information corresponding to a unit of time, A step of dynamically updating the sky background information corresponding to the game scene in chronological order based on the sky background information change parameter corresponding to the unit time, the current sky background information, and the target sky background information, A method for switching sky backgrounds in a game according to claim 1, comprising the steps of dynamically displaying the dynamically changing sky background of the game scene, obtained by rendering based on dynamically updated sky background information, on the graphical user interface.
12. The switching parameter further includes a first switching method, and 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 based on the sky background information change parameter corresponding to the unit time, the current sky background information, and the target sky background information is: A step of dynamically determining the pixel points to be updated among the plurality of pixel points in the sky background information in chronological order based on the first switching method and the change parameters, wherein the pixel points to be updated are a subset of the plurality of pixel points in the sky background information, The steps include determining a target pixel value corresponding to the pixel point to be updated based on the target sky background information, A method for switching the sky background in a game according to claim 11, comprising the step of updating the pixel value of the pixel point to be updated from the current pixel value determined based on the current sky background information to a target pixel value.
13. The switching parameter further includes a second switching method, and 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 based on the sky background information change parameter corresponding to the unit time, the current sky background information, and the target sky background information is: A step of determining the pixel points to be updated among the plurality of pixel points in the sky background information based on the second switching method, wherein the pixel points to be updated are all of the pixel points among the plurality of pixel points in the sky background information, The steps include determining the target pixel value corresponding to the pixel point to be updated based on the target sky background information, and determining the current pixel value corresponding to the pixel point to be updated based on the current sky background information, A method for switching sky backgrounds in a game according to claim 11, comprising the step of dynamically updating the pixel value of the update target pixel point based on the change parameter, the target pixel value, and the current pixel value in chronological order.
14. The method for switching sky backgrounds in a game according to claim 11, wherein the change parameter is the ratio of the target sky background information to the current sky background information in the updated sky background information.
15. The method for switching sky backgrounds in a game according to claim 14, wherein the change parameter is the ratio of the target sky background information to the current sky background information in the updated sky background information, which means that the change parameter is the ratio of the pixel points of the target sky background information to the pixel points of the current sky background information in the updated sky background information.
16. The change parameter is the ratio of pixel points in the updated sky background information to the pixel points in the current sky background information, The ratio between 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 A method for switching the sky background in a game according to claim 15, comprising at least one of the ratios between 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.
17. The aforementioned switching parameter includes a third switching method, and the method for switching the sky background in the game is: A method for switching sky backgrounds in a game according to claim 1, further comprising the steps of switching sky background information corresponding to the game scene from the current sky background information to the target sky background information based on the third switching method, and continuously displaying the sky background of the game scene obtained by rendering based on the target sky background information on the graphical user interface.
18. The target sky background information and switching parameters corresponding to the aforementioned sky background switching event are: The graphical user interface displays a game editing scene and an editing window, wherein the editing window includes multiple editable components. Controlling the generation of a virtual target corresponding to the target editable component in the game editing scene in response to a selection operation on the target editable component, wherein the virtual target is configured to be displayed with pre-set display parameters, and the target editable component is a component among the plurality of editable components, A method for switching the sky background in a game according to claim 3, wherein, in response to an editing operation on the target editable component, a switching condition, a switching parameter, and target sky background information corresponding to the target editable component are determined, the switching condition includes a sky background switching event in which the target editable component starts switching the background, and a sky background update pause event in which the target editable component pauses switching the background.
19. In the aforementioned graphical user interface, setting controls are displayed. The step of determining the switching conditions, switching parameters, and target sky background information corresponding to the target editable component in response to an editing operation on the target editable component is: Steps include: displaying a parameter setting panel in the editing window corresponding to the target editable component in response to a trigger operation on the setting control, wherein the parameter setting panel includes a plurality of editable controls, the editable controls being for setting 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, the steps include determining a switching condition corresponding to the target editable component, The steps include determining a switching parameter corresponding to the target editable component in response to a second setting parameter for the parameter setting panel, A method for switching sky backgrounds in a game according to claim 18, comprising the step of determining target sky background information corresponding to the target editable component in response to a third setting operation on the parameter setting panel.
20. 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 update pause event. The step of determining the switching conditions corresponding to the target editable component in response to a first setting operation on the parameter setting panel is: The steps include: setting a sky background switching event corresponding to the target editable component in response to a first input operation on the first editable control, A method for switching sky backgrounds in a game according to claim 19, comprising the step of setting a sky background update pause event corresponding to the target editable component in response to a second input operation on the second editable control.
21. In response to a third setting operation on the parameter setting panel, the step of determining the target sky background information corresponding to the target editable component is: In response to a trigger operation on an editable control corresponding to the target sky background information in the parameter setting panel, the steps include displaying a customizable background option and at least one pre-configured sky background map in the parameter setting panel; A method for switching sky backgrounds in a game according to claim 19, comprising the step of determining target sky background information based on the first sky background map in response to a trigger operation on a first sky background map among the at least one pre-set sky background map.
22. In response to a trigger operation on an editable control corresponding to the target sky background information in the parameter setting panel, the sky background switching method in the game, after the step of displaying customizable background options and at least one pre-configured sky background map in the parameter setting panel, The steps include: displaying the customization settings control on the parameter setting panel in response to a trigger operation on the customization background option; In response to a trigger operation on the customization setting control, the steps include displaying a plurality of pre-configured background parameters on the parameter setting panel, A method for switching sky backgrounds in a game according to claim 21, further comprising the steps of: obtaining a plurality of target background parameters in response to a setting operation for a plurality of pre-set background parameters, and determining the plurality of target background parameters as the target sky background information.
23. The method for switching sky backgrounds in a game according to claim 22, wherein the preset background parameters include at least one parameter from among a first gradient color, a second gradient color, a gradient axis direction, an axis position, and a gradient contrast.
24. The parameter setting panel further includes a first interaction control, and the method for switching the sky background in the game is: A method for switching a sky background in a game according to claim 19, further comprising the steps of: displaying a switching parameter set based on the target editable component in the graphical user interface in response to a trigger operation on the first interaction control; and updating the sky background information corresponding to the game scene from the current sky background information to the target sky background information; and rendering to obtain the sky background of the game scene.
25. A sky background switching device in a game provides a graphical user interface via a terminal device, the graphical user interface displays a scene screen of some game scenes and a sky background corresponding to the game scenes, and the sky background is a background generated based on sky background information, and the sky background switching device in a game is An information acquisition module configured to determine target sky background information and switching parameters corresponding to a sky background switching event in response to a sky background switching event, A sky background switching device in a game, comprising: a sky background switching module configured to update sky background information corresponding to the game scene from current sky background information to target sky background information based on the switching parameters, and dynamically display the dynamically changing sky background of the game scene obtained by rendering during the process of updating the sky background information on the graphical user interface, wherein the process of updating the sky background information is a process of updating the sky background information corresponding to the game scene from current sky background information to target sky background information; and a sky background switching device in a game.
26. An electronic device including a processor and memory, The memory stores device-executable instructions that can be executed by the processor, and the processor executes the device-executable instructions to realize a method for switching the sky background in a game according to any one of claims 1 to 24.
27. A computer-readable storage medium in which computer-executable instructions are stored, A computer-readable storage medium wherein, when the computer-executable instruction is called and executed by a processor, the computer-executable instruction causes the processor to implement the method for switching the sky background in the game according to any one of claims 1 to 24.