Game display control method and device, electronic equipment and storage medium

文档序号:1347384 发布日期:2020-07-24 浏览:15次 中文

阅读说明:本技术 游戏的显示控制方法、装置、电子设备及存储介质 (Game display control method and device, electronic equipment and storage medium ) 是由 李晟 黄晨 于 2020-03-23 设计创作,主要内容包括:本申请提供一种游戏的显示控制方法、装置、电子设备及存储介质,涉及游戏技术领域。该方法包括:获取游戏角色的位置;根据游戏角色的位置和预设角色轨迹,确定游戏角色对应的轨迹位置;根据轨迹位置和预设虚拟摄像机轨迹,确定轨迹位置对应的虚拟摄像机机位,其中,虚拟摄像机用于呈现游戏画面;根据虚拟摄像机机位,确定目标摄像视角;根据目标摄像视角呈现目标摄像视角对应的游戏画面。通过在游戏客户端中预设角色轨迹和虚拟摄像机轨迹,根据游戏角色的位置确定轨迹位置,继而确定虚拟摄像机机位以及目标摄像视角,实现了对于游戏画面的展示,增强了展示游戏画面时的可控性,使得展示的游戏画面效果更好,也提高了玩家体验。(The application provides a display control method and device of a game, electronic equipment and a storage medium, and relates to the technical field of games. The method comprises the following steps: acquiring the position of a game role; determining a track position corresponding to the game role according to the position of the game role and a preset role track; determining a virtual camera position corresponding to the track position according to the track position and a preset virtual camera track, wherein the virtual camera is used for presenting a game picture; determining a target camera shooting visual angle according to the virtual camera position; and presenting a game picture corresponding to the target camera shooting visual angle according to the target camera shooting visual angle. The game client side is preset with the character track and the virtual camera track, the track position is determined according to the position of the game character, and then the virtual camera position and the target camera shooting visual angle are determined, so that the game picture is displayed, the controllability of the game picture is enhanced, the displayed game picture is better in effect, and the player experience is improved.)

1. A display control method for a game, the method comprising:

acquiring the position of a game role;

determining a track position corresponding to the game role according to the position of the game role and a preset role track;

determining a virtual camera position corresponding to the track position according to the track position and a preset virtual camera track, wherein the virtual camera is used for presenting a game picture;

determining a target camera shooting visual angle according to the virtual camera position;

and presenting the game picture corresponding to the target camera shooting visual angle according to the target camera shooting visual angle.

2. The method of claim 1, wherein determining a target camera view angle from the virtual camera position comprises:

determining a preset camera shooting visual angle corresponding to the virtual camera position by adopting a preset corresponding relation between the virtual camera position and the camera shooting visual angle according to the virtual camera position;

and determining the target camera shooting visual angle according to the preset camera shooting visual angle.

3. The method according to claim 2, wherein the determining the target camera view angle according to the preset camera view angle comprises:

and adjusting the preset camera angle according to the position of the game role and the track position to obtain the target camera angle.

4. The method of claim 3, wherein the adjusting the preset camera view angle according to the position of the game character and the track position to obtain the target camera view angle comprises:

determining a first orientation of the virtual camera position to the position of the game character and a second orientation of the virtual camera position to the track position, respectively;

determining an included angle between the second orientation and the first orientation;

and if the included angle is smaller than the preset included angle, the virtual camera position is adjusted to face the game role, so that the game role is positioned in the center of the game picture.

5. The method according to any one of claims 1-4, further comprising:

determining a target path of the game character in response to a way finding operation;

respectively determining the distances between the target path and a plurality of character tracks;

determining a target role track with the shortest distance to the target path according to the distance;

and controlling the game role to move on the target role track.

6. The method according to any one of claims 1-4, further comprising:

in response to a path finding operation, determining a target scene of the game role; the target scene comprises a plurality of paths;

determining the distance between each path and the track position on the preset role track;

according to the distance, determining the path with the shortest distance from the plurality of paths as a target path;

and controlling the game role to move on the target path.

7. A display control apparatus for a game, the apparatus comprising:

the acquisition module is used for acquiring the position of a game role;

the first determining module is used for determining a track position corresponding to the game role according to the position of the game role and a preset role track;

the second determining module is used for determining a virtual camera position corresponding to the track position according to the track position and a preset virtual camera track, wherein the virtual camera is used for presenting a game picture;

the third determining module is used for determining a target camera shooting visual angle according to the virtual camera position;

and the display module is used for displaying the game picture corresponding to the target camera shooting visual angle according to the target camera shooting visual angle.

8. The apparatus according to claim 7, wherein the third determining module is further configured to determine a preset camera view angle corresponding to the virtual camera machine position according to the virtual camera machine position by using a preset correspondence between the virtual camera machine position and the camera view angle; and determining the target camera shooting visual angle according to the preset camera shooting visual angle.

9. An electronic device, comprising: a memory storing a computer program executable by the processor, and a processor implementing the method of any of the preceding claims 1-6 when executing the computer program.

10. A storage medium having stored thereon a computer program which, when read and executed, implements the method of any of claims 1-6.

Technical Field

The invention relates to the field of games, in particular to a display control method and device of a game, electronic equipment and a storage medium.

Background

With the advent of the information age, various games are increasing, and in some picture running games, it is also becoming more important to present a game picture to a player by the operation of the player and in what manner the game picture is presented.

Disclosure of Invention

The present invention is directed to provide a display control method and apparatus for a game, an electronic device, and a storage medium, to solve the problems in the related art that a display screen is determined directly according to operations of a player, so that controllability of the display screen is reduced, the displayed game screen is prone to have a poor effect, and player experience is affected.

In order to achieve the above purpose, the embodiment of the present invention adopts the following technical solutions:

in a first aspect, an embodiment of the present invention provides a display control method for a game, where the method includes:

acquiring the position of a game role;

determining a track position corresponding to the game role according to the position of the game role and a preset role track;

determining a virtual camera position corresponding to the track position according to the track position and a preset camera track, wherein the virtual camera is used for presenting a game picture;

determining a target camera shooting visual angle according to the virtual camera position;

and presenting the game picture corresponding to the target camera shooting visual angle according to the target camera shooting visual angle.

Further, the determining a target camera view angle according to the virtual camera position includes:

determining a preset camera shooting visual angle corresponding to the virtual camera position by adopting a preset corresponding relation between the virtual camera position and the camera shooting visual angle according to the virtual camera position;

and determining the target camera shooting visual angle according to the preset camera shooting visual angle.

Further, the determining the target camera view angle according to the preset camera view angle includes:

and adjusting the preset camera angle according to the position of the game role and the track position to obtain the target camera angle.

Further, the adjusting the preset camera angle according to the position of the game role and the track position to obtain the target camera angle includes:

determining a first orientation of the virtual camera position to the position of the game character and a second orientation of the virtual camera position to the track position, respectively;

determining an included angle between the second orientation and the first orientation;

and if the included angle is smaller than or equal to a preset included angle, adjusting the virtual camera position to face the game role, so that the game role is positioned in the center of the game picture.

Further, the method further comprises:

determining a target path of the game character in response to a way finding operation;

respectively determining the distances between the target path and a plurality of character tracks;

determining a target role track with the shortest distance to the target path according to the distance;

and controlling the game role to move on the target role track.

Further, the method further comprises:

determining a target scene of the game character in response to the path finding operation; the target scene comprises a plurality of paths;

determining the distance between each path and the track position on the preset role track;

according to the distance, determining the path with the shortest distance from the plurality of paths as a target path;

and controlling the game role to move on the target path.

In a second aspect, an embodiment of the present application further provides a display control apparatus for a game, including:

the acquisition module is used for acquiring the position of a game role;

the first determining module is used for determining a track position corresponding to the game role according to the position of the game role and a preset role track;

the second determining module is used for determining a virtual camera position corresponding to the track position according to the track position and a preset virtual camera track, wherein the virtual camera is used for presenting a game picture;

the third determining module is used for determining a target camera shooting visual angle according to the virtual camera position;

and the display module is used for displaying the game picture corresponding to the target camera shooting visual angle according to the target camera shooting visual angle.

Further, the third determining module is further configured to determine, according to the virtual camera position, a preset camera view angle corresponding to the virtual camera position by using a preset correspondence between the virtual camera position and the camera view angle; and determining the target camera shooting visual angle according to the preset camera shooting visual angle.

Further, the third determining module is further configured to adjust the preset camera angle according to the position of the game character and the track position, so as to obtain the target camera angle.

Further, the third determining module is further configured to determine a first orientation of the virtual camera position to the position of the game character and a second orientation of the virtual camera position to the track position, respectively; determining an included angle between the second orientation and the first orientation; and if the included angle is smaller than or equal to a preset included angle, adjusting the virtual camera position to face the game role, so that the game role is positioned in the center of the game picture.

Further, the apparatus further comprises:

a fourth determining module, configured to determine a target path of the game character in response to a way finding operation; respectively determining the distances between the target path and a plurality of character tracks; determining a target role track with the shortest distance to the target path according to the distance;

and the first control module is used for controlling the game role to move on the target role track.

Further, the apparatus further comprises:

a fifth determining module, configured to determine a target scene of the game character in response to a way finding operation; the target scene comprises a plurality of paths; determining the distance between each path and the track position on the preset role track; according to the distance, determining the path with the shortest distance from the plurality of paths as a target path;

and the second control module is used for controlling the game role to move on the target path.

In a third aspect, an embodiment of the present application further provides an electronic device, including: a memory storing a computer program executable by the processor, and a processor implementing any of the methods provided by the first aspect when executing the computer program.

In a fourth aspect, an embodiment of the present application further provides a storage medium, where a computer program is stored on the storage medium, and when the computer program is read and executed, the computer program implements any one of the methods provided in the first aspect.

The beneficial effect of this application is:

the method, the device, the electronic equipment and the storage medium for controlling the display of the game acquire the position of a game role; determining a track position corresponding to the game role according to the position of the game role and a preset role track; determining a virtual camera position corresponding to the track position according to the track position and a preset virtual camera track, wherein the virtual camera is used for presenting a game picture; determining a target camera shooting visual angle according to the virtual camera position; and presenting a game picture corresponding to the target camera shooting visual angle according to the target camera shooting visual angle. The game client side is preset with the character track and the virtual camera track, the track position is determined according to the position of the game character, and then the virtual camera position and the target camera shooting visual angle are determined, so that the game picture is displayed, the controllability of the game picture is enhanced, the displayed game picture is better in effect, and the player experience is improved.

Drawings

In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.

FIG. 1 is a flow chart illustrating a method for controlling display of a game according to the present invention;

FIG. 2 is a flow chart illustrating a method for controlling display of a game according to the present invention;

FIG. 3 is a flow chart illustrating a method for controlling display of a game according to the present invention;

fig. 4 is a schematic diagram illustrating a principle of adjusting a preset camera angle according to the present invention;

FIG. 5 is a flow chart illustrating a method for controlling display of a game according to the present invention;

FIG. 6 is a flow chart illustrating a method for controlling display of a game according to the present invention;

FIG. 7 is a schematic structural diagram of a display control device of a game according to the present invention;

fig. 8 is a schematic structural diagram of an electronic device provided in the present invention.

Detailed Description

In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention.

According to the method provided by the embodiment of the invention, the execution main body can be a game client, the graphical interaction interface is obtained by executing game application rendering, the game scene is displayed on the graphical interaction interface, and the game scene comprises game roles. The game client may be a computer, a mobile phone, a tablet computer, or other devices with a data processing function, which is not limited in this embodiment of the present invention.

Fig. 1 is a schematic flow chart of a game display control method according to the present invention, as shown in fig. 1, the method may include:

s101, obtaining the position of the game role.

The game client can determine the position of the game character in the game according to the coordinates of the game character in the game.

In some embodiments, the player may perform a movement operation on the game character, and the game client may move the game character to a corresponding position according to the movement operation and determine coordinates of the position, so that the position of the game character may be acquired.

S102, determining the track position corresponding to the game role according to the position of the game role and the preset role track.

The game client can be preset with a role track, the preset role track can be associated with a game role, and the preset role track can comprise a plurality of coordinate points.

In a possible implementation manner, the game client may determine a coordinate point closest to the position of the game character from a preset character track according to the position of the game character, and use the coordinate point as the track position corresponding to the game character.

For example, the coordinate point at which the position of the game character is located may be a, the preset character trajectory may include coordinate points B, C, D, E and F, the game client may determine that, of the coordinate points B, C, D, E and F, the coordinate point closest to a may be C, and the position at which the coordinate point C is located is the trajectory position corresponding to the game character.

S103, according to the track position and the preset virtual camera track, determining a virtual camera position corresponding to the track position.

Wherein the virtual camera is used for presenting game pictures.

In the embodiment of the invention, a virtual camera track can be preset in the game client, the preset virtual camera track can be associated with the virtual camera, the preset virtual camera track can comprise a plurality of coordinate points, and the coordinate points of the preset character track correspond to the coordinate points of the preset virtual camera track one to one.

In a possible implementation manner, the game client may search a corresponding coordinate point on a preset virtual camera track according to a coordinate point where the track position is located, and use the position where the coordinate point is located as a virtual camera position corresponding to the track position.

For example, coordinate points B, C, D, E and F may be included on the preset character trajectory, and correspondingly, coordinate points B1, C1, D1, E1 and F1 may be included on the preset virtual camera trajectory. When the coordinate point of the track position is C, the coordinate point of the virtual camera position corresponding to the track position may be C1.

And S104, determining a target camera shooting visual angle according to the virtual camera position.

In the embodiment of the invention, the game client can determine the shooting visual angle of the virtual camera at the virtual camera position, namely the target shooting visual angle, according to the preset shooting visual angle corresponding to the virtual camera position.

And S105, presenting a game picture corresponding to the target camera shooting visual angle according to the target camera shooting visual angle.

In some embodiments, the game client may collect, by the virtual camera, a game picture corresponding to the target camera angle according to the target camera angle, and present the game picture corresponding to the target camera angle to the player.

In summary, the display control method for the game provided by the embodiment of the present invention obtains the position of the game role; determining a track position corresponding to the game role from a preset role track according to the position of the game role; according to the track position, determining a virtual camera position corresponding to the track position from a preset virtual camera track; determining a target camera shooting visual angle according to the virtual camera position; and displaying the game picture corresponding to the target camera shooting visual angle according to the target camera shooting visual angle. The game client side is preset with the character track and the virtual camera track, the track position is determined according to the position of the game character, and then the virtual camera position and the target camera shooting visual angle are determined, so that the game picture is displayed, the controllability of the game picture is enhanced, the displayed game picture is better in effect, and the player experience is improved.

Optionally, fig. 2 is a schematic flow chart of a game display control method provided by the present invention, and as shown in fig. 2, the determining the target camera view angle according to the virtual camera position in S104 may include:

s201, according to the virtual camera position, determining a preset camera shooting visual angle corresponding to the virtual camera position by adopting a preset corresponding relation between the virtual camera position and the camera shooting visual angle.

In the embodiment of the present invention, the preset correspondence between the virtual camera position and the camera angle may be: each virtual camera position may have a corresponding preset camera angle of view, which may be a camera angle of view toward the trajectory position.

It should be noted that a directed line segment may be made between the virtual camera position and the track position, the line segment may be pointed to the track position by the virtual camera position, and the direction of the directed line segment may be a shooting direction of the virtual camera on the virtual camera position, that is, a preset camera angle corresponding to the virtual camera position.

S202, determining a target shooting visual angle according to a preset shooting visual angle.

In one possible implementation, the game client may use a preset camera angle as a target camera angle; the game client may also modify the preset camera angle by using a preset modification rule to obtain the target camera angle, which is not specifically limited in the embodiment of the present invention.

Optionally, in the step S202, the process of determining the target image capturing angle according to the preset image capturing angle may further include: and adjusting the preset camera angle according to the position and the track position of the game role to obtain the target camera angle.

In the embodiment of the invention, the game client can adjust the preset camera angle according to the position relation among the virtual camera position, the game role position and the track position to obtain the target camera angle, and the game picture corresponding to the target camera angle can ensure that the game role is positioned in the center of the game picture.

Optionally, fig. 3 is a schematic flow chart of a game display control method provided by the present invention, and as shown in fig. 3, the process of adjusting the preset camera angle according to the position and the track position of the game character to obtain the target camera angle may further include:

s301, a first orientation of the virtual camera position to the position of the game role and a second orientation of the virtual camera position to the track position are determined respectively.

In some embodiments, a line connecting the virtual camera position and the position of the game character, the line pointing in a first orientation in the direction of the position of the game character; and the direction of the virtual camera position pointing to the track position is a second direction.

Fig. 4 is a schematic diagram illustrating a principle of adjusting a preset camera angle according to the present invention, as shown in fig. 4, including a preset character track formed by a plurality of preset coordinate points and a preset virtual camera track formed by a plurality of preset coordinate points.

The point A is the position of a game role, the point B is the position of a virtual camera, the point C is the track position, the point B is on the track of the preset role, and the point C is on the track of the preset virtual camera. And the point B is a coordinate point which is closest to the point A on the preset character track. M is the game character active area.

As shown in fig. 4, x is a line segment pointing from point B to point C, and the direction indicated by the arrow of line segment x may be a first orientation of the virtual camera position to the position of the game character; y is a line segment pointing from point B to point a, and the direction indicated by the arrow on line segment y may be a second orientation from the camera position to the track position.

S302, determining an included angle between the second orientation and the first orientation.

In embodiments of the invention, the game client may measure the angle between the second orientation and the first orientation, so that the angle between the second orientation and the first orientation may be determined.

As shown in fig. 4, the angle between the second orientation and the first orientation may be a.

And S303, if the included angle is smaller than or equal to the preset included angle, adjusting the position of the virtual camera to face the game role, so that the game role is positioned in the center of the game picture.

In a possible implementation manner, the game client may determine whether an included angle between the second orientation and the first orientation is smaller than or equal to a preset included angle, and when the included angle is smaller than or equal to the preset included angle, the game client may adjust the orientation of the virtual camera position to the second orientation, that is, the orientation of the virtual camera position to the track position, so that the game character is located in the center of the game picture.

In addition, when the included angle between the second orientation and the first orientation is larger than the preset included angle, the orientation of the virtual camera machine position is not changed, and the orientation can be the first orientation from the virtual camera machine position to the position of the game role.

It should be noted that the preset included angle may be 10 degrees or 12 degrees, and may also be determined according to actual requirements, which is not specifically limited in the embodiment of the present invention.

In the embodiment of the invention, the game client can also determine the orientation of the game role, determine the included angle between the orientation of the game role and the first orientation, and adjust the orientation of the virtual camera position towards the game role when the included angle between the orientation of the game role and the first orientation is less than or equal to the preset included angle.

Certainly, the game client can also determine the orientation of the game character, determine an included angle between the orientation of the game character and the second orientation, and adjust the orientation of the virtual camera position towards the game character when the included angle between the orientation of the game character and the second orientation is smaller than or equal to the preset included angle.

Optionally, fig. 5 is a schematic flow chart of a game display control method provided by the present invention, and as shown in fig. 5, the method provided by the embodiment of the present invention may further include:

s401, responding to the path searching operation, and determining a target path of the game character.

Wherein, the player can carry out the way searching operation to open the way searching function.

In some embodiments, a road-finding surface is preset at the game client, the game client may determine a starting point and an end point corresponding to the road-finding function, and determine a path with a shortest distance from the starting point to the end point on the road-finding surface by using an automatic road-finding algorithm, where the path may be a target path.

In addition, the road-finding surface may be a strip surface with depth, that is, in the game, the road-finding surface may be in a horizontal direction or may have a certain inclination angle.

S402, determining the distances between the target path and the plurality of character tracks respectively.

In one possible implementation, the game client may determine a target starting point closest to the starting point on the character track, determine a target ending point closest to the ending point on the character track, determine a plurality of character tracks including the target starting point and the target ending point simultaneously, and then determine a distance between the target path and each character track.

It should be noted that, when the target path and the plurality of character tracks are all straight lines and are parallel, the distance between the target path and each character track may be directly determined, and when the target path and the plurality of character tracks are all straight lines and are not parallel, or are curves, the game client may calculate the widest distance between the target path and each character track, or may calculate the distance between the target path and each character track at a preset position, which is not specifically limited in the embodiment of the present invention.

And S403, determining the target character track with the shortest distance to the target path according to the distance.

The game client may use the character track having the shortest distance to the target path as the target character track.

And S404, controlling the game role to move on the target role track.

In the embodiment of the invention, the game client can control the game role to move from the current position to the target starting point and then move on the target role track until reaching the target end point, thereby completing the automatic path finding of the game role.

It should be noted that the target character track may be located on the road-seeking surface.

In the embodiment of the invention, if the path searching function is started, the path searching function is adopted, the target path of the game role at the game client side is determined, a plurality of role tracks which simultaneously comprise the target starting point and the target end point are determined, and then a role track with the shortest distance is determined from the plurality of role tracks to be used as the target role track.

In summary, the method provided in the embodiments of the present invention determines the target path of the game character in response to the routing operation, determines the distances between the target path and the plurality of character tracks, and determines the target character track having the shortest distance to the target path according to the distances, thereby controlling the game character to move on the target character track. The controllability of the game picture is improved when the path is automatically found, so that the displayed game picture effect is higher in the automatic path finding process, and the game experience of the player is improved.

Optionally, fig. 6 is a schematic flow chart of a game display control method provided by the present invention, and as shown in fig. 6, the method provided by the embodiment of the present invention may further include:

s501, responding to the path searching operation, and determining a target scene of the game role.

Wherein, the target scene comprises a plurality of paths.

In some embodiments, a road-finding surface is preset at the game client, the game client may determine a starting point and an end point corresponding to the road-finding function, and determine multiple paths that can reach the end point from the starting point on the road-finding surface by using an automatic road-finding algorithm, that is, a target road surface of the game character, and then may determine a target scene of the game character, where the target scene of the game character may include the target road surface.

And S502, according to the distance between each path and the track position on the preset role track.

In the embodiment of the invention, the game client can determine the track position on the preset role track and the distance between the track position and the preset position of each path. For example, the game client may determine the vertical distance of the trajectory position to each path.

S503, according to the distance, determining the path with the shortest distance from the multiple paths as a target path.

And S504, controlling the game role to move on the target path.

In the embodiment of the invention, the game client can control the game role to move from the current position to the starting point of the target path, and then control the game role to move on the target path until the ending point is reached, and the automatic path finding is completed.

It should be noted that the game client may also determine the automatic path finding path based on the preset role track in other manners, which is not specifically limited in the embodiment of the present invention.

The following describes a device, a game client, a storage medium, and the like for executing the display control method of the game provided by the present application, and specific implementation processes and technical effects thereof are referred to above, and will not be described again below.

Fig. 7 is a schematic structural diagram of a display control device of a game according to the present invention, as shown in fig. 7, the device may include:

an obtaining module 701, configured to obtain a position of a game role;

a first determining module 702, configured to determine a track position corresponding to a game role according to a position of the game role and a preset role track;

a second determining module 703, configured to determine, according to the track position and a preset virtual camera track, a virtual camera position corresponding to the track position, where the virtual camera is used to present a game picture;

a third determining module 704, configured to determine a target camera angle according to the virtual camera position;

the display module 705 is configured to present a game picture corresponding to the target camera angle according to the target camera angle.

Optionally, the third determining module 704 is further configured to determine, according to the virtual camera position, a preset camera view angle corresponding to the virtual camera position by using a preset correspondence between the virtual camera position and the camera view angle; and determining a target camera angle according to a preset camera angle.

Optionally, the third determining module 704 is further configured to adjust a preset camera angle according to the position of the game role and the track position, so as to obtain a target camera angle.

Optionally, the third determining module 704 is further configured to determine a first orientation of the virtual camera position to the position of the game character and a second orientation of the virtual camera position to the track position, respectively; determining an included angle between the second orientation and the first orientation; if the included angle is smaller than or equal to the preset included angle, the position of the virtual camera is adjusted to face the game role, and the game role is located in the center of the game picture.

Optionally, the apparatus further comprises:

a fourth determining module, configured to determine a target path of the game character in response to the path finding operation; respectively determining the distances between the target path and the plurality of character tracks; determining a target role track with the shortest distance to the target path according to the distance;

the first control module is used for controlling the game role to move on the target role track.

Optionally, the apparatus further comprises:

the fifth determining module is used for responding to the path searching operation and determining the target scene of the game role; the target scene comprises a plurality of paths; determining the distance between each path and the track position on the preset role track; determining a path with the shortest distance as a target path from the multiple paths according to the distance;

and the second control module is used for controlling the game role to move on the target path.

The above-mentioned apparatus is used for executing the method provided by the foregoing embodiment, and the implementation principle and technical effect are similar, which are not described herein again.

These above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), among others. For another example, when one of the above modules is implemented in the form of a processing element scheduler code, the processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).

Fig. 8 is a schematic structural diagram of an electronic device provided in the present invention, where the electronic device includes: memory 801, processor 802. The memory 801 and the processor 802 are connected by a bus.

The memory 801 is used for storing programs, and the processor 802 calls the programs stored in the memory 801 to execute the above-mentioned method embodiments. The specific implementation and technical effects are similar, and are not described herein again.

Optionally, the invention also provides a program product, for example a computer-readable storage medium, comprising a program which, when being executed by a processor, is adapted to carry out the above-mentioned method embodiments.

In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.

The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.

In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.

The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.

The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

16页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:确定虚拟对象行为及托管虚拟对象行为的方法

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!

技术分类