CN109395388B - Game unit moving and attack control method, device, storage medium and terminal - Google Patents

Game unit moving and attack control method, device, storage medium and terminal Download PDF

Info

Publication number
CN109395388B
CN109395388B CN201811174130.1A CN201811174130A CN109395388B CN 109395388 B CN109395388 B CN 109395388B CN 201811174130 A CN201811174130 A CN 201811174130A CN 109395388 B CN109395388 B CN 109395388B
Authority
CN
China
Prior art keywords
game unit
attack
game
party
target address
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.)
Active
Application number
CN201811174130.1A
Other languages
Chinese (zh)
Other versions
CN109395388A (en
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.)
Guangzhou Yaowan Entertainment Network Technology Co ltd
Original Assignee
Guangzhou Yaowan Entertainment Network Technology 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 Guangzhou Yaowan Entertainment Network Technology Co ltd filed Critical Guangzhou Yaowan Entertainment Network Technology Co ltd
Priority to CN201811174130.1A priority Critical patent/CN109395388B/en
Publication of CN109395388A publication Critical patent/CN109395388A/en
Application granted granted Critical
Publication of CN109395388B publication Critical patent/CN109395388B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/55Controlling game characters or game objects based on the game progress
    • A63F13/58Controlling game characters or game objects based on the game progress by computing conditions of game characters, e.g. stamina, strength, motivation or energy level
    • 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
    • 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/64Methods for processing data by generating or executing the game program for computing dynamical parameters of game objects, e.g. motion determination or computation of frictional forces for a virtual car
    • 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/807Role playing or strategy games

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention relates to the field of game operation control, in particular to a method, a device, a storage medium and a terminal for controlling movement and attack of a game unit, wherein the method comprises the following steps: responding to an operation instruction of a user to a local game unit, and determining a target address position of the local game unit; generating a forward path reaching the target address position according to the target address position, and controlling the game unit to move according to the forward path; and when the game unit of the game moves on the advancing path, judging whether the game unit of the party encounters the attack of the game unit of the enemy on the advancing path, if so, determining a response instruction of the game unit of the party according to the operation instruction, and controlling the game unit of the party to respond to the attack according to the response instruction until the game unit of the party of the game unit of the party moves to the target address position. The invention can simplify the operation of the game unit required for responding when encountering attacks in the moving process.

Description

Game unit moving and attack control method, device, storage medium and terminal
Technical Field
The invention relates to the field of game operation control, in particular to a method and a device for controlling movement and attack of a game unit, a storage medium and a terminal.
Background
With the continuous development of internet technology and intelligent terminal hardware, particularly the development of touch screen technology, the game market also follows the technical development to present different types of games operated on a touch screen terminal, and the functions of selecting a game unit, controlling the game unit, releasing game skills and completing game tasks in the games can be completed on the touch screen terminal.
Disclosure of Invention
In order to overcome the technical problems, in particular to the problem that the game unit in the game cannot respond in time when being attacked in the moving process in the prior art, the following technical scheme is particularly proposed:
in a first aspect, the present invention provides a method for controlling movement and attack of a game unit, including:
responding to an operation instruction of a user to a local game unit, and determining a target address position of the local game unit;
generating a forward path reaching the target address position according to the target address position, and controlling the game unit to move according to the forward path;
and when the game unit of the game moves on the advancing path, judging whether the game unit of the party encounters the attack of the game unit of the enemy on the advancing path, if so, determining a response instruction of the game unit of the party according to the operation instruction, and controlling the game unit of the party to respond to the attack according to the response instruction until the game unit of the party of the game unit of the party moves to the target address position.
Further, the operation instruction comprises a double-click operation instruction and a single-click operation instruction; the determining a response instruction of the game unit of the player according to the operation instruction, and controlling the game unit of the player to respond to the attack according to the response instruction until the game unit of the player moves to the target address position includes:
if the operation instruction is a double-click operation instruction, determining that the response instruction of the game unit is a movement non-attack instruction; controlling the game unit of the party to directly move to the target address position without counterattacking the attack;
if the operation instruction is a click operation instruction, determining that the response instruction of the game unit is a mobile attack instruction; and controlling the game unit of the player to counterattack the attack until the game unit moves to the target address position.
Further, the directly moving the game unit of the control party to the target address position without counterattacking the attack includes:
and acquiring the defense strength value of the game unit of the party, sequencing the moving sequence of the game unit of the party in the advancing path according to the defense strength value, so that the game unit of the party of the enemy preferentially attacks the game unit of the party with the larger defense strength value, controlling the game unit of the party not to counter attack on the attack, and moving the game unit of the party to the target address position according to the sequenced sequence.
Further, the controlling the game unit of the party counterattacks the attack until the game unit moves to the target address position, including:
acquiring the attack force value of the game unit of the player; and controlling the local game unit with the attack force value meeting the preset condition to stay and counterattack the attack, controlling the local game unit to move to the target address position after the attack is finished, and directly moving the rest local game units to the target address position.
Further, after generating a forward path to the target address location according to the target address location, the method further includes:
and matching a preset display form of the forward path according to the operation instruction, and displaying the forward path according to the preset display form.
Further, the preset display forms include a first preset display form and a second preset display form; after the displaying of the forward path according to the preset display form, the method further includes:
receiving a switching instruction of a user for the preset display form of the forward path, switching the forward path of the first preset display form into the forward path of the second preset display form or switching the forward path of the second preset display form into the forward path of the first preset display form, and switching a corresponding response instruction.
Further, the controlling the game unit of the party to respond to the attack according to the response instruction until the game unit of the party moves to the target address position further includes:
and after the game unit of the party reaches the target address position, if the game unit of the party encounters the attack of the game unit of the enemy again, the game unit of the party is controlled to counterattack the game unit of the enemy.
In a second aspect, the present invention provides a game unit movement and attack control device, comprising:
the instruction response module: the system comprises a server, a server and a server, wherein the server is used for responding to an operation instruction of a user to a local game unit and determining a target address position of the local game unit;
a mobile control module: the game system is used for generating a forward path reaching the target address position according to the target address position and controlling the game unit to move according to the forward path;
the attack response module: and the game unit is used for judging whether the game unit is attacked by an enemy game unit or not on the advancing path when the game unit moves on the advancing path, if so, determining a response instruction of the game unit according to the operation instruction, and controlling the game unit to respond to the attack according to the response instruction until the game unit moves to the target address position.
In a third aspect, the present invention further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the game unit moving and attack control method described above.
In a fourth aspect, the present invention also provides a mobile terminal comprising one or more processors, a memory, and one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to execute the above-mentioned playunit movement and attack control method.
Compared with the prior art, the invention has the following beneficial effects:
the invention provides a control method for movement and attack of game units in a game, which comprises the steps of determining the target address position of the game unit of the game according to the operation instruction of a user to the game unit of the game, generating a forward path reaching the target address position according to the target address position, controlling the game unit of the game of the party to move according to the forward path, determining the response instruction of the game unit of the game of the party to the attack encountered according to the operation instruction of the user if the game unit of the game unit of the opposite party encounters the game of the enemy in the process of the game unit of the game of the party, autonomously responding to the attack encountered attack on the game unit of the game, and does not need to operate again until the game unit of the game unit of the party moves to the game of the game unit of the game, not only ensure that the game unit of the game can reach the game of the target address position of the game of the party fast to the game of the party, the invention can also reduce the loss of the game unit caused by the attack, and meanwhile, the invention can simplify the operation required by the game unit for responding when the game unit encounters the attack in the moving process, thereby reducing the operation times and time of the user and reducing the resource consumption of the terminal.
Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a flow chart illustrating a method for controlling movement and attack of a gaming unit according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating a method for controlling movement and attack of a gaming unit according to another embodiment of the present invention;
FIG. 3 is a flow chart illustrating a method for controlling movement and attack of a gaming unit according to another embodiment of the present invention;
FIG. 4 is a schematic view of an embodiment of the game unit movement and attack control device according to the present invention;
fig. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative only and should not be construed as limiting the invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, or operations, but do not preclude the presence or addition of one or more other features, integers, steps, operations, or groups thereof.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
It will be appreciated by those skilled in the art that the terms "application," "computer program" and similar terms used herein refer to the same concepts known to those skilled in the art that refer to computer software electronically-adapted to be organized into a series of computer instructions and associated data sources. Unless otherwise specified, such nomenclature is not itself limited by the programming language class, level, or operating system or platform upon which it depends. Of course, such concepts are not limited to any type of terminal.
In one embodiment, the present invention provides a gaming unit movement and attack control method, as shown in fig. 1, the method comprising the steps of:
s10: and determining the target address position of the local game unit in response to the operation instruction of the user to the local game unit.
In the game, a plurality of buildings and types of weapons are distributed, in this embodiment, the types of weapons are defined as game units, and in order to facilitate the terminal user to schedule and control the game units, in this embodiment, the terminal user can schedule the game unit of the party to go to a specified destination, for example, the terminal user needs to assign a game unit a to a destination address L1, in response to an operation instruction of the user to the game unit of the party, obtain the selected game unit of the party, and determine a target address position of the game unit of the party according to the operation instruction, it can be known that the game unit does not represent one game unit, but can also represent a set consisting of a plurality of game units. For example, the terminal user selects the game unit a on the game interface, then clicks any one position on the game map, and the terminal game application responds to the operation instruction of the user to determine the target address position.
S20: and generating a forward path reaching the target address position according to the target address position, and controlling the game unit to move according to the forward path.
After the target address position is determined, generating a forward path to the target address position according to preset game logic, in one implementation manner of this embodiment, generating a shortest forward path to the target address position, where the shortest forward path may be determined by using a greedy algorithm according to map coordinates of a game unit and the target address position; or the shortest advancing path can be determined according to the map coordinates of the game unit and the target address position and based on an A-x algorithm, so that the game unit can quickly reach the target address position, the game unit can conveniently execute subsequent tasks, and the game unit is controlled to move according to the advancing path after the advancing path is generated.
S30: and when the game unit of the game moves on the advancing path, judging whether the game unit of the party encounters the attack of the game unit of the enemy on the advancing path, if so, determining a response instruction of the game unit of the party according to the operation instruction, and controlling the game unit of the party to respond to the attack according to the response instruction until the game unit of the party of the game unit of the party moves to the target address position.
In this embodiment, the response of the game unit of this party to the attack is different in different states, specifically, the response instruction of the game unit of this party to the attack is determined according to the operation instruction of the game unit of this party, then when the game unit of this party encounters the attack, the game unit of this party is controlled according to the response instruction to the attack until the game unit of this party moves to the target address position according to the advancing path, and the response of the game unit of this party to the attack is different in different states, after the terminal user executes the appointed operation to the game unit of the local side, the game unit of the local side goes to a corresponding destination according to the operation instruction, and autonomously responds to the attack encountered on the forward path without the operation of the terminal user, thereby not only ensuring that the game unit of the local side can quickly reach the position of the target address, but also reducing the loss caused by the attack encountered by the game unit of the local side.
The embodiment provides a method for controlling movement and attack of game units in a game, which comprises the steps of determining a target address position of a game unit of a local side according to an operation instruction of a user to the game unit of the local side, generating a forward path reaching the target address position according to the target address position, controlling the game unit of the local side to move according to the forward path, determining a response instruction of the game unit of the local side to the encountered attack according to the operation instruction of the user to the game unit of the local side if the game unit of the local side encounters an attack of an enemy party in the process of moving along the forward path, autonomously responding to the attack encountered on the forward path without operating by a terminal user until the game unit of the local side moves to the target address position, and ensuring that the game unit of the local side can quickly reach the target address position, the invention can also reduce the loss of the game unit caused by the attack, and meanwhile, the invention can simplify the operation required by the game unit for responding when the game unit encounters the attack in the moving process, thereby reducing the operation times and time of the user and reducing the resource consumption of the terminal.
According to one embodiment of the invention, the operation instruction comprises a double-click operation instruction and a single-click operation instruction; as shown in fig. 2, the determining, according to the operation instruction, a response instruction of the game unit of the party, and controlling the game unit of the party to respond to the attack according to the response instruction until the game unit of the party moves to the target address position includes:
s31: if the operation instruction is a double-click operation instruction, determining that the response instruction of the game unit is a movement non-attack instruction; and controlling the game unit of the player to directly move to the target address position without counterattacking the attack.
S32: if the operation instruction is a single click operation instruction, determining that the response instruction of the game unit is a mobile attack instruction; and controlling the game unit of the player to counterattack the attack until the game unit moves to the target address position.
In the embodiment, the operation instruction comprises a double-click operation instruction and a single-click operation instruction, and in one implementation mode of the double-click operation instruction, after a terminal user selects a local game unit, double-click any area on a game map, namely, triggering the double-click operation instruction; in one implementation mode of the single-click operation instruction, after a terminal user selects a local game unit, a single-click operation instruction is triggered by clicking any area on a game map; the method comprises the steps that whether a double-click operation instruction or a single-click operation instruction is adopted, the determination of a target address position and the generation of a forward path are the same, and the difference is that if the operation instruction is the double-click operation instruction, when the game unit moves on the forward path and is attacked by an enemy game unit, a response instruction of the game unit is determined to be a movement non-attack instruction according to the double-click operation instruction, the game unit is controlled to directly move to the target address position without attacking the attack; if the operation instruction is a click operation instruction, when the game unit of the local is attacked by an enemy game unit when moving in the advancing path, determining that a response instruction of the game unit of the local is a movement attack instruction according to the click operation instruction, and controlling the game unit of the local to attack the attack; in another implementation mode, the game unit is controlled to suspend the attack of forward movement until the game unit moves to the target address position after the attack is finished.
In an embodiment of the present invention, the controlling the local gaming unit directly moves to the target address without counterattacking the attack, including:
and acquiring the defense strength value of the game unit of the party, sequencing the moving sequence of the game unit of the party in the advancing path according to the defense strength value, so that the game unit of the party of the enemy preferentially attacks the game unit of the party with the larger defense strength value, controlling the game unit of the party not to counter attack on the attack, and moving the game unit of the party to the target address position according to the sequenced sequence.
In order to reduce the loss of the game unit of the party as much as possible when the game unit of the party does not attack the encountered attack, in the embodiment, the defense values of the game unit of the party are obtained, the game unit of the party comprises a plurality of different army types, for example, 5 game units of I type, 10 game units of II type and 8 game units of III type, the defense values of the game units of different army types are different, the game units of the party are controlled not to attack the attack according to the sequence of the defense forces on the moving of the game unit of the party in the advancing path, and the game units of the party are moved to the target address position according to the sequence after the sequence, one embodiment is that the game units of the party with high defense values are arranged at the back, the game units of the party with low defense values are arranged at the front, and the game units of the party with high defense values are preferentially arranged at the front, the player can move to the target address quickly, so that the loss of the player is reduced.
In an embodiment of the present invention, the controlling the party gaming unit to counter the attack until the party gaming unit moves to the target address location includes:
acquiring the attack force value of the game unit of the player; and controlling the local game unit with the attack force value meeting the preset condition to stay and counterattack the attack, controlling the local game unit to move to the target address position after the attack is finished, and directly moving the rest local game units to the target address position.
When the unit of the party attacks the encountered attack, in order to enable part of the game units of the party to reach the target address position as soon as possible, in the embodiment, the attack force values of the game units of the party are obtained, the game units of the party comprise a plurality of different weapon types, for example, 5 game units of type I, 10 game units of type II and 8 game units of type III, the attack force values of the game units of different weapon types are different, then the game units of the party with the attack force values meeting the preset conditions are controlled to stay and attack the attack, the game units of the party are controlled to move to the target address position after the attack is finished, one implementation mode is that the game units of the party with higher attack force values are controlled to stay and attack the game units of the party, the game units of the opposite party with higher attack force values are controlled to move to the target address position again until the attack is finished, and the game unit of the player with lower attacking force value continues to move, so that the game unit of the player can reach the target address position as soon as possible to complete the corresponding task.
In an embodiment of the present invention, after generating a forward path to the target address location according to the target address location, the method further includes:
and matching a preset display form of the forward path according to the operation instruction, and displaying the forward path according to the preset display form.
In the embodiment, after a forward path reaching the target address position is generated, matching a preset display form of the forward path according to the operation instruction, and then displaying the forward path according to the preset display form, specifically, the operation instruction comprises a first operation instruction and a second operation instruction, and after the forward path generated after responding to the first operation instruction is displayed in a first preset display form; when the forward path is generated after responding to the second operation instruction, displaying the forward path in a second preset display form; for example, the first preset display form is green, and the second preset display form is red; or the first preset display form is square, the second preset display form is triangular, and the forward path triggered and generated by different operation instructions is displayed on the terminal game application interface in different display forms, so that the terminal user can conveniently distinguish the forward path.
In an embodiment of the present invention, the preset display form includes a first preset display form and a second preset display form; after the displaying of the forward path according to the preset display form, the method further includes:
receiving a switching instruction of a user for the preset display form of the forward path, switching the forward path of the first preset display form into the forward path of the second preset display form or switching the forward path of the second preset display form into the forward path of the first preset display form, and switching a corresponding response instruction.
In the above embodiment, the forward path is displayed in different preset display forms according to different operation instructions, in this embodiment, the preset display forms include a first preset display form and a second preset display form, such as color difference or shape difference, when a terminal user needs to change a response instruction of the game unit to an encountered attack, the preset form of the forward path may be switched, when a terminal game application receives a switching instruction of the preset display form of the forward path from the user, if the forward path is originally in the first preset display form, the forward path is switched to the second preset display form, and if the forward path is originally in the second preset display form, the forward path is switched to the first preset display form, meanwhile, switching the response instruction when the game unit of the player is attacked, if the original game unit of the player responds to the attack, the game unit of the player is not attacked by movement, and after switching, responding to the attack is attacked by movement; the response instruction of the game unit of the party to the attack is quickly switched by switching the display form of the forward path, so that the terminal user can conveniently control the game unit of the party.
In an embodiment of the present invention, as shown in fig. 3, the controlling the local gaming unit to respond to the attack according to the response instruction until the local gaming unit moves to the target address location further includes:
s40: and after the game unit of the party reaches the target address position, if the game unit of the party encounters the attack of the game unit of the enemy again, the game unit of the party is controlled to counterattack the game unit of the enemy.
In this embodiment, after the player game unit reaches the target address position, regardless of the previous response to the attack by the player game unit, if the player game unit encounters the attack of the opponent game unit again, the player game unit is controlled to attack the opponent game unit, and the player does not need to control the response of the player game unit to the attack again, so that the operation efficiency of the game is improved.
As shown in fig. 4, in another embodiment, the present invention provides a gaming unit formation control apparatus including:
the instruction response module 10: the system comprises a server, a server and a server, wherein the server is used for responding to an operation instruction of a user to a local game unit and determining a target address position of the local game unit;
the movement control module 20: the game system is used for generating a forward path reaching the target address position according to the target address position and controlling the game unit to move according to the forward path;
the attack response module 30: and the game unit is used for judging whether the game unit is attacked by an enemy game unit or not on the advancing path when the game unit moves on the advancing path, if so, determining a response instruction of the game unit according to the operation instruction, and controlling the game unit to respond to the attack according to the response instruction until the game unit moves to the target address position.
According to one embodiment of the invention, the operation instruction comprises a double-click operation instruction and a single-click operation instruction; the step of the attack response module 30 executing a response instruction for determining the local game unit according to the operation instruction, and controlling the local game unit to respond to the attack according to the response instruction until the local game unit moves to the target address position includes:
if the operation instruction is a double-click operation instruction, determining that the response instruction of the game unit is a movement non-attack instruction; controlling the game unit of the party to directly move to the target address position without counterattacking the attack;
if the operation instruction is a click operation instruction, determining that the response instruction of the game unit is a mobile attack instruction; and controlling the game unit of the player to counterattack the attack until the game unit moves to the target address position.
In an embodiment of the present invention, the attack response module 30 further performs:
and acquiring the defense strength value of the game unit of the party, sequencing the moving sequence of the game unit of the party in the advancing path according to the defense strength value, so that the game unit of the party of the enemy preferentially attacks the game unit of the party with the larger defense strength value, controlling the game unit of the party not to counter attack on the attack, and moving the game unit of the party to the target address position according to the sequenced sequence.
In an embodiment of the present invention, the attack response module 30 further performs:
acquiring the attack force value of the game unit of the player; and controlling the local game unit with the attack force value meeting the preset condition to stay and counterattack the attack, controlling the local game unit to move to the target address position after the attack is finished, and directly moving the rest local game units to the target address position.
In an embodiment of the present invention, the mobile control module further performs:
and matching a preset display form of the forward path according to the operation instruction, and displaying the forward path according to the preset display form.
In an embodiment of the present invention, the mobile control module further performs:
receiving a switching instruction of a user for the preset display form of the forward path, switching the forward path of the first preset display form into the forward path of the second preset display form or switching the forward path of the second preset display form into the forward path of the first preset display form, and switching a corresponding response instruction.
In an embodiment of the present invention, the attack response module 30 further performs:
and after the game unit of the party reaches the target address position, if the game unit of the party encounters the attack of the game unit of the enemy again, the game unit of the party is controlled to counterattack the game unit of the enemy.
In another embodiment, the present invention provides a computer-readable storage medium, on which a computer program is stored, the computer program, when executed by a processor, implementing the gaming-unit moving and attack control method described in the above embodiments. The computer-readable storage medium includes, but is not limited to, any type of disk including floppy disks, hard disks, optical disks, CD-ROMs, and magneto-optical disks, ROMs (Read-Only memories), RAMs (Random AcceSS memories), EPROMs (EraSable Programmable Read-Only memories), EEPROMs (Electrically EraSable Programmable Read-Only memories), flash memories, magnetic cards, or optical cards. That is, a storage device includes any medium that stores or transmits information in a form readable by a device (e.g., a computer, a cellular phone), and may be a read-only memory, a magnetic or optical disk, or the like.
The computer-readable storage medium provided by the embodiment of the invention can determine the target address position of the local game unit in response to the operation instruction of the user to the local game unit; generating a forward path reaching the target address position according to the target address position, and controlling the game unit to move according to the forward path; and when the game unit of the game moves on the advancing path, judging whether the game unit of the party encounters the attack of the game unit of the enemy on the advancing path, if so, determining a response instruction of the game unit of the party according to the operation instruction, and controlling the game unit of the party to respond to the attack according to the response instruction until the game unit of the party of the game unit of the party moves to the target address position. By providing a control method for movement and attack of game units in a game, a target address position of a game unit of the game is determined according to an operation instruction of a user to the game unit of the game, a forward path reaching the target address position is generated according to the target address position, the game unit of the game is controlled to move according to the forward path, if the game unit of the game is attacked by an enemy in the process of moving along the forward path, a response instruction of the game unit of the game to the attacked by the user is determined according to the operation instruction of the user to the game unit of the game, then the attack encountered on the forward path is autonomously responded, the terminal user does not need to operate again until the game unit of the game moves to the target address position, and the game unit of the game can quickly reach the target address position, the invention can also reduce the loss of the game unit caused by the attack, and meanwhile, the invention can simplify the operation required by the game unit for responding when the game unit encounters the attack in the moving process, thereby reducing the operation times and time of the user and reducing the resource consumption of the terminal.
The computer-readable storage medium provided in the embodiments of the present invention can implement the embodiments of the method for controlling movement and attack of a game unit, and for specific function implementation, reference is made to the description in the embodiments of the method, which is not repeated herein.
In addition, in another embodiment, the present invention further provides a mobile terminal, as shown in fig. 5, which includes a processor 503, a memory 505, an input unit 507, a display unit 509, and other devices. Those skilled in the art will appreciate that the structural device illustrated in fig. 5 does not constitute a limitation of all mobile terminals and may include more or less components than those illustrated, or some components in combination. The memory 505 may be used to store the application 501 and various functional modules, and the processor 503 executes the application 501 stored in the memory 505, thereby performing various functional applications of the device and data processing. Memory 505 may be internal memory or external memory, or include both internal and external memory. The memory may comprise read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), flash memory, or random access memory. The external memory may include a hard disk, a floppy disk, a ZIP disk, a usb-disk, a magnetic tape, etc. The disclosed memory includes, but is not limited to, these types of memory. The memory 505 disclosed herein is provided by way of example only and not by way of limitation.
The input unit 507 is used for receiving signal input and receiving user input, the input unit 507 may include a touch panel and other input devices, the touch panel may collect touch operations of a user on or near the touch panel (for example, operations of a user on or near the touch panel using any suitable object or accessory such as a finger, a stylus pen, etc.) and drive a corresponding connection device according to a preset program; other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., play control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like. The display unit 509 may be used to display information input by a user or information provided to the user and various menus of the computer device. The display unit 509 may take the form of a liquid crystal display, an organic light emitting diode, or the like. The processor 503 is a control center of the computer device, connects various parts of the entire computer using various interfaces and lines, and performs various functions and processes data by operating or executing software programs and/or modules stored in the memory 503 and calling data stored in the memory.
In one embodiment, the mobile terminal includes one or more processors 503, and one or more memories 505, one or more applications 501, wherein the one or more applications 501 are stored in the memory 505 and configured to be executed by the one or more processors 503, and the one or more applications 501 are configured to perform the game unit movement and attack control method described in the above embodiments. The one or more processors 503 shown in fig. 5 are capable of executing, implementing the functions of the instruction response module 10, the movement control module 20, the attack response module 30 shown in fig. 4.
The mobile terminal provided by the embodiment of the invention can determine the target address position of the local game unit in response to the operation instruction of the user to the local game unit; generating a forward path reaching the target address position according to the target address position, and controlling the game unit to move according to the forward path; and when the game unit of the game moves on the advancing path, judging whether the game unit of the party encounters the attack of the game unit of the enemy on the advancing path, if so, determining a response instruction of the game unit of the party according to the operation instruction, and controlling the game unit of the party to respond to the attack according to the response instruction until the game unit of the party of the game unit of the party moves to the target address position. By providing a control method for movement and attack of game units in a game, a target address position of a game unit of the game is determined according to an operation instruction of a user to the game unit of the game, a forward path reaching the target address position is generated according to the target address position, the game unit of the game is controlled to move according to the forward path, if the game unit of the game is attacked by an enemy in the process of moving along the forward path, a response instruction of the game unit of the game to the attacked by the user is determined according to the operation instruction of the user to the game unit of the game, then the attack encountered on the forward path is autonomously responded, the terminal user does not need to operate again until the game unit of the game moves to the target address position, and the game unit of the game can quickly reach the target address position, the invention can also reduce the loss of the game unit caused by the attack, and meanwhile, the invention can simplify the operation required by the game unit for responding when the game unit encounters the attack in the moving process, thereby reducing the operation times and time of the user and reducing the resource consumption of the terminal.
The mobile terminal provided by the embodiment of the invention can implement the embodiment of the game unit movement and attack control method provided by the embodiment of the invention, and for the specific function implementation, reference is made to the description in the embodiment of the method, and no further description is given here.
The foregoing is only a partial embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (8)

1. A game unit moving and attack control method is characterized by comprising the following steps:
responding to an operation instruction of a user to a local game unit, and determining a target address position of the local game unit; the operation instruction comprises a double-click operation instruction and a single-click operation instruction;
generating a forward path reaching the target address position according to the target address position, and controlling the game unit to move according to the forward path;
when the game unit of the game moves on the advancing path, judging whether the game unit of the game meets the attack of an enemy game unit on the advancing path, if yes, confirm the response instruction of the game unit of the local according to the said operation instruction, control the game unit of the local to respond to the said attack until the game unit of the local moves to the said target address position according to the said response instruction, including:
if the operation instruction is a double-click operation instruction, determining that the response instruction of the game unit is a movement non-attack instruction; controlling the game unit of the party to directly move to the target address position without counterattacking the attack;
if the operation instruction is a click operation instruction, determining that the response instruction of the game unit is a mobile attack instruction; controlling the game unit of the game to counterattack the attack until the game unit moves to the target address position, and the method comprises the following steps: acquiring the attack force value of the game unit of the player; controlling the local game unit with the attack force value meeting the preset condition to stay and counterattack the attack, and controlling the local game unit to move to the target address position after the attack is finished; and controls one or more of the remaining local gaming units to move directly to the destination address location.
2. The method of claim 1, wherein the controlling party gaming unit directly moves to the target address location without counterattacking the attack, comprising:
and acquiring the defense strength value of the game unit of the party, sequencing the moving sequence of the game unit of the party in the advancing path according to the defense strength value, so that the game unit of the party of the enemy preferentially attacks the game unit of the party with the larger defense strength value, controlling the game unit of the party not to counter attack on the attack, and moving the game unit of the party to the target address position according to the sequenced sequence.
3. The method of claim 1, wherein after generating a forward path to the target address location according to the target address location, further comprising:
and matching a preset display form of the advancing path according to the operation instruction, and displaying the advancing path according to the preset display form.
4. The method of claim 3, wherein the preset display form comprises a first preset display form and a second preset display form; after the displaying of the forward path according to the preset display form, the method further includes:
receiving a switching instruction of a user for the preset display form of the forward path, switching the forward path of the first preset display form into the forward path of the second preset display form or switching the forward path of the second preset display form into the forward path of the first preset display form, and switching a corresponding response instruction.
5. The method of claim 1, wherein the controlling party gaming unit responding to the attack according to the response instruction until after the party gaming unit moves to the target address location, further comprises:
and after the game unit of the party reaches the target address position, if the game unit of the party encounters the attack of the game unit of the enemy again, the game unit of the party is controlled to counterattack the game unit of the enemy.
6. A game unit movement and attack control device, comprising:
the instruction response module: the system comprises a server, a server and a server, wherein the server is used for responding to an operation instruction of a user to a local game unit and determining a target address position of the local game unit; the operation instruction comprises a double-click operation instruction and a single-click operation instruction;
a mobile control module: the game system is used for generating a forward path reaching the target address position according to the target address position and controlling the game unit to move according to the forward path;
the attack response module: when the game unit of the party moves in the said advancing route, judge whether the game unit of the party of the game meets the attack of the enemy game unit on the said advancing route, if, confirm the response instruction of the game unit of the party according to the said operation instruction, control the game unit of the party to respond to the said attack until the game unit of the party of the game unit of the party moves to the said target address position according to the said response instruction, including:
if the operation instruction is a double-click operation instruction, determining that the response instruction of the game unit is a movement non-attack instruction; controlling the game unit of the party to directly move to the target address position without counterattacking the attack;
if the operation instruction is a click operation instruction, determining that the response instruction of the game unit is a mobile attack instruction; controlling the game unit of the game to counterattack the attack until the game unit moves to the target address position, and the method comprises the following steps: acquiring the attack force value of the game unit of the player; controlling the local game unit with the attack force value meeting the preset condition to stay and counterattack the attack, and controlling the local game unit to move to the target address position after the attack is finished; and controls one or more of the remaining local gaming units to move directly to the destination address location.
7. A computer-readable storage medium, wherein a computer program is stored thereon, which when executed by a processor, implements the gaming unit movement and attack control method of any of claims 1 to 5.
8. A mobile terminal, comprising:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to perform the gaming unit movement and attack control method of any of claims 1-5.
CN201811174130.1A 2018-10-09 2018-10-09 Game unit moving and attack control method, device, storage medium and terminal Active CN109395388B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811174130.1A CN109395388B (en) 2018-10-09 2018-10-09 Game unit moving and attack control method, device, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811174130.1A CN109395388B (en) 2018-10-09 2018-10-09 Game unit moving and attack control method, device, storage medium and terminal

Publications (2)

Publication Number Publication Date
CN109395388A CN109395388A (en) 2019-03-01
CN109395388B true CN109395388B (en) 2022-05-10

Family

ID=65466867

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811174130.1A Active CN109395388B (en) 2018-10-09 2018-10-09 Game unit moving and attack control method, device, storage medium and terminal

Country Status (1)

Country Link
CN (1) CN109395388B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110215702B (en) * 2019-06-27 2022-07-29 网易(杭州)网络有限公司 Method and device for controlling grouping in game
CN110314373B (en) * 2019-07-08 2023-02-28 网易(杭州)网络有限公司 Information synchronization method, device, storage medium, processor and server
CN113694527A (en) * 2021-05-24 2021-11-26 网易(杭州)网络有限公司 Game positioning method and device and mobile terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010017395A (en) * 2008-07-11 2010-01-28 Namco Bandai Games Inc Program, information storage medium, and game machine
CN107441707A (en) * 2016-04-11 2017-12-08 德新特游戏有限公司 The automatic attack control method of user role
CN107835148A (en) * 2017-08-23 2018-03-23 杭州电魂网络科技股份有限公司 Game role control method, device, system and game client
CN107837530A (en) * 2017-11-06 2018-03-27 网易(杭州)网络有限公司 Game synchronization method, apparatus and equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3911511B2 (en) * 2004-12-21 2007-05-09 株式会社光栄 Character group movement control program, storage medium, and game device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010017395A (en) * 2008-07-11 2010-01-28 Namco Bandai Games Inc Program, information storage medium, and game machine
CN107441707A (en) * 2016-04-11 2017-12-08 德新特游戏有限公司 The automatic attack control method of user role
CN107835148A (en) * 2017-08-23 2018-03-23 杭州电魂网络科技股份有限公司 Game role control method, device, system and game client
CN107837530A (en) * 2017-11-06 2018-03-27 网易(杭州)网络有限公司 Game synchronization method, apparatus and equipment

Also Published As

Publication number Publication date
CN109395388A (en) 2019-03-01

Similar Documents

Publication Publication Date Title
US11998844B2 (en) Information processing method and apparatus, storage medium, electronic device
JP7377328B2 (en) Systems and methods for controlling technological processes
CN109395388B (en) Game unit moving and attack control method, device, storage medium and terminal
US20210402306A1 (en) Unit Grouping Method and Device, Storage Medium, and Electronic Device
JP2022533051A (en) Virtual object control methods, devices, devices and computer programs
CN110302530B (en) Virtual unit control method, device, electronic equipment and storage medium
JP2023552772A (en) Virtual item switching method, device, terminal and computer program
CN109847370A (en) Control method, device, equipment and the storage medium of shooting game
US11684850B2 (en) Method for facilitating user interactions in gaming environment
CN113633964B (en) Virtual skill control method, device, equipment and computer readable storage medium
CN110354506A (en) Game operation method and device
WO2022037529A1 (en) Method and apparatus for controlling virtual object, and terminal and storage medium
WO2023138192A1 (en) Method for controlling virtual object to pick up virtual prop, and terminal and storage medium
CN111841001B (en) Information processing method, device, equipment and storage medium in game
KR102605545B1 (en) Methods and apparatus, devices, storage media and program products for adjusting the position of virtual buttons
JP2023524307A (en) Operation presentation method, device, terminal and computer program
WO2024098628A1 (en) Game interaction method and apparatus, terminal device, and computer-readable storage medium
CN114225372B (en) Virtual object control method, device, terminal, storage medium and program product
CN109173260B (en) Game unit material acquisition control method and device, storage medium and mobile terminal
WO2021203831A1 (en) Virtual object control method and apparatus, computer device, and storage medium
KR20140127931A (en) System and Method for implementing character action control skill in touch screen device
CN109117076B (en) Game unit selection method, storage medium and computer equipment
JP7419400B2 (en) Virtual object control method, device, terminal and computer program
CN113457146B (en) Method and device for controlling display of virtual articles in game
US20240017170A1 (en) Method and apparatus for prompting task, storage medium, and electronic device

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
GR01 Patent grant
GR01 Patent grant