CN117101143A - Virtual object control method, virtual object control device, storage medium, and apparatus - Google Patents

Virtual object control method, virtual object control device, storage medium, and apparatus Download PDF

Info

Publication number
CN117101143A
CN117101143A CN202311134772.XA CN202311134772A CN117101143A CN 117101143 A CN117101143 A CN 117101143A CN 202311134772 A CN202311134772 A CN 202311134772A CN 117101143 A CN117101143 A CN 117101143A
Authority
CN
China
Prior art keywords
path
travel
sub
virtual game
initial position
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311134772.XA
Other languages
Chinese (zh)
Inventor
许展豪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202311134772.XA priority Critical patent/CN117101143A/en
Publication of CN117101143A publication Critical patent/CN117101143A/en
Pending legal-status Critical Current

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/55Controlling game characters or game objects based on the game progress
    • A63F13/56Computing the motion of game characters with respect to other game characters, game objects or elements of the game scene, e.g. for simulating the behaviour of a group of virtual soldiers or for path finding
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/80Special adaptations for executing a specific game genre or game mode
    • A63F13/803Driving vehicles or craft, e.g. cars, airplanes, ships, robots or tanks
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/80Special adaptations for executing a specific game genre or game mode
    • A63F13/822Strategy games; Role-playing games
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/80Special adaptations for executing a specific game genre or game mode
    • A63F13/837Shooting of targets
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/30Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by output arrangements for receiving control signals generated by the game device
    • A63F2300/308Details of the user interface
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/60Methods for processing data by generating or executing the game program
    • A63F2300/65Methods for processing data by generating or executing the game program for computing the condition of a game character
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/80Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game specially adapted for executing a specific type of game
    • A63F2300/8017Driving on land or water; Flying
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/80Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game specially adapted for executing a specific type of game
    • A63F2300/807Role playing or strategy games
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/80Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game specially adapted for executing a specific type of game
    • A63F2300/8076Shooting

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The present disclosure relates to the field of game technologies, and in particular, to a virtual object control method, a virtual object control device, a storage medium, and a device, where the method includes: constructing a travel path from the initial position to the target position in response to a path planning operation for the virtual game object; wherein the travel path comprises at least one intermediate position; the virtual game object is controlled to sequentially pass through the initial position and at least one intermediate position to reach the target position according to the travelling path, and the virtual game object is controlled to execute the attack action when the initial position, the intermediate position and the target position are reached. Through the technical scheme of the embodiment of the disclosure, the problem that the operation is complicated when a plurality of game points are attacked in the related technology can be solved.

Description

Virtual object control method, virtual object control device, storage medium, and apparatus
Technical Field
The present disclosure relates to the field of game technology, and in particular, to a virtual object control method, a virtual object control device, a computer-readable storage medium, and an electronic apparatus.
Background
With the development of terminal devices and gaming industry, a large number of games with different themes are emerging to meet the needs of players. In some games, a game virtual object may be controlled to attack a game point within a virtual scene.
In some scenarios, it is necessary to continuously attack a plurality of game points, and a player may select one game point to attack, and select another game point to attack after the attack is completed, and sequentially attack the plurality of game points.
However, in the scheme in the related art, the player needs to pay attention to the attack situation of the current game point at any time so as to continue to attack the next game point, which may cause the player to ignore other conditions in the game and cause the game to lose the benefit, and in addition, the player needs to perform multiple operations to attack multiple game points, so that the operation is more complicated.
It should be noted that the information disclosed in the above background section is only for enhancing understanding of the background of the present disclosure and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The disclosure aims to provide a virtual object control method and device, a computer readable storage medium and electronic equipment, which can solve the problem of complex operation when a plurality of game points are attacked in the related art.
Other features and advantages of the present disclosure will be apparent from the following detailed description, or may be learned in part by the practice of the disclosure.
According to a first aspect of the present disclosure, there is provided a virtual object control method, characterized in that at least a part of a virtual game scene and at least one virtual game object located in the virtual game scene are displayed through a graphical user interface of a terminal device, the virtual game object having an initial position, the virtual game object being controlled by the terminal device, the method comprising: constructing a travel path from the initial position to the target position in response to a path planning operation for the virtual game object; wherein the travel path comprises at least one intermediate position; the virtual game object is controlled to sequentially pass through the initial position and at least one intermediate position to reach the target position according to the travelling path, and the virtual game object is controlled to execute the attack action when the initial position, the intermediate position and the target position are reached.
According to a second aspect of the present disclosure, there is provided a virtual object control apparatus characterized in that at least a part of a virtual game scene and at least one virtual game object located in the virtual game scene are displayed through a graphical user interface of a terminal device, the virtual game object having an initial position, the virtual game object being controlled by the terminal device, the apparatus comprising: a travel path construction module for constructing a travel path from an initial position to a target position in response to a path planning operation for the virtual game object; wherein the travel path comprises at least one intermediate position; and the attack action execution module is used for controlling the virtual game object to sequentially pass through the initial position and at least one middle position to reach the target position according to the travelling path and controlling the virtual game object to execute the attack action when reaching the initial position, the middle position and the target position.
According to a third aspect of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the virtual object control method of the first aspect as in the above-described embodiments.
According to a fourth aspect of the present disclosure, there is provided an electronic device comprising:
one or more processors; and
and a memory for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the virtual object control method as in the first aspect of the above embodiments.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects:
in the virtual object control method provided by the embodiment of the present disclosure, a travel path from an initial position to a target position may be constructed in response to a path planning operation for a virtual game object, the virtual game object is controlled to sequentially pass through the initial position, at least one intermediate position to reach the target position according to the travel path, and the virtual game object is controlled to perform an attack action when reaching the initial position, the intermediate position, and the target position. On the one hand, after the attack on one position is completed, the next position can be automatically attacked, the player does not need to pay attention to the attack condition at any time, and the problem that the player ignores other conditions in the game to cause disuse in the game is avoided; on the other hand, the game points can be attacked without multiple operations, the operation is simpler, and the operation cost of a player is reduced.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure. It will be apparent to those of ordinary skill in the art that the drawings in the following description are merely examples of the disclosure and that other drawings may be derived from them without undue effort. In the drawings:
FIG. 1 schematically illustrates a flow chart of a virtual object control method in an exemplary embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow chart of determining a travel path from a first travel sub-path and a second travel sub-path in an exemplary embodiment of the present disclosure;
FIG. 3 schematically illustrates a schematic diagram of determining a travel path from a first travel sub-path and a second travel sub-path in an exemplary embodiment of the present disclosure;
FIG. 4 schematically illustrates a flow chart of determining a travel path from a third travel sub-path, at least one fourth travel sub-path, and a fifth travel sub-path in an exemplary embodiment of the present disclosure;
FIG. 5 schematically illustrates a schematic diagram of determining a travel path from a third travel sub-path, a fourth travel sub-path, and a fifth travel sub-path in an exemplary embodiment of the present disclosure;
FIG. 6 schematically illustrates a flow chart of constructing a next travel sub-path that is continuous with a current travel sub-path in response to a path planning sub-operation identified for an operation in an exemplary embodiment of the present disclosure;
FIG. 7 schematically illustrates a schematic diagram of constructing a next travel sub-path that is continuous with a current travel sub-path in response to a path planning sub-operation identified for an operation in an exemplary embodiment of the present disclosure;
FIG. 8 schematically illustrates a schematic diagram of controlling the adjustment of the game view angle if the path planning operation reaches the edge of the graphical user interface in an exemplary embodiment of the present disclosure;
fig. 9 schematically illustrates a composition diagram of a virtual object control apparatus in an exemplary embodiment of the present disclosure;
fig. 10 schematically illustrates a structural schematic diagram of a computer system suitable for use in implementing the electronic device of the exemplary embodiments of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the disclosed aspects may be practiced without one or more of the specific details, or with other methods, components, devices, steps, etc. In other instances, well-known structures, methods, devices, implementations, materials, or operations are not shown or described in detail to avoid obscuring aspects of the disclosure.
The block diagrams depicted in the figures are merely functional entities and do not necessarily correspond to physically separate entities. That is, these functional entities may be implemented in software, or in one or more software-hardened modules, or in different networks and/or processor devices and/or microcontroller devices.
With the development of terminal devices and gaming industry, a large number of games with different themes are emerging to meet the needs of players. In some games, a game virtual object may be controlled to attack a game point within a virtual scene.
In some scenarios, it is necessary to continuously attack a plurality of game points, and a player may select one game point to attack, and select another game point to attack after the attack is completed, and sequentially attack the plurality of game points.
However, in the scheme in the related art, the player needs to pay attention to the attack situation of the current game point at any time so as to continue to attack the next game point, which may cause the player to ignore other conditions in the game and cause the game to lose the benefit, and in addition, the player needs to perform multiple operations to attack multiple game points, so that the operation is more complicated.
Referring to fig. 1, a flowchart illustrating a virtual object control method in the present exemplary embodiment may include the steps of:
step S110: constructing a travel path from the initial position to the target position in response to a path planning operation for the virtual game object; wherein the travel path comprises at least one intermediate position;
step S120: the virtual game object is controlled to sequentially pass through the initial position and at least one intermediate position to reach the target position according to the travelling path, and the virtual game object is controlled to execute the attack action when the initial position, the intermediate position and the target position are reached.
In the virtual object control method provided by the embodiment of the present disclosure, a travel path from an initial position to a target position may be constructed in response to a path planning operation for a virtual game object, the virtual game object is controlled to sequentially pass through the initial position, at least one intermediate position to reach the target position according to the travel path, and the virtual game object is controlled to perform an attack action when reaching the initial position, the intermediate position, and the target position. On the one hand, after the attack on one position is completed, the next position can be automatically attacked, the player does not need to pay attention to the attack condition at any time, and the problem that the player ignores other conditions in the game to cause disuse in the game is avoided; on the other hand, the game points can be attacked without multiple operations, the operation is simpler, and the operation cost of a player is reduced.
The virtual object control method in one embodiment of the present disclosure may be executed on a local terminal device or a server. When the virtual object control method runs on a server, the method can be realized and executed based on a cloud interaction system, wherein the cloud interaction system comprises the server and client equipment.
In an alternative embodiment, various cloud applications may be run under the cloud interaction system, for example: and (5) cloud game. Taking cloud game as an example, cloud game refers to a game mode based on cloud computing. In the cloud game operation mode, the game program operation main body and the game picture presentation main body are separated, the storage and operation of the virtual object control method are completed on the cloud game server, and the client device is used for receiving and sending data and presenting the game picture, for example, the client device can be a display device with a data transmission function close to a user side, such as a mobile terminal, a television, a computer, a palm computer and the like; but the cloud game server which performs information processing is a cloud. When playing the game, the player operates the client device to send an operation instruction to the cloud game server, the cloud game server runs the game according to the operation instruction, codes and compresses data such as game pictures and the like, returns the data to the client device through a network, and finally decodes the data through the client device and outputs the game pictures.
In an alternative embodiment, taking a game as an example, the local terminal device stores a game program and is used to present a game screen. The local terminal device is used for interacting with the player through the graphical user interface, namely, conventionally downloading and installing the game program through the electronic device and running. The manner in which the local terminal device provides the graphical user interface to the player may include a variety of ways, for example, it may be rendered for display on a display screen of the terminal, or provided to the player by holographic projection. For example, the local terminal device may include a display screen for presenting a graphical user interface including game visuals, and a processor for running the game, generating the graphical user interface, and controlling the display of the graphical user interface on the display screen.
In a possible implementation manner, the embodiment of the present invention provides a virtual object control method, and a graphical user interface is provided through a terminal device, where the terminal device may be the aforementioned local terminal device or the aforementioned client device in the cloud interaction system.
In an example embodiment of the present disclosure, the game in the scheme of the present disclosure may include various types of games, for example, TPS (third person perspective shooting), FPS (first person perspective shooting), RPG (role playing game), ACT (action game), SLG (strategy game), FTG (fighting game), SPG (sports competition game), RCG (racing game), AVG (adventure game), etc., and the scheme of virtual object control of the present disclosure may be applied as long as the scenario involving perspective adjustment is concerned. Note that the present disclosure is not particularly limited as to the type of game.
Next, steps S110 to S120 of the virtual object control method in the present exemplary embodiment will be described in more detail with reference to fig. 1 and the embodiment.
Step S110, constructing a travel path from an initial position to a target position in response to a path planning operation for the virtual game object;
in one example embodiment of the present disclosure, a travel path from an initial location to a target location may be constructed in response to a path planning operation for a virtual game object. Specifically, at least part of the virtual game scene and at least one virtual game object located in the virtual game scene are displayed through a graphical user interface of the terminal equipment, the virtual game object has an initial position, the virtual game object is controlled by the terminal equipment, a path planning operation for the virtual game object can be used for constructing a travel path for the virtual game object, after the travel path planning is completed, the virtual game object can move according to the travel path, and attack actions are executed on all positions on the travel path.
The path planning operation for the virtual game object may include an operation acting on the graphical user interface, and the first operation may include a touch operation, specifically, the touch operation may include a sliding touch operation, a pressing touch operation, a gesture touch operation, a long-press touch operation, a clicking touch operation, a dragging touch operation, and the like. It should be noted that the present disclosure is not limited in particular to a specific form of the path planning operation for the virtual game object.
In one example embodiment of the present disclosure, a travel path from an initial position to a target position may be constructed. Wherein the travel path includes at least one intermediate position. Specifically, after determining the initial position of the virtual game object, at least one intermediate position and a target position may be determined on the graphical user interface, and a plurality of positions (initial position, intermediate position, target position) may be sequentially connected to obtain a travel path from the initial position to the target position.
For example, the path planning operation may be a click touch operation, after the initial position of the virtual game object is obtained, the intermediate position may be determined on the gui according to the click touch operation, then the target position is determined on the gui according to the click touch operation, and then the positions are connected to obtain the travel path from the initial position to the target position.
In one example embodiment of the present disclosure, a travel path from an initial position to a target position may be constructed. Specifically, at least one intermediate position and a target position may be determined according to a path planning operation.
For example, the path planning operation may be a sliding touch operation, starting from an initial position, taking a sliding position corresponding to the sliding touch operation as an intermediate position after a preset sliding time period, then starting to execute the sliding touch operation from the intermediate position, taking the sliding position corresponding to the sliding touch operation as a target position after the preset sliding time period, and taking a sliding track corresponding to the sliding touch operation as a travel path from the initial position to the target position.
The present disclosure is not limited to a specific manner of constructing the travel path from the initial position to the target position.
Step S120, controlling the virtual game object to sequentially pass through the initial position and at least one intermediate position according to the travel path to reach the target position, and controlling the virtual game object to execute the attack action when reaching the initial position, the intermediate position and the target position.
In an example embodiment of the present disclosure, after the travel path is obtained through the above steps, the virtual game object may be controlled to sequentially pass through the initial position, at least one intermediate position, and reach the target position according to the travel path, and the virtual game object may be controlled to perform the attack action when reaching the initial position, the intermediate position, and the target position. Specifically, the travel path constructed by the steps has a travel sequence, and the travel sequence can be used for indicating the sequence of the virtual game object passing through each position (the initial position, the intermediate position and the target position) in the travel path, and according to the travel sequence, the virtual game object can be controlled to sequentially pass through the positions and at least one intermediate position to reach the target position according to the travel path, and when reaching each position, the virtual game object is controlled to execute the attack action.
Specifically, when each location is reached, the virtual game object may be controlled to execute an attack action, which may include executing an attack action on other virtual game objects in the location, which may include executing an attack action on a virtual unit (e.g., a virtual building) in the location, and which may include executing an attack action on a virtual unit in the location and then occupying the virtual unit.
Note that, the present disclosure is not limited to a specific object that controls the virtual game object to execute the attack action.
In one example embodiment of the present disclosure, after each location controls the virtual game object to perform an attack action, the virtual game object may be controlled to proceed to the next location, or the virtual game object may stop performing a game action when the current location of the virtual game object is the target location.
Further, controlling the virtual game object to execute the attack action when reaching each location may include realizing the attack target at the location by executing the attack action (for example, defeating or occupying all other virtual game objects at the location with the corresponding game points), and further controlling the virtual game object to go to the next location (the current location is not the target location) or stopping executing the game action (the current location is the target location).
Alternatively, controlling the virtual game object to perform the attack action when reaching each location may include controlling the virtual game object to go to the next location (current location is not the target location) or stopping performing the game action (current location is the target location) after the location has been controlled for a preset time of attack by the virtual game object.
The present disclosure is not limited to a specific condition for controlling the end of the attack performed by the virtual game object at each position.
In one example embodiment of the present disclosure, when one intermediate position is included in the travel path, a first travel sub-path from the initial position to the intermediate position may be constructed, a second travel sub-path from the intermediate position to the target position may be constructed, and the travel path may be determined according to the first travel sub-path and the second travel sub-path. Referring to fig. 2, determining a travel path according to a first travel sub-path and a second travel sub-path may include the following steps S210 to S230:
step S210, when the travel path comprises an intermediate position, constructing a first travel sub-path from the initial position to the intermediate position;
in one example embodiment of the present disclosure, after determining the initial position of the virtual game object through the above-described steps, if the travel path includes only one intermediate position, a first travel sub-path from the initial position to the intermediate position may be constructed. In particular, the intermediate position may be determined in the graphical user interface by a path planning operation, and the first travel sub-path from the initial position to the intermediate position may be determined by the initial position and the intermediate position.
For example, the path planning operation is a sliding touch operation, the sliding touch operation may be performed from the initial position, the intermediate position is determined by the sliding touch operation, and then a sliding track corresponding to the sliding touch operation between the initial position and the intermediate position is used as a first travel sub-path from the initial position to the intermediate position.
For example, the path planning operation is a click touch operation, the intermediate position may be determined by the click touch operation, and then the initial position and the intermediate position are connected to obtain a first travel sub-path from the initial position to the intermediate position.
It should be noted that, the present disclosure is not limited in particular to a specific manner of constructing the first travel sub-path from the initial position to the intermediate position.
Step S220, constructing a second traveling sub-path from the middle position to the target position;
in one example embodiment of the present disclosure, after determining the intermediate position of the virtual game object through the above-described steps, a second travel sub-path from the intermediate position to the target position may be constructed. Specifically, the target position may be determined in the graphical user interface by a path planning operation, and the second travel sub-path from the intermediate position to the target position may be determined by the intermediate position and the target position.
For example, the path planning operation is a sliding touch operation, the sliding touch operation may be performed from the intermediate position, the target position is determined by the sliding touch operation, and then a sliding track corresponding to the sliding touch operation between the intermediate position and the target position is used as a second travelling sub-path from the intermediate position to the target position.
For example, the path planning operation is a click touch operation, the target position may be determined by the click touch operation, and then the intermediate position and the target position are connected to obtain a second travel sub-path from the intermediate position to the target position.
It should be noted that the present disclosure is not limited in particular to the specific manner of constructing the second travel sub-path from the intermediate position to the target position.
Step S230, determining a travel path according to the first travel sub-path and the second travel sub-path.
In one example embodiment of the present disclosure, after the first travel sub-path and the second travel sub-path are derived, the travel path may be determined from the first travel sub-path and the second travel sub-path. Specifically, the first travel sub-path and the second travel sub-path may be connected to obtain a travel path.
For example, as shown in fig. 3, a first travel sub-path 311 from the initial position 301 to the intermediate position 302 may be constructed, and a second travel sub-path 312 from the intermediate position 302 to the target position 303 may be constructed, and a travel path may be determined from the first travel sub-path 311 and the second travel sub-path 312.
The specific manner of determining the travel path according to the first travel sub-path and the second travel sub-path is not particularly limited in this disclosure.
Through the above steps S210 to S230, when one intermediate position is included in the travel path, a first travel sub-path from the initial position to the intermediate position may be constructed, a second travel sub-path from the intermediate position to the target position may be constructed, and the travel path may be determined based on the first travel sub-path and the second travel sub-path.
In one example embodiment of the present disclosure, when a plurality of intermediate positions are included in the travel path, a third travel sub-path from the initial position to the first intermediate position may be constructed, a fourth travel sub-path between at least one intermediate position is sequentially constructed in a selection order of the intermediate positions, a fifth travel sub-path from the last intermediate position to the target position is constructed, and the travel path is determined according to the third travel sub-path, the at least one fourth travel sub-path, and the fifth travel sub-path. Referring to fig. 4, determining a travel path according to the third travel sub-path, at least one fourth travel sub-path, and a fifth travel sub-path may include the following steps S410 to S440:
Step S410, when the travel path comprises a plurality of intermediate positions, constructing a third travel sub-path from the initial position to the first intermediate position;
in one example embodiment of the present disclosure, after determining the initial position of the virtual game object through the above-described steps, if the travel path includes a plurality of intermediate positions, a third travel sub-path from the initial position to the intermediate positions may be constructed. Specifically, a first intermediate position may be determined in the graphical user interface by a path planning operation, and a third travel sub-path from the initial position to the first intermediate position may be determined by the initial position and the first intermediate position.
For example, the path planning operation is a sliding touch operation, the sliding touch operation may be performed from the initial position, the first intermediate position is determined by the sliding touch operation, and then a sliding track corresponding to the sliding touch operation between the initial position and the first intermediate position is used as a third travel sub-path from the initial position to the first intermediate position.
For example, the path planning operation is a click touch operation, a first intermediate position may be determined by the click touch operation, and then the initial position and the first intermediate position are connected to obtain a third travel sub-path from the initial position to the first intermediate position.
It should be noted that the specific manner of constructing the third travel sub-path from the initial position to the first intermediate position is not particularly limited in this disclosure.
Step S420, a fourth advancing sub-path between at least one intermediate position is sequentially constructed according to the selection sequence of the intermediate positions;
in one example embodiment of the present disclosure, after determining the third travel sub-path from the initial position to the first intermediate position, the fourth travel sub-path between the at least one intermediate position may be sequentially constructed in a selection order of the intermediate positions. Specifically, since the travel path includes a plurality of intermediate positions, the plurality of intermediate positions have a selection order, and the fourth travel sub-path between at least one intermediate position may be sequentially constructed in accordance with the selection order of the intermediate positions.
For example, the path planning operation is a sliding touch operation, the sliding touch operation may be performed from the first intermediate position, the second intermediate position is determined by the sliding touch operation, the sliding track corresponding to the sliding touch operation between the first intermediate position and the second intermediate position is used as a fourth travel sub-path from the first intermediate position to the second intermediate position, the third intermediate position is determined by the sliding touch operation, the sliding track corresponding to the sliding touch operation between the second intermediate position and the third intermediate position is used as a fourth travel sub-path from the second intermediate position to the third intermediate position, and so on, to construct the fourth travel sub-path between the at least one intermediate position.
For example, after determining the first intermediate position, the path planning operation is a click touch operation, the second intermediate position may be determined by the click touch operation, the first intermediate position and the second intermediate position may be connected to obtain a fourth travel sub-path from the first intermediate position to the second intermediate position, the third intermediate position may be determined by the click touch operation, the second intermediate position and the third intermediate position may be connected to obtain a fourth travel sub-path from the second intermediate position to the third intermediate position, and so on, to construct a fourth travel sub-path between at least one intermediate position.
The present disclosure is not limited to a specific manner of sequentially constructing the fourth travel sub-path between at least one intermediate position according to the selection order of the intermediate positions.
Step S430, constructing a fifth travel sub-path from the last intermediate position to the target position;
in one example embodiment of the present disclosure, after the last intermediate position of the virtual game object is determined through the above steps, a fifth travel sub-path from the last intermediate position to the target position may be performed. Specifically, the target position may be determined in the graphical user interface by a path planning operation, and the second travel sub-path from the last intermediate position to the target position may be determined by the last intermediate position and the target position.
For example, the path planning operation is a sliding touch operation, the sliding touch operation may be performed from the last intermediate position, the target position is determined by the sliding touch operation, and then the sliding track corresponding to the sliding touch operation between the last intermediate position and the target position is used as the fifth travel sub-path from the intermediate position to the target position.
For example, the path planning operation is a click touch operation, the target position may be determined by the click touch operation, and then the last intermediate position is connected with the target position to obtain a fifth travel sub-path from the last intermediate position to the target position.
It should be noted that, the present disclosure is not limited in particular to the specific manner of constructing the fifth traveling sub-path from the last intermediate position to the target position.
Step S440, determining a travel path according to the third travel sub-path, the at least one fourth travel sub-path and the fifth travel sub-path.
In one example embodiment of the present disclosure, after the third, fourth, and fifth travel sub-paths are obtained through the above steps, the travel path may be determined according to the third, at least one fourth, and fifth travel sub-paths. Specifically, the third travel sub-path, the plurality of fourth travel sub-paths, and the fifth travel sub-path may be connected to obtain the travel path.
For example, as shown in fig. 5, a third travel sub-path 511 from the initial position 501 to the first intermediate position 502, a fourth travel sub-path 512 from the first intermediate position 502 to the second intermediate position 503, and a fifth travel sub-path 513 from the second intermediate position 503 to the target position 504 may be constructed, and a travel path may be determined according to the third travel sub-path 511, the fourth travel sub-path 512, and the fifth travel sub-path 513.
Through the above steps S410 to S440, when a plurality of intermediate positions are included in the travel path, a third travel sub-path from the initial position to the first intermediate position is constructed, a fourth travel sub-path between at least one intermediate position is sequentially constructed in the order of selection of intermediate positions, a fifth travel sub-path from the last intermediate position to the target position is constructed, and a travel path is determined from the third travel sub-path, the at least one fourth travel sub-path, and the fifth travel sub-path.
In one example embodiment of the present disclosure, an operation identifier corresponding to a path planning sub-operation may be displayed in a graphical user interface in the process of constructing a travel sub-path, the current travel sub-path is constructed when the path planning sub-operation reaches an end position of the current travel sub-path, and a next travel sub-path continuous with the current travel sub-path is constructed in response to the path planning sub-operation for the operation identifier. Referring to fig. 6, in response to a path planning sub-operation for an operation identification, constructing a next travel sub-path continuous with a current travel sub-path may include the following steps S610 to S630:
Step S610, in the process of constructing the travel sub-path, displaying operation identifiers corresponding to path planning sub-operations in a graphical user interface;
in one example embodiment of the present disclosure, a travel path from an initial position to a target position may be constructed by a path planning operation, the travel path including a plurality of travel sub-paths. Specifically, when the travel path includes an intermediate position, the travel path includes a first travel sub-path and a second travel sub-path; when the travel path includes a plurality of intermediate positions, the travel path includes a third travel sub-path, at least one fourth travel sub-path, and a fifth travel sub-path. The path planning operation includes a plurality of path planning sub-operations, each of the plurality of travel sub-paths having a corresponding path planning sub-operation.
Specifically, in the process of constructing the travel sub-path, an operation identifier corresponding to the path planning sub-operation may be displayed in the graphical user interface. The operation identifier may be used to indicate an operation location of the path planning sub-operation. The operation identifier corresponding to the path planning sub-operation can be at any position on the graphical user interface, and the operation identifier can be in any shape.
For example, an operation identifier corresponding to the path planning sub-operation may be displayed at an operation position corresponding to the path planning sub-operation, where the operation identifier may be in a ring shape.
Step S620, when the path planning sub-operation reaches the end position of the current traveling sub-path, constructing the current traveling sub-path;
in one example embodiment of the present disclosure, the current travel sub-path may be constructed when the path planning sub-operation reaches the end position of the current travel sub-path. Specifically, each path planning sub-operation corresponds to a travel sub-path, and when the travel sub-path is constructed by the path planning sub-operation, the path planning sub-operation indicates that the end point of the current travel sub-path has been reached when the path planning sub-operation reaches the end position of the current travel sub-path, and at this time, the current travel sub-path can be constructed.
Specifically, the path planning sub-operation may include a sliding touch operation, and the path planning sub-operation reaching the end position of the current travel sub-path may include the operation position corresponding to the sliding touch operation reaching the end position of the current travel sub-path; the path planning sub-operation may further include a click touch operation, and the path planning sub-operation reaching the end position of the current travel sub-path may further include that an operation position corresponding to the click touch operation is located at the end position of the current travel sub-path.
The specific form of the path planning sub-operation reaching the end position of the current travel sub-path is not particularly limited in this disclosure.
In step S630, in response to the path planning sub-operation identified for the operation, a next travel sub-path continuous with the current travel sub-path is constructed.
In one example embodiment of the present disclosure, the operation identifier may be used to indicate an operation position of the path planning sub-operation, and a next travel sub-path that is continuous with the current travel sub-path and corresponds to the path planning sub-operation may be constructed by the path planning sub-operation acting on the operation identifier.
For example, as shown in fig. 7, where the operation identifier is a circle 703, the current travel sub-path 701 may be constructed when the path planning sub-operation reaches the end position 702 of the current travel sub-path 701, and the next travel sub-path 704 continuous with the current travel sub-path may be constructed in response to the path planning sub-operation for the operation identifier 703.
In one example embodiment of the present disclosure, in response to a path planning sub-operation identified for an operation, the path planning sub-operation corresponding to the current travel sub-path is ended. Specifically, when the path planning sub-operation for constructing the current travel sub-path reaches the end position of the current travel sub-path, the current travel sub-path is constructed, the path planning sub-operation corresponds to the operation identifier, and when the path planning sub-operation for the operation identifier is received, the next travel sub-path continuous with the current travel sub-path can be constructed, at this time, the path planning sub-operation for constructing the current travel sub-path can be ended.
For example, a player may construct a current travel sub-path by using a right finger in a sliding touch manner, when the current travel sub-path is constructed, a sliding touch operation is continuously performed, when the sliding touch operation reaches an end position of the current travel sub-path, the current travel sub-path is constructed, and the sliding touch operation corresponds to an operation identifier, at this time, the player cannot release the right finger yet, at this time, the player may construct a next travel sub-path through a sliding touch operation triggered by a left finger for the operation identifier, at this time, a path planning sub-operation for constructing the current travel sub-path may be ended, i.e., the player may release the right finger.
Through the above steps S610 to S630, in the process of constructing the travel sub-path, an operation identifier corresponding to the path planning sub-operation is displayed in the graphical user interface, when the path planning sub-operation reaches the end position of the current travel sub-path, the current travel sub-path is constructed, and in response to the path planning sub-operation for the operation identifier, the next travel sub-path continuous with the current travel sub-path is constructed.
In one example embodiment of the present disclosure, when constructing a travel path from an initial position to a target position, if a path planning operation reaches an edge of a graphical user interface, a game view angle is controlled to be adjusted. Specifically, in the process of constructing the travel path, if the path planning operation reaches the edge of the graphical user interface, the player needs to continue extending the travel path to other virtual positions outside the virtual game scene corresponding to the current game view angle, and at this time, the game view angle can be controlled to be adjusted, so that the virtual game scene is adjusted.
For example, when the path planning operation reaches the top edge of the graphical user interface, the game view is controlled to adjust upwards.
For example, as shown in fig. 8, the gui 800 includes a plurality of virtual units 802, and after the path planning operation 801 (sliding touch operation) reaches the edge of the gui 800, the game view angle is controlled to be adjusted, so as to obtain a gui 803 after the reconciliation game view angle.
Further, when the travel path from the initial position to the target position is constructed, if the path planning operation reaches the edge of the graphical user interface, the game view angle can be controlled to be adjusted according to the direction of the path planning operation. For example, the path planning operation is a sliding touch operation, and the game view angle can be controlled to be adjusted according to the direction of the sliding touch operation when reaching the edge of the graphical user interface.
It should be noted that, the specific manner of controlling the game viewing angle to be adjusted in the present disclosure is not particularly limited.
In one example embodiment of the present disclosure, the virtual game object may be controlled to sequentially pass through the initial position, the at least one intermediate position, and the target position in accordance with the travel path in response to an end of the path planning operation. Specifically, after the path planning operation is finished, it may indicate that the travel path from the initial position to the target position has been constructed, and at this time, the virtual game object may be controlled to sequentially pass through the initial position and at least one intermediate position to reach the target position according to the travel path.
For example, the path planning operation is a sliding touch operation, and when the sliding touch operation is finished (e.g. the finger leaves the screen), the virtual game object can be controlled to sequentially pass through the initial position and at least one intermediate position to reach the target position according to the travelling path.
Note that, the end mode of the path planning operation is not particularly limited in this disclosure.
In the virtual object control method provided by the embodiment of the present disclosure, a travel path from an initial position to a target position may be constructed in response to a path planning operation for a virtual game object, the virtual game object is controlled to sequentially pass through the initial position, at least one intermediate position to reach the target position according to the travel path, and the virtual game object is controlled to perform an attack action when reaching the initial position, the intermediate position, and the target position. On the one hand, after the attack on one position is completed, the next position can be automatically attacked, the player does not need to pay attention to the attack condition at any time, and the problem that the player ignores other conditions in the game to cause disuse in the game is avoided; on the other hand, the game points can be attacked without multiple operations, the operation is simpler, and the operation cost of a player is reduced.
It is noted that the above-described figures are merely schematic illustrations of processes involved in a method according to exemplary embodiments of the present disclosure, and are not intended to be limiting. It will be readily appreciated that the processes shown in the above figures do not indicate or limit the temporal order of these processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, for example, among a plurality of modules.
In addition, in an exemplary embodiment of the present disclosure, a virtual object control apparatus is also provided. Referring to fig. 9, a virtual object control apparatus 900 includes: a travel path construction module 910 and an attack action execution module 920.
The travel path construction module is used for constructing a travel path from an initial position to a target position in response to a path planning operation for the virtual game object; wherein the travel path comprises at least one intermediate position; and the attack action execution module is used for controlling the virtual game object to sequentially pass through the initial position and at least one middle position to reach the target position according to the travelling path and controlling the virtual game object to execute the attack action when reaching the initial position, the middle position and the target position.
In an exemplary embodiment of the present disclosure, based on the foregoing aspect, the travel path includes a plurality of travel sub-paths including a first travel sub-path and a second travel sub-path, the apparatus further includes: a first travel sub-path constructing unit for constructing a first travel sub-path from the initial position to the intermediate position when one intermediate position is included in the travel path; a second travel sub-path construction unit for constructing a second travel sub-path from the intermediate position to the target position; and the first travel path determining unit is used for determining a travel path according to the first travel sub-path and the second travel sub-path.
In an exemplary embodiment of the present disclosure, based on the foregoing aspect, the travel path includes a plurality of travel sub-paths including a third travel sub-path, a fourth travel sub-path, and a fifth travel sub-path, the travel path from the initial position to the target position is constructed, and the apparatus further includes: a third travel sub-path constructing unit that constructs a third travel sub-path from the initial position to the first intermediate position when a plurality of intermediate positions are included in the travel path; a fourth travel sub-path construction unit for sequentially constructing a fourth travel sub-path between at least one intermediate position in the selection order of the intermediate positions; a fifth traveling sub-path construction unit for constructing a fifth traveling sub-path from the last intermediate position to the target position; and the second travel path determining unit is used for determining a travel path according to the third travel sub-path, the at least one fourth travel sub-path and the fifth travel sub-path.
In an exemplary embodiment of the present disclosure, based on the foregoing solution, the path planning operation includes a plurality of path planning sub-operations, the plurality of travel sub-paths each having a corresponding path planning sub-operation, the apparatus further includes: an operation identifier display unit, configured to display an operation identifier corresponding to a path planning sub-operation in a graphical user interface in a process of constructing the travel sub-path; a travel sub-path construction unit for constructing a current travel sub-path when the path planning sub-operation reaches an end position of the current travel sub-path; and a next sub-path construction unit for constructing a next travel sub-path continuous with the current travel sub-path in response to a path planning sub-operation for the operation identification.
In an exemplary embodiment of the present disclosure, based on the foregoing scheme, the apparatus further includes: and the planning sub-operation ending unit is used for responding to the path planning sub-operation aiming at the operation identification and ending the path planning sub-operation corresponding to the current travelling sub-path.
In an exemplary embodiment of the present disclosure, based on the foregoing scheme, the apparatus further includes: and the game view angle adjusting unit is used for controlling the game view angle to be adjusted if the path planning operation reaches the edge of the graphical user interface when the travel path from the initial position to the target position is constructed.
In an exemplary embodiment of the present disclosure, based on the foregoing aspect, the controlling the virtual game object sequentially passes through the initial position, the at least one intermediate position, and the target position according to the travel path, the apparatus further includes: and the ending response unit is used for responding to the ending of the path planning operation and controlling the virtual game object to sequentially pass through the initial position and at least one middle position to reach the target position according to the travelling path.
The virtual object control device provided by the embodiment of the disclosure can construct a travel path from an initial position to a target position in response to a path planning operation for a virtual game object, control the virtual game object to sequentially pass through the initial position and at least one intermediate position to reach the target position according to the travel path, and control the virtual game object to execute an attack action when reaching the initial position, the intermediate position and the target position. On the one hand, after the attack on one position is completed, the next position can be automatically attacked, the player does not need to pay attention to the attack condition at any time, and the problem that the player ignores other conditions in the game to cause disuse in the game is avoided; on the other hand, the game points can be attacked without multiple operations, the operation is simpler, and the operation cost of a player is reduced.
Since each functional module of the virtual object control apparatus according to the example embodiment of the present disclosure corresponds to a step of the example embodiment of the virtual object control method described above, for details not disclosed in the embodiment of the apparatus of the present disclosure, please refer to the embodiment of the virtual object control method described above in the present disclosure.
It should be noted that although in the above detailed description several modules or units of a device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit in accordance with embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
In addition, in an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above virtual object control method is also provided.
Those skilled in the art will appreciate that the various aspects of the present disclosure may be implemented as a system, method, or program product. Accordingly, various aspects of the disclosure may be embodied in the following forms, namely: an entirely hardware embodiment, an entirely software embodiment (including firmware, micro-code, etc.) or an embodiment combining hardware and software aspects may be referred to herein as a "circuit," module "or" system.
An electronic device 1000 according to such an embodiment of the present disclosure is described below with reference to fig. 10. The electronic device 1000 shown in fig. 10 is merely an example and should not be construed as limiting the functionality and scope of use of the disclosed embodiments.
As shown in fig. 10, the electronic device 1000 is embodied in the form of a general purpose computing device. Components of electronic device 1000 may include, but are not limited to: the at least one processing unit 1010, the at least one memory unit 1020, a bus 1030 connecting the various system components (including the memory unit 1020 and the processing unit 1010), and a display unit 1040.
Wherein the storage unit stores program code that is executable by the processing unit 1010 such that the processing unit 1010 performs steps according to various exemplary embodiments of the present disclosure described in the above section of the present specification. For example, the processing unit 1010 may perform step S110 as shown in fig. 1: constructing a travel path from the initial position to the target position in response to a path planning operation for the virtual game object; wherein the travel path comprises at least one intermediate position; step S120: the virtual game object is controlled to sequentially pass through the initial position and at least one intermediate position to reach the target position according to the travelling path, and the virtual game object is controlled to execute the attack action when the initial position, the intermediate position and the target position are reached.
In one exemplary embodiment of the present disclosure, based on the foregoing aspect, the travel path includes a plurality of travel sub-paths including a first travel sub-path and a second travel sub-path, constructing the travel path from the initial position to the target position includes: when the travel path comprises an intermediate position, constructing a first travel sub-path from the initial position to the intermediate position; constructing a second travel sub-path from the intermediate position to the target position; a travel path is determined from the first travel sub-path and the second travel sub-path.
In one exemplary embodiment of the present disclosure, based on the foregoing aspect, the travel path includes a plurality of travel sub-paths including a third travel sub-path, a fourth travel sub-path, and a fifth travel sub-path, constructing a travel path from an initial position to a target position includes: when the travel path comprises a plurality of intermediate positions, constructing a third travel sub-path from the initial position to the first intermediate position; sequentially constructing a fourth travelling sub-path between at least one intermediate position according to the selection sequence of the intermediate positions; constructing a fifth travel sub-path from the last intermediate position to the target position; a travel path is determined from the third travel sub-path, the at least one fourth travel sub-path, and the fifth travel sub-path.
In an exemplary embodiment of the present disclosure, based on the foregoing aspect, the path planning operation includes a plurality of path planning sub-operations, the plurality of travel sub-paths each having a corresponding path planning sub-operation, the method further comprising: in the process of constructing the travelling sub-path, displaying operation identifiers corresponding to path planning sub-operations in a graphical user interface; when the path planning sub-operation reaches the end position of the current travel sub-path, constructing the current travel sub-path; in response to a path planning sub-operation identified for the operation, a next travel sub-path is constructed that is continuous with the current travel sub-path.
In an exemplary embodiment of the present disclosure, based on the foregoing scheme, in response to a path planning sub-operation for the operation identification, a path planning sub-operation for constructing a current travel sub-path is ended.
In one exemplary embodiment of the present disclosure, based on the foregoing, when constructing a travel path from an initial position to a target position, if a path planning operation reaches an edge of a graphical user interface, a game view angle is controlled to be adjusted.
In an exemplary embodiment of the present disclosure, based on the foregoing aspect, the controlling the virtual game object sequentially passes through the initial position, the at least one intermediate position, and the target position according to the travel path, the apparatus further includes: in response to the end of the path planning operation, the virtual game object is controlled to sequentially pass through the initial position and the at least one intermediate position to reach the target position according to the travel path.
The electronic device provided by the embodiment of the disclosure can construct a travel path from an initial position to a target position in response to a path planning operation for a virtual game object, control the virtual game object to sequentially pass through the initial position and at least one intermediate position to reach the target position according to the travel path, and control the virtual game object to execute an attack action when reaching the initial position, the intermediate position and the target position. On the one hand, after the attack on one position is completed, the next position can be automatically attacked, the player does not need to pay attention to the attack condition at any time, and the problem that the player ignores other conditions in the game to cause disuse in the game is avoided; on the other hand, the game points can be attacked without multiple operations, the operation is simpler, and the operation cost of a player is reduced.
The memory unit 1020 may include readable media in the form of volatile memory units such as Random Access Memory (RAM) 1021 and/or cache memory unit 1022, and may further include Read Only Memory (ROM) 1023.
Storage unit 1020 may also include a program/utility 1024 having a set (at least one) of program modules 1025, such program modules 1025 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
Bus 1030 may be representing one or more of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 1000 can also communicate with one or more external devices 1070 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 1000, and/or with any device (e.g., router, modem, etc.) that enables the electronic device 1000 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 1050. Also, electronic device 1000 can communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, through network adapter 1060. As shown, the network adapter 1060 communicates with other modules of the electronic device 1000 over the bus 1030. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with the electronic device 1000, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, and includes several instructions to cause a computing device (may be a personal computer, a server, a terminal device, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, a computer-readable storage medium having stored thereon a program product capable of implementing the method described above in the present specification is also provided. In some possible embodiments, the various aspects of the present disclosure may also be implemented in the form of a program product comprising program code for causing a terminal device to carry out the steps according to the various exemplary embodiments of the disclosure as described in the "exemplary methods" section of this specification, when the program product is run on the terminal device.
In one example embodiment of the present disclosure, a computer readable signal medium is provided for displaying at least a portion of a virtual game scene and at least one virtual game object located in the virtual game scene through a graphical user interface of a terminal device, the virtual game object having an initial position, the virtual game object being controlled by the terminal device, the method comprising: constructing a travel path from the initial position to the target position in response to a path planning operation for the virtual game object; wherein the travel path comprises at least one intermediate position; the virtual game object is controlled to sequentially pass through the initial position and at least one intermediate position to reach the target position according to the travelling path, and the virtual game object is controlled to execute the attack action when the initial position, the intermediate position and the target position are reached.
In one exemplary embodiment of the present disclosure, based on the foregoing aspect, the travel path includes a plurality of travel sub-paths including a first travel sub-path and a second travel sub-path, constructing the travel path from the initial position to the target position includes: when the travel path comprises an intermediate position, constructing a first travel sub-path from the initial position to the intermediate position; constructing a second travel sub-path from the intermediate position to the target position; a travel path is determined from the first travel sub-path and the second travel sub-path.
In one exemplary embodiment of the present disclosure, based on the foregoing aspect, the travel path includes a plurality of travel sub-paths including a third travel sub-path, a fourth travel sub-path, and a fifth travel sub-path, constructing a travel path from an initial position to a target position includes: when the travel path comprises a plurality of intermediate positions, constructing a third travel sub-path from the initial position to the first intermediate position; sequentially constructing a fourth travelling sub-path between at least one intermediate position according to the selection sequence of the intermediate positions; constructing a fifth travel sub-path from the last intermediate position to the target position; a travel path is determined from the third travel sub-path, the at least one fourth travel sub-path, and the fifth travel sub-path.
In an exemplary embodiment of the present disclosure, based on the foregoing aspect, the path planning operation includes a plurality of path planning sub-operations, the plurality of travel sub-paths each having a corresponding path planning sub-operation, the method further comprising: in the process of constructing the travelling sub-path, displaying operation identifiers corresponding to path planning sub-operations in a graphical user interface; when the path planning sub-operation reaches the end position of the current travel sub-path, constructing the current travel sub-path; in response to a path planning sub-operation identified for the operation, a next travel sub-path is constructed that is continuous with the current travel sub-path.
In an exemplary embodiment of the present disclosure, based on the foregoing scheme, in response to a path planning sub-operation for the operation identification, a path planning sub-operation for constructing a current travel sub-path is ended.
In one exemplary embodiment of the present disclosure, based on the foregoing, when constructing a travel path from an initial position to a target position, if a path planning operation reaches an edge of a graphical user interface, a game view angle is controlled to be adjusted.
In an exemplary embodiment of the present disclosure, based on the foregoing aspect, the controlling the virtual game object sequentially passes through the initial position, the at least one intermediate position, and the target position according to the travel path, the apparatus further includes: in response to the end of the path planning operation, the virtual game object is controlled to sequentially pass through the initial position and the at least one intermediate position to reach the target position according to the travel path.
One embodiment of the present disclosure provides a computer-readable signal medium that can construct a travel path from an initial position to a target position in response to a path planning operation for a virtual game object, control the virtual game object to sequentially pass through the initial position, at least one intermediate position to reach the target position according to the travel path, and control the virtual game object to perform an attack action when reaching the initial position, the intermediate position, and the target position. On the one hand, after the attack on one position is completed, the next position can be automatically attacked, the player does not need to pay attention to the attack condition at any time, and the problem that the player ignores other conditions in the game to cause disuse in the game is avoided; on the other hand, the game points can be attacked without multiple operations, the operation is simpler, and the operation cost of a player is reduced.
The computer readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
Furthermore, the above-described figures are only schematic illustrations of processes included in the method according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It will be readily appreciated that the processes shown in the above figures do not indicate or limit the temporal order of these processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, for example, among a plurality of modules.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (10)

1. A virtual object control method, characterized in that at least part of a virtual game scene and at least one virtual game object located in the virtual game scene are displayed through a graphical user interface of a terminal device, the virtual game object having an initial position, the virtual game object being controlled by the terminal device, the method comprising:
Constructing a travel path from the initial position to a target position in response to a path planning operation for the virtual game object; wherein the travel path includes at least one intermediate position therein;
and controlling the virtual game object to sequentially pass through the initial position and at least one intermediate position according to the travelling path to reach the target position, and controlling the virtual game object to execute the attack action when reaching the initial position, the intermediate position and the target position.
2. The method of claim 1, wherein the travel path comprises a plurality of travel sub-paths including a first travel sub-path and a second travel sub-path, the constructing a travel path from the initial location to a target location comprising:
constructing a first travel sub-path from the initial position to an intermediate position when the travel path includes the intermediate position;
constructing a second travel sub-path from the intermediate location to the target location;
and determining the travel path according to the first travel sub-path and the second travel sub-path.
3. The method of claim 1, wherein the travel path comprises a plurality of travel sub-paths including a third travel sub-path, a fourth travel sub-path, and a fifth travel sub-path, the constructing a travel path from the initial location to a target location comprising:
Constructing a third travel sub-path from the initial position to a first one of the intermediate positions when the travel path includes a plurality of intermediate positions;
sequentially constructing at least one fourth travelling sub-path between the intermediate positions according to the selection sequence of the intermediate positions;
constructing a fifth travel sub-path from the last intermediate position to the target position;
the travel path is determined from the third travel sub-path, at least one of the fourth travel sub-path, and the fifth travel sub-path.
4. A method according to claim 2 or 3, wherein the path planning operation comprises a plurality of path planning sub-operations, each of the plurality of travel sub-paths having a corresponding path planning sub-operation, the method further comprising:
displaying operation identifiers corresponding to the path planning sub-operations in a graphical user interface in the process of constructing the travel sub-path;
when the path planning sub-operation reaches the end position of the current travel sub-path, constructing the current travel sub-path;
and constructing a next travel sub-path which is continuous with the current travel sub-path in response to the path planning sub-operation identified for the operation.
5. The method according to claim 4, wherein the method further comprises:
and responding to the path planning sub-operation identified by the operation, and ending the construction of the path planning sub-operation corresponding to the current travelling sub-path.
6. The method according to claim 1, wherein the method further comprises:
and when the path planning operation reaches the edge of the graphical user interface when the travel path from the initial position to the target position is constructed, controlling the game view angle to be adjusted.
7. The method of claim 1, wherein controlling the virtual game object to sequentially pass through the initial position, at least one of the intermediate positions, and the target position according to a travel path comprises:
and responding to the end of the path planning operation, and controlling the virtual game object to sequentially pass through the initial position and at least one intermediate position to reach the target position according to a travelling path.
8. A virtual object control apparatus for displaying at least a part of a virtual game scene and at least one virtual game object located in the virtual game scene through a graphical user interface of a terminal device, the virtual game object having an initial position, the virtual game object being controlled by the terminal device, the apparatus comprising:
A travel path construction module for constructing a travel path from the initial position to a target position in response to a path planning operation for the virtual game object; wherein the travel path includes at least one intermediate position therein;
and the attack action execution module is used for controlling the virtual game object to sequentially pass through the initial position and at least one intermediate position according to the travelling path to reach the target position, and controlling the virtual game object to execute attack actions when reaching the initial position, the intermediate position and the target position.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any one of claims 1-7.
10. An electronic device, comprising:
one or more processors; and
a memory for storing one or more programs that, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-7.
CN202311134772.XA 2023-09-04 2023-09-04 Virtual object control method, virtual object control device, storage medium, and apparatus Pending CN117101143A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311134772.XA CN117101143A (en) 2023-09-04 2023-09-04 Virtual object control method, virtual object control device, storage medium, and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311134772.XA CN117101143A (en) 2023-09-04 2023-09-04 Virtual object control method, virtual object control device, storage medium, and apparatus

Publications (1)

Publication Number Publication Date
CN117101143A true CN117101143A (en) 2023-11-24

Family

ID=88799904

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311134772.XA Pending CN117101143A (en) 2023-09-04 2023-09-04 Virtual object control method, virtual object control device, storage medium, and apparatus

Country Status (1)

Country Link
CN (1) CN117101143A (en)

Similar Documents

Publication Publication Date Title
CN111773667B (en) Live game interaction method and device, computer readable medium and electronic equipment
CN111760267A (en) Information sending method and device in game, storage medium and electronic equipment
CN109960558B (en) Virtual object control method and device, computer storage medium and electronic equipment
CN113350779A (en) Game virtual character action control method and device, storage medium and electronic equipment
CN111346369A (en) Shooting game interaction method and device, electronic equipment and storage medium
CN111760272B (en) Game information display method and device, computer storage medium and electronic equipment
CN111481923B (en) Rocker display method and device, computer storage medium and electronic equipment
CN111773677B (en) Game control method and device, computer storage medium and electronic equipment
CN113329236A (en) Live broadcast method, live broadcast device, medium and electronic equipment
WO2024077872A1 (en) Display position adjustment method and apparatus, storage medium, and electronic device
CN112245908A (en) Method and device for controlling game virtual character, storage medium and electronic equipment
CN116747514A (en) Game scene preloading method, game scene preloading device, medium and equipment
WO2023160585A1 (en) Information transfer method and apparatus, electronic device, and readable medium
CN117101143A (en) Virtual object control method, virtual object control device, storage medium, and apparatus
TW202030007A (en) Method and apparatus for controlling game
CN113967355A (en) Game virtual character action control method and device, storage medium and electronic equipment
CN111773712A (en) Interaction control method and device, electronic equipment and computer readable storage medium
CN114100120A (en) Control method and device of cloud game, storage medium and electronic equipment
CN112221125A (en) Game interaction method and device, electronic equipment and storage medium
CN117111790A (en) Information processing method, device, storage medium and equipment
KR20210003627A (en) Electronic device and method for displaying region of interest in game in an electronic device
CN113198179B (en) Steering control method and device for virtual object, storage medium and electronic equipment
CN116803456A (en) Game operation replacement method and device, storage medium and electronic equipment
CN117205566A (en) Game control method, game control device, storage medium and apparatus
CN118105700A (en) Virtual object control method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination