Terrain modification method and terrain modification device

文档序号:754055 发布日期:2021-04-06 浏览:18次 中文

阅读说明:本技术 一种地形修改方法与装置 (Terrain modification method and terrain modification device ) 是由 林杨威 梁波 施润丰 杨将鑫 于 2020-12-25 设计创作,主要内容包括:本发明提供一种地形修改方法与装置,其中,所述方法包括:获取待修改显示帧,其中,所述待修改显示帧包括初始地形和目标对象;对所述待修改显示帧中的初始地形进行修改,得到最终地形;根据所述最终地形,确定所述目标对象的最终状态;结合所述最终地形与所述目标对象的最终状态,构造目标显示帧。通过获取显示帧,并通过对所述显示帧中的初始地形进行处理得到最终地形,进而通过所述最终地形确定所述目标对象的最终状态,结合所述最终地形和所述最终状态构造目标显示帧,可以减少运算量和运算时间。(The invention provides a terrain modification method and a terrain modification device, wherein the method comprises the following steps: acquiring a display frame to be modified, wherein the display frame to be modified comprises an initial terrain and a target object; modifying the initial terrain in the display frame to be modified to obtain a final terrain; determining a final state of the target object according to the final terrain; and combining the final terrain with the final state of the target object to construct a target display frame. The calculation amount and the calculation time can be reduced by acquiring the display frame, processing the initial terrain in the display frame to obtain the final terrain, further determining the final state of the target object through the final terrain, and constructing the target display frame by combining the final terrain and the final state.)

1. A terrain modification method, characterized in that the method comprises:

acquiring a display frame to be modified, wherein the display frame to be modified comprises an initial terrain and a target object;

modifying the initial terrain in the display frame to be modified to obtain a final terrain;

determining a final state of the target object according to the final terrain;

and combining the final terrain with the final state of the target object to construct a target display frame.

2. The method of claim 1, wherein modifying the initial terrain in the display frame to be modified to obtain a final terrain comprises:

acquiring an initial terrain in the display frame to be modified;

and receiving an operation instruction, and modifying the initial terrain in the display frame to be modified according to the operation instruction to obtain a final terrain.

3. The method of claim 2, after obtaining the display frame to be modified, further comprising:

and creating a sub thread for saving the display frame to be modified.

4. The method of claim 3, wherein modifying the initial terrain in the display frame to be modified according to the operation instruction to obtain a final terrain comprises:

in a main thread, determining data to be operated according to the initial terrain in the display frame to be modified and the target object;

and in the sub-thread, modifying the data to be operated according to the operation instruction to obtain a final terrain.

5. The method of claim 4, wherein determining a final state of the target object based on the final topography comprises:

obtaining a final position coordinate and a final action of the target object corresponding to the final terrain based on the final terrain;

saving the final position coordinates and the final action as the final state.

6. The method of claim 5, wherein the target display frame includes a final terrain, the target object, and a final state of the target object;

combining the final terrain with the final state of the target object to construct a target display frame, comprising:

inserting the target object into the final terrain according to the final position coordinates and the final action of the target object;

and combining the final terrain and the final coordinate information of the target object and the final action to construct the target display frame.

7. The method of claim 1, after constructing the target display frame, further comprising:

and after the target display frame is inserted into the display frame to be modified, enabling the display frame and the target display frame to form a continuous two-frame picture in the main thread.

8. A terrain modifying apparatus, comprising:

an acquisition module configured to acquire a display frame to be modified, wherein the display frame to be modified includes an initial terrain;

the processing module is configured to process the initial terrain in the display frame to be modified to obtain a final terrain;

a state module configured to determine a final state of the target object according to the final terrain;

a construction module configured to construct a target display frame in conjunction with the final terrain and a final state of the target object.

9. A computing device comprising a memory, a processor, and computer instructions stored on the memory and executable on the processor, wherein the processor implements the steps of the method of any one of claims 1-7 when executing the instructions.

10. A computer-readable storage medium storing computer instructions, which when executed by a processor, perform the steps of the method of any one of claims 1 to 7.

Technical Field

The invention relates to the technical field of internet, in particular to a terrain modification method and a terrain modification device.

Background

With the development of building sandbox-like games, players are increasingly demanding a reduction in the time for dynamic modification of terrain in games and a reduction in the amount of game computation.

In the prior art, the original characters and terrains are generally reserved, the terrains are divided and stored into terrain blocks, the terrain blocks and the characters are modified one by one in the process of modifying the terrains, and after the terrain blocks and the characters on the terrain blocks are modified, the modified terrain blocks and the modified characters need to be spliced with other modified terrain blocks, so that the problems of large operation amount and long operation time of a game program are caused.

How to provide an effective scheme for a game program to perform small-amount and quick calculation when a player modifies terrain becomes a problem which needs to be solved urgently by technical staff.

Disclosure of Invention

In view of the above, embodiments of the present invention provide a method and an apparatus for terrain modification, a computing device, and a computer-readable storage medium, so as to solve the technical defects in the prior art.

According to a first aspect of embodiments of the present application, there is provided a terrain modification method, the method including:

acquiring a display frame to be modified, wherein the display frame to be modified comprises an initial terrain and a target object;

modifying the initial terrain in the display frame to be modified to obtain a final terrain;

determining a final state of the target object according to the final terrain;

and combining the final terrain with the final state of the target object to construct a target display frame.

Optionally, modifying the initial terrain in the display frame to be modified to obtain a final terrain, including:

acquiring an initial terrain in the display frame to be modified;

and acquiring an operation instruction, and modifying the initial terrain in the display frame to be modified according to the operation instruction to obtain the final terrain.

Optionally, after the obtaining of the display frame to be modified, the method further includes:

and creating a sub thread for saving the display frame to be modified.

Optionally, modifying the initial terrain in the display frame to be modified according to the operation instruction to obtain a final terrain, including:

in a main thread, determining data to be operated according to the initial terrain in the display frame to be modified and the target object;

and in the sub-thread, modifying the data to be operated according to the operation instruction to obtain a final terrain.

Optionally, determining a final state of the target object according to the final terrain comprises:

processing the data to be operated based on the final terrain to obtain a final position coordinate and a final action of the target object corresponding to the final terrain;

saving the final position coordinates and the final action as the final state.

Optionally, the target display frame includes a final terrain, the target object, and a final state of the target object.

Optionally, combining the final terrain with the final state of the target object, constructing a target display frame, comprising:

inserting the target object into the final terrain according to the final position coordinates and the final action of the target object;

and combining the final terrain and the final coordinate information of the target object and the final action to construct the target display frame.

Optionally, after constructing the target display frame, further comprising:

and after the target display frame is inserted into the display frame to be modified, enabling the display frame and the target display frame to form a continuous two-frame picture in the main thread.

According to a second aspect of embodiments of the present application, there is provided a terrain modifying apparatus, the apparatus comprising:

the display device comprises an acquisition module, a display module and a display module, wherein the acquisition module is configured to acquire a display frame to be modified, and the display frame to be modified comprises initial terrain, a target object and an initial state of the target object;

the processing module is configured to process the initial terrain in the display frame to be modified to obtain a final terrain;

a state module configured to determine a final state of the target object according to the final terrain;

a construction module configured to construct a target display frame in conjunction with the final terrain and a final state of the target object.

According to a third aspect of embodiments herein, there is provided a computing device comprising:

a memory and a processor;

the memory is for storing computer-executable instructions and the processor is for executing the computer-executable instructions, wherein the processor, when executing the computer-executable instructions, performs the steps of the terrain modification method.

According to a fourth aspect of embodiments herein there is provided a computer readable storage medium having stored thereon computer executable instructions which, when executed by a processor, carry out the steps of any of the terrain modifying methods.

According to the terrain modification method and device, the initial terrain is obtained firstly, the initial terrain is processed to obtain the final terrain, the processed state of the target object is determined according to the final terrain, and finally the target display frame is constructed by combining the final terrain and the processed state of the target object.

In addition, the state of the target object corresponding to the final terrain is determined according to the final terrain, so that the smooth and vivid action of the target object is ensured, the problem that the action and the position of the target object are repeated before and after the terrain is modified is solved, the smooth action of the target object is optionally ensured, and the game experience of a user is improved.

Secondly, the terrain is modified in a mode of acquiring the data to be operated, so that a user can avoid a large amount of repeated operation in the editing and making process of the terrain, and the development time and cost are saved. And the sub-thread is created in advance, and the initial terrain is stored and edited in the sub-thread, so that the normal operation of a user is not influenced in the game process, and the smoothness of the game is optionally ensured.

Drawings

FIG. 1 is a schematic diagram of a computing device of an example of the invention;

FIG. 2 is a flow chart illustrating steps of a terrain modification method according to an embodiment of the present invention;

FIG. 3 is a flow chart illustrating steps of a terrain modification method according to an embodiment of the present invention;

FIG. 4 is a schematic view of an initial terrain according to an embodiment of the present invention;

FIG. 5 is a final topographical view of an embodiment of the present invention;

FIG. 6 is a schematic diagram of the final state of an embodiment of the present invention;

fig. 7 is a schematic structural diagram of a terrain modifying apparatus according to an embodiment of the present invention.

Detailed Description

In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein, but rather construed as limited to the embodiments set forth herein.

The terminology used in the description of the one or more embodiments is for the purpose of describing the particular embodiments only and is not intended to be limiting of the description of the one or more embodiments. As used in one or more embodiments of the present specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used in one or more embodiments of the present specification refers to and encompasses any and all possible combinations of one or more of the associated listed items.

It will be understood that, although the terms first, second, etc. may be used herein in one or more embodiments to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first can also be referred to as a second and, similarly, a second can also be referred to as a first without departing from the scope of one or more embodiments of the present description. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.

First, the noun terms to which one or more embodiments of the present invention relate are explained.

A sandbox game: the sandbox game is also called as an open scene game, and the game has a larger open scene, can freely move in the game world and can be built according to the will and operation of a player.

Topography: in the prior art, the entire map is typically divided into several smaller squares in the game, where each square is referred to as a terrain.

Fig. 1 is a block diagram illustrating a configuration of a computing device 100 according to an embodiment of the present specification. The components of the computing device 100 include, but are not limited to, memory 110 and processor 120. The processor 120 is coupled to the memory 110 via a bus 130 and a database 150 is used to store data.

Computing device 100 also includes access device 140, access device 140 enabling computing device 100 to communicate via one or more networks 160. Examples of such networks include the Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the internet. Access device 140 may include one or more of any type of network interface (e.g., a Network Interface Card (NIC)) whether wired or wireless, such as an IEEE802.11 Wireless Local Area Network (WLAN) wireless interface, a worldwide interoperability for microwave access (Wi-MAX) interface, an ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a bluetooth interface, a Near Field Communication (NFC) interface, and so forth.

In one embodiment of the present description, the above-described components of computing device 100 and other components not shown in FIG. 1 may also be connected to each other, such as by a bus. It should be understood that the block diagram of the computing device architecture shown in FIG. 1 is for purposes of example only and is not limiting as to the scope of the description. Those skilled in the art may add or replace other components as desired.

Computing device 100 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., tablet, personal digital assistant, laptop, notebook, netbook, etc.), a mobile phone (e.g., smartphone), a wearable computing device (e.g., smartwatch, smartglasses, etc.), or other type of mobile device, or a stationary computing device such as a desktop computer or PC. Computing device 100 may also be a mobile or stationary server.

Wherein the processor 120 may perform the steps of the method shown in fig. 2. Fig. 2 is a flowchart illustrating exemplary steps according to an embodiment of the present invention, including step S202 to step S208.

Step S202: acquiring a display frame to be modified, wherein the display frame to be modified comprises an initial terrain and a target object.

In a specific application, the display frame is a frame of picture in a game process, that is, a frame of game picture extracted from a currently operated page when a player operates in a game. The target object is a character in the game, and the character in the game may be a character, an animal or a robot character, which is not particularly limited in the present invention. The initial terrain is a terrain in a display frame to be modified in the current game progress, and the initial terrain may be a terrain modified in a last display frame.

The display frame to be modified is obtained, so that the user can accurately obtain the picture to be modified when the user modifies the terrain, and the accuracy of the user data source is also ensured.

In an optional implementation of this embodiment, modifying the initial terrain in the display frame to be modified to obtain a final terrain includes:

acquiring an initial terrain in the display frame to be modified;

and receiving an operation instruction, and operating the initial terrain in the display frame to be modified according to the operation instruction to obtain the final terrain.

The operation instruction is an operation instruction issued by the game player to the character in the game with respect to the terrain in the game, for example, the game player notifies the character in the game to modify the terrain in the current display frame through a certain operation, and the content of the notification is the operation instruction, such as "hole digging", "tree planting", and the like.

In an optional implementation manner of this embodiment, after obtaining the display frame to be modified, the method further includes:

and creating a sub thread for saving the display frame to be modified.

In a specific application, the step of acquiring the operation instruction and modifying the initial terrain by the user is performed by sending a task to the sub-thread processing in the game program. In a main thread of a game program, a user operates a target object in the game program through an operation instruction, and the target object executes a corresponding action; when the initial terrain is modified, firstly creating a backup file of the initial terrain, sending a task to a child thread, saving the backup file of the initial terrain into the child thread, and modifying the backed-up initial terrain in the child thread. And, the modification in the child thread does not affect the target role and the initial terrain in the main thread.

In practical applications, the operation instruction may be an operation on a terrain, for example, a deletion operation is performed on the terrain where the target object is currently located. The final terrain is a terrain obtained after the initial terrain is operated. In practical applications, the landforms in the virtual scene are all small squares obtained by dividing one by one based on the geomap of the game, and the landforms in the invention are all small squares obtained by dividing the geomap.

The terrain in the display frame to be modified is operated according to the operation instruction, so that a clear and clear instruction source is ensured in the process of making and editing the game terrain, and the problem of disordered terrain modification is avoided. And the initial terrain is saved and modified in the sub-thread, so that the normal operation of the game is ensured, and the normal operation of a user is not influenced.

Step S204: and modifying the initial terrain in the display frame to be modified to obtain the final terrain.

Specifically, the initial terrain may be processed by the player during the game, for example, by adding or deleting the terrain such as "digging hole" or "filling", or by adding water to the current terrain, for example, by "filling water", and the player may define the volume and depth of the added water by himself/herself.

After the initial terrain is processed to obtain the final terrain, the current motion and position coordinates of the target object are determined according to the final terrain, and the current motion and position coordinates of the target object are stored as the final state of the target object. In practical applications, it is necessary to determine the motion and position coordinates of the target object corresponding to the final terrain according to the final terrain. For example, in the initial terrain, the target object N is on the land a, the land a is "step", the action of the target object N at this time is "walk up stairs", and the position coordinate of the target object N at this time is assumed to be (1,1, 2). The land A is modified to obtain a final terrain B, wherein the terrain B is 'flat land', the action of the target object N is determined to be 'standing' by the terrain 'flat land' of the terrain B, and the position coordinate of the target object N is determined to be (1,1, 0).

When determining the position coordinates of the target object according to the final terrain, only the ordinate of the target object is changed, that is, only the relative height of the target object is changed, and the rest of the relative positions are not changed. After the final terrain is obtained, the position of the target object can be adjusted according to the final terrain, and the target object is ensured to be closely attached to the ground where the modified target object is located.

The initial terrain is processed to obtain the final terrain, and the corresponding state of the target object and the final terrain is determined according to the final terrain, so that the action of the target object is complete and smooth in the process of playing the game, the condition that the action of the target object is inconsistent with the terrain is also ensured, and the condition that models are overlapped in the game process is avoided.

In an optional implementation of this embodiment, modifying the initial terrain in the display frame to be modified according to the operation instruction to obtain a final terrain includes:

determining data to be operated according to the initial terrain in the display frame to be modified, the target object and the state of the target object;

and processing the data to be operated according to the operation instruction to obtain a final terrain.

In practical applications, the state of the target object may include information such as motion and position coordinates. For example, in a certain construction game, the position coordinates of the target object are (2,4,3), the action of the target object is "stand with hoe in hand", and the state of the target object is "stand with hoe in hand" (2,4, 3).

The data to be operated is data included in a terrain on which the target object operates according to the operation instruction, according to the above example, the position coordinate of the terrain to be processed by the target object according to the operation instruction is (3,4,3), a tree is arranged on the terrain at the coordinate position (3,4,3), the type identifier of the tree is n, the height is 13m, and the width is 2m, at this time, the data to be operated is a "tree, the type is n, the height is 13m, and the width is 2 m", and the target character needs to process the data to be operated according to the operation instruction of the game player.

Step S206: and determining the final state of the target object according to the final terrain.

It should be noted that the final state is a state corresponding to the target object after processing the terrain, for example, the target object needs to process a terrain "hole", before processing, the state of the target object is "position coordinates (1,2, -1) and acts as a squatting position", after processing, the target object fills the terrain "hole" by burying, at this time, the position coordinates corresponding to the target object are changed to (1,2,0), correspondingly, the action of the target object is changed from the squatting position to the standing position, a bucket is held in the hand, at this time, the final state is "standing, the coordinate position is (1,2,0), and the bucket is held in the hand".

The state of the target object is determined according to the final terrain, so that the target object can be smoothly connected to the next display frame after processing the terrain, the vividness of a game picture is ensured, and the game experience of a player is improved.

In an alternative embodiment of this embodiment, determining the final state of the target object according to the final topography comprises:

processing the data to be operated based on the final terrain to obtain a final position coordinate and a final action of the target object corresponding to the final terrain;

saving the final position coordinates and the final action as the final state.

It should be noted that the data to be operated is a backup file of the display frame to be modified, where the backup file includes a target object, an initial terrain, and a state of the target object in the display frame to be modified. The invention modifies the action, position coordinates and terrain of the target object, all based on the backup file. That is to say, after the display frame to be modified is acquired, the backup operation is performed on the display frame to be modified first, and then the modification operation on the terrain is performed.

The initial terrain is modified to obtain the final terrain, and the state of the target object corresponding to the final terrain is obtained according to the final terrain, so that the action and the position of the target object can be adjusted adaptively to the modification of the initial terrain, and the condition that models are not overlapped between a target character and the terrain in the game process is ensured.

Step S208: and combining the final terrain with the final state of the target object to construct a target display frame.

In practical applications, the final terrain is a new terrain obtained by modifying the terrain by a target object in the game, and the final state of the target object may be the position coordinates and the motion of the target object corresponding to the final terrain.

In an alternative embodiment of this embodiment, combining the final terrain with the final state of the target object to construct a target display frame includes:

inserting the target object into the final terrain according to the final position coordinates and the final action of the target object;

and combining the final terrain and the final coordinate information of the target object and the final action to construct the target display frame.

Specifically, following the above example, combining the modified final terrain B "flat land", the position coordinates (1,1,0) of the target object N, and the action "standing" of the target object N, the target object N is placed in the modified final terrain B in combination with the state of the target object N, and a new display frame is constructed as the target display frame.

After the target object N is placed in the final topography B, the motion of the target object N may be adaptively adjusted according to the final topography B, for example, the motion of the target object N is "walking", and in this case, the motion of "walking" may be adaptively adjusted according to the final topography so that the target object N maintains the posture of "being in close contact with" the ground.

After the final state and the final topography of the target object are determined in the sub-thread, a target display frame constructed according to the final state and the final topography of the target object is added to a main thread of a game program.

And constructing a target display frame by combining the final terrain and the final state of the target object, ensuring that the display frame to be modified is not influenced, and also ensuring that the computation amount can be saved in the process of modifying and manufacturing the terrain.

In an optional implementation manner of this embodiment, after constructing the target display frame, the method further includes:

and after the target display frame is inserted into the display frame to be modified, the display frame and the target display frame form a continuous two-frame picture.

It should be noted that, after the target object modifies the terrain according to the operation instruction of the game player, a new display frame is constructed for the obtained new terrain, then the final state of the target object is obtained according to the new terrain, then the target object corresponding to the final state is inserted into the new display frame to form the target display frame, and finally the target display frame and the display frame can form a continuous game screen, so that the smoothness and stability of the game screen are ensured, and the user experience is improved.

As shown in fig. 3, fig. 3 is a schematic flowchart of steps of an embodiment of the present invention, which includes steps S302 to S314, and takes a sandbox built game as an example, and the present embodiment further describes the present invention with reference to specific application scenarios.

Step S302: and acquiring a display frame to be modified and an operation instruction for the display frame.

Specifically, a user issues an operation instruction to a target character in the game, and the target character in the game executes a corresponding action according to the operation instruction. The action of the target character in the game may be an action such as "walk" or "dig".

Step S304: and storing and backing up the display frame to be modified.

It should be noted that before step S304, a child thread needs to be created, and after the child thread is created, the display frame to be modified is saved and backed up to the child thread.

The current terrain of the game character is shown in fig. 4, element 1 is a target character, element 2 is a terrain, the game character is positioned on a 'soil heap' formed by overlapping a plurality of 'soil blocks', the action is 'standing', and the position coordinates are (2, 2). It should be noted that, in the process of processing the terrain, the position of the game character is changed only in height, so two-dimensional coordinates are used for illustration here, and three-dimensional coordinates are used in the application process of the present invention.

Step S306: and modifying the backed-up display frame to be modified according to the operation instruction.

For example, assuming that the operation instruction is "dig a hole and fill water in the hole", the backed up display frame to be modified is modified according to the operation instruction. That is, in the game scene, the land where the game character is currently located is deleted and water is added to the original position. As shown in fig. 5, element 1 in fig. 5 is a game character and element 2 is a modified terrain. The game character is now in the water.

It should be noted that, in practical applications, the modification process of the backed-up display frame to be modified is performed in the child thread.

Step S308: and after the final terrain is obtained, moving the game role to the backup display frame to be modified.

Note that the game character at this time remains in the state before the terrain is modified. That is, at this time, the target character still maintains the "standing" action before the operation even though it is already in the water.

Step S310: and determining the final state of the game role corresponding to the final terrain according to the final terrain.

Specifically, the current position coordinates and the current action of the game character are determined according to the final terrain, and the action of the game character is adaptively adjusted according to the final terrain. As shown in fig. 6, element 1 in fig. 6 is a game character, "clod" for element 2, and "water" for element 3. The modified game character is now in the water, and the current action is determined as "swimming" with position coordinates of (2, 1).

Step S312: and combining the final terrain and the final state to construct a target display frame.

And combining the final terrain 'clod and water' obtained after modification with the current position coordinates (2,1) of the game character and the current action 'swimming' of the game character to construct a new display frame, and taking the new display frame as a target display frame.

Step S314: and inserting the target display frame into the display frame to be modified.

After the target display frame is constructed, the target display frame needs to be inserted into the display frame to be modified, so that a smooth and complete game picture can be formed in the main thread.

According to the terrain modification method provided by the invention, the initial terrain and the target character are obtained, the final terrain is obtained after the initial terrain is processed, the processed state of the game character is determined according to the final terrain, and finally the target display frame is constructed by combining the final terrain and the processed state of the game character.

In addition, the state of the game role corresponding to the final terrain is determined according to the final terrain, so that the smooth and vivid action of the game role is ensured, the problem that the action and the position of the game role are repeated before and after the terrain is modified is solved, the smooth action of the game role is optionally ensured, and the game experience of a user is improved.

Secondly, the terrain is modified in a mode of acquiring the data to be operated, so that a user can avoid a large amount of repeated operation in the editing and making process of the terrain, and the development time and cost are saved.

And thirdly, in practical application, the constructed target display frame is inserted into the display frame to be modified, so that the smoothness and stability of the game picture are ensured, and the user experience is improved. And the sub-thread is created in advance, and the initial terrain is stored and edited in the sub-thread, so that the normal operation of a user is not influenced in the game process, and the smoothness of the game is optionally ensured.

An embodiment of the present invention discloses a terrain modifying apparatus, referring to fig. 7, the apparatus comprising:

an obtaining module 702 configured to obtain a display frame to be modified, where the display frame to be modified includes an initial terrain and a target object.

And a processing module 704 configured to process the initial terrain in the display frame to be modified to obtain a final terrain.

A state module 706 configured to determine a final state of the target object according to the final terrain.

A construction module 708 configured to construct a target display frame in combination with the final terrain and the final state of the target object.

The processing module 704 is further configured to obtain an initial terrain in the display frame to be modified;

and acquiring an operation instruction, and operating the initial terrain in the display frame to be modified according to the operation instruction to obtain the final terrain.

Further, operating the initial terrain in the display frame to be modified according to the operation instruction to obtain a final terrain, including:

determining data to be operated according to the initial terrain in the display frame to be modified and the target object;

and processing the data to be operated according to the operation instruction to obtain a final terrain.

The state module 706 is further configured to process the data to be operated based on the final terrain to obtain a final position coordinate and a final action of the target object corresponding to the final terrain;

saving the final position coordinates and the final action as the final state.

Specifically, the target display frame includes a final terrain, the target object, and a final state of the target object.

Further, inserting the target object into the final terrain according to the final position coordinates and the final action of the target object;

and combining the final terrain and the final coordinate information of the target object and the final action to construct the target display frame.

The processing module 704 is further configured to determine data to be operated according to the initial terrain in the display frame to be modified, a target object and a state of the target object;

and processing the data to be operated according to the operation instruction to obtain a final terrain.

The processing module 704 is further configured to process the data to be operated based on the final terrain to obtain a final position coordinate and a final action of the target object corresponding to the final terrain;

saving the final position coordinates and the final action as the final state.

Optionally, the target display frame includes a final terrain, the target object, and a final state of the target object.

The construction module 708, further configured to insert the target object into the final terrain according to the final position coordinates and the final action of the target object;

and combining the final terrain and the final coordinate information of the target object and the final action to construct the target display frame.

The terrain modification apparatus further includes an insertion module 710, where the insertion module 710 is configured to insert the target display frame into the display frame to be modified, so that the display frame and the target display frame form a continuous two-frame screen.

According to the terrain modifying device provided by the invention, the initial terrain is firstly obtained, the final terrain is obtained after the initial terrain is processed, the processed state of the target object is determined according to the final terrain, and finally the target display frame is constructed by combining the final terrain and the processed state of the target object.

In addition, the state of the target object corresponding to the final terrain is determined according to the final terrain, so that the smooth and vivid action of the target object is ensured, the problem that the action and the position of the target object are repeated before and after the terrain is modified is solved, the smooth action of the target object is optionally ensured, and the game experience of a user is improved.

Secondly, the terrain is modified in a mode of acquiring the data to be operated, so that a user can avoid a large amount of repeated operation in the editing and making process of the terrain, and the development time and cost are saved.

The present embodiments also provide a computer readable storage medium storing computer instructions that, when executed by a processor, implement the steps of a terrain modification method as previously described.

The above is an illustrative scheme of a computer-readable storage medium of the present embodiment. It should be noted that the technical solution of the storage medium belongs to the same concept as the technical solution of the terrain modifying method described above, and for details that are not described in detail in the technical solution of the storage medium, reference may be made to the description of the technical solution of the terrain modifying method described above.

The computer instructions comprise computer program code which may be in the form of source code, object code, an executable file or some intermediate form, or the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.

It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present invention is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no acts or modules are necessarily required of the invention.

In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to related descriptions of other embodiments for elements that are not described in detail in a certain embodiment.

The preferred embodiments of the invention disclosed above are intended to be illustrative only. Alternative embodiments are not exhaustive and do not limit the invention to the precise embodiments described. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the invention and the practical application, to thereby enable others skilled in the art to best utilize the invention. The invention is limited only by the claims and their full scope and equivalents.

17页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种基于手机游戏GUI快速复刻生产方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类