Game editing method, game editing device, program product, and electronic device
By providing editing functions in game running scenarios, users can edit and run operations in the same interface, solving the cumbersome problems in the existing technology and improving editing efficiency and user experience.
Patent Information
- Application Number
- CN202411053486.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-01
- Publication Date
- 2024-11-19
AI Technical Summary
The existing game editing function has cumbersome operation process and low editing efficiency, making it difficult for users to quickly switch between editing mode and running mode to view the effect, resulting in high learning costs and low editing efficiency.
By providing a graphical user interface, loading game scenes and setting controlled virtual objects, users can perform editing operations and game operations in game running scenarios, supporting editing, playing or testing functions, reducing mode switching, and improving editing efficiency.
It realizes the convenience of editing operations in game running scenarios, lowers the user's learning threshold, and improves editing efficiency and user experience.
Smart Images

Figure CN118976251A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer and game technology, and in particular to a game editing method, a game editing device, a computer program product and an electronic device. Background Art
[0002] With the development of computers and electronic devices, games have become one of people's daily entertainment methods. Some games provide user editing functions, which allow users to customize game maps or levels. However, the current user editing function has problems such as cumbersome operation process and low editing efficiency. Summary of the invention
[0003] The present disclosure provides a game editing method, a game editing device, a computer program product and an electronic device, so as to at least to some extent solve the problem of complicated operation process in the user editing function.
[0004] According to a first aspect of the present disclosure, a game editing method is provided, which provides a graphical user interface through a terminal device, and the method includes: displaying a target game scene through the graphical user interface; in response to a first run trigger instruction, loading the target game scene to display a first game run scene in the graphical user interface; a controlled virtual object is provided in the first game run scene, and the controlled virtual object is configured to be controlled by the terminal device; in response to a first editing operation in the first game run scene, first editing information is obtained; the first editing information is used to edit the target game scene; in response to a game run operation in the first game run scene, controlling the controlled virtual object to execute a game run process instruction; in response to a first run stop instruction, controlling the display of the edited target game scene determined according to the first editing information in the graphical user interface.
[0005] According to a second aspect of the present disclosure, a game editing device is provided, which provides a graphical user interface through a terminal device, and the device includes: a first display processing module, configured to display a target game scene through the graphical user interface; a second display processing module, configured to respond to a first run trigger instruction, load the target game scene to display a first game run scene in the graphical user interface; a controlled virtual object is provided in the first game run scene, and the controlled virtual object is configured to be controlled by the terminal device; an editing processing module, configured to respond to a first editing operation in the first game run scene, and obtain first editing information; the first editing information is used to edit the target game scene; a game run processing module, configured to respond to a game run operation in the first game run scene, and control the controlled virtual object to execute a game run process instruction; a third display processing module, configured to respond to a first run stop instruction, and control the display of the edited target game scene determined according to the first editing information in the graphical user interface.
[0006] According to a third aspect of the present disclosure, a computer program product is provided, including a computer program, wherein when the computer program is executed by a processor, the method of the first aspect and possible implementations thereof are implemented.
[0007] According to a fourth aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the method of the above-mentioned first aspect and its possible implementation methods by executing the executable instructions.
[0008] The technical solution disclosed in this disclosure has the following beneficial effects:
[0009] A mode is provided that supports both user editing and game running. Users can perform first editing operations and game running operations in the first game running scene to achieve different game functions such as user editing, playing or testing. On the one hand, during the editing process, users do not need to repeatedly switch between the editing mode and the running mode to view the effect or perform tests, which improves the cumbersome editing operation process in related technologies and improves editing efficiency. On the other hand, since the first game running scene is close to the actual game running scene, users can perform the first editing operation in the first game running scene, which makes it easier to understand the meaning of the editing content, lowers the threshold for using the user editing function, and is conducive to the popularization of the user editing function. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] Figure 1 A system architecture diagram in this exemplary embodiment is shown;
[0011] Figure 2A flowchart showing a method for editing a game in this exemplary embodiment;
[0012] Figure 3 A schematic diagram showing the relationship between the three modes and the two preset states in this exemplary embodiment;
[0013] Figure 4 A schematic diagram showing a game editing scene in this exemplary embodiment;
[0014] Figure 5A A schematic diagram showing a first game running scenario in this exemplary embodiment;
[0015] Figure 5B A schematic diagram showing a selection mark in this exemplary embodiment;
[0016] Figure 5C A schematic diagram showing a moving operation in this exemplary embodiment;
[0017] Figure 5D A schematic diagram showing an edit distance in this exemplary embodiment;
[0018] Figure 5E A schematic diagram showing a method of editing a rotation angle in this exemplary embodiment;
[0019] Fig. 5F A schematic diagram showing a method of editing a size by zooming in or out in this exemplary embodiment;
[0020] Fig. 6A A schematic diagram showing a method of determining a scene component to be added in this exemplary embodiment is shown;
[0021] Figure 6B A schematic diagram showing a model for adding scene components in this exemplary embodiment is shown;
[0022] Fig. 7A A schematic diagram showing a switching control object in this exemplary embodiment;
[0023] Figure 7B A schematic diagram showing another moving operation in this exemplary embodiment;
[0024] Figure 7C A schematic diagram showing another method of editing a rotation angle in this exemplary embodiment;
[0025] Fig.7D Another schematic diagram showing another method of editing a size by zooming in this exemplary embodiment;
[0026] Figure 8 A schematic diagram showing a scenario operating state in this exemplary embodiment;
[0027] Fig. 9 A schematic diagram showing the structure of a game editing device in this exemplary embodiment;
[0028] Fig.10 A schematic structural diagram of an electronic device in this exemplary embodiment is shown. DETAILED DESCRIPTION
[0029] Exemplary embodiments of the present disclosure will be described more fully hereinafter with reference to the accompanying drawings.
[0030] The accompanying drawings are schematic diagrams of the present disclosure and are not necessarily drawn to scale. Some of the block diagrams shown in the accompanying drawings may be functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or in hardware modules or integrated circuits, or in networks, processors or microcontrollers. The embodiments can be implemented in various forms and should not be construed as being limited to the examples set forth herein. The features, structures or characteristics described in the present disclosure may be combined in one or more embodiments in any suitable manner. In the description below, many specific details are provided to provide a full description of the embodiments of the present disclosure. However, those skilled in the art should appreciate that one or more specific details may be omitted when implementing the technical solution of the present disclosure, or one or more specific details may be replaced by other methods, components, devices, steps, etc.
[0031] In the user editing function of the game, users can place scene components in the editing scene, edit the location, size, color and other properties of the scene components, or perform other editing operations to form a customized game map or level. However, it is difficult to directly present the editing effect in the editing state. For example, after the user edits a scene component, it is necessary to interact with the scene component through a virtual character controlled by the user to reflect the editing effect. In the editing state, the manipulation of virtual characters is not supported. Therefore, if the user wants to view the editing effect, it is necessary to switch from the editing state to the test state, and test the actual game effect corresponding to the editing content in the test state. If the effect is not ideal, it is necessary to switch back to the editing state and adjust the corresponding editing content. It can be seen that since it is difficult to directly present the editing effect in the editing state, the relevant operation process is more cumbersome, which reduces the editing efficiency and increases the learning cost of users using the editing function.
[0032] In view of one or more of the above problems, an exemplary embodiment of the present disclosure provides a game editing method.
[0033] Figure 1The system architecture diagram of the operating environment of this exemplary embodiment is shown. The system architecture may include a terminal device 110 and a server 120. Among them, the terminal device 110 may be a mobile phone, a tablet computer, a personal computer, an intelligent wearable device, a game console, etc., which has a display function and can display a graphical user interface. The graphical user interface may include an operating system interface or an application interface, etc. A game program is installed on the terminal device 110, such as a client program of an online game. When the terminal device 110 runs the game program, an interface such as a first game running scene may be displayed in the graphical user interface. The server 120 generally refers to a background system that provides game services in this exemplary embodiment, which may be a server or a cluster of multiple servers. A game server program is deployed on the server 120 for executing game data processing on the server side. The terminal device 110 and the server 120 may be connected via a wired or wireless communication link to perform data transmission. The method in this exemplary embodiment may be executed by any one or more of the terminal device 110 and the server 120.
[0034] In one embodiment, the game editing method can be implemented and executed based on a cloud interactive system. The cloud interactive system can be the above-mentioned system architecture. Various cloud applications can be run under the cloud interactive system, such as cloud games. Taking cloud games as an example, cloud games refer to a game method based on cloud computing. In the operation mode of cloud games, the operation subject of the game program and the game screen presentation subject are separated, and the storage and operation of the control and interaction methods in the game are completed on the cloud game server (such as the above-mentioned server 120), and the cloud game client (such as the above-mentioned terminal device 110) is used for receiving and sending data and presenting the game screen. For example, the cloud game client can be a display device with data transmission function close to the user side, such as a mobile terminal, a TV, a computer, a handheld computer, etc.; and the cloud game server in the cloud performs information processing. When playing games or editing games, the user operates the cloud game client to send operation instructions to the cloud game server. The cloud game server runs the game according to the operation instructions, encodes and compresses the game screen and other data, and returns it to the cloud game client through the network. Finally, the cloud game client decodes and outputs the game screen.
[0035] In one embodiment, the game map (or scene) edited by the terminal device 110 can be uploaded to the server 120 for storage. For example, the currently edited game map can be automatically saved at regular intervals during the editing process, or the currently edited game map can be saved according to a manual save operation performed by the user, or the currently edited game map can be automatically saved when exiting the editing. When saving the game map, the terminal device 110 can upload the game map data to the server 120, and the server 120 can save it.
[0036] In one embodiment, the server 120 may maintain a game map pool, such as deploying a database for storing game maps on the server side. In response to an instruction to publish a game map on the terminal device 110, the server 120 may add game map data to the game map pool, so that other players can download the game map data from the game map pool and use the game map to play the game. This enables a fast UGC (User Generated Content) function.
[0037] In one embodiment, the game editing method can be implemented in a stand-alone game. No server needs to be deployed, and the terminal device 110 can install all game programs and execute the game editing method.
[0038] In one embodiment, reference Figure 2 As shown, the game editing method may include the following steps S210 to S250:
[0039] Step S210, displaying the target game scene through a graphical user interface;
[0040] Step S220, in response to the first running trigger instruction, loading the target game scene to display the first game running scene in the graphical user interface; the first game running scene is provided with a controlled virtual object, and the controlled virtual object is configured to be controlled by the terminal device;
[0041] Step S230, in response to a first editing operation in the first game running scene, obtaining first editing information; the first editing information is used to edit the target game scene;
[0042] Step S240, in response to the game running operation in the first game running scene, controlling the controlled virtual object to execute the game running process instruction;
[0043] Step S250, in response to the first operation stop instruction, controlling the display of the edited target game scene determined according to the first editing information in the graphical user interface.
[0044] based on Figure 2The method provides a mode that supports both user editing and game running. The user can perform the first editing operation and the game running operation in the first game running scene to realize different game functions such as user editing, playing or testing. On the one hand, the user does not need to repeatedly switch between the editing mode and the running mode to view the effect or perform testing during the editing process, which improves the cumbersome editing operation process in the related technology and improves the editing efficiency. On the other hand, because the first game running scene is close to the actual game running scene, the user performs the first editing operation in the first game running scene, which makes it easier to understand the meaning of the editing content, lowers the threshold for using the user editing function, and is conducive to the popularization of the user editing function.
[0045] Below Figure 2 Provide detailed instructions for each step.
[0046] refer to Figure 2 , in step S210, the target game scene is displayed through a graphical user interface.
[0047] A game scene refers to a virtual space in a game, including but not limited to game maps, levels, dungeons, towns, homes, and other scenes. A target game scene is a game scene that a user wants to edit, or a game scene that a user plays or tests. For example, a user can select a game scene to edit in the interface of the game editing function. This game scene is the target game scene, which can be a game scene that comes with the game program, or a game scene that the user has edited, or a game scene that other users have downloaded and edited, or a newly created game scene.
[0048] In one embodiment, the target game scene may include one or more scene components. Scene components are people, things or local people or things in the scene, such as buildings, vehicles, plants, organs, NPCs (non-player characters) etc. The target game scene may include the scene components that the scene carries, such as the target game scene initially carries the scene components that match its scene style, and these scene components may be edited and configured by game developers when making the target game scene. The target game scene may also include the scene components that are added based on the previous editing operation of the user, such as when the user edited the target game scene last time, the scene components may be added in the target game scene by custom modeling or using modes such as scene component controls.
[0049] The game program can provide templated scene components and corresponding scene component controls, so that users can edit and generate templated scene components in the target game scene through the scene component controls. Exemplarily, scene component controls can be provided for different categories of scene components, such as "log coffee table", "round low table", "wooden small table", "European table" and other scene component controls can be provided, and users can generate corresponding scene components in the target game scene by clicking or dragging the scene component controls. If the user drags the "round low table" scene component control to a certain position in the target game scene, it can trigger the generation of a round low table scene component at that position.
[0050] The scene component control is configured with corresponding templated parameters, such as one or more parameters including shape, color, texture, transparency, material, size, direction, physical properties, etc., and may also include other types of parameters. If a scene component is generated through a scene component control, the templated parameters corresponding to the scene component control can be called to quickly generate the scene component in the target game scene without the user having to set each parameter of the scene component from scratch, which is equivalent to applying the template of the scene component, thereby improving editing efficiency. Of course, after the scene component is generated, its scene component parameters can be modified, such as changing its size through a scaling operation, changing its direction through a rotation operation, changing its color and transparency through a color setting operation, etc., to form a more diverse scene component.
[0051] The game program may have its own scene component control, such as a game developer pre-editing the templated parameters of the scene component and configuring it as a scene component control for the user to use. In addition, the user may also be allowed to configure the scene component control. For example, the user may model a non-templated scene component and save it as a scene component control. In one embodiment, the user may be allowed to edit and update the scene component control, such as modifying the templated parameters corresponding to the scene component control and saving them. When the scene component is subsequently generated through the scene component control, the updated templated parameters may be called to generate the scene component.
[0052] In one embodiment, the user can edit and generate a custom scene component. For example, the user can create a new scene component by modeling, which can be a non-templated scene component, thereby increasing the flexibility of user editing.
[0053] In one embodiment, the above-mentioned display of the target game scene through a graphical user interface may include: displaying the basic information of the target game scene through a graphical user interface. The basic information includes, but is not limited to, one or more of the following: name, cover image (which may be an image taken of the entire or any local area of the target game scene), scene type, editing time, editor, number of supported players, resource occupancy value (referring to the quantified value of the computer resources occupied by the scene). Exemplarily, in response to the scene selection instruction in the scene selection interface, the target game scene is determined and the basic information of the target game scene is displayed. The scene selection interface may be a scene selection interface of a game editing function or a scene selection interface of a game running function, etc. For example, after the user enters the game editing function, any editable game scene can be selected in the scene selection interface. When a certain game scene is selected, the game scene is used as the target game scene, and basic information such as the cover image is displayed. The user can then confirm to load the target game scene in an editing mode, a running mode, or a running mode that supports editing.
[0054] The three modes are described below.
[0055] Edit mode: A mode that supports user editing but does not support game operation. Users can edit scene components and scene backgrounds in the game scene, such as the color and size of scene components, but cannot control virtual objects to attack, cast skills, and perform other game operation operations, such as attacking scene components. For example, in edit mode, no player characters are set in the game scene, and users cannot control the player characters to perform game operation operations. Alternatively, a player character is set, but the role of the player character is to control the perspective in the game scene. Users can control the perspective by moving the player character, but cannot perform game operation operations such as attacking and casting skills.
[0056] In one embodiment, in the edit mode, the game scene may not execute the operation instruction. The operation instruction refers to an instruction with dynamic effects such as movement, appearance change, and form change based on the preset game logic. The game logic can be a preset logic in the game program (such as the logic written by the game developer), or it can be a logic edited by the user. The operation instruction may include but is not limited to at least one of the following: an environmental change instruction; an operation instruction of a scene component, such as a movement instruction, an appearance change instruction of at least one scene component in the game scene, or an instruction made in response to the interactive behavior of the player character, etc. Exemplarily, in the edit mode, the game scene can be in a static state. For example, the game scene includes a gear component, which can rotate in the run mode, and in the edit mode, the gear component can be set not to rotate. Setting the game scene not to execute the operation instruction in the edit mode is conducive to the user to perform editing operations, such as the user editing a static scene component, which is simpler to operate than editing a scene component in motion, and there is no need to process data related to the operation instruction, reducing overhead.
[0057] Run mode: a mode for playing in a game scene. The run mode may include a trial run mode (or test mode), which is a mode for playing for the purpose of testing. In the run mode, the game scene supports game running operations, but does not support user editing. For example, users can control virtual objects to attack, cast skills, and perform other game running operations, but cannot edit the color, size, and other properties of scene components.
[0058] In one embodiment, in the running mode, the game scene can execute operation instructions, such as automatic changes in the environment presenting the game scene, automatic operation of scene components, etc. based on pre-set game logic.
[0059] Running mode supporting editing: It may include a trial run mode supporting editing, which is a special running or trial run mode. It supports both game running operations and user editing. For example, users can control virtual objects to attack, cast skills and other game running operations, and can edit the color, size and other properties of scene components. In the running mode supporting editing, the game scene can execute the running instructions or not, and can also execute the running instructions under specific circumstances, such as not executing the running instructions in the first preset state and executing the running instructions in the second preset state.
[0060] In one embodiment, reference Figure 3 As shown, the target game scene can be freely switched between the edit mode, the run mode, and the run mode that supports editing.
[0061] In one embodiment, the above-mentioned displaying the target game scene through a graphical user interface may include: displaying a game editing scene through a graphical user interface. The game editing scene is the target game scene loaded in the editing mode. Exemplarily, after the user selects the target game scene in the interface of the game editing function and confirms, the loading of the target game scene in the editing mode is triggered, and the scene presented is the game editing scene. Figure 3 A schematic diagram of a game editing scene 301 is shown. In the game editing scene 301, the user can perform editing operations, such as moving, scaling, rotating scene components, or setting attribute values of scene components, but cannot perform game running operations, such as controlling virtual objects to attack, cast skills, etc.
[0062] In one embodiment, the above-mentioned display of the target game scene through a graphical user interface may include: displaying a second game running scene through a graphical user interface. The second game running scene is a target game scene loaded in a running mode. Exemplarily, the target game scene may be a home scene. When the user chooses to enter the home, the home scene is loaded in the running mode by default, and the scene presented is the second running game scene. In the second running game scene, the user can perform game running operations, such as controlling virtual objects to perform actions such as jumping and rolling, but cannot perform editing operations, such as editing the properties of scene components, adding or deleting scene components.
[0063] Continue to refer Figure 2 In step S220, in response to the first running trigger instruction, the target game scene is loaded to display the first game running scene in the graphical user interface; a controlled virtual object is set in the first game running scene, and the controlled virtual object is configured to be controlled by the terminal device.
[0064] The first game running scene may be a target game scene loaded in a running mode supporting editing. The first running trigger instruction is an operation instruction that triggers loading of the target game scene in a running mode supporting editing.
[0065] In one embodiment, reference Figure 4 As shown, when the game editing scene 401 is displayed, a first run trigger control 402 can be provided in the graphical user interface. The first run trigger instruction can be an operation instruction for the first run trigger control 402. For example, when the user clicks or long presses the first run trigger control 402, the first run trigger instruction is generated. The first run trigger instruction can trigger the entry from the editing mode into the running mode supporting editing, and the target game scene is loaded in the running mode supporting editing. Thus, the game editing scene 401 displayed in the graphical user interface is switched to Figure 5A The first game running scene 501 shown enables the user to conveniently switch from the editing mode to the running mode supporting editing.
[0066] In one embodiment, when the second game running scene is displayed, a first running trigger control may also be provided in the graphical user interface. The user may trigger the entry from the running mode into the running mode supporting editing by operating the first running trigger control, and load the target game scene in the running mode supporting editing. Thus, the second game running scene displayed in the graphical user interface is switched to the first game running scene. This enables the user to conveniently switch from the running mode to the running mode supporting editing.
[0067] In one embodiment, the game editing method may further include: responding to a second operation trigger instruction, controlling the display of a second game operation scene in a graphical user interface. The second game operation scene is a target game scene loaded in operation mode. Among them, the second operation trigger instruction is an operation instruction that triggers the loading of the target game scene in operation mode. For example, in the case of displaying a game editing scene or a first game operation scene, a second operation trigger control may be provided in the graphical user interface, and the second operation trigger instruction may be an operation instruction for the second operation trigger control, such as when a user clicks or long presses the second operation trigger control, a second operation trigger instruction is generated. The second operation trigger instruction may trigger entering the operation mode from an editing mode or an operation mode that supports editing, and loading the target game scene in operation mode. Thus, the game editing scene or the first game operation scene displayed in the graphical user interface is switched to the second game operation scene. It enables the user to conveniently switch from an editing mode or an operation mode that supports editing to an operation mode.
[0068] Exemplarily, the operation mode can be selected in the setting interface, for example, two operation mode options are provided, including an operation mode and an operation mode supporting editing, from which the user can choose. The present disclosure does not limit the specific names of the two operation modes, such as the operation mode can be a normal trial mode, and the operation mode supporting editing can be a sandbox trial mode. In the case of selecting the operation mode supporting editing, the operation trigger instruction in the target game scene or the game editing scene is a first operation trigger instruction, which can trigger switching to the operation mode supporting editing and entering the first game operation scene. In the case of selecting the operation mode, the operation trigger instruction in the target game scene or the game editing scene is a second operation trigger instruction, which can trigger switching to the operation mode and entering the second game operation scene. The first game operation scene and the second game operation scene can provide different controls. For example, the first game operation scene provides switching controls between different preset states, editing operation controls, scene component controls, game operation controls, etc. Only game operation controls can be provided in the second game operation scene.
[0069] The above provides a switching operation method between different modes. The user can switch from the editing mode or the running mode to the running mode supporting editing, thereby displaying the first game running scene.
[0070] In one embodiment, the target game scene can be directly loaded in the game program in the operation mode supporting editing, without first entering the editing mode or the operation mode. Exemplarily, the user can enter the operation function interface supporting editing from the main interface of the game, select a game scene as the target game scene in the interface, trigger the display of basic information of the target game scene, generate a first operation trigger instruction when performing a confirmation operation, trigger the loading of the target game scene in the operation mode supporting editing, and display the first game operation scene in the graphical user interface.
[0071] A controlled virtual object is set in the first game running scene. The controlled virtual object is a virtual object controlled by the user through the terminal device currently displaying the first game running scene, such as a player character. Figure 5A The controlled virtual object 502 is shown. Alternatively, the controlled virtual object may also be a virtual object. Also, the number of controlled virtual objects may be one or more. The present disclosure does not limit the appearance, form, and number of controlled virtual objects.
[0072] In one embodiment, the target game scene may include one or more scene components, and the first game running scene may include one or more scene component models corresponding thereto. The scene component model is a virtual model generated corresponding to the scene component in the running mode that supports editing. In addition, the scene component may also generate a scene component model correspondingly in the running mode. The scene component and the corresponding scene component model usually have the same appearance, but the two may be different program objects in the program. For example, in the editing mode, the scene component does not execute the operation instruction and may be a static object. In the running mode that supports editing, the scene component model executes the operation instruction and may be a dynamic object.
[0073] For example, Figure 4 The game editing scene 401 shown includes two scene components, namely a block component 403 and a switch component 404. Figure 5A The first game running scene 501 shown includes two scene component models, namely a block component model 503 and a switch component model 504 . The block component model 503 corresponds to the block component 403 , and the switch component model 504 corresponds to the switch component 404 .
[0074] In one embodiment, a virtual camera is provided in the first game running scene. The above-mentioned loading of the target game scene to display the first game running scene in the graphical user interface may include the following steps:
[0075] A picture formed by a virtual camera shooting a first game running scene is displayed in a graphical user interface; the virtual camera is configured to be adjusted according to the movement of a controlled virtual object.
[0076] Among them, the virtual camera is a shooting tool that simulates a real camera in the game program and is used to shoot the game screen. The virtual camera in the first game running scene can be located at any position in the first game running scene and shoot the first game running scene from any perspective, that is, the virtual camera can have any posture. The user can be allowed to adjust the viewing angle of the picture, such as performing operations such as translation, rotation, and zooming of the picture, which is essentially achieved by adjusting the camera parameters such as the posture or focal length of the virtual camera. In the first game running scene, the virtual camera can be hidden so that the user cannot see the virtual camera, so that the immersion of viewing the picture is stronger, and the virtual camera can also be displayed, which makes it easier for the user to adjust the picture by adjusting the virtual camera.
[0077] In one embodiment, the virtual camera can be bound to the controlled virtual object, that is, the positional relationship between the virtual camera and the controlled virtual object is fixed. For example, the virtual camera can be located behind the controlled virtual object to capture a third-person perspective image, in which all or most of the body of the controlled virtual object can be presented. Alternatively, the virtual camera can be located on the controlled virtual object (or more specifically, the virtual camera is located on the head of the controlled virtual object) to capture a first-person perspective image, in which the body of the controlled virtual object may not be presented or only a small amount of the body of the controlled virtual object may be presented. In one embodiment, the user may be allowed to choose whether to use the first-person or third-person perspective image in the first game running scene, and the relative position of the virtual camera and the controlled virtual object is set according to the user's choice.
[0078] When the controlled virtual object moves, such as when the user controls the controlled virtual object to move, or when the controlled virtual object moves due to the interaction of collisions and other interactions of scene components in the first game running scene, the virtual camera is controlled to adjust the posture or camera parameters according to the movement of the controlled virtual object. For example, when the controlled virtual object moves, the virtual camera moves synchronously, and when the controlled virtual object rotates, the virtual camera is rotated accordingly with the controlled virtual object as the center. For example, if the controlled virtual object rotates 30 degrees clockwise, the virtual camera is also rotated 30 degrees clockwise. In this way, the controlled virtual object is always in the main position in the picture (such as the center, or a position below the center, etc.), which is convenient for users to control.
[0079] In one embodiment, the virtual camera may have a certain degree of freedom relative to the controlled virtual object. For example, the controlled virtual object is set to be in a certain area in the middle of the current screen. When the user moves the controlled virtual object to the edge of the area, the virtual camera is controlled to adjust the viewing angle so that the controlled virtual object does not exceed the area in the screen. When the user rotates the controlled virtual object and the controlled virtual object touches the edge of the area, the virtual camera may not be adjusted.
[0080] Any number of virtual cameras can be set in the first game running scene, and different virtual cameras can be used to shoot different pictures. In one embodiment, the virtual camera in the first game running scene includes a first virtual camera and a second virtual camera. Among them, the first virtual camera can be bound to the controlled virtual object, and the first virtual camera is controlled according to the movement of the controlled virtual object to shoot the main picture of the first game running scene. The controlled virtual object is in the main position in the main picture, which is convenient for users to control. The second virtual camera does not need to be bound to the controlled virtual object. When the user edits a scene component in the first game running scene, the second virtual camera can shoot the area where the scene component is located to form an auxiliary picture of the first game running scene. The main picture and the auxiliary picture can be displayed in split screen, or the auxiliary picture can be displayed in the main picture in the form of a window or the like. Through the combination of the two pictures, help users see more comprehensive information.
[0081] Continue to refer Figure 2 In step S230, in response to a first editing operation in a first game running scene, first editing information is obtained; the first editing information is used to edit the target game scene.
[0082] The first editing operation is an editing operation in the first game running scene. For the sake of distinction, the editing operation in the game editing scene is referred to as the second editing operation. The first editing information is editing information determined according to the first editing operation. For the sake of distinction, editing information other than the first editing information is determined according to editing operations other than the first editing operation. For example, in response to the second editing operation in the game editing scene, the second editing information is obtained. The second editing information is editing information determined according to the second editing operation.
[0083] It should be understood that the first editing operation performed by the user in the first game running scene is equivalent to editing the target game scene, and the first editing information determined thereby is used to edit the target game scene. In the first game running scene, the editing effect of the first editing operation can be presented, such as when the user edits the position of the scene component model in the first game running scene, the scene component model can be moved to the edited position in the first game running scene, or the editing effect of the first editing operation may not be presented, such as when the user changes the type of the scene component in the first game running scene, the scene component model does not perform corresponding movement in the first game running scene. When returning to the target game scene from the first game running scene, such as after switching back to the editing mode from the running mode that supports editing, the edited target game scene can be displayed.
[0084] The first editing operation that the user can perform in the first game running scene and the second editing operation that the user can perform in the game editing scene can be the same or different in terms of operation mode, editing content, etc. For example, in the first game running scene, since the game running operation is still required, the editing function can be restricted so that the user can only perform a part of the editing operations. In the game editing scene, the editing function can be unlimited and the user can perform all the editing operations.
[0085] In one embodiment, the first editing information is used to perform at least one of the following editing on the target game scene: adding a scene component to the target game scene. Deleting a scene component from the target game scene. Editing the properties of the scene component in the target game scene, which may include position, angle, appearance properties, physical properties, motion properties, etc. Editing the environment of the target game scene, such as changing the background, weather, lighting, terrain, and other environmental information. Editing the game setting information of the target game scene, such as setting the game duration, player camp, game victory or defeat conditions, and other information.
[0086] The first editing operation is described in detail below.
[0087] In one embodiment, the target game scene includes one or more scene components; the first game running scene includes one or more scene component models corresponding to the one or more scene components. The above-mentioned response to the first editing operation in the first game running scene and obtaining the first editing information may include the following steps: displaying a selection mark in a graphical user interface, and determining the scene component model to be edited from the scene component model of the first game running scene according to the aiming direction of the selection mark; in response to the first editing operation on the scene component model to be edited, obtaining the first editing information corresponding to the scene component model to be edited; the first editing information is used to edit the scene component to be edited in the target game scene; the scene component to be edited corresponds to the scene component model to be edited.
[0088] The selection mark is used to select the visual mark of the scene component model to be edited, which can be any style such as star, circle, pentagon, etc. Optionally, the selection mark can be the crosshair corresponding to the controlled virtual character.
[0089] Optionally, the selection mark may be configured to move according to the movement of the controlled virtual object.
[0090] Optionally, the selection mark may be displayed by default in the center of the screen of the first game running scene.
[0091] Optionally, in response to a movement control operation on the selection mark, the selection mark can be controlled to move so as to aim at the scene component model.
[0092] Optionally, in response to a field of view adjustment instruction, the aiming position of the selection mark or the orientation of the controlled virtual object can be controlled and adjusted so that the user can freely select the scene component model to be edited.
[0093] According to the aiming direction of the selection mark, the scene component model aimed at by the selection mark can be used as the scene component model to be edited, so that the user can freely select the scene component model to be edited through the selection mark.
[0094] Figure 5B The selection mark 513 is shown, which can be fixed at the center of the screen of the first game running scene 501. When the user adjusts the viewing angle, the selection mark 513 and the first game running scene 501 move relative to each other, thereby selecting the scene component model to be edited. Figure 5B It is shown that the selection mark 513 is currently aimed at the block component model 503, and the block component model 503 is used as the scene component model to be edited.
[0095] In one embodiment, when the scene component model to be edited is determined, the scene component model to be edited can be displayed in a differentiated manner, such as by displaying a color or transparency different from other scene component models. Figure 5B As shown, a texture pattern different from other scene component models is added to the block component model 503. This allows the user to intuitively distinguish the scene component model to be edited.
[0096] When the scene component model to be edited is determined, the user can perform a first editing operation on the scene component model to be edited, such as moving, rotating, and scaling the scene component model to be edited, and thereby obtain first editing information for editing the scene component to be edited.
[0097] In one embodiment, when the scene component model to be edited is determined, an editing operation control may be provided, such as Figure 5BThe "zoom" control, "rotation" control, "distance" control, etc. in the scene component model can be used by the user to perform the first editing operation on the scene component model to be edited by using the editing operation control.
[0098] According to the first editing operation on the scene component model to be edited, the first editing information on the scene component to be edited can be obtained. Figure 5B In the first game running scene 501 shown in the figure, a first editing operation is performed on the block component model 503 to obtain corresponding first editing information, which can be used to edit Figure 4 Block assembly 403 is shown.
[0099] The above method of selecting the scene component model to be edited by selecting the mark enriches the selection strategy of the scene component model and can improve the immersive editing experience to a certain extent.
[0100] In an optional implementation, when the scene component model to be edited is determined, a first editing control is displayed to minimize the occlusion of the interface; in response to a first editing operation performed through the first editing control, first editing information corresponding to the scene component model to be edited is obtained. The first editing operation refers to an editing operation performed on the first editing control.
[0101] Exemplarily, the first editing control may include but is not limited to: a first sub-control, such as a copy control; a second sub-control, such as a move control; a third sub-control, such as an edit control; a fourth sub-control, such as a delete control, and the like.
[0102] In an optional embodiment, the above-mentioned response to the first editing operation performed through the first editing control and obtaining the first editing information corresponding to the scene component model to be edited can be achieved through the following steps: in response to the first editing operation performed through the first editing control, a component control object corresponding to the scene component model to be edited is generated in the first game running scene; in response to the editing operation on the component control object, the editing of the component control object is controlled to obtain the first editing information corresponding to the scene component model to be edited.
[0103] Among them, the component control object corresponding to the scene component model to be edited can be presented with visual effects such as phantom and highlight to prompt the user of the current editing object. The component control object can be a control object in an editable state. By generating a component control object corresponding to the scene component model to be edited, the scene component model to be edited can be in an editable state. At this time, other scene component models are in an uneditable state. The scene component model selected by the switching selection mark can be edited, so that the user's editing operation can be carried out smoothly and orderly.
[0104] In an optional embodiment, the above-mentioned first editing control includes a first sub-control, which responds to the first editing operation performed through the first editing control and generates a component control object corresponding to the scene component model to be edited in the first game running scene. This can be achieved through the following steps: in response to the touch operation of the first sub-control, the component control object of the scene component model to be edited is generated according to the position of the controlled virtual object, and the scene component model to be edited is retained.
[0105] In an optional embodiment, the above-mentioned first editing control includes a second sub-control, which responds to the first editing operation performed through the first editing control and generates a component control object corresponding to the scene component model to be edited in the first game running scene. This can be achieved by the following steps: in response to the touch operation of the second sub-control, the component control object of the scene component model to be edited is generated according to the position of the controlled virtual object, and the scene component model to be edited is hidden.
[0106] In an optional embodiment, the above-mentioned first editing control includes a third sub-control, which responds to the first editing operation performed through the first editing control and generates a component control object corresponding to the scene component model to be edited in the first game running scene. This can be achieved through the following steps: in response to the touch operation of the third sub-control, control the generation of the component control object of the scene component model to be edited according to the position of the controlled virtual object, and display the property editing sub-control; wherein, the property editing sub-control is used to edit the properties of the component control object.
[0107] In an optional implementation, the above-mentioned response to the editing operation of the component control object and obtaining the first editing information corresponding to the scene component model to be edited can be achieved by the following steps: in response to the touch operation of moving the sub-control, displaying the coordinate axis options, the coordinate axis options include three coordinate axes corresponding to the component control object; in response to selecting a target coordinate axis from the coordinate axis options, controlling the component control object to move along the target coordinate axis in the game running scene; according to the moving state of the component control object, determining the first editing information corresponding to the scene component model to be edited. For example, Figure 5C As shown, a schematic diagram of an interface for mobile editing by moving sub-controls is provided.
[0108] By selecting the coordinate axis, the component control object can be freely adjusted in three-dimensional space to flexibly meet the different adjustment needs of users.
[0109] Exemplarily, in response to a touch operation on the third sub-control, a property editing sub-control may be displayed. When the property editing sub-control is displayed, the control component controls the object not to move following the movement of the controlled virtual object.
[0110] Optionally, when the property editing sub-control is displayed, the display of the edit confirmation sub-control and the edit cancel sub-control can be controlled to save or cancel the current edit.
[0111] In an optional embodiment, the above-mentioned first editing control includes a fourth sub-control, and responds to the first editing operation performed through the first editing control to obtain the first editing information corresponding to the scene component model to be edited. This can be achieved through the following steps: responding to the touch operation on the fourth sub-control to obtain the first editing information corresponding to the scene component model to be edited; the first editing information includes deletion editing information.
[0112] Exemplarily, after establishing an association relationship between the controlled virtual object and the component control object, the second editing control may be controlled to be displayed, and in response to a first editing operation performed through the second editing control, the component control object may be controlled to be edited.
[0113] Optionally, when controlling the display of the second editing control, at least a portion of the first editing control may be hidden to avoid redundancy of interface information.
[0114] In an optional embodiment, the second editing control includes a distance editing sub-control, and the above-mentioned response to the second editing operation performed through the second editing control to control the editing of the component control object can be achieved through the following steps: in response to the editing operation on the distance editing sub-control, the component control object is controlled to move closer to or away from the controlled virtual object, and the position of the controlled virtual object remains unchanged.
[0115] Among them, the distance editing sub-control can be used to control the distance of the component control object relative to the controlled virtual object.
[0116] For example, Figure 5D As shown, a schematic diagram of an interface for controlling a component control object to move closer to or away from a controlled virtual object is provided. The component control object can be flexibly controlled to move toward or away from the controlled virtual object through a distance editing sub-control, thereby realizing movement editing of the component control object.
[0117] In an optional embodiment, the above-mentioned response to the editing operation on the distance editing sub-control, the control component controls the object to approach or move away from the controlled virtual object, which can be achieved through the following steps: in response to the move editing operation of the distance editing sub-control, determine whether the component controls the object to trigger grid adsorption or component stack adsorption; if the component controls the object to trigger grid adsorption or component stack adsorption, determine whether the move editing distance corresponding to the distance editing sub-control is greater than a second preset distance threshold; if the move editing distance corresponding to the distance editing sub-control is less than or equal to the second preset distance threshold, the control component controls the object not to move; if the move editing distance corresponding to the distance editing sub-control is greater than the second preset distance threshold, the control component controls the object to move to approach or move away from the controlled virtual object.
[0118] Among them, grid adsorption can be adsorbing the component control object to the scene grid line that is closest to it and the distance value is less than a specific preset threshold, and component stack adsorption can be adsorbing the component control object to other scene component models that are closest to it and the distance value is less than a specific preset threshold. It can be understood that the second preset distance threshold can be used to limit the adsorption strength, and the larger the value, the greater the adsorption strength.
[0119] Whether the control component controls the object to move is determined by the second preset distance threshold, thereby providing a certain error tolerance for the user's movement operation.
[0120] In an optional embodiment, the above-mentioned response to the second editing operation performed through the second editing control to control the editing of the component control object can be achieved through the following steps: in the process of controlling the movement of the component control object, if the control of the component control object triggers grid adsorption or component stack adsorption; in response to the editing operation on the distance editing sub-control, the component control object is not controlled to move; at this time, in response to the viewing angle adjustment operation, the component control object can be controlled to release the grid adsorption or component stack adsorption, and after the component control object releases the grid adsorption or component stack adsorption, it can respond to the editing operation on the distance editing sub-control to control the component control object to move.
[0121] For example, if component stacking adsorption is triggered between component control object A and other scene component model B (for example, the ground), it will not respond to the editing operation of the distance editing sub-control at this time; in response to the viewing angle adjustment operation, the component control object A and other scene component model B can be controlled to release the component stacking adsorption, and at this time, in response to the editing operation of the distance editing sub-control, the component control object can be controlled to move to the corresponding position.
[0122] Exemplarily, in response to the viewing angle adjustment operation, the component control object can be controlled to move to change the position of the component control object A on other scene component models B (e.g., the ground). Optionally, when the viewing angle is raised to a preset height, if the ray from the controlled virtual object to the component control object does not intersect with other scene component models B, the component control object A can be controlled to suspend. Optionally, when the viewing angle is raised to a preset height, based on the distance between the controlled virtual object and the component control object set by the distance editing subcontrol, does not intersect with other scene component models B, the component control object A can be controlled to suspend.
[0123] In an optional embodiment, the second editing control includes a rotation editing sub-control, and the above-mentioned response to the second editing operation performed through the second editing control to control the editing of the component control object can be achieved through the following steps: in response to the editing operation on the rotation editing sub-control, a rotation direction indicator and a current adjustment progress are displayed in the associated area of the rotation editing sub-control to control the rotation of the component control object.
[0124] Among them, the rotation edit subcontrol can be used to control the component control object to rotate.
[0125] For example, Figure 5E As shown, a schematic diagram of an interface for controlling the rotation of a component control object is provided. The rotation axis can be selected through the rotation editing sub-control to flexibly control the component control object to rotate counterclockwise or clockwise around the rotation axis, thereby realizing rotation control of the component control object.
[0126] In an optional embodiment, the second editing control includes a zoom editing sub-control, and the above-mentioned response to the second editing operation performed through the second editing control controls the editing of the component control object, which can be achieved through the following steps: in response to the touch operation on the zoom editing sub-control, controls the component control object to scale based on the center position of the component control object.
[0127] Among them, the zoom edit subcontrol can be used to control the component control object to zoom in or out.
[0128] For example, Fig. 5F As shown, a schematic diagram of an interface for controlling the scaling of a component control object is provided. The scaling of the component control object can be flexibly controlled based on the center position of the component control object through the scaling editing subcontrol, thereby realizing scaling control of the component control object.
[0129] In an optional embodiment, the second editing control includes an editing confirmation sub-control, and the above-mentioned response to the second editing operation performed through the second editing control controls the editing of the component control object, which can be achieved through the following steps: In response to the touch operation on the editing confirmation sub-control, according to the current editing state of the component control object, the component control object is converted into a scene component model.
[0130] The edit confirmation subcontrol may be used to control and save the edit processing performed on the component control object.
[0131] In one embodiment, the first editing operation includes a component adding operation. The above-mentioned response to the first editing operation in the first game running scene and obtaining the first editing information may include the following steps: responding to the component adding operation in the first game running scene, determining the scene component to be added, and obtaining the first editing information corresponding to the scene component to be added; the first editing information is used to add the scene component to be added in the target game scene.
[0132] Exemplarily, the user may add a scene component model to be added through a first editing operation in the first game running scene, and determine that the scene component corresponding to the scene component model to be added is the scene component to be added.
[0133] Exemplarily, when the scene component to be added is determined, a scene component model to be added corresponding to the scene component to be added can be generated in the first game running scene.
[0134] In one embodiment, the above-mentioned response to the component adding operation in the first game running scene to determine the scene component to be added may include the following steps: displaying one or more scene component controls in a graphical user interface; responding to a component selection operation in the scene component control, determining a target scene component control in the scene component control, and determining the scene component corresponding to the target scene component control as the scene component to be added.
[0135] Exemplarily, a scene component control bar may be displayed in a graphical user interface, and the scene component control bar may include one or more scene component controls. Fig. 6A The scene component control bar 510 (i.e., "component package") in the scene component control includes multiple scene component controls, such as "block", "floor", "cone", "ring", "sphere", etc. The user can perform component selection operations on the scene component controls, such as clicking or dragging the "ring" control, determining the "ring" control as the target scene component control, determining its corresponding ring component as the scene component to be added, and obtaining the corresponding first editing information.
[0136] In one embodiment, the above-mentioned acquisition of the first editing information corresponding to the scene component to be added may include: generating a component control object corresponding to the scene component to be added in the first game running scene according to the aiming direction of the selection mark or the direction of the controlled virtual object in the first game running scene; and acquiring the first editing information corresponding to the scene component to be added in response to the editing operation on the component control object. Among them, the component control object is a temporary editing object, which may have the same or similar appearance as the scene component to be added. Exemplarily, a virtual object with visual effects such as phantom and highlight generated according to the scene component to be added is the component control object. The component control object can be initially generated at the aiming direction of the selection mark, or at a direction having a specific positional relationship with the controlled virtual object, such as being located directly in front of the controlled virtual object and at a specific distance from the controlled virtual object. The user can perform an editing operation on the component control object, which is equivalent to performing an editing operation on the scene component to be added and acquiring the first editing information corresponding to the scene component to be added.
[0137] refer to Fig. 6A As shown, when the target scene component control is selected using the scene component control bar 510 and the scene component to be added is determined to be a ring component, a component control object 514 corresponding to the ring component can be generated in the first game running scene 501. The user can move, rotate, scale, etc. the component control object 514 to edit its position, angle, size, etc. information, which is equivalent to editing the position, angle, size, etc. information of the scene component to be added, thereby obtaining the corresponding first editing information.
[0138] In one embodiment, in response to an edit end instruction for a component control object, such as clicking Fig. 6A The confirmation control in can remove or destroy the component control object, and can also generate a scene component model to be added corresponding to the scene component to be added in the first game running scene, or convert the component control object into a scene component model to be added, so as to present the editing effect of generating the scene component to be added or the scene component model to be added. Figure 6B As shown, after determining to generate the ring component, a ring component model can be generated in the first game running scene 501.
[0139] When a scene component control bar is displayed in the graphical user interface, the scene component controls in the scene component control bar can be adjusted in response to an adjustment operation on the scene component control bar. Exemplarily, the type, order, quantity, etc. of the scene component controls in the scene component control bar can be adjusted, and the present disclosure does not specifically limit this.
[0140] In addition to generating scene components or scene component models through scene component controls, scene components or scene component models can also be generated by copying existing scene components or scene component models, and scene components or scene component models can also be generated through custom modeling.
[0141] In one implementation, when a scene component model is generated, the generated scene component model may be used as the scene component model to be edited by default.
[0142] In one embodiment, the target game scene includes one or more scene components; the first game running scene includes one or more corresponding scene component models. The above-mentioned response to the first editing operation in the first game running scene, obtaining the first editing information, may include: determining the scene component model to be edited from the scene component model in the first game running scene; hiding the controlled virtual object, and / or placing the controlled virtual object at the position of the scene component model to be edited; in response to the triggering operation of the editing operation control, obtaining the first editing information corresponding to the scene component model to be edited; the editing operation control is an operation control displayed when the scene component model to be edited is determined, or an operation control for controlling the controlled virtual object; the first editing information is used to edit the scene component to be edited in the target game scene; the scene component to be edited corresponds to the scene component model to be edited.
[0143] In one embodiment, a selection mark is displayed in a graphical user interface, and according to the aiming direction of the selection mark, the scene component model to be edited is determined from the scene component models of the first game running scene.
[0144] In one embodiment, in response to the control object switching operation, the controlled virtual object can be hidden, and / or the controlled virtual object can be placed at the location of the scene component model to be edited. The control object switching operation can convert the current control object from the controlled virtual object to the scene component model to be edited. Figure 5B and Fig. 7A As shown, in Figure 5B In the example, the scene component model to be edited is determined to be the block component model 503 by selecting the mark 513. If the user clicks the control object switching control 512, the current control object is converted from the controlled virtual object 502 to the scene component model to be edited, and the scene component model to be edited is presented. Fig. 7A The screen shown.
[0145] By hiding the controlled virtual object and / or placing the controlled virtual object at the location of the scene component model to be edited, it is possible to prevent the user from misidentifying the controlling subject due to mental inertia after switching the controlling subject.
[0146] In an optional implementation, in response to the control object switching operation, the object associated with the virtual camera can be controlled to switch from the controlled virtual object to the scene component model to be edited, so as to control the virtual camera to move according to the movement state of the scene component model to be edited. By switching the following object of the virtual camera, the game screen can be adapted to the current control subject, which helps the user to observe and control.
[0147] In an optional embodiment, the above-mentioned response to the trigger operation of the editing operation control and obtaining the first editing information corresponding to the scene component model to be edited can be achieved through the following steps: responding to the trigger operation of the editing operation control, editing the scene component model to be edited in the first game running scene, and obtaining the first editing information corresponding to the scene component model to be edited.
[0148] By editing the scene component model to be edited in the first game running scene, the editing operation is fed back to the first game running scene, so that the user can observe the editing progress in real time.
[0149] In an optional embodiment, the above-mentioned response to the trigger operation of the editing operation control and obtaining the first editing information corresponding to the scene component model to be edited can be achieved through the following steps: responding to the trigger operation of the editing operation control, editing the scene component model to be edited in the first game running scene, and obtaining the first editing information corresponding to the scene component model to be edited.
[0150] By editing the scene component model to be edited in the first game running scene, the editing operation is fed back to the first game running scene, so that the user can observe the editing progress in real time.
[0151] In an optional embodiment, the above-mentioned editing operation control includes a motion operation control; the above-mentioned response to the trigger operation of the editing operation control, editing the scene component model to be edited in the first game running scene, and obtaining the first editing information corresponding to the scene component model to be edited, can be achieved through the following steps: responding to the trigger operation of the motion operation control, controlling the scene component model to be edited to move in the first game running scene, and obtaining the first editing information corresponding to the scene component model to be edited according to the motion information.
[0152] Optionally, the motion operation control may be in the form of a virtual joystick, a control axis, a virtual key, etc., and the present disclosure does not specifically limit this.
[0153] Optionally, before hiding the controlled virtual object and / or placing the controlled virtual object at the position of the scene component model to be edited, the motion operation control in the graphical user interface can be used to control the controlled virtual object; after hiding the controlled virtual object and / or placing the controlled virtual object at the position of the scene component model to be edited, the control object of the motion operation control can be switched from the controlled virtual object to the scene component model to be edited.
[0154] Optionally, before hiding the controlled virtual object and / or placing the controlled virtual object at the position of the scene component model to be edited, the original motion operation controls in the graphical user interface can be used to control the controlled virtual object; after hiding the controlled virtual object and / or placing the controlled virtual object at the position of the scene component model to be edited, the original motion operation controls used to control the controlled virtual object can be hidden, and then new motion operation controls specifically used to control the scene component model to be edited can be displayed.
[0155] Through the touch operation of the motion operation control, the user can realize mobile editing of the scene component model to be edited.
[0156] In an optional embodiment, the above-mentioned response to the trigger operation of the motion operation control, controlling the model of the scene component to be edited to move in the first game running scene, can be achieved through the following steps: controlling the motion operation control to be in flight control mode; turning off the physical collision properties and / or gravity properties of the scene component model to be edited in the flight control mode; in the flight control mode, responding to the touch operation of the motion operation control, controlling the model of the scene component to be edited to move in the first game running scene.
[0157] Exemplarily, the motion operation control may include a normal control mode and a flight control mode. In the normal control mode, the physical collision attribute and / or gravity attribute of the scene component model to be edited may be turned on; in the flight control mode, the physical collision attribute and / or gravity attribute of the scene component model to be edited may be turned off.
[0158] Exemplarily, in response to a control object switching operation, it can be determined whether the motion operation control is in the flight control mode; if the motion operation control is not in the flight control mode, the motion operation control can be switched to the flight control mode; in the flight control mode, in response to a touch operation on the motion operation control, the model of the scene component to be edited can be controlled to move in the first game running scene, so that the user can freely edit the model of the scene component to be edited.
[0159] Exemplarily, when the motion operation control in the flight control mode is composed of a plane movement control and an up and down movement control; the above-mentioned response to the touch operation of the motion operation control, controlling the model of the scene component to be edited to move in the first game running scene, can be achieved through the following steps: responding to the movement control operation of the plane movement control, controlling the model of the scene component to be edited to move on the plane in the first game running scene; responding to the movement control operation of the up and down movement control, controlling the model of the scene component to be edited to move in height in the first game running scene.
[0160] Exemplarily, the above-mentioned response to the touch operation on the motion operation control to control the scene component model to be edited to move in the first game running scene can also be achieved by the following steps: in response to the touch operation on the motion operation control, displaying coordinate axis options, the coordinate axis options include three coordinate axes corresponding to the scene component model to be edited; in response to selecting a target coordinate axis from the coordinate axis options, controlling the scene component model to be edited to move along the target coordinate axis in the game running scene. Exemplarily, such as Figure 7B As shown, a schematic diagram of the interface for component model movement control is also provided.
[0161] In an optional implementation, in the flight control mode, the graphical user interface displays a speed control control, and can also respond to touch operations on the speed control control to control and adjust the movement speed of the scene component model to be edited in the game running scene.
[0162] Optionally, in flight control mode, a speed control control may be displayed in a graphical user interface, and the user may control deceleration or acceleration by sliding left and right on the speed control control to achieve control of the moving speed.
[0163] Optionally, the above-mentioned editing operation controls also include but are not limited to rotation operation controls, scaling operation controls, mirroring operation controls, etc., which are not specifically limited in the present disclosure. Among them, the rotation operation controls, scaling operation controls, and mirroring operation controls can be used to perform editing processing such as rotation, scaling, and mirroring on the scene component model to be edited. Exemplary.
[0164] For example, Figure 7C As shown, in response to the control operation of the rotation operation control, the scene component model to be edited can be controlled to rotate clockwise or counterclockwise.
[0165] For example, Fig.7D As shown, in response to the control operation of the rotation operation control, the coordinate axis options can be displayed, and the coordinate axis options include three coordinate axes corresponding to the scene component model to be edited; in response to selecting a coordinate axis from the coordinate axis options as the rotation axis, the scene component model to be edited can be controlled to rotate around the selected rotation axis by configuring the rotation amount.
[0166] In addition, the editing operation control may also include a confirmation operation control, a cancel operation control, etc. The confirmation operation control may be used to save the current editing content, and the cancel operation control may be used to cancel the current editing content.
[0167] In one embodiment, in response to selecting one or more scene component models in the first game running scene, a deletion control is provided, and in response to a triggering operation on the deletion control, the scene component to be deleted in the target game scene is determined, and first editing information corresponding to the scene component to be deleted is obtained. The first editing information is used to delete the scene component to be deleted from the target game scene.
[0168] In one embodiment, the scene component model can be directly operated in the first game running scene to edit its properties, thereby determining the first editing information for editing the scene component. For example, in the first game running scene, in response to a move operation on the scene component, the position of the scene component is adjusted; in response to a rotation operation on the scene component, the angle of the scene component is adjusted; in response to a zoom operation on the scene component, the size of the scene component is adjusted.
[0169] In one embodiment, editing operations can be performed in the property interface of the scene component model, such as setting the value or type of the property, etc. For example, the scene component model can be selected and its property interface can be opened. In the property interface, the location coordinates, angle value, and size value of the scene component model can be set, the physical properties of the scene component model can be set to have a collision volume or not have a collision volume, an automatic movement path can be added to the scene component model, and parameters such as movement speed and movement distance can be set, a color can be selected from the color palette as the color of the scene component model, a material can be selected from multiple candidate materials as the material of the scene component model, and a method of automatically changing the appearance of the scene component model can be added (such as gradually changing from white to red, or turning red when a certain condition is triggered), etc.
[0170] In one embodiment, the user can edit the environment information in the relevant editing interface or through the corresponding controls. For example, the user can select a background from the candidate backgrounds as the background of the target game scene, or can choose to change the weather of the target game scene, or adjust the lighting parameters, etc.
[0171] Continue to refer Figure 2 In step S240, in response to the game running operation in the first game running scene, the controlled virtual object is controlled to execute the game running process instructions.
[0172] Among them, game running operations refer to operations related to playing (including playing during the testing process), and game running process instructions are game instructions generated corresponding to game running operations. They are instructions that can be executed during the game running process (including the testing process), such as instructions for attacking and casting skills.
[0173] In the process of controlling the controlled virtual object to execute the game running process instructions, the controlled virtual object may interact with the scene component model in the first game running scene, so that the running process state of the scene component model changes, including changes in posture, appearance, etc. For example, the controlled virtual object collides with the scene component model, causing the scene component model to change position or angle, or change shape (such as the scene component model produces depression, compression and other shape changes after the collision). Or, the controlled virtual object lifts the scene component model and throws it elsewhere, causing the scene component model to change position. Or, the controlled virtual object triggers the mechanism scene component model (such as a door), causing the mechanism scene component model to change from one state to another (such as changing from an open state to a closed state). It should be understood that the changes in the scene component model do not belong to editing information and will not have an editing effect on the target game scene. In other words, according to the game running operation, editing information for the target game scene may not be generated.
[0174] Continue to refer Figure 2 In step S250, in response to the first operation stop instruction, control the display of the edited target game scene determined according to the first editing information in the graphical user interface.
[0175] The first stop operation instruction is an operation instruction for ending the operation mode supporting editing. In one embodiment, when the first game operation scene is displayed, an exit control may be provided in the graphical user interface, and the first stop operation instruction may be an operation instruction for the exit control. Figure 5A As shown, when the first game running scene 501 is displayed, an exit control 506 is provided. When the user clicks or long presses the exit control 506, a first operation stop instruction is generated, triggering the exit of the first game running scene 501 and returning to the target game scene, such as exiting the running mode supporting editing and returning to the editing mode or running mode. Since the first editing operation is performed in the first game running scene, after returning to the target game scene, the edited target game scene can be displayed.
[0176] In this exemplary embodiment, the edited target game scene is a game scene after the original target game scene is edited according to the first editing information. When the first editing information is obtained, the target game scene can be edited according to the first editing information to determine the edited target game scene. The target game scene can also be edited according to the first editing information at other times, such as in response to the first run stop instruction, to determine the edited target game scene, and the edited target game scene is displayed in the graphical user interface.
[0177] In one embodiment, the game editing method may further include the following steps:
[0178] In response to the edit and save instruction, the map data of the target game scene is updated according to the first edit information, so that when the target game scene is displayed, the edited target game scene is displayed according to the updated map data.
[0179] The edit save instruction is an instruction to instruct to save the first edit information persistently. The edit save instruction can be triggered by the first run stop instruction, such as automatically triggering the edit save instruction when exiting the first game run scene or exiting the run mode that supports editing. The edit save instruction can also be manually triggered by the user, such as Figure 5A As shown, a save control 508 is provided in the first game running scene 501, and the edit save instruction is triggered when the user operates the save control 508. It can also respond to specific conditions, such as triggering the edit save instruction when the first preset time is reached. The first preset time can be a periodic time, such as 5 minutes, then in the first game running scene, the edit save instruction is automatically triggered every 5 minutes.
[0180] The map data of the target game scene can be updated according to the first editing information. Exemplarily, the first editing information includes operation records such as adding (such as adding scene components), deleting (such as deleting scene components), and modifying (such as modifying the properties of scene components) the target game scene. According to the sequence of different operation records in the first editing information (which can be the sequence of the corresponding first editing operations), the map data of the target game scene can be added, deleted, modified, etc., respectively, so as to update the map data of the target game scene. Furthermore, the edited target game scene can be displayed according to the updated map data.
[0181] By updating the map data in the above manner, the target game scene can be edited, and the update process has low overhead.
[0182] As can be seen from the above, in the first game running scene, the user needs to perform two different types of operations, namely the first editing operation and the game running operation, to realize the editing function and the playing or testing function. In order to avoid confusion or mutual interference between different types of operations, or different game functions, or different types of game instructions, the first game running scene can be set to have different states, and different states can be used to distinguish them.
[0183] In one implementation, the above-mentioned response to the first editing operation in the first game running scene and obtaining the first editing information may include the following steps:
[0184] When the first game running scene is in a first preset state, first editing information is obtained in response to a first editing operation in the first game running scene.
[0185] Among them, the first preset state may be a state in which the first editing operation is allowed. In one embodiment, when the first game running scene is not in the first preset state, the first editing operation may not be allowed in the first game running scene. In this way, when the user needs to perform the first editing operation in the first game running scene, the first game running scene can be switched to the first preset state and the first editing operation can be performed. When the first editing operation is not required, the first game running scene can be switched to other states. In this way, the user can use different types of operations more freely and flexibly to achieve different game functions.
[0186] In one embodiment, when the first game running scene is in a first preset state, an edit operation control is displayed in the graphical user interface, so that the user can perform the first edit operation through the edit operation control. Further, when the first game running scene is in other states, the edit operation control is not displayed in the graphical user interface. The graphical user interface space thus reserved can be used to display other controls, such as game running controls, or to display relevant game information, so that the graphical user interface can flexibly implement different functions.
[0187] In one embodiment, when the first game running scene is in a first preset state, a selection mark is displayed in the graphical user interface.
[0188] In one embodiment, when the first game running scene is in a first preset state, the one or more scene component controls are displayed in a graphical user interface, such as displaying a component control bar including the scene component controls.
[0189] In one embodiment, the first game running scene may also have a second preset state, and the second preset state may be a state in which the first editing operation is not allowed. Exemplarily, in the first preset state, an editing operation control may be provided so that the user can perform the first editing operation through the editing operation control. In the second preset state, the editing operation control may not be provided, so that the user cannot perform the first editing operation. Alternatively, in the second preset state, when the user performs the first editing operation, the first editing operation is invalidated, such as when the user moves the scene component model, the effect that the scene component model cannot be moved is displayed, and a prompt message "This operation cannot be performed, please switch to the first preset state first" may be presented. In this way, in the second preset state, the user can better perform operations other than editing, such as performing game running operations, without the occurrence of erroneous editing when performing game running operations.
[0190] In one embodiment, the first game running scene can be set to always be in one of a first preset state and a second preset state. For example, the first preset state can be a scene pause state, and the second preset state can be a scene running state. When the state of the first game running scene is switched, it can be switched from the scene pause state to the scene running state, or from the scene running state to the scene pause state, and there is no third state.
[0191] In one embodiment, in response to a state switching instruction in the first game running scene, the first game running scene is controlled to switch between different states. Exemplarily, if the state is currently in the first preset state, the state switching instruction is responded to and switched to the second preset state; if the state is currently in the second preset state, the state switching instruction is responded to and switched to the first preset state. Figure 5A The first game running scene 501 is currently in the scene pause state (reflected by the text message "World Paused"), and the user can operate the first state switching control 505 to switch the first game running scene 501 to the scene running state. Figure 8 In the screen shown, the first game running scene 501 is in the scene running state. If the user clicks the second state switching control 511, the first game running scene 501 can be returned to the scene pause state again.
[0192] In one embodiment, the game editing method may further include the following steps:
[0193] When entering the first game running scene, the first game running scene is set to a first preset state.
[0194] For example, when switching from the editing mode or the running mode to the running mode supporting editing to enter the first game running scene, the first preset state can be initially defaulted to facilitate the user to perform the first editing operation.
[0195] Figure 3 The relationship between three modes and two preset states is shown. Among them, the target game scene can be switched between the edit mode, the run mode, and the run mode supporting editing. The three modes can be three different run or edit environments. In the run mode supporting editing, a first game run scene is presented, which has a first preset state and a second preset state, and can be switched between the two preset states.
[0196] In one embodiment, the above-mentioned response to the game running operation in the first game running scene to control the controlled virtual object to execute the game running process instruction may include the following steps:
[0197] When the first game running scene is in the second preset state, the first game running scene is controlled to execute the first operation instruction.
[0198] Accordingly, the game editing method may further include the following steps:
[0199] When the first game running scene is in the first preset state, the first game running scene is controlled not to execute the first operation instruction.
[0200] As mentioned above, the operation instruction refers to an instruction with dynamic effects such as movement, appearance change, and form change based on the preset game logic. In one embodiment, the operation instruction can be an operation instruction executed by the target game scene in the running mode.
[0201] In one embodiment, the operation instruction may include but is not limited to at least one of the following:
[0202] (1) Environmental change instructions, such as instructions for changes in the background, weather, lighting, terrain, and other environmental factors of the first game running scene, such as when the environment changes from day to night at a certain time, or controlling the weather changes of the first game running scene based on the weather in the user's current area (provided that the user has authorized the game program to use his or her geographic location information).
[0203] (2) Non-physical driven operation instructions of scene component models. Non-physical driven operation instructions refer to operation instructions driven by factors other than physical effects, and may include non-physical driven motion instructions and non-physical driven appearance change instructions. For example, a user may edit motion information for a scene component or a scene component model, set the start condition of the motion information to a specific event or to a specific time, and set parameters such as motion path and motion speed. Then, in the first game running scene, when the specific event occurs or the specific event arrives, the scene component model may move according to the set motion information. This motion process is not driven by physical effects, and therefore belongs to non-physical driven motion instructions. For another example, a user may edit appearance change information for a scene component or a scene component model, set the condition of appearance change to a specific event or to a specific time, and set the appearance change method, the color after the change, and other information. Then, in the first game running scene, when the specific event occurs or the specific event arrives, the scene component model may change its appearance according to the set appearance change information. This appearance change process is not driven by physical effects, and therefore belongs to non-physical driven appearance change instructions.
[0204] (3) Intrinsic operation instructions of the scene component model. Some scene components in the game program have inherent operation instructions, and the scene component models corresponding to these scene components also have inherent operation instructions. The inherent operation instructions of the scene components have the same meaning as the inherent operation instructions of the scene component models, and are not specifically distinguished in this article. The inherent operation instructions are operation instructions set in the templated parameters of the scene components, and may be operation instructions pre-edited by the game developer. For example, the gear component generated by the "gear" scene component control initially has the templated parameters corresponding to the "gear" scene component control, including the inherent operation instructions for rotation. Therefore, all gear components generated by the "gear" scene component control have the inherent operation instructions for rotation. The conveyor belt component generated by the "conveyor belt" scene component control initially has the templated parameters corresponding to the "conveyor belt" scene component control, including the inherent operation instructions for conveying motion. Therefore, all conveyor belt components generated by the "conveyor belt" scene component control have the inherent operation instructions for conveying motion. In one embodiment, the inherent operation instructions may be operation instructions that are not editable by the user, such as the user cannot edit new inherent operation instructions for the scene component, nor can the user delete or modify the inherent operation instructions of the scene component.
[0205] (4) Physically driven operation instructions of scene component models. Physically driven operation instructions refer to operation instructions driven by physical effects. Physical effects can come from the interactive behavior of the controlled virtual object or from other scene component models. For example, the controlled virtual object collides with the scene component model, and the scene component model moves under the action of the collision. This movement belongs to physically driven operation instructions. Alternatively, the controlled virtual object collides with a scene component model and causes it to move. During the movement, the scene component model collides with another scene component model and causes it to move. The movements of these two scene component models both belong to physically driven operation instructions.
[0206] The first operation instruction is an operation instruction that is executed in the second preset state and not executed in the first preset state in the first game running scene. In the first preset state, the user needs to perform the first editing operation. If the first game running scene executes certain operation instructions, it may be inconvenient for the user to perform the first editing operation. Therefore, these operation instructions that are not suitable for execution in the first preset state are used as the first operation instructions, and the execution of the first operation instructions is suspended in the first preset state, so that the user can perform the first editing operation in a relatively static scene, which facilitates the user's operation. For example, in the first preset state, the scene component model in the first game running scene is stationary, and it is easier for the user to select and perform the first editing operation such as moving and rotating. The first operation instruction can be specified by the user or automatically determined by the game program.
[0207] In one embodiment, the game editing method may further include the following steps:
[0208] When the first game running scene is in the first preset state and in the second preset state, the first game running scene is controlled to execute the second operation instruction.
[0209] Among them, the second operation instruction is an operation instruction executed by the first game running scene in both the first preset state and the second preset state. That is to say, in the first preset state, some operation instructions in the first game running scene can be maintained, and these operation instructions, namely the second operation instructions, usually do not have an adverse effect on the user's first editing operation. In addition, maintaining the second operation instruction can make the first game running scene maintain a certain dynamic effect in the first preset state, so that the user can more intuitively see the actual operation effect of part of the target game scene while performing the first editing operation.
[0210] For example, the second operation instruction may include an instruction for the environmental change of the first game running scene, such as an instruction for the change from day to night, an instruction for the change from sunny to rainy, etc. In the first preset state, the environmental change of the first game running scene can be maintained, which has almost no adverse effect on the user's first editing operation. When the user performs the first editing operation, he can see the actual environmental change effect of the target game scene, which is conducive to the user to perform more accurate and high-quality editing. For example, the user can edit the state change of the light component model (such as from the light-off state to the light-on state) in a targeted manner according to the environmental change effect from day to night of the first game running scene.
[0211] The second operation instruction may be specified by the user or automatically determined by the game program. In one embodiment, the second operation instruction may be an operation instruction other than the first operation instruction. In other words, the first operation instruction plus the second operation instruction is equivalent to all operation instructions. In the second preset state, the first game running scene executes the first operation instruction and the second operation instruction, which is equivalent to executing all operation instructions.
[0212] In one embodiment, the first operation instruction includes at least one of the following: an operation instruction determined according to editing information of the target game scene, and an unspecified operation instruction.
[0213] Among them, the editing information of the target game scene may include historical editing information and / or first editing information. The historical editing information is the editing information determined by the editing operation on the target game scene before entering the first game running scene this time. For example, before entering the running mode that supports editing, the user can perform a second editing operation on the target game scene in the editing mode (i.e., in the game editing scene) and obtain the corresponding second editing information, which belongs to the historical editing information. The first editing information is the editing information determined according to the first editing operation in the first game running scene after entering the first game running scene this time. In other words, the first operation instruction may include the operation instruction edited by the user. The operation instructions edited by the user include but are not limited to: environmental change instructions, non-physical drive operation instructions, such as non-physical drive motion instructions and non-physical drive appearance change instructions added by the user to the scene component model through editing operations.
[0214] The non-specified operation instructions are operation instructions other than the specified operation instructions. For example, a user or a game developer can specify some operation instructions as the second operation instructions. Therefore, the second operation instructions usually account for a relatively low proportion of all the operation instructions, and it is more convenient to specify the second operation instructions. Correspondingly, the other operation instructions are the first operation instructions.
[0215] In one embodiment, the second operation instruction includes at least one of the following: an inherent operation instruction of a scene component model in the first game running scene, and a specified operation instruction. Exemplarily, a user or a game developer can specify the inherent operation instructions of some scene component models as second operation instructions, and the unspecified inherent operation instructions and other types of operation instructions are first operation instructions. For example, a whitelist can be set, and the user adds the operation instructions that he wants to maintain in the first preset state to the whitelist, and the operation instructions in the whitelist are the second operation instructions, and the operation instructions outside the whitelist are the first operation instructions.
[0216] The first operation instruction and the second operation instruction are described above. In the first preset state, the first game running scene executes the second operation instruction and does not execute the first operation instruction, which retains some dynamic effects of the target game scene, and is conducive to the user to complete the first editing operation conveniently, accurately and with high quality. In the second preset state, the first game running scene executes the first operation instruction and the second operation instruction, realizing all the dynamic effects of the target game scene.
[0217] The following describes how to not execute the first operation instruction in the first preset state and execute the first operation instruction in the second preset state.
[0218] In one embodiment, a timer is provided in the first game running scene. The time of entering the first game running scene can be taken as zero point, and the timer starts timing from zero point. When the first game running scene is in the second preset state, controlling the first game running scene to execute the first operation instruction may include the following steps: when the first game running scene is in the second preset state, controlling the timer to perform timing, so that the first game running scene follows the timing of the timer to execute the first operation instruction associated with time. Correspondingly, when the first game running scene is in the first preset state, controlling the first game running scene not to execute the first operation instruction may include the following steps: when the first game running scene is in the first preset state, controlling the timer to pause timing, so that the first game running scene pauses the execution of the first operation instruction associated with time.
[0219] Among them, some or all of the first operation instructions may be operation instructions associated with time. For example, the first operation instruction includes an environment change instruction, which may be an environment transition between day and night when a specific moment is reached. The first operation instruction includes a non-physical drive motion instruction, which may be a trigger for the scene component model to start moving when a specific moment is reached, or to move according to time. The first operation instruction includes a non-physical drive appearance change instruction, which may be a trigger for the scene component model to change in appearance when a specific moment is reached, or to change in appearance according to time. These first operation instructions are all operation instructions associated with time.
[0220] In the second preset state, the normal timing of the timer is maintained, and the first game running scene can execute the first operation instruction associated with time. In the first preset state, the timing of the timer is paused, and the first operation instruction associated with time can be paused. For example, a certain scene component model has a non-physical driving motion instruction, and the game program can calculate the position that the scene component model needs to reach at different times according to the motion information, and then control the scene component model to reach the corresponding position at different times during the motion process, thereby realizing the motion process. In the second preset state, the timer is normally timed, so that the game program can normally control the scene component model to move to realize the non-physical driving motion instruction. In the first preset state, the timer is paused, and the game program keeps the scene component model at the corresponding position according to the current moment, so that the motion process of the scene component model is paused to achieve the effect of suspending the execution of the non-physical driving motion instruction. It should be understood that if the first game running scene switches from the first preset state to the second preset state, the timer resumes timing and continues timing from the moment of suspension, and the first game running scene continues to execute those suspended first operation instructions. As in the above example, after resuming timing, the game program can continue to move the scene component model to the position corresponding to the subsequent moment, so that the motion process continues.
[0221] By controlling the timing switch of the timer, the first game running scene can be conveniently switched between executing and not executing the first operation instruction, without making major changes to the first game running scene or the scene component model, which is conducive to reducing data processing volume and improving editing efficiency.
[0222] In one embodiment, when the first game running scene is in the second preset state, controlling the first game running scene to execute the first operation instruction may include the following steps: when the first game running scene is in the second preset state, responding to a preset event in the first game running scene, controlling the first game running scene to execute the first operation instruction associated with the preset event. Correspondingly, when the first game running scene is in the first preset state, controlling the first game running scene not to execute the first operation instruction may include the following steps: when the first game running scene is in the first preset state, suspending the execution of the game logic corresponding to the preset event in the first game running scene, so that the first game running scene does not execute the first operation instruction associated with the preset event.
[0223] Among them, some or all of the first operation instructions can be triggered by specific events in the game, which are preset events. For example, the first operation instruction includes an environmental change instruction, which can be a weather change triggered when event E1 occurs. The first operation instruction includes a non-physical drive motion instruction, which can be a trigger for the scene component model to start moving when event E2 occurs. The first operation instruction includes a non-physical drive appearance change instruction, which can be a trigger for the scene component model to change its appearance when event E3 occurs. Event E1, event E2, and event E3 are all preset events, and these first operation instructions are all first operation instructions associated with preset events.
[0224] In the second preset state, the game logic corresponding to the preset event is executed normally, and the game logic may include: when the triggering condition of the preset event is met, the preset event is triggered; the sender of the preset event can send the preset event normally, and the sender can be a controlled virtual object, a scene component model, or a first game running scene that triggers the preset event; the receiver of the preset event can receive the preset event normally, and the receiver can be a controlled virtual object, a scene component model, or a first game running scene; the receiver responds to receiving the preset event and executes the associated first operation instruction. In this way, the entire logical process from the generation of the preset event, to the transmission of the preset event, and then to the triggering of the first operation instruction by the preset event can be realized, so that the first game running scene can execute the first operation instruction associated with the preset event.
[0225] In the first preset state, the game logic corresponding to the preset event is suspended, and part or all of the game logic corresponding to the preset event can be suspended. Exemplarily, any one or more of the following links can be suspended: suspending the generation of the preset event, even if the triggering conditions of the preset event are met, the preset event is not generated; suspending the sending of the preset event, after the preset event is generated, the sender does not send the preset event; suspending the reception of the preset event, that is, after the sender sends the preset event, the receiver does not receive the preset event, or suspending the transmission of the preset event between the sender and the receiver, so that the receiver cannot receive the preset event; suspending the logic of the preset event triggering the first operation instruction, that is, the receiver receives the preset event, and it will not execute the first operation instruction under the driving action of the preset event, that is, the preset event does not have a triggering effect. As a result, it is impossible to fully realize the entire logical process from the generation of the preset event, to the transmission of the preset event, and then to the triggering of the first operation instruction by the preset event, so that the first game running scene suspends the execution of the first operation instruction associated with the preset event.
[0226] By controlling the game logic corresponding to the preset events, the first game running scene can be easily switched between executing and not executing the first operation instruction, without making major changes to the first game running scene or the scene component model, which is conducive to reducing the amount of data processing and improving editing efficiency.
[0227] In one embodiment, the game editing method may further include the following steps:
[0228] Cache the event information of unexecuted preset events; unexecuted preset events are preset events during the period when the first game running scene is in the first preset state. Wherein, during the period when the first game running scene is in the first preset state, for the preset events that are generated or should be generated, the logical process of these preset events cannot be fully realized due to the suspension of the execution of their corresponding game logic, and the event information of these preset events is cached. The event information may include: the occurrence logic information of the preset event, the sending logic information, the receiving logic information, and the logic information of the triggering of the first operation instruction. In one embodiment, the event information may include indication information about the unexecuted game logic, which is used to determine which game logic corresponding to the preset event is not executed.
[0229] Accordingly, when the first game running scene is in the second preset state, responding to a preset event in the first game running scene and controlling the first game running scene to execute a first operation instruction associated with the preset event may include the following steps:
[0230] In response to the first game running scene switching from the first preset state to the second preset state, the game logic corresponding to the unexecuted preset event is restored according to the cached event information, so that the first game running scene restores the execution of the first operation instruction associated with the unexecuted preset event.
[0231] Among them, according to the cached event information, it can be determined which game logics that should be executed but have not been executed in the preset event, and then the game logics can be restored. For example, during the period when the first game running scene is in the first preset state, if the triggering condition of the preset event is met, but the generation logic of the preset event is not executed, after switching to the second preset state, the generation logic of the preset event can be restored according to the cached event information of the preset event to generate the preset event, and continue to execute the subsequent logical process of sending, receiving, and triggering the first operation instruction. If the sending logic is not executed after the preset event is generated, after switching to the second preset state, the sending process can be restored according to the cached event information of the preset event, and the subsequent receiving and triggering of the first operation instruction The logical process. Make the first game running scene resume the execution of the corresponding first operation instruction. This increases the continuity of the first game running scene between different states, and enables the first game running scene to present a more comprehensive and sufficient scene dynamic effect in the second preset state.
[0232] In one implementation, the game logic corresponding to the unexecuted preset events may be executed in sequence according to the cache order of the preset events, so as to ensure the timing accuracy between different preset events and avoid logic errors.
[0233] In one embodiment, when the first game running scene is in the second preset state, controlling the first game running scene to execute the first operation instruction may include the following steps: when the first game running scene is in the second preset state, executing the first operation instruction through the first motion system in the first game running scene. Correspondingly, when the first game running scene is in the first preset state, controlling the first game running scene not to execute the first operation instruction may include the following steps: when the first game running scene is in the first preset state, removing or pausing the first motion system in the first game running scene so that the first game running scene does not execute the first operation instruction.
[0234] Among them, the motion system can be a program unit responsible for motion, such as the motion properties of the scene component model. The first motion system is a motion system for implementing the first operation instruction, such as the motion properties corresponding to the non-physical drive motion instruction of the scene component model. In the second preset state, by running the program code of the first motion system, the first game running scene executes part or all of the first operation instructions, such as controlling the scene component model to execute the non-physical drive motion instructions through the first motion system of the scene component model. In the first preset state, remove or pause the first motion system, so that the first game running scene cannot execute the corresponding first operation instruction. Thereby, the first operation instruction can be accurately shielded in the first preset state, and there is no need to process the relevant data of the first motion system, thereby reducing the overhead.
[0235] In one embodiment, the game editing method may further include the following steps:
[0236] When the first game running scene is in the first preset state, the second motion system in the first game running scene is maintained to execute the second operation instruction through the second motion system.
[0237] The second motion system is a motion system for implementing the second operation instruction, such as a motion attribute corresponding to the inherent operation instruction of the scene component model. The normal operation of the second motion system is maintained in the first preset state, so that the first game running scene can maintain the second operation instruction. Thereby, accurate control of the second operation instruction is achieved.
[0238] In one embodiment, the first motion system may include: a motion system added according to the editing information of the target game scene. The editing information of the target game scene may include historical editing information and / or first editing information. Exemplarily, the user can edit the non-physical driven motion instructions for the scene component or the scene component model, and the first motion system may include motion attributes corresponding to the non-physical driven motion instructions.
[0239] In one embodiment, the second motion system may include: an intrinsic motion system of a scene component model in the first game running scene. The intrinsic motion system is a motion system for executing intrinsic operation instructions, such as motion attributes corresponding to the intrinsic operation instructions of the scene component or scene component model.
[0240] In one embodiment, when the first game running scene is in the second preset state, controlling the first game running scene to execute the first operation instruction may include the following steps: when the first game running scene is in the second preset state, responding to the interactive behavior of the controlled virtual object on the scene component model in the first game running scene, controlling the scene component model to execute the corresponding first operation instruction according to the interactive behavior. Correspondingly, when the first game running scene is in the first preset state, controlling the first game running scene not to execute the first operation instruction may include the following steps: when the first game running scene is in the first preset state, setting the scene component model in the first game running scene not to be affected by the interactive behavior of the controlled virtual object.
[0241] Among them, the interactive behaviors between the controlled virtual object and the scene component model include but are not limited to: the controlled virtual object collides with the scene component model; the controlled virtual object lifts the scene component model and moves it; the controlled virtual object pushes the scene component model; the controlled virtual object interacts indirectly with the scene component model, such as the controlled virtual object collides with a scene component model to cause the scene component model to move, and the scene component model collides with another scene component model during the movement, then the controlled virtual object interacts indirectly with the latter.
[0242] In the second preset state, the scene component model in the first game running scene can be affected by the interactive behavior of the controlled virtual object, and execute the corresponding first operation instruction according to the interactive behavior, which can be a physical drive operation instruction. In the first preset state, the scene component model can be set not to be affected by the interactive behavior, and will not execute the first operation instruction corresponding to the interactive behavior. For example, in the second preset state, the controlled virtual object collides with the scene component model, which can cause the scene component model to move or deform under the action of the collision. In the first preset state, when the controlled virtual object collides with the scene component model, the scene component model may not change at all.
[0243] In one embodiment, in the first preset state, the physical properties of the scene component model can be changed, such as changing the physical properties to not being subjected to force, so that the scene component model is not affected by the interactive behavior. In response to switching from the first preset state to the second preset state, the physical properties of the scene component model can be restored to the original value, such as restoring the physical properties to being subjected to force, so that the scene component model is affected by the interactive behavior.
[0244] In one embodiment, when the first game running scene is in the second preset state, controlling the first game running scene to execute the first operation instruction may include the following steps:
[0245] In response to the first game running scene switching from the first preset state to the second preset state, the first operation instruction is started or continued to be executed based on the current first game running scene.
[0246] For example, when entering the first game running scene, it can be set to be in the first preset state by default, and the first game running scene does not execute the first operation instruction. Subsequently, if the first game running scene switches from the first preset state to the second preset state, the first operation instruction is started to be executed based on the current first game running scene. If the user edits and moves the position of the scene component model during the first game running scene in the first preset state, the scene component model starts to execute the first operation instruction based on the current position. Subsequently, if the first game running scene switches from the second preset state to the first preset state, the execution of the first operation instruction is suspended, such as the scene component model can be stationary at the current position. Subsequently, if the first game running scene switches from the first preset state to the second preset state again, the first operation instruction continues to be executed, such as the scene component model can be based on the current position, and then the previously paused first operation instruction continues to be executed, instead of executing the first operation instruction from the beginning. Thus, when the first game running scene switches between the first preset state and the second preset state, the information such as the position of the scene component model in the scene can be continued, so that there is a certain continuity between the first preset state and the second preset state. Furthermore, when switching states, there is no need to reset the first game running scene or reload the target game scene, and only the scene information needs to be kept, thus reducing overhead.
[0247] In one embodiment, the above-mentioned response to the game running operation in the first game running scene to control the controlled virtual object to execute the game running process instruction may include the following steps:
[0248] When the first game running scene is in the first preset state and in the second preset state, in response to the game running operation in the first game running scene, the controlled virtual object is controlled to execute the game running process instructions.
[0249] That is to say, in both the first preset state and the second preset state, the user can perform game running operations to implement game running process instructions.
[0250] In one implementation, it may also be configured that the user can perform game running operations only in the second preset state, and cannot perform game running operations in the first preset state.
[0251] As mentioned above, the first editing information determined by the user through the first editing operation is mainly used to edit the target game scene. On this basis, the first game running scene can be edited according to the first editing information, or the first game running scene may not be edited. In other words, the first game running scene may present the editing effect of the first editing information, or it may not present the editing effect. For example, considering that the first game running scene needs to execute operation instructions, and the controlled virtual object needs to execute game running process instructions, if the editing effect of the first editing information is presented in the first game running scene, there may be logical conflicts or confusion perceived by the user. Therefore, it can be set that the first editing information has no editing effect on the first game running scene.
[0252] In one embodiment, the game editing method may further include the following steps:
[0253] In response to triggering the editing validation condition corresponding to the first editing information, the first game running scene is edited according to the first editing information.
[0254] Among them, the editing effective condition refers to the condition under which the first editing information produces an editing effect in the first game running scene, such as a time condition, so that under appropriate circumstances, the first game running scene is edited according to the first editing information. It should be understood that the editing effective conditions corresponding to different first editing information may be different. By setting the editing effective condition, it is possible to effectively control when or under what circumstances the first game running scene is edited according to the first editing information, thereby avoiding logical conflicts or confusion in user perception.
[0255] In one embodiment, the first editing information may include real-time effective editing information. The editing effective condition corresponding to the real-time effective editing information includes: obtaining the real-time effective editing information. The above response triggers the editing effective condition corresponding to the first editing information, and editing the first game running scene according to the first editing information may include the following steps:
[0256] When the real-time effective editing information is obtained, the first game running scene is edited according to the real-time effective editing information.
[0257] Among them, "effective" means that the first editing information has an editing effect on the first game running scene. Real-time effective editing information refers to the first editing information that has an editing effect in real time in the first game running scene. For example, the first editing information corresponding to the first editing operation of the user moving, rotating, and scaling the scene component model can be real-time effective editing information. Game developers or users can determine which first editing information is real-time effective editing information, or the game program can automatically determine which first editing information is real-time effective editing information. When the user performs the first editing operation, the real-time effective editing information is obtained in response to the first editing operation, and the first game running scene is edited according to the real-time effective editing information. For example, when the user moves, rotates, and scales the scene component model, a picture of the scene component model being moved, rotated, and scaled is presented in real time. In this way, the user can immediately see the editing effect.
[0258] In one embodiment, the first editing information includes non-real-time effective editing information. The above response triggers the editing effective condition corresponding to the first editing information, and editing the first game running scene according to the first editing information may include the following steps:
[0259] After acquiring the non-real-time effective editing information, in response to triggering the non-real-time update condition of the first game running scene, the first game running scene is edited according to the non-real-time effective editing information.
[0260] Among them, non-real-time effective editing information refers to the first editing information that does not produce an editing effect in real time in the first game running scene. Compared with real-time effective editing information, non-real-time effective editing information has a certain editing delay, that is, when the non-real-time effective editing information is obtained, it does not immediately produce an editing effect on the first game running scene, but produces an editing effect at an appropriate time later. For example, the first editing information corresponding to the first editing operation of the user to edit and modify the birth point (referring to the area where the player character is initially located), trigger event, game duration, etc. can be non-real-time effective editing information, which is not suitable for immediately producing an editing effect on the first game running scene when the user edits. Game developers or users can determine which first editing information is non-real-time effective editing information, or the game program can automatically determine which first editing information is non-real-time effective editing information.
[0261] The non-real-time update condition is used to indicate the time when the non-real-time effective editing information takes effect in the first game running scene. Exemplarily, a unified non-real-time update condition can be set for the non-real-time effective editing information. When the first game running scene meets the non-real-time update condition, the first game running scene is edited according to all the currently ineffective non-real-time effective editing information.
[0262] In one implementation, the non-real-time update condition may include at least one of the following:
[0263] A non-real-time update instruction for the first game running scene is received. The non-real-time update instruction may be a non-real-time update operation instruction triggered by a user, such as providing an update control for the first game running scene, and the user may operate the control to trigger the non-real-time update instruction. Alternatively, the non-real-time update instruction may be an instruction triggered by a specific event, such as the termination of the first operation instruction triggering the non-real-time update instruction. In response to the non-real-time update instruction, the current first game running scene may be edited according to the non-real-time effective editing information, or the initial first game running scene may be edited. In the current first game running scene, the current scene running information is retained, such as the position, angle, shape and other information of the scene component model after executing the first operation instruction or during the execution of the first operation instruction. The information may be edited based on the current first game running scene according to the non-real-time effective editing information, so that the user can intuitively see the editing effect during the actual operation.
[0264] Reset the first game running scene. Reset means initializing the first game running scene, which can be to destroy the current first game running scene and then reload the first game running scene, or to reset the scene component model, controlled virtual objects and other virtual elements of the first game running scene to the initial state. For example, a reset control is provided in the first game running scene, such as Figure 5A The "reset" control 507 shown is a control that the user can operate to trigger the reset of the first game running scene. Alternatively, when exiting the first game running scene and re-entering the first game running scene, the reset of the first game running scene is triggered. When resetting the first game running scene, the first game running scene can be edited according to the non-real-time effective editing information. Specifically, the initial first game running scene can be edited so that the reset first game running scene is the edited first game running scene. For example, the birth point position in the first game running scene is edited according to the non-real-time effective editing information of the user to modify the birth point. After resetting the first game running scene, the controlled virtual object can be born at the edited birth point.
[0265] Arrival of the second preset time. The second preset time can be a time determined by a game developer, user or game program, for example, it can be a single test time of a target game scene (such as 30 seconds). The second preset time can be determined by a timer in the first game running scene. For example, if the timer is paused in the first preset state, the second preset time will not be reached. Alternatively, the first preset time can be determined by other timers that are unrelated to the first preset state and the second preset state, and the second preset time may also be reached in the first preset state. In the first game running scene, when the second preset time is reached, the first game running scene is edited according to the non-real-time effective editing information to achieve a time-driven editing effect.
[0266] In one embodiment, the first editing information may include: when performing the first editing operation, editing information for the current first game running scene. The above-mentioned editing of the first game running scene according to the first editing information may include the following steps:
[0267] Determine edit increment information according to the first edit information and the current first game running scene;
[0268] The initial first game running scene is edited according to the edit increment information, so that when the first game running scene is reset, the edited initial first game running scene is displayed.
[0269] Among them, the current first game running scene retains the current scene running information, such as the position, angle, shape and other information of the scene component model after executing the first running instruction or during the execution of the first running instruction. When the user performs the first editing operation, the operation is usually performed on the current first game running scene, such as moving the scene component model based on its current position. In this exemplary embodiment, the editing increment information is determined according to the first editing information and the current first game running scene. The editing increment information represents the change amount of the parameter edited by the user. For example, the current position of a scene component model is P1, and the user performs the first editing operation to move it to position P2, and P2 can be saved in the first editing information. According to P2 in the first editing information and the current position P1 during editing, the editing increment information is calculated, including the position change amount ΔP=P2-P1, and ΔP can be saved as a vector. When editing the first game running scene according to the first editing information, the initial first game running scene can be modified according to the editing increment information, such as the initial position of the scene component model is P0, and the position after editing is P0+ΔP. This can more accurately reflect the actual editing effect.
[0270] In one embodiment, the first editing information includes editing increment information, that is, the editing increment information such as the position change amount can be directly saved in the first editing information without saving the scene running information. The above-mentioned editing of the first game running scene according to the first editing information includes: editing the initial first game running scene according to the editing increment information, so that when resetting the first game running scene, the edited initial first game running scene is displayed.
[0271] In one embodiment, the game editing method may further include the following steps:
[0272] In response to the edit undo operation, determining edit undo information corresponding to at least part of the first edit information according to the edit undo operation;
[0273] The edited first game running scene is edited and undo processing is performed according to the edit undo information.
[0274] The edit undo operation is an operation to undo the completed first edit operation. For example, an edit undo control is provided in the first game running scene, such as Figure 5A The edit undo control 509 is shown. The user can use the control to choose to undo one or more first edit operations. Alternatively, the user cannot select the first edit operation to be undone, but each time the edit undo control is operated, the first edit operation with the latest time is undone by default. Therefore, in response to the edit undo operation, the first edit operation to be undone and its corresponding first edit information are determined, and the edit undo information corresponding to these first edit information is determined.
[0275] If the first game running scene has been edited according to the first editing information, then correspondingly, the edited first game running scene can be edited and undone according to the edit undo information. For example, the added scene component model can be deleted, the deleted scene component model can be restored, the scene component model moved after editing can be moved back to the position before editing, etc. This allows the user to easily undo the undesirable first editing operation, thereby improving the flexibility of the user's editing operation.
[0276] In one embodiment, in response to an edit undo operation, edit undo information corresponding to at least part of the information in the first edit information is determined according to the edit undo operation; if the target game scene has been edited according to the at least part of the information, edit undo processing is performed on the edited target game scene according to the edit undo information, such as saving the edit undo information to the map data of the target game scene to update the map data. If the target game scene has not been edited according to the at least part of the information, the information can be removed from the first edit information so that the target game scene will not be edited accordingly in the future, so as to achieve the effect of undoing the edit.
[0277] In one embodiment, the first editing operation includes: a deletion operation for the second scene component model in the first game running scene; the editing undo operation includes: a deletion undo operation for the second scene component model; the first editing information includes: information indicating the deletion of the second scene component model; the editing undo information includes: information indicating the undoing of the deletion of the second scene component model. The above-mentioned editing undo processing of the edited first game running scene according to the editing undo information includes: adding the second scene component model back to the edited first game running scene according to the editing undo information. In other words, after deleting the scene component model, the user can undo the deletion, so that the deleted second scene component model quickly returns to the edited first game running scene.
[0278] In one embodiment, the edit undo information includes the initial information of the second scene component model and / or the edit information of the second scene component model. The initial information is used to represent the initial attributes or parameters of the second scene component model, such as the initial position, angle, size, color, etc. The edit information is used to represent the edit incremental information for the second scene component model, or the attributes or parameters of the edited second scene component model. If in the first game running scene, before deleting the second scene component model, the user has not performed the first edit operation on it, the edit undo information includes the initial information of the second scene component model, but does not include the edit information. If before deleting the second scene component model, the user has performed the first edit operation on it, the edit undo information may include the initial information and edit information of the second scene component model, or only include the edit information.
[0279] The above-mentioned adding the second scene component model back to the edited first game running scene according to the edit undo information includes: according to the edit undo information, adding the second scene component model back to the edited first game running scene in the initial state or the initial state after editing; the initial state is determined according to the initial information of the second scene component model, and the initial state after editing is determined according to the initial information of the second scene component model and / or the edit information of the second scene component model. Exemplarily, if the user has not performed the first editing operation on the second scene component model before deleting it, the edit undo information can only include the initial information, and the initial state of the second scene component model, such as the initial position, angle, size, etc., is determined according to the initial information, and the second scene component model is restored in the edited first game running scene according to the initial state. If the user has performed the first editing operation on the second scene component model before deleting it, and the saved editing information is the editing incremental information, the edit undo information includes the initial information and editing information of the second scene component model, and the initial state of the second scene component model after editing can be calculated by superimposing the editing information with the initial information. Before deleting the second scene component model, the user performs a first editing operation on it, and the saved editing information is the edited property, then the edit undo information may only include the editing information, and the initial state of the second scene component model after editing can be determined based on the editing information. The second scene component model is restored in the edited first game running scene according to the edited initial state.
[0280] From the above, it can be seen that when restoring the second scene component model, there is no need to retain the running information, which avoids game logic errors and confusion in user perception.
[0281] In one embodiment, the deletion undo operation is performed through a restore control corresponding to the second scene component model; the restore control is a control provided in response to deleting the second scene component model from the first game running scene according to the first editing information. For example, after deleting the second scene component model, a corresponding restore control may be provided, and the user may quickly undo the deletion by operating the restore control. Alternatively, a restore control may be provided for each deleted scene component model, so that the user may flexibly undo the deletion operation of a specific scene component model.
[0282] In one embodiment, the edit undo operation may include: an undo operation for the first edit operation within a preset range; the edit undo information includes: information indicating the undoing of the first edit operation within the preset range. The above-mentioned edit undo processing of the edited first game running scene according to the edit undo information may include the following steps:
[0283] The first game running scene is restored to the first game running scene of the target node according to the edit undo information; the target node is: the time node before the first game running scene is edited according to the first edit information corresponding to the first edit operation within the preset range.
[0284] Among them, the preset range can be a time range. For example, the user can select a first editing operation in the records of all first editing operations, determine the first editing operation and all subsequent first editing operations as the first editing operations to be revoked, and perform an editing undo operation. The corresponding editing undo information is thereby determined, which indicates the revocation of the above-mentioned first editing operation to be revoked. Furthermore, the time node before the first editing operation to be revoked takes effect can be used as the target node, and the first game running scene can be rolled back to the target node. In this way, there is no need to perform an undo process on each first editing operation to be revoked, and batch editing undo processing can be achieved quickly and efficiently.
[0285] In one embodiment, the target node may be the first node, which is the time node for entering the first game running scene. The preset range may include: the time range from entering the first game running scene to exiting the first game running scene. The above-mentioned response to the edit undo operation, determining the edit undo information corresponding to at least part of the information in the first edit information according to the edit undo operation, may include: after exiting the first game running scene, responding to the global edit undo operation performed on the first game running scene of the second node, and determining the edit undo information according to the global edit undo operation. The second node is: the time node for exiting the first game running scene.
[0286] Among them, the global edit undo operation is used to undo all the first edit operations after entering the first game running scene this time. Exemplarily, in response to exiting the first game running scene, the first edit operations within the preset range are merged into a global operation record and added to the edit operation queue; the edit operation queue includes one or more operation records arranged in a preset order. The global edit undo operation may include: an edit undo operation for the global operation record, and / or an edit undo operation for the edit operation queue. For example, the user can select the global operation record in the edit operation queue and undo it, thereby realizing the global edit undo operation. Alternatively, in the edit operation queue, the global operation record is located at the head, which can indicate that the global operation record is the operation record with the latest operation time in the edit operation queue. The user can perform an edit undo operation on the edit operation queue, such as clicking the undo control once, thereby realizing the global edit undo operation, which can trigger the removal of the global operation record from the head of the edit operation queue for undoing.
[0287] In response to the global edit undo operation, edit undo information can be determined, which can indicate to undo all first edit operations from the first node to the second node. This makes the first game running scene return to the first node, that is, the state before any first edit operation is performed. In this way, global and batch edit undo operations can be conveniently implemented.
[0288] In one embodiment, the game editing method may further include the following steps:
[0289] In response to the snapshot update instruction, the snapshot data of the first game running scene is updated according to the first editing information, so that when the first game running scene is reset, the edited first game running scene is displayed according to the updated snapshot data.
[0290] The snapshot data is a copy of the first game running scene saved at a certain moment, and can save the historical information of the first game running scene. Exemplarily, when entering the first game running scene, the initial snapshot data of the first game running scene can be saved, thereby saving its initial information.
[0291] The snapshot update instruction is an instruction that triggers the update of the snapshot data. In one embodiment, the snapshot update instruction can be triggered in response to a reset instruction for the first game running scene. Alternatively, the snapshot update instruction can be triggered when the first editing information is obtained, and the snapshot data is immediately updated according to the first editing information currently obtained. Alternatively, the snapshot update instruction can be triggered when a third preset time is reached.
[0292] According to the first editing information, the operation records of adding, deleting, modifying, etc. of the data therein can be written into the snapshot data of the first game running scene, so as to perform corresponding operations such as adding, deleting, modifying, etc. on the snapshot data, thereby updating the snapshot data. When resetting the first game running scene, the edited first game running scene is displayed according to the updated snapshot data. By means of snapshot data, fast and efficient editing processing of the first game running scene can be achieved.
[0293] In one embodiment, the target game scene includes one or more scene components, and the scene component is configured to generate a scene component model corresponding to the first game running scene. The above one or more scene components include a fixed scene component, and at least some of the attributes of the fixed scene component model corresponding to the fixed scene component are locked. Among them, the fixed scene component or the fixed scene component model is a scene component or a scene component model that will not undergo any dynamic changes in the running mode, so some or all of its attributes will not be modified, and these attributes can be locked, which can reduce the processing of these attribute data. However, considering that there may be an editing demand for the fixed scene component or the fixed scene component model in the first game running scene, when controlling the display of the first game running scene generated according to the map data in the graphical user interface, the attributes of the fixed scene component model can be unlocked, so that the unlocked attributes can be edited or the fixed scene component model can present the editing effect. For example, after the attributes are unlocked, the fixed scene component model can be deleted, which is equivalent to deleting the fixed scene component from the target game scene. This further enriches the editable content in the first game running scene.
[0294] In one implementation, when exiting the first game running scene, the properties of the locked fixed scene component or the fixed scene component model may be restored.
[0295] In one embodiment, an invisible scene component model is set in the first game running scene, such as a scene component model of a birth point, which is usually invisible to the user. The game editing method may also include at least one of the following steps:
[0296] In response to the component display operation in the first game running scene, the invisible scene component model is displayed. The component display operation is an operation triggered by the user to display the invisible scene component model, such as the user can perform the component display operation through the component display control in the first game running scene (the component display control and the component hiding control can be the same control, and the control is clicked once for the component display operation, and clicked again for the component hiding operation). Exemplarily, a visible virtual model corresponding to the invisible scene component model can be generated in the first game running scene, such as copying the invisible scene component model and giving it visible appearance attributes, thereby displaying the invisible scene component model. After the invisible scene component model is displayed, the user can edit the invisible scene component model, or can see the relationship between the invisible scene component model and other scene component models, so as to facilitate editing of other scene component models.
[0297] In response to a component hiding operation in the first game running scene, the displayed invisible scene component model is hidden. The component hiding operation is an operation triggered by a user to hide the invisible scene component model, such as a user can perform a component hiding operation through a component hiding control in the first game running scene. In response to the component hiding operation, the displayed invisible scene component model is hidden, such as the visible virtual model corresponding to the invisible scene component model can be destroyed to achieve a hiding effect.
[0298] In one embodiment, when the first game running scene is in a first preset state, the invisible scene component model is displayed; in response to the first game running scene exiting the first preset state, the displayed invisible scene component model is hidden.
[0299] In one embodiment, a timer is set in the first game running scene. The editable objects of the first game running scene include first-class objects and second-class objects. The above response to the first editing operation in the first game running scene to obtain the first editing information may include the following steps:
[0300] When the timer is at any time, respond to a first editing operation on a first type of object in a first game running scene, and obtain first editing information corresponding to the first type of object;
[0301] When the timer is at a preset time, in response to a first editing operation on a second-category object in a first game running scene, first editing information corresponding to the second-category object is obtained.
[0302] The editable object of the first game running scene may refer to a scene component model, or an attribute or parameter of a scene component model. For example, some attributes can be edited in any case and belong to the first category of objects, while some attributes can only be edited in specific cases and belong to the second category of objects. The editing operation of the second category of objects may be limited by a timer. When the timer is at a preset time, the user is allowed to edit the second category of objects, and the user may not be allowed to edit the second category of objects at other times.
[0303] Exemplarily, the first class of objects includes scene component models without binding information (meaning that there is no binding relationship with other scene component models), and the second class of objects includes scene component models with binding information. When the timer is at any time, the user can perform the first editing operation on the first class of objects. When the timer is at zero time, the user is allowed to perform the first editing operation on the second class of objects.
[0304] The exemplary embodiment of the present disclosure also provides a game editing device. Fig. 9 As shown, the game editing device 900 includes the following program modules:
[0305] A first display processing module 910 is configured to display a target game scene through a graphical user interface;
[0306] The second display processing module 920 is configured to respond to the first running trigger instruction, load the target game scene to display the first game running scene in the graphical user interface; the first game running scene is provided with a controlled virtual object, and the controlled virtual object is configured to be controlled by the terminal device;
[0307] The editing processing module 930 is configured to obtain first editing information in response to a first editing operation in a first game running scene; the first editing information is used to edit a target game scene;
[0308] The game running processing module 940 is configured to control the controlled virtual object to execute the game running process instruction in response to the game running operation in the first game running scene;
[0309] The third display processing module 950 is configured to respond to the first operation stop instruction and control the display of the edited target game scene determined according to the first editing information in the graphical user interface.
[0310] In one embodiment, obtaining first editing information in response to a first editing operation in a first game running scene includes: obtaining first editing information in response to the first editing operation in the first game running scene when the first game running scene is in a first preset state.
[0311] In one embodiment, in response to a game running operation in a first game running scene, controlling a controlled virtual object to execute a game running process instruction includes: when the first game running scene is in a second preset state, controlling the first game running scene to execute a first operation instruction; the device is also used to: when the first game running scene is in a first preset state, controlling the first game running scene not to execute the first operation instruction.
[0312] In one embodiment, the device is also used to: when the first game running scene is in a first preset state, and when it is in a second preset state, control the first game running scene to execute a second operation instruction.
[0313] In one embodiment, the first operation instruction includes at least one of the following: an operation instruction determined based on the editing information of the target game scene, and a non-specified operation instruction; the second operation instruction includes at least one of the following: an inherent operation instruction of the scene component model in the first game running scene, and a specified operation instruction.
[0314] In one embodiment, a timer is provided in the first game running scene; when the first game running scene is in a second preset state, the first game running scene is controlled to execute a first operation instruction, including: when the first game running scene is in the second preset state, the timer is controlled to perform timing, so that the first game running scene follows the timing of the timer to execute the first operation instruction associated with time; when the first game running scene is in the first preset state, the first game running scene is controlled not to execute the first operation instruction, including: when the first game running scene is in the first preset state, the timer is controlled to pause timing, so that the first game running scene pauses the execution of the first operation instruction associated with time.
[0315] In one embodiment, when the first game running scene is in a second preset state, controlling the first game running scene to execute a first operation instruction includes: when the first game running scene is in the second preset state, responding to a preset event in the first game running scene, controlling the first game running scene to execute a first operation instruction associated with the preset event; when the first game running scene is in the first preset state, controlling the first game running scene not to execute the first operation instruction includes: when the first game running scene is in the first preset state, pausing execution of the game logic corresponding to the preset event in the first game running scene, so that the first game running scene does not execute the first operation instruction associated with the preset event.
[0316] In one embodiment, the device is also used to: cache event information of unexecuted preset events; the unexecuted preset events are preset events during the period when the first game running scene is in a first preset state; when the first game running scene is in a second preset state, respond to the preset event in the first game running scene, and control the first game running scene to execute a first operation instruction associated with the preset event, including: in response to the first game running scene switching from the first preset state to the second preset state, restore the game logic corresponding to the unexecuted preset event according to the cached event information, so that the first game running scene restores the execution of the first operation instruction associated with the unexecuted preset event.
[0317] In one embodiment, when the first game running scene is in a second preset state, controlling the first game running scene to execute a first operation instruction includes: when the first game running scene is in the second preset state, executing the first operation instruction through the first motion system in the first game running scene; when the first game running scene is in the first preset state, controlling the first game running scene not to execute the first operation instruction includes: when the first game running scene is in the first preset state, removing or pausing the first motion system in the first game running scene so that the first game running scene does not execute the first operation instruction.
[0318] In one embodiment, the device is also used to: when the first game running scene is in a first preset state, maintain the second motion system in the first game running scene to execute the second operation instruction through the second motion system.
[0319] In one embodiment, the first motion system includes: a motion system added according to editing information of the target game scene; the second motion system includes: an inherent motion system of a scene component model in the first game running scene.
[0320] In one embodiment, when the first game running scene is in a second preset state, controlling the first game running scene to execute a first operation instruction includes: when the first game running scene is in the second preset state, responding to the interactive behavior of the controlled virtual object with the scene component model in the first game running scene, controlling the scene component model to execute the corresponding first operation instruction according to the interactive behavior; when the first game running scene is in the first preset state, controlling the first game running scene not to execute the first operation instruction includes: when the first game running scene is in the first preset state, setting the scene component model in the first game running scene not to be affected by the interactive behavior of the controlled virtual object, so that the scene component model does not execute the first operation instruction corresponding to the interactive behavior.
[0321] In one embodiment, when the first game running scene is in the second preset state, controlling the first game running scene to execute the first operation instruction includes: responding to the first game running scene switching from the first preset state to the second preset state, starting or continuing to execute the first operation instruction based on the current first game running scene.
[0322] In one embodiment, in response to a game running operation in a first game running scene, controlling a controlled virtual object to execute game running process instructions includes: when the first game running scene is in a first preset state, and when it is in a second preset state, in response to a game running operation in the first game running scene, controlling the controlled virtual object to execute game running process instructions.
[0323] In one embodiment, the device is also used to: when entering the first game running scene, set the first game running scene to be in a first preset state.
[0324] In one embodiment, the target game scene includes one or more scene components; the first game running scene includes one or more scene component models corresponding to the one or more scene components; in response to a first editing operation in the first game running scene, first editing information is obtained, including: displaying a selection mark in a graphical user interface, and determining a scene component model to be edited from the scene component model of the first game running scene according to the aiming direction of the selection mark; in response to the first editing operation on the scene component model to be edited, first editing information corresponding to the scene component model to be edited is obtained; the first editing information is used to edit the scene component to be edited in the target game scene; the scene component to be edited corresponds to the scene component model to be edited.
[0325] In one embodiment, the first editing operation includes a component adding operation; in response to the first editing operation in the first game running scene, first editing information is obtained, including: in response to the component adding operation in the first game running scene, the scene component to be added is determined, and the first editing information corresponding to the scene component to be added is obtained; the first editing information is used to add the scene component to be added in the target game scene.
[0326] In one embodiment, in response to a component adding operation in a first game running scene, determining a scene component to be added includes: displaying one or more scene component controls in a graphical user interface; in response to a component selecting operation in a scene component control, determining a target scene component control in the scene component control, and determining the scene component corresponding to the target scene component control as the scene component to be added.
[0327] In one embodiment, displaying one or more scene component controls in a graphical user interface includes: displaying a scene component control bar in the graphical user interface, the scene component control bar including one or more scene component controls; the device is also used to: respond to an adjustment operation on the scene component control bar, and adjust the scene component controls in the scene component control bar.
[0328] In one embodiment, the target game scene includes one or more scene components; the first game running scene includes one or more scene component models corresponding to the one or more scene components; in response to a first editing operation in the first game running scene, first editing information is obtained, including: determining a scene component model to be edited from the scene component model in the first game running scene; in response to a triggering operation on an editing operation control, obtaining first editing information corresponding to the scene component model to be edited; the editing operation control is an operation control displayed when the scene component model to be edited is determined, or is an operation control used to control a controlled virtual object; the first editing information is used to edit the scene component to be edited in the target game scene; the scene component to be edited corresponds to the scene component model to be edited.
[0329] In one embodiment, the editing operation control includes a motion operation control; in response to a trigger operation on the editing operation control, first editing information corresponding to the scene component model to be edited is obtained, including: in response to a trigger operation on the motion operation control, the scene component model to be edited is controlled to move in the first game running scene, and the first editing information corresponding to the scene component model to be edited is obtained according to the motion information.
[0330] In one embodiment, the device is further used to: respond to triggering an editing validation condition corresponding to the first editing information, and edit the first game running scene according to the first editing information.
[0331] In one embodiment, the first editing information includes real-time effective editing information; the editing effectiveness conditions corresponding to the real-time effective editing information include: obtaining the real-time effective editing information; in response to triggering the editing effectiveness conditions corresponding to the first editing information, editing the first game running scene according to the first editing information, including: when obtaining the real-time effective editing information, editing the first game running scene according to the real-time effective editing information.
[0332] In one embodiment, the first editing information includes non-real-time effective editing information; in response to triggering the editing effectiveness condition corresponding to the first editing information, editing the first game running scene according to the first editing information includes: after obtaining the non-real-time effective editing information, responding to the non-real-time update condition that triggers the first game running scene, editing the first game running scene according to the non-real-time effective editing information.
[0333] In one embodiment, the non-real-time update condition includes at least one of the following: receiving a non-real-time update instruction for the first game running scene; resetting the first game running scene; reaching a second preset time.
[0334] In one embodiment, the first editing information includes editing incremental information; editing the first game running scene according to the first editing information includes: editing the initial first game running scene according to the editing incremental information, so that when the first game running scene is reset, the edited initial first game running scene is displayed.
[0335] In one embodiment, the device is also used to: respond to an edit undo operation, determine edit undo information corresponding to at least part of the information in the first edit information according to the edit undo operation; and perform edit undo processing on the edited first game running scene according to the edit undo information.
[0336] In one embodiment, the first editing operation includes: a deletion operation for the second scene component model in the first game running scene; the editing undo operation includes: a deletion undo operation for the second scene component model; the first editing information includes: information indicating the deletion of the second scene component model; the editing undo information includes: information indicating the undoing of the deletion of the second scene component model; performing editing undo processing on the edited first game running scene according to the editing undo information, including: adding the second scene component model back to the edited scene according to the editing undo information
[0337] In one embodiment, the edit undo information includes the initial information of the second scene component model and / or the edit information of the second scene component model; adding the second scene component model back to the edited first game running scene according to the edit undo information includes: adding the second scene component model back to the edited first game running scene in an initial state or an initial state after editing according to the edit undo information; the initial state is determined according to the initial information of the second scene component model, and the initial state after editing is determined according to the initial information of the second scene component model and / or the edit information of the second scene component model.
[0338] In one embodiment, the deletion undo operation is performed through a recovery control corresponding to the second scene component model; the recovery control is a control provided in response to deleting the second scene component model from the first game running scene according to the first editing information.
[0339] In one embodiment, an edit undo operation includes: an undo operation for a first edit operation within a preset range; edit undo information includes: information indicating the undo of the first edit operation within the preset range; edit undo processing is performed on the edited first game running scene according to the edit undo information, including: restoring the first game running scene to the first game running scene of a target node according to the edit undo information; the target node is: a time node before the first game running scene is edited according to the first edit information corresponding to the first edit operation within the preset range.
[0340] In one embodiment, the device is also used to: respond to the edit and save instruction, update the map data of the target game scene according to the first editing information, so that when displaying the target game scene, the edited target game scene is displayed according to the updated map data.
[0341] In one embodiment, the device is also used to: respond to a snapshot update instruction, update the snapshot data of the first game running scene according to the first editing information, so that when the first game running scene is reset, the edited first game running scene is displayed according to the updated snapshot data.
[0342] In one embodiment, the device is further used to: respond to a reset instruction for the first game running scene and trigger a snapshot update instruction.
[0343] In one embodiment, the device is also used to: save initial snapshot data of the first game running scene when entering the first game running scene.
[0344] In one embodiment, an invisible scene component model is set in the first game running scene; the device is also used to perform at least one of the following steps: in response to a component display operation in the first game running scene, the invisible scene component model is displayed; in response to a component hiding operation in the first game running scene, the displayed invisible scene component model is hidden.
[0345] In one embodiment, displaying the invisible scene component model includes: generating a visible virtual model corresponding to the invisible scene component model in the first game running scene.
[0346] In one embodiment, a timer is set in the first game running scene; the editable objects of the first game running scene include first-category objects and second-category objects; in response to a first editing operation in the first game running scene, first editing information is obtained, including: when the timer is at any time, in response to the first editing operation on the first-category objects in the first game running scene, the first editing information corresponding to the first-category objects is obtained; when the timer is at a preset time, in response to the first editing operation on the second-category objects in the first game running scene, the first editing information corresponding to the second-category objects is obtained.
[0347] In one embodiment, displaying the target game scene through a graphical user interface includes: displaying a game editing scene or a second game running scene through a graphical user interface; the game editing scene is the target game scene loaded in the editing mode; the second game running scene is the target game scene loaded in the running mode.
[0348] In one embodiment, the device is also used to: respond to a second running trigger instruction to control the display of a second game running scene in the graphical user interface; the second game running scene is a target game scene loaded in the running mode.
[0349] In one embodiment, a virtual camera is provided in the first game running scene; loading the target game scene to display the first game running scene in a graphical user interface includes: displaying a picture formed by the virtual camera shooting the first game running scene in the graphical user interface; the virtual camera is configured to adjust according to the movement of the controlled virtual object.
[0350] In one embodiment, the first editing information is used to perform at least one of the following edits on the target game scene: adding scene components to the target game scene, deleting scene components from the target game scene, editing the properties of the scene components in the target game scene, editing the environment of the target game scene, and editing the game setting information of the target game scene.
[0351] The specific details of each part of the above-mentioned device have been described in detail in the implementation method of the method part. The undisclosed details can be found in the implementation method of the method part, so they will not be repeated here.
[0352] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the exemplary embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.
[0353] The exemplary embodiments of the present disclosure also provide a computer program product, which includes a computer program, and when the computer program is executed by a processor, the game editing method is implemented.
[0354] In one embodiment, the computer program product may be a tangible product containing a computer program, such as a computer-readable storage medium storing a computer program. The readable storage medium may be a storage medium based on electrical, magnetic, optical, electromagnetic, infrared, or other signals, including but not limited to: random access memory (RAM), read-only memory (ROM), magnetic tape, floppy disk, flash memory (Flash), mechanical hard disk (HDD), solid-state drive (SSD), and the like. Exemplarily, the computer program product may be implemented as a non-volatile storage medium storing a computer program, such as a read-only memory, a NAND flash memory, and the like.
[0355] In one embodiment, the computer program product may be an intangible product including a computer program. Exemplarily, the computer program product may be implemented as a virtual digital product, such as a digital file storing an executable file, an installation package, etc. of the computer program.
[0356] The code of the computer program can be written in one or more programming languages. Programming languages such as C language, Java, C++, etc. The program code can be executed entirely on the user computing device, or partially on the user computing device, or as a separate software package, or partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, such as a local area network (LAN), a wide area network (WAN), etc., or can be connected to an external computing device (e.g., an Internet connection provided by an operator).
[0357] The computer program can be carried or transmitted by electrical, magnetic, optical, electromagnetic, infrared and other signals. The electronic device can convert the signal carrying the computer program into a digital signal, and then run the computer program. When the computer program is running on the electronic device, its code is used to make the electronic device execute (more specifically, the processor of the electronic device can be executed) the method steps of various exemplary embodiments of the present disclosure, such as the above-mentioned game editing method, which includes the following steps: step S210, displaying the target game scene through the graphical user interface; step S220, responding to the first operation trigger instruction, loading the target game scene to display the first game operation scene in the graphical user interface; the first game operation scene is provided with a controlled virtual object, and the controlled virtual object is configured to be controlled by the terminal device; step S230, responding to the first editing operation in the first game operation scene, obtaining the first editing information; the first editing information is used to edit the target game scene; step S240, responding to the game operation operation in the first game operation scene, controlling the controlled virtual object to execute the game operation process instruction; step S250, responding to the first operation stop instruction, controlling the display of the edited target game scene determined according to the first editing information in the graphical user interface.
[0358] By implementing the above method steps through a computer program, a mode that supports both user editing and game operation is provided. The user can perform the first editing operation and the game operation operation in the first game operation scene to realize different game functions such as user editing, playing or testing. On the one hand, the user does not need to repeatedly switch between the editing mode and the operation mode to view the effect or perform tests during the editing process, which improves the cumbersome editing operation process in the related technology and improves the editing efficiency. On the other hand, since the first game operation scene is close to the actual game operation scene, the user performs the first editing operation in the first game operation scene, which makes it easier to understand the meaning of the editing content, lowers the threshold for using the user editing function, and is conducive to the popularization of the user editing function.
[0359] The exemplary embodiments of the present disclosure also provide an electronic device, such as the terminal device 110 or the server 120 described above. The electronic device may include a processor and a memory. The memory stores executable instructions of the processor, such as a computer program. The processor executes the method steps of various exemplary embodiments of the present disclosure by executing the executable instructions. In addition, the electronic device may also include a display for displaying a graphical user interface.
[0360] Reference below Fig.10 , the electronic device is exemplarily described in the form of a general-purpose computing device. It should be understood that Fig.10 The electronic device 1000 shown is merely an example and should not limit the functions and scope of use of the embodiments of the present disclosure.
[0361] like Fig.10 As shown, the electronic device 1000 may include: a processor 1010 , a memory 1020 , a bus 1030 , an I / O (input / output) interface 1040 , a network adapter 1050 , and a display 1060 .
[0362] The memory 1020 may include a volatile memory, such as a RAM 1021, a cache unit 1022, and may also include a non-volatile memory, such as a ROM 1023. The memory 1020 may also include one or more program modules 1024, such program modules 1024 include but are not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or a combination thereof may include the implementation of a network environment. For example, the program module 1024 may include each module in the above-mentioned device.
[0363] The processor 1010 may include one or more processing units. For example, the processor 1010 may include an AP (Application Processor), a modem processor, a GPU (Graphics Processing Unit), an ISP (Image Signal Processor), a controller, an encoder, a decoder, a DSP (Digital Signal Processor), a baseband processor and / or an NPU (Neural-Network Processing Unit), etc.
[0364] Processor 1010 can be used to execute executable instructions stored in memory 1020, such as the above-mentioned game editing method, which includes the following steps: step S210, displaying the target game scene through a graphical user interface; step S220, responding to a first run trigger instruction, loading the target game scene to display the first game run scene in the graphical user interface; a controlled virtual object is provided in the first game run scene, and the controlled virtual object is configured to be controlled by a terminal device; step S230, responding to a first editing operation in the first game run scene, obtaining first editing information; the first editing information is used to edit the target game scene; step S240, responding to a game run operation in the first game run scene, controlling the controlled virtual object to execute a game run process instruction; step S250, responding to a first run stop instruction, controlling the display of the edited target game scene determined according to the first editing information in the graphical user interface.
[0365] By executing the above method steps through the processor 1010, a mode that supports both user editing and game running is provided, and the user can perform the first editing operation and the game running operation in the first game running scene to realize different game functions such as user editing, playing or testing. On the one hand, the user does not need to repeatedly switch between the editing mode and the running mode to view the effect or perform tests during the editing process, which improves the cumbersome editing operation process in the related technology and improves the editing efficiency. On the other hand, since the first game running scene is close to the actual game running scene, the user performs the first editing operation in the first game running scene, which makes it easier to understand the meaning of the editing content, reduces the threshold for using the user editing function, and is conducive to the popularization of the user editing function.
[0366] The bus 1030 is used to realize the connection between different components of the electronic device 1000, and may include a data bus, an address bus, and a control bus.
[0367] The electronic device 1000 can communicate with one or more external devices 1100 (eg, a keyboard, a mouse, an external controller, etc.) through the I / O interface 1040 .
[0368] The electronic device 1000 can communicate with one or more networks through the network adapter 1050. For example, the network adapter 1050 can provide mobile communication solutions such as 3G / 4G / 5G, or provide wireless communication solutions such as wireless LAN, Bluetooth, near field communication, etc. The network adapter 1050 can communicate with other modules of the electronic device 1000 through the bus 1030.
[0369] The electronic device 1000 can display a graphical user interface through the display 1060, such as displaying a game editing scene, a first game running scene, a second game running scene, etc.
[0370] although Fig.10 Not shown, other hardware and / or software modules may also be provided in the electronic device 1000, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0371] As can be seen from the above, the technical solution of the present disclosure can be implemented as a method, an apparatus, a system, a computer program product, a storage medium, an electronic device, etc. Those skilled in the art can understand that various aspects of the present disclosure can be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or an implementation combining hardware and software, such as being respectively referred to as a "circuit", "module" or "system".
[0372] It should be understood that the present disclosure is not limited to the specific method steps or structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from the scope thereof. Those skilled in the art will easily think of other embodiments based on the specific embodiments provided by the present disclosure. Therefore, the specific embodiments provided by the present disclosure are only exemplary, and the scope and spirit of the present disclosure are indicated by the claims, and any variations, uses or adaptive changes of the present disclosure should be covered, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the technical field that are not disclosed in the present disclosure.
Claims
1. A game editing method, characterized in that: Providing a graphical user interface through a terminal device, the method comprising: Displaying the target game scene through the graphical user interface; In response to a first running trigger instruction, the target game scene is loaded to display a first game running scene in the graphical user interface; a controlled virtual object is provided in the first game running scene, and the controlled virtual object is configured to be controlled by the terminal device; In response to a first editing operation in the first game running scene, first editing information is acquired; the first editing information is used to edit the target game scene; In response to the game running operation in the first game running scene, controlling the controlled virtual object to execute the game running process instruction; In response to a first operation stop instruction, the edited target game scene determined according to the first editing information is controlled to be displayed in the graphical user interface.
2. The method according to claim 1, characterized in that The step of obtaining first editing information in response to a first editing operation in the first game running scene includes: When the first game running scene is in a first preset state, first editing information is obtained in response to a first editing operation in the first game running scene.
3. The method according to claim 2, characterized in that The step of responding to the game running operation in the first game running scene and controlling the controlled virtual object to execute the game running process instruction comprises: When the first game running scene is in a second preset state, controlling the first game running scene to execute a first operation instruction; The method further comprises: When the first game running scene is in the first preset state, the first game running scene is controlled not to execute the first operation instruction.
4. The method according to claim 3, characterized in that The method further comprises: When the first game running scene is in the first preset state and in the second preset state, the first game running scene is controlled to execute a second operation instruction.
5. The method according to claim 4, characterized in that The first operation instruction includes at least one of the following: an operation instruction determined according to the editing information of the target game scene, and a non-specified operation instruction; the second operation instruction includes at least one of the following: an inherent operation instruction of the scene component model in the first game running scene, and a specified operation instruction.
6. The method according to claim 3, characterized in that A timer is provided in the first game running scene; when the first game running scene is in a second preset state, controlling the first game running scene to execute a first operation instruction includes: When the first game running scene is in the second preset state, controlling the timer to perform timing, so that the first game running scene follows the timing of the timer to execute a first operation instruction associated with time; When the first game running scene is in the first preset state, controlling the first game running scene not to execute the first operation instruction includes: When the first game running scene is in the first preset state, the timer is controlled to pause timing, so that the first game running scene pauses execution of the first operation instruction associated with time.
7. The method according to claim 3, characterized in that When the first game running scene is in the second preset state, controlling the first game running scene to execute the first operation instruction includes: When the first game running scene is in the second preset state, responding to a preset event in the first game running scene, controlling the first game running scene to execute a first operation instruction associated with the preset event; When the first game running scene is in the first preset state, controlling the first game running scene not to execute the first operation instruction includes: When the first game running scene is in the first preset state, the game logic corresponding to the preset event in the first game running scene is suspended, so that the first game running scene does not execute the first operation instruction associated with the preset event.
8. The method according to claim 7, characterized in that The method further comprises: Cache event information of unexecuted preset events; the unexecuted preset events are preset events during the period when the first game running scene is in the first preset state; When the first game running scene is in the second preset state, responding to a preset event in the first game running scene, controlling the first game running scene to execute a first operation instruction associated with the preset event, includes: In response to the first game running scene switching from the first preset state to the second preset state, the game logic corresponding to the unexecuted preset event is restored and executed according to the cached event information, so that the first game running scene resumes executing the first operation instruction associated with the unexecuted preset event.
9. The method according to claim 3, characterized in that: When the first game running scene is in the second preset state, controlling the first game running scene to execute the first operation instruction includes: When the first game running scene is in the second preset state, executing the first operation instruction through the first motion system in the first game running scene; When the first game running scene is in the first preset state, controlling the first game running scene not to execute the first operation instruction includes: When the first game running scene is in the first preset state, the first motion system in the first game running scene is removed or paused, so that the first game running scene does not execute the first operation instruction.
10. The method according to claim 9, characterized in that The method further comprises: When the first game running scene is in the first preset state, the second motion system in the first game running scene is maintained to execute the second operation instruction through the second motion system.
11. The method according to claim 10, characterized in that The first motion system includes: a motion system added according to the editing information of the target game scene; the second motion system includes: an inherent motion system of the scene component model in the first game running scene.
12. The method according to claim 3, characterized in that When the first game running scene is in the second preset state, controlling the first game running scene to execute the first operation instruction includes: When the first game running scene is in the second preset state, responding to the interactive behavior of the controlled virtual object on the scene component model in the first game running scene, controlling the scene component model to execute the corresponding first operation instruction according to the interactive behavior; When the first game running scene is in the first preset state, controlling the first game running scene not to execute the first operation instruction includes: When the first game running scene is in the first preset state, the scene component model in the first game running scene is set to be unaffected by the interactive behavior of the controlled virtual object, so that the scene component model does not execute the first operation instruction corresponding to the interactive behavior.
13. The method according to claim 3, characterized in that When the first game running scene is in a second preset state, controlling the first game running scene to execute a first operation instruction includes: In response to the first game running scene switching from the first preset state to the second preset state, the first operation instruction is started or continued to be executed based on the current first game running scene.
14. The method according to claim 3, characterized in that The step of responding to the game running operation in the first game running scene and controlling the controlled virtual object to execute the game running process instruction comprises: When the first game running scene is in the first preset state, and when it is in the second preset state, in response to the game running operation in the first game running scene, the controlled virtual object is controlled to execute the game running process instructions.
15. The method according to claim 2, characterized in that The method further comprises: When entering the first game running scene, the first game running scene is set to be in the first preset state.
16. The method according to claim 1, characterized in that The target game scene includes one or more scene components; the first game running scene includes one or more scene component models corresponding to the one or more scene components; The step of obtaining first editing information in response to a first editing operation in the first game running scene includes: Displaying a selection mark in the graphical user interface, and determining a scene component model to be edited from the scene component models of the first game running scene according to the aiming direction of the selection mark; In response to a first editing operation on the scene component model to be edited, first editing information corresponding to the scene component model to be edited is obtained; the first editing information is used to edit the scene component to be edited in the target game scene; the scene component to be edited corresponds to the scene component model to be edited.
17. The method according to claim 1, characterized in that The first editing operation includes a component adding operation; the step of responding to the first editing operation in the first game running scene and obtaining first editing information includes: In response to a component adding operation in the first game running scene, a scene component to be added is determined, and first editing information corresponding to the scene component to be added is obtained; the first editing information is used to add the scene component to be added in the target game scene.
18. The method according to claim 17, characterized in that The step of responding to the component adding operation in the first game running scene and determining the scene component to be added includes: displaying one or more scene component controls in the graphical user interface; In response to a component selection operation in the scene component control, a target scene component control is determined in the scene component control, and the scene component corresponding to the target scene component control is determined as the scene component to be added.
19. The method according to claim 17, characterized in that The displaying one or more scene component controls in the graphical user interface comprises: Displaying a scene component control bar in the graphical user interface, the scene component control bar including the one or more scene component controls; The method further comprises: In response to an adjustment operation on the scene component control bar, the scene component controls in the scene component control bar are adjusted.
20. The method according to claim 1, characterized in that The target game scene includes one or more scene components; the first game running scene includes one or more scene component models corresponding to the one or more scene components; The step of obtaining first editing information in response to a first editing operation in the first game running scene includes: Determine a scene component model to be edited from the scene component models in the first game running scene; In response to a trigger operation on an editing operation control, first editing information corresponding to the scene component model to be edited is obtained; the editing operation control is an operation control displayed when the scene component model to be edited is determined, or is an operation control for controlling the controlled virtual object; the first editing information is used to edit the scene component to be edited in the target game scene; the scene component to be edited corresponds to the scene component model to be edited.
21. The method according to claim 20, characterized in that The editing operation control includes a motion operation control; the step of responding to a trigger operation on the editing operation control to obtain first editing information corresponding to the scene component model to be edited includes: In response to a trigger operation on the motion operation control, the scene component model to be edited is controlled to move in the first game running scene, and first editing information corresponding to the scene component model to be edited is obtained according to the motion information.
22. The method according to claim 1, characterized in that The method further comprises: In response to triggering the editing effectiveness condition corresponding to the first editing information, the first game running scene is edited according to the first editing information.
23. The method according to claim 22, characterized in that The first editing information includes real-time effective editing information; The editing validity condition corresponding to the real-time effective editing information includes: acquiring the real-time effective editing information; the response triggering the editing validity condition corresponding to the first editing information, and editing the first game running scene according to the first editing information, including: When the real-time effective editing information is obtained, the first game running scene is edited according to the real-time effective editing information.
24. The method according to claim 22, characterized in that The first editing information includes non-real-time effective editing information; the response triggers an editing effective condition corresponding to the first editing information, and edits the first game running scene according to the first editing information, including: After acquiring the non-real-time effective editing information, in response to triggering the non-real-time update condition of the first game running scene, the first game running scene is edited according to the non-real-time effective editing information.
25. The method according to claim 24, characterized in that The non-real-time update condition includes at least one of the following: Receiving a non-real-time update instruction for the first game running scenario; Resetting the first game running scene; The second preset time is reached.
26. The method according to claim 22, characterized in that The first editing information includes editing increment information; and editing the first game running scene according to the first editing information includes: The initial first game running scene is edited according to the editing incremental information, so that when the first game running scene is reset, the edited initial first game running scene is displayed.
27. The method according to claim 22, characterized in that The method further comprises: In response to an edit undo operation, determining edit undo information corresponding to at least part of the first edit information according to the edit undo operation; The edited first game running scene is edited and undo processing is performed according to the edit undo information.
28. The method according to claim 27, characterized in that The first editing operation includes: a deletion operation for a second scene component model in the first game running scene; the editing undo operation includes: a deletion undo operation for the second scene component model; the first editing information includes: information indicating deletion of the second scene component model; the editing undo information includes: information indicating undoing deletion of the second scene component model; The performing edit undo processing on the edited first game running scene according to the edit undo information includes: The second scene component model is added back to the edited first game running scene according to the edit undo information.
29. The method according to claim 28, characterized in that The edit undo information includes initial information of the second scene component model and / or edit information of the second scene component model; adding the second scene component model back to the edited first game running scene according to the edit undo information includes: According to the editing undo information, the second scene component model is added back to the edited first game running scene in an initial state or an edited initial state; the initial state is determined according to the initial information of the second scene component model, and the edited initial state is determined according to the initial information of the second scene component model and / or the editing information of the second scene component model.
30. The method according to claim 28, characterized in that The deletion undo operation is performed through a restore control corresponding to the second scene component model; the restore control is a control provided in response to deleting the second scene component model from the first game running scene according to the first editing information.
31. The method according to claim 27, characterized in that The edit undo operation includes: an undo operation for a first edit operation within a preset range; the edit undo information includes: information indicating the undoing of the first edit operation within the preset range; The performing edit undo processing on the edited first game running scene according to the edit undo information includes: The first game running scene is restored to the first game running scene of the target node according to the edit undo information; the target node is: a time node before the first game running scene is edited according to the first editing information corresponding to the first editing operation within the preset range.
32. The method according to claim 1, characterized in that The method further comprises: In response to the edit and save instruction, the map data of the target game scene is updated according to the first editing information, so that when the target game scene is displayed, the edited target game scene is displayed according to the updated map data.
33. The method according to claim 1, characterized in that The method further comprises: In response to the snapshot update instruction, the snapshot data of the first game running scene is updated according to the first editing information, so that when the first game running scene is reset, the edited first game running scene is displayed according to the updated snapshot data.
34. The method according to claim 33, characterized in that The method further comprises: In response to a reset instruction for the first game running scene, the snapshot update instruction is triggered.
35. The method according to claim 33, characterized in that The method further comprises: When entering the first game running scene, initial snapshot data of the first game running scene is saved.
36. The method according to claim 1, characterized in that The first game running scene is provided with an invisible scene component model; the method further comprises at least one of the following steps: In response to a component display operation in the first game running scene, displaying the invisible scene component model; In response to a component hiding operation in the first game running scene, the displayed invisible scene component model is hidden.
37. The method according to claim 36, characterized in that The displaying of the invisible scene component model comprises: A visible virtual model corresponding to the invisible scene component model is generated in the first game running scene.
38. The method according to claim 1, characterized in that A timer is set in the first game running scene; the editable objects of the first game running scene include first-category objects and second-category objects; the response to the first editing operation in the first game running scene to obtain the first editing information includes: When the timer is at any time, responding to a first editing operation on the first type of object in the first game running scene, obtaining first editing information corresponding to the first type of object; When the timer is at a preset time, in response to a first editing operation on the second-category object in the first game running scene, first editing information corresponding to the second-category object is obtained.
39. The method according to claim 1, characterized in that The step of displaying the target game scene through the graphical user interface comprises: The game editing scene or the second game running scene is displayed through the graphical user interface; the game editing scene is the target game scene loaded in the editing mode; the second game running scene is the target game scene loaded in the running mode.
40. The method according to claim 1, characterized in that The method further comprises: In response to a second run trigger instruction, control the display of a second game run scene in the graphical user interface; the second game run scene is the target game scene loaded in the run mode.
41. The method according to claim 1, characterized in that A virtual camera is provided in the first game running scene; and the loading of the target game scene to display the first game running scene in the graphical user interface includes: The graphical user interface displays a picture formed by the virtual camera shooting the first game running scene; the virtual camera is configured to adjust according to the movement of the controlled virtual object.
42. The method according to claim 1, characterized in that The first editing information is used to perform at least one of the following edits on the target game scene: adding scene components to the target game scene, deleting scene components from the target game scene, editing properties of scene components in the target game scene, editing the environment of the target game scene, and editing game setting information of the target game scene.
43. A game editing device, characterized in that: Providing a graphical user interface through a terminal device, the device comprises: A first display processing module is configured to display a target game scene through the graphical user interface; A second display processing module is configured to respond to a first running trigger instruction, load the target game scene to display a first game running scene in the graphical user interface; a controlled virtual object is set in the first game running scene, and the controlled virtual object is configured to be controlled by the terminal device; An editing processing module is configured to obtain first editing information in response to a first editing operation in the first game running scene; the first editing information is used to edit the target game scene; A game running processing module, configured to control the controlled virtual object to execute a game running process instruction in response to a game running operation in the first game running scene; The third display processing module is configured to respond to the first operation stop instruction and control the display of the edited target game scene determined according to the first editing information in the graphical user interface.
44. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 42 is implemented.
45. An electronic device, characterized in that: include: processor; A memory, configured to store executable instructions of the processor; Wherein, the processor is configured to perform the method of any one of claims 1 to 42 by executing the executable instructions.
Citation Information
Cited By
Information processing method and device in game, electronic equipment and storage medium
CN119565135A
Multi-dimensional neural object representations of large-scale assets in gaming applications
US20260273416A1
Game editing method, game editing apparatus, program product, and electronic device
WO2026026713A1
