CN109395388A - Game unit is mobile and attacks control method, device, storage medium and terminal - Google Patents

Game unit is mobile and attacks control method, device, storage medium and terminal Download PDF

Info

Publication number
CN109395388A
CN109395388A CN201811174130.1A CN201811174130A CN109395388A CN 109395388 A CN109395388 A CN 109395388A CN 201811174130 A CN201811174130 A CN 201811174130A CN 109395388 A CN109395388 A CN 109395388A
Authority
CN
China
Prior art keywords
game unit
attack
target address
address location
forward path
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.)
Granted
Application number
CN201811174130.1A
Other languages
Chinese (zh)
Other versions
CN109395388B (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 Wangyu Entertainment Network Technology Co Ltd
Original Assignee
Guangzhou Wangyu 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 Wangyu Entertainment Network Technology Co Ltd filed Critical Guangzhou Wangyu 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

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)
  • Mobile Radio Communication Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present invention relates to game operation control fields, more particularly to a kind of game unit movement and attack control method, device, storage medium and terminal, the described method includes: determining the target address location of the our game unit to the operational order of our game unit in response to user;According to the target address location, the forward path for reaching the target address location is generated, it is mobile according to the forward path to control the our game unit;When the our game unit is when the forward path is mobile, judge whether the our game unit suffers from the attack of enemy's game unit in the forward path, if, the response instruction of our game unit is determined according to the operational order, the our game unit of control is instructed according to the response carries out response to the attack until we's game unit is moved to the target address location.The present invention can simplify meeting in moving process for game unit and make a response required operation when attacking.

Description

Game unit is mobile and attacks control method, device, storage medium and terminal
Technical field
The present invention relates to game operation control fields, and in particular to a kind of game unit is mobile and attacks control method, dress It sets, storage medium and terminal.
Background technique
With the development of the continuous development of Internet technology and intelligent terminal hardware, especially touch screen technology, Game Market Also it follows technology to develop and the different types of game operated on touch screen terminal occur, game can be completed on touch screen terminal In choose game unit, control game unit, release game skill, complete Mission Objective function, and currently, touch screen end There was only single function when on end for the operation of the game unit in game mostly, such as choosing is to choose, movement is It is mobile, it is unable to satisfy increasingly complicated game demand.
Summary of the invention
To overcome the above technical problem, especially the game unit in game is met in moving process in the prior art The problem of can not making a response in time when meeting attack, spy propose following technical scheme:
In a first aspect, the present invention provides a kind of game unit movement and attack control methods, comprising:
In response to user to the operational order of our game unit, the destination address position of the our game unit is determined It sets;
According to the target address location, the forward path for reaching the target address location is generated, the we are controlled Game unit is mobile according to the forward path;
When the our game unit is when the forward path is mobile, judge the our game unit described forward Whether the attack of enemy game unit is suffered from path, if so, determining the sound of our game unit according to the operational order It should instruct, control our game unit according to response instruction and response is carried out to the attack until the our game unit It is moved to the target address location.
Further, the operational order includes double click operation instruction and single-click operation instruction;It is described according to the operation Instruction determines the response instruction of our game unit, and the our game unit of control is instructed according to the response carries out the attack Response is until the our game unit is moved to the target address location, comprising:
If operational order is double click operation instruction, determine that the response instruction of we's game unit does not attack instruction for movement; Our game unit is controlled to the attack without counterattack, is directly moved to the target address location;
If operational order is single-click operation instruction, determine that the response instruction of we's game unit is that mobile attack instructs;Control Making our game unit hits back to the attack, until being moved to the target address location.
Further, the our game unit of the control is directly moved to the target to the attack without counterattack Address location, comprising:
The phylactic power defensive power numerical value for obtaining our game unit, according to the phylactic power defensive power numerical value to our game unit in preceding walking along the street The mobile sequence of diameter is ranked up, so that the our game unit that the preferential attack defending power numerical value of enemy's game unit is big, control Our game unit does not strike back the attack, is moved to the target address location according to the sequence after sequence.
Further, the our game unit of the control hits back to the attack, until with being moved to the target Location position, comprising:
Obtain the attack numerical value of our game unit;Control the our game that the attack numerical value meets preset condition Unit is stopped and is hit back to the attack, and the our game unit is controlled after attack and is moved to the destination address Position, remaining our game unit are directly moved to the target address location.
Further, described according to the target address location, generate the forward path for reaching the target address location Later, further includes:
The default display format that the forward path is matched according to the operational order, according to the default display format exhibition Show the forward path.
Further, the default display format includes the first default display format and the second default display format;It is described After the default display format displaying forward path, further includes:
User is received to the switching command of the default display format of the forward path, before the first default display format Walking along the street diameter is switched to the forward path of the second default display format or the forward path of the second default display format is switched to The forward path of one default display format, and switch corresponding response instruction.
Further, the our game unit of the control is instructed according to the response carries out response to the attack until institute Our game unit is stated to be moved to after the target address location, further includes:
After our game unit reaches the target address location, if suffering from attacking for enemy's game unit again It hits, controlling our game unit hits back to enemy's game unit.
Second aspect, the present invention provide that a kind of game unit is mobile and attack control device, comprising:
It instructs respond module: for the operational order in response to user to our game unit, determining the our game The target address location of unit;
Mobile control module: for generating and reaching moving ahead for the target address location according to the target address location It is mobile according to the forward path to control the our game unit for path;
Attack-response module: for judging the we when the our game unit is when the forward path is mobile Whether game unit suffers from the attack of enemy's game unit in the forward path, if so, true according to the operational order The response instruction of fixed our game unit, the our game unit of control is instructed according to the response respond directly to the attack The target address location is moved to the our game unit.
The third aspect, the present invention also provides a kind of computer readable storage medium, the computer readable storage medium On be stored with computer program, which realizes that above-mentioned game unit is mobile and attack control when being executed by processor Method.
Fourth aspect, the present invention also provides a kind of mobile terminal, the mobile terminal include one or more processors, Memory, one or more application program, wherein one or more of application programs are stored in the memory and quilt It is configured to be executed by one or more of processors, one or more of application programs are configured to carry out above-mentioned game Unit is mobile and attacks control method.
Compared with the prior art, the present invention has the following beneficial effects:
The present invention provides the control methods of movement and the attack of the game unit in a kind of game, according to user to we The operational order of game unit determines the target address location of the our game unit, further according to the target address location The forward path for reaching the target address location is generated, the our game unit is then controlled and is moved according to the forward path It is dynamic, during our game unit is moved along the forward path, if suffering from the attack of enemy's game unit, root Determine that our game unit instructs the response of the attack suffered from according to operational order of the user to our game unit, then It to the attack met in forward path from main response, is operated again without terminal user, until our game unit is moved to The target address location not only guarantees that our game unit can quickly reach target address location, moreover it is possible to reduce we's trip Programme plane to the attack suffered from caused by loss, meanwhile, the present invention can simplify game unit in moving process Required operation is made a response when meeting with attack, and then reduces number of operations and the time of user, to reduce the resource of terminal Consumption.
The additional aspect of the present invention and advantage will be set forth in part in the description, these will become from the following description Obviously, or practice through the invention is recognized.
Detailed description of the invention
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments Obviously and it is readily appreciated that, in which:
Fig. 1 is an embodiment flow diagram of game unit movement of the present invention and attack control method;
Fig. 2 is another embodiment flow diagram of game unit movement of the present invention and attack control method;
Fig. 3 is another embodiment flow diagram of game unit movement of the present invention and attack control method;
Fig. 4 is an embodiment schematic diagram of game unit movement of the present invention and attack control device;
Fig. 5 is an example structure schematic diagram of mobile terminal of the present invention.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached The embodiment of figure description is exemplary, and for explaining only the invention, and is not construed as limiting the claims.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singular " one " used herein, " one It is a ", " described " and "the" may also comprise plural form.It is to be further understood that being arranged used in specification of the invention Diction " comprising " refers to that there are the feature, integer, step, operations, but it is not excluded that in the presence of or addition it is one or more other Feature, integer, step, operation.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, all terms used herein (including technology art Language and scientific term), there is meaning identical with the general understanding of those of ordinary skill in fields of the present invention.Should also Understand, those terms such as defined in the general dictionary, it should be understood that have in the context of the prior art The consistent meaning of meaning, and unless idealization or meaning too formal otherwise will not be used by specific definitions as here To explain.
It will be appreciated by those skilled in the art that of the invention so-called " application ", " application program ", " computer program " and The concept of similar statement, is same concept well known to those skilled in the art, refers to and is instructed by series of computation machine and dependency number According to the computer software for being suitable for electronics operation of the organic construction of resource.Unless specified, this name itself is not by programming language Say type, rank, the operating system of operation of also not rely by it or platform are limited.In the nature of things, this genus also not by Any type of terminal is limited.
In one embodiment, the present invention provides that a kind of game unit is mobile and attack control method, as shown in Figure 1, institute State method the following steps are included:
S10: in response to user to the operational order of our game unit, the destination address of the our game unit is determined Position.
In gaming, it distributed a variety of buildings and the arm of the services, the arm of the services be defined as game unit in the present embodiment, in order to Facilitate terminal user to the scheduling of game unit, control, in the present embodiment, terminal user can dispatch our game unit and go to Designated destination, such as terminal user need that game unit A is assigned to go to destination address L1, in response to user to our game The operational order of unit obtains selected our game unit, and determines the our game according to the operational order The target address location of unit can also indicate more it is appreciated that the game unit not indicates a game unit The set of a game unit composition.For example, terminal user chooses game unit A on interface, with then clicking game again Any one position on figure, terminal game apply the operational order in response to user, can determine the destination address Position.
S20: according to the target address location, generating the forward path for reaching the target address location, described in control Our game unit is mobile according to the forward path.
After target address location has been determined, generated according to preset game logic before reaching the target address location Walking along the street diameter, an embodiment of the present embodiment generate the shortest forward path for reaching the target address location, it is described most Short forward path can determine game unit according to the map reference of game unit and target address location and based on greedy algorithm To the shortest path of target address location;Alternatively, the shortest forward path can be according to game unit and target address location Map reference and the shortest path of game unit to target address location is determined based on A* algorithm, to guarantee our game list Position can rapidly reach the target address location, execute subsequent task convenient for our game unit, forward when generating Behind path, it is mobile according to the forward path to control our unit.
S30: when the our game unit is when the forward path is mobile, judge we's game unit described Whether the attack of enemy game unit is suffered from forward path, if so, determining our game unit according to the operational order Response instruction, control our game unit and instructed according to the response response is carried out to the attack until we's game Unit is moved to the target address location.
When the game unit of we is when the forward path is mobile, needs to pay attention to our game unit and whether suffer from and attack It hits, such as suffers from the attack of enemy's game unit, in the present embodiment, judge that our game unit is in the forward path The no attack for suffering from enemy's game unit, if so, need to respond the attack, in the present embodiment, different conditions Under our game unit it is different to the response of the attack, specifically, according to the aforementioned operational order to our game unit Determine that we's game unit instructs the response of the attack, then when our game unit suffers from attack, according to described Response instruction controls our game unit and responds to the attack, until our game unit is moved according to the forward path It moves to the target address location, the our game unit under different conditions is different to the response of the attack suffered from, works as terminal After user executes specified operation to our game unit, our game unit goes to corresponding purpose according to the operational order Ground, and to the attack met in forward path from main response, it is operated again without terminal user, not only guarantees our game Unit can quickly reach target address location, moreover it is possible to reduce our game unit plane to the attack suffered from and caused by damage It loses.
The control method for present embodiments providing movement and the attack of the game unit in a kind of game, according to user to this The operational order of square game unit determines the target address location of the our game unit, further according to the destination address position The forward path for generating and reaching the target address location is set, then controls the our game unit according to the forward path It is mobile, during our game unit is moved along the forward path, if suffering from the attack of enemy's game unit, Determine that our game unit instructs the response of the attack suffered from according to operational order of the user to our game unit, so It afterwards to the attack met in forward path from main response, is operated again without terminal user, until our game unit is mobile To the target address location, not only guarantee that our game unit can quickly reach target address location, moreover it is possible to reduce we Game unit plane to the attack suffered from caused by loss, meanwhile, the present invention can simplify game unit in moving process Middle experience makes a response required operation when attacking, and then reduces number of operations and the time of user, to reduce the money of terminal Source consumption.
A kind of embodiment of the invention, the operational order include double click operation instruction and single-click operation instruction;Such as Fig. 2 institute Show, it is described to determine that the response of our game unit instructs according to the operational order, our game unit is controlled according to the sound It should instruct and response is carried out to the attack until the our game unit is moved to the target address location, comprising:
S31: if operational order is double click operation instruction, determine that the response instruction of we's game unit refers to for mobile do not attack It enables;Our game unit is controlled to the attack without counterattack, is directly moved to the target address location.
S32: if operational order is single-click operation instruction, determine that the response instruction of we's game unit refers to for mobile attack It enables;Controlling our game unit hits back to the attack, until being moved to the target address location.
In the present embodiment, the operational order includes that double click operation instruction and single-click operation instruct, double click operation instruction A kind of embodiment after terminal user has chosen our game unit, double-clicks the arbitrary region on map, i.e. triggering is double-clicked Operational order;A kind of embodiment of single-click operation instruction clicks map after terminal user has chosen our game unit On arbitrary region, i.e., triggering single-click operation instruction;Either double click operation instruction or single-click operation instruction, for destination address The determination of position and the generation of forward path are the same, unlike, if operational order is double click operation instruction, work as we Game unit instructs according to double click operation when forward path movement suffers from the attack of enemy's game unit and determines we The response instruction of game unit does not attack instruction to be mobile, controls our game unit to the attack without attack, directly It is moved to the target address location;If operational order is single-click operation instruction, when our game unit is in the forward path When movement suffers from the attack of enemy's game unit, it is to move that the response instruction for determining our game unit is instructed according to single-click operation Dynamic attack instruction controls our game unit and attacks the attack, and a kind of embodiment is to control our game unit The forward path of stilling according to while attacking is mobile, until being moved to the target address location;Another embodiment party Formula is to control the forward attack attack of our game unit pause, until being moved to target address location again after attack.
A kind of embodiment of the invention, the our game unit of the control is to the attack without counterattack, directly movement To the target address location, comprising:
The phylactic power defensive power numerical value for obtaining our game unit, according to the phylactic power defensive power numerical value to our game unit in preceding walking along the street The mobile sequence of diameter is ranked up, so that the our game unit that the preferential attack defending power numerical value of enemy's game unit is big, control Our game unit does not strike back the attack, is moved to the target address location according to the sequence after sequence.
When our unit to the attack suffered from without attack when, in order to reduce the damage of our game unit as far as possible It loses, in the present embodiment, obtains the phylactic power defensive power numerical value of our game unit, we's game unit includes a variety of different arm of the services classes Type, game unit for example including 5 I classes, the game unit of 10 II classes, the game unit of 8 III classes, different arm of the services types Game unit phylactic power defensive power numerical value it is different, according to the phylactic power defensive power to our game unit the mobile sequence of forward path into Row sequence controls our game unit and attacks described, and is moved to the destination address according to the sequence after sequence Position, a kind of embodiment are, after the high our game unit of phylactic power defensive power numerical value is arranged in, by the low we of phylactic power defensive power numerical value Game unit is arranged in front, the our game unit for preferentially allowing local game unit attack defending power numerical value high, and phylactic power defensive power number Target address location can be rapidly moved to by being worth low our game unit, to reduce the loss of our game unit.
A kind of embodiment of the invention, the our game unit of the control hits back to the attack, until being moved to The target address location, comprising:
Obtain the attack numerical value of our game unit;Control the our game that the attack numerical value meets preset condition Unit is stopped and is hit back to the attack, and the our game unit is controlled after attack and is moved to the destination address Position, remaining our game unit are directly moved to the target address location.
When our unit attacks the attack suffered from, in order to which we's game unit in part can be reached as early as possible Target address location in the present embodiment, obtains the attack numerical value of our game unit, we's game unit includes a variety of Different arm of the services types, game unit for example including 5 I classes, the game unit of 10 II classes, the game unit of 8 III classes, no It is different with the attack numerical value of the game unit of arm of the services type, then control the we that the attack numerical value meets preset condition Game unit, which stops, simultaneously attacks the attack, until controlled after attack the our game unit be moved to it is described Target address location, a kind of embodiment are that the higher our game unit of control attack numerical value stops, to enemy's game list Position is attacked, until allowed again after attack the higher our game unit of those attack numerical value with being moved to the target Location position, and the lower our game unit of attack numerical value then continues to move to, and allows part we's game unit can be as early as possible Target address location is reached, corresponding task is completed.
A kind of embodiment of the invention, it is described according to the target address location, it generates and reaches the target address location Forward path after, further includes:
The default display format that the forward path is matched according to the operational order, according to the default display format exhibition Show the forward path.
The movement that terminal user controls our game unit includes a variety of modes of operation, and then triggers different operations and refer to It enables, in the present embodiment, after generating the forward path for reaching the target address location, according to operational order matching Then the default display format of forward path shows the forward path according to the default display format, specifically, the behaviour Making instruction includes the first operational order and the second operational order, when the forward path then generated in response to the first operational order Afterwards, the forward path is shown with the first default display format;When the forward path then generated in response to the second operational order, The forward path is shown with the second default display format;For example, the first default display format is green, the second default display shape Formula is red;Or first default display format be it is rectangular, the second default display format be triangle, different operation is referred to It enables and triggers the forward path generated and shown on terminal game application interface with different display formats, terminal user is facilitated to distinguish Not.
A kind of embodiment of the invention, the default display format include the first default display format and the second default display Form;After the forward path according to the default display format displaying, further includes:
User is received to the switching command of the default display format of the forward path, before the first default display format Walking along the street diameter is switched to the forward path of the second default display format or the forward path of the second default display format is switched to The forward path of one default display format, and switch corresponding response instruction.
In the different times that game carries out, terminal is that game unit distributes different tasks, in the above-described embodiments, according to Different operational orders shows forward path with different default display format, in the present embodiment, the default display format It is distinguished including the first default display format and the second default display format, such as colouring discrimination or shape, when terminal user needs to become It, can be to the progress of the presets of the forward path when more our game unit instructs the response of the attack suffered from Switching, when terminal game application receives user to the switching command of the default display format of the forward path, if being originally used for the The forward path of one default display format, then be switched to the forward path of the second default display format, if it is default to be originally used for second The forward path of display format, then be switched to the forward path of the first default display format, while switching our game unit and meeting with Respond instruction when the attack encountered, such as original our game unit for suffer from attack when response do not attacked for movement, After switching, for suffer from attack when response be mobile attack;Display format by switching forward path reaches fast Speed switches our game unit and the response of attack is instructed, so that terminal user be facilitated to control our game unit.
A kind of embodiment of the invention, as shown in figure 3, control we's game unit is instructed according to the response to institute It states attack and carries out response until the our game unit is moved to after the target address location, further includes:
S40: after our game unit reaches the target address location, if suffering from enemy's game unit again Attack, controlling our game unit hits back to enemy's game unit.
In the present embodiment, after our game unit reaches the target address location, regardless of our game unit it How is the preceding response for attack, if suffering from the attack of enemy's game unit again, controls our game unit to the enemy Square game unit is attacked, and is not needed user and is controlled our game unit again for the response of attack, to improve game Operating efficiency.
As shown in figure 4, in another embodiment, the present invention provides a kind of game unit formation control devices, comprising:
It instructs respond module 10: for the operational order in response to user to our game unit, determining we's trip The target address location of programme position;
Mobile control module 20: for generating before reaching the target address location according to the target address location It is mobile according to the forward path to control the our game unit for walking along the street diameter;
Attack-response module 30: for judging described when the our game unit is when the forward path is mobile Whether square game unit suffers from the attack of enemy's game unit in the forward path, if so, according to the operational order The response instruction for determining we's game unit controls our game unit and is responded according to response instruction to the attack Until the our game unit is moved to the target address location.
A kind of embodiment of the invention, the operational order include double click operation instruction and single-click operation instruction;It is described to attack It hits respond module 30 and executes the response instruction for determining our game unit according to the operational order, control our game unit root Response is carried out to the attack according to response instruction until the our game unit is moved to the target address location, is wrapped It includes:
If operational order is double click operation instruction, determine that the response instruction of we's game unit does not attack instruction for movement; Our game unit is controlled to the attack without counterattack, is directly moved to the target address location;
If operational order is single-click operation instruction, determine that the response instruction of we's game unit is that mobile attack instructs;Control Making our game unit hits back to the attack, until being moved to the target address location.
A kind of embodiment of the invention, the attack-response module 30 further include executing:
The phylactic power defensive power numerical value for obtaining our game unit, according to the phylactic power defensive power numerical value to our game unit in preceding walking along the street The mobile sequence of diameter is ranked up, so that the our game unit that the preferential attack defending power numerical value of enemy's game unit is big, control Our game unit does not strike back the attack, is moved to the target address location according to the sequence after sequence.
A kind of embodiment of the invention, the attack-response module 30 further include executing:
Obtain the attack numerical value of our game unit;Control the our game that the attack numerical value meets preset condition Unit is stopped and is hit back to the attack, and the our game unit is controlled after attack and is moved to the destination address Position, remaining our game unit are directly moved to the target address location.
A kind of embodiment of the invention, the mobile control module further include executing:
The default display format that the forward path is matched according to the operational order, according to the default display format exhibition Show the forward path.
A kind of embodiment of the invention, the mobile control module further include executing:
User is received to the switching command of the default display format of the forward path, before the first default display format Walking along the street diameter is switched to the forward path of the second default display format or the forward path of the second default display format is switched to The forward path of one default display format, and switch corresponding response instruction.
A kind of embodiment of the invention, the attack-response module 30 further include executing:
After our game unit reaches the target address location, if suffering from attacking for enemy's game unit again It hits, controlling our game unit hits back to enemy's game unit.
In another embodiment, the present invention provides a kind of computer readable storage medium, computer-readable storage mediums Computer program is stored in matter, which realizes that game unit described in above-described embodiment is moved when being executed by processor Dynamic and attack control method.Wherein, the computer readable storage medium includes but is not limited to that any kind of disk is (including soft Disk, hard disk, CD, CD-ROM and magneto-optic disk), ROM (Read-Only Memory, read-only memory), RAM (Random AcceSS Memory, immediately memory), EPROM (EraSable Programmable Read-Only Memory, it is erasable Programmable read only memory), EEPROM (Electrically EraSable Programmable Read-Only Memory, Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic card or light card.It is, storage equipment includes by equipment (example Such as, computer, mobile phone) with any medium for the form storage or transmission information that can be read, can be read-only memory, disk or CD etc..
A kind of computer readable storage medium provided in an embodiment of the present invention is, it can be achieved that in response to user to our game list The operational order of position determines the target address location of the our game unit;According to the target address location, generates and reach It is mobile according to the forward path to control the our game unit for the forward path of the target address location;When described Square game unit judges whether the our game unit suffers from the forward path when the forward path is mobile The attack of enemy's game unit controls we's trip if so, determining that the response of our game unit instructs according to the operational order Programme position instructed according to the response response is carried out to the attack until the our game unit with being moved to the target Location position.By providing the control method of movement and the attack of the game unit in a kind of game, according to user to our game The operational order of unit determines the target address location of the our game unit, generates further according to the target address location The forward path of the target address location is reached, the our game unit is then controlled and is moved according to the forward path, During our game unit is moved along the forward path, if suffering from the attack of enemy's game unit, basis User determines that our game unit instructs the response of the attack suffered to the operational order of our game unit, then right The attack met in forward path operates again from main response, without terminal user, until our game unit is moved to institute Target address location is stated, not only guarantees that our game unit can quickly reach target address location, moreover it is possible to reduce our game Unit plane to the attack suffered from caused by loss, meanwhile, the present invention can simplify meeting in moving process for game unit Required operation is made a response when meeting attack, and then reduces number of operations and the time of user, so that the resource for reducing terminal disappears Consumption.
Above-mentioned game unit movement and attack control may be implemented in computer readable storage medium provided in an embodiment of the present invention The embodiment of method processed, concrete function realize the explanation referred in embodiment of the method, and details are not described herein.
In addition, the present invention also provides a kind of mobile terminals, as shown in figure 5, the mobile terminal in another embodiment Including devices such as processor 503, memory 505, input unit 507 and display units 509.Those skilled in the art can manage Solution, the structure devices shown in Fig. 5 do not constitute the restriction to all mobile terminals, may include than illustrating more or fewer portions Part, or the certain components of combination.Memory 505 can be used for storing application program 501 and each functional module, and processor 503 is transported Row is stored in the application program 501 of memory 505, thereby executing the various function application and data processing of equipment.Memory 505 can be built-in storage or external memory, or including both built-in storage and external memory.Built-in storage may include only It reads memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), fast Flash memory or random access memory.External memory may include hard disk, floppy disk, ZIP disk, USB flash disk, tape etc..Institute of the invention is public The memory opened includes but is not limited to the memory of these types.Memory 505 disclosed in this invention be only used as example rather than As restriction.
Input unit 507 is used to receive the input of signal and receives the input of user, and input unit 507 may include touch surface Plate and other input equipments, touch panel collect user on it or nearby touch operation (such as user using finger, The operation of any suitable object or attachment such as stylus on touch panel or near touch panel), and according to presetting The corresponding attachment device of driven by program;Other input equipments can include but is not limited to physical keyboard, function key (for example plays Control button, switch key etc.), trace ball, mouse, one of operating stick etc. or a variety of.Display unit 509 can be used for showing The information of user's input is supplied to the information of user and the various menus of computer equipment.Liquid can be used in display unit 509 The forms such as crystal display, Organic Light Emitting Diode.Processor 503 is the control centre of computer equipment, using various interfaces and The various pieces of the entire computer of connection, by running or executing the software program being stored in memory 503 and/or mould Block, and the data being stored in memory are called, perform various functions and handle data.
In one embodiment, the mobile terminal includes that one or more processors 503 and one or more are deposited Reservoir 505, one or more application program 501, wherein one or more of application programs 501 are stored in memory 505 In and be configured as being executed by one or more of processors 503, one or more of application programs 501 are configured to hold Game unit described in row above embodiments is mobile and attacks control method.503 energy of one or more processors shown in Fig. 5 It is enough to execute, realize instruction respond module 10, mobile control module 20, the function of attack-response module 30 shown in Fig. 4.
A kind of mobile terminal provided in an embodiment of the present invention is, it can be achieved that refer to the operation of our game unit in response to user It enables, determines the target address location of the our game unit;According to the target address location, generate with reaching the target It is mobile according to the forward path to control the our game unit for the forward path of location position;When the our game unit When the forward path is mobile, judge whether the our game unit suffers from enemy's game list in the forward path The attack of position, if so, determine that the response of our game unit instructs according to the operational order, control our game unit according to The response instruction carries out response to the attack until the our game unit is moved to the target address location.Pass through The control method of movement and the attack of a kind of game unit in game is provided, the operation of our game unit is referred to according to user It enables, determines the target address location of the our game unit, generated further according to the target address location and reach the target Then the forward path of address location controls the our game unit according to forward path movement, in our game list During position is moved along the forward path, if suffering from the attack of enemy's game unit, we are swum according to user The operational order of programme position determines that our game unit instructs the response of the attack suffered from, then to meeting in forward path The attack of chance operates again from main response, without terminal user, until our game unit is moved to the destination address position It sets, not only guarantees that our game unit can quickly reach target address location, moreover it is possible to reduce our game unit plane to experience The attack arrived and caused by loss, meanwhile, the present invention can simplify making when meeting with attack in moving process for game unit Operation needed for response, and then number of operations and the time of user are reduced, to reduce the resource consumption of terminal.
The movement of game unit and attack controlling party of above-mentioned offer may be implemented in mobile terminal provided in an embodiment of the present invention The embodiment of method, concrete function realize the explanation referred in embodiment of the method, and details are not described herein.
The above is only some embodiments of the invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (10)

1. a kind of game unit is mobile and attacks control method characterized by comprising
In response to user to the operational order of our game unit, the target address location of the our game unit is determined;
According to the target address location, the forward path for reaching the target address location is generated, controls the our game Unit is mobile according to the forward path;
When the our game unit is when the forward path is mobile, judge we's game unit in the forward path On whether suffer from the attack of enemy's game unit, if so, determining that the response of our game unit refers to according to the operational order It enables, controls our game unit according to response instruction and response is carried out to the attack until the our game unit is mobile To the target address location.
2. the method according to claim 1, wherein the operational order includes double click operation instruction and clicks behaviour It instructs;It is described to determine that the response of our game unit instructs according to the operational order, our game unit is controlled according to institute It states response instruction and response is carried out to the attack until the our game unit is moved to the target address location, comprising:
If operational order is double click operation instruction, determine that the response instruction of we's game unit does not attack instruction for movement;Control Our game unit, without counterattack, is directly moved to the target address location to the attack;
If operational order is single-click operation instruction, determine that the response instruction of we's game unit is that mobile attack instructs;Control is originally Square game unit hits back to the attack, until being moved to the target address location.
3. according to the method described in claim 2, it is characterized in that, the control we game unit to it is described attack without Counterattack, is directly moved to the target address location, comprising:
The phylactic power defensive power numerical value for obtaining our game unit moves our game unit in forward path according to the phylactic power defensive power numerical value Dynamic sequence is ranked up, so that the our game unit that the preferential attack defending power numerical value of enemy's game unit is big, control we Game unit does not strike back the attack, is moved to the target address location according to the sequence after sequence.
4. according to the method described in claim 2, it is characterized in that, control we's game unit carries out anti-the attack It hits, until being moved to the target address location, comprising:
Obtain the attack numerical value of our game unit;Control the our game unit that the attack numerical value meets preset condition It stops and hits back to the attack, the our game unit is controlled after attack and is moved to the destination address position It sets, remaining our game unit is directly moved to the target address location.
5. generation reaches institute the method according to claim 1, wherein described according to the target address location After the forward path for stating target address location, further includes:
The default display format that the forward path is matched according to the operational order shows institute according to the default display format State forward path.
6. according to the method described in claim 5, it is characterized in that, the default display format includes the first default display format With the second default display format;After the forward path according to the default display format displaying, further includes:
User is received to the switching command of the default display format of the forward path, by the preceding walking along the street of the first default display format Diameter is switched to the forward path of the second default display format or the forward path of the second default display format is switched to first in advance If the forward path of display format, and switch corresponding response instruction.
7. the method according to claim 1, wherein control we's game unit is instructed according to the response Response is carried out to the attack until the our game unit is moved to after the target address location, further includes:
After our game unit reaches the target address location, if suffering from the attack of enemy's game unit again, control Making our game unit hits back to enemy's game unit.
8. a kind of game unit is mobile and attacks control device characterized by comprising
It instructs respond module: for the operational order in response to user to our game unit, determining the our game unit Target address location;
Mobile control module: for generating the forward path for reaching the target address location according to the target address location, It is mobile according to the forward path to control the our game unit;
Attack-response module: for judge we's game when the our game unit is when the forward path is mobile Whether unit suffers from the attack of enemy's game unit in the forward path, if so, determining this according to the operational order The response of square game unit instructs, and controls our game unit according to response instruction and carries out response to the attack until institute It states our game unit and is moved to the target address location.
9. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program realizes that the described in any item game units of claim 1 to 7 are mobile and attack when the computer program is executed by processor Control method.
10. a kind of mobile terminal characterized by comprising
One or more processors;
Memory;
One or more application program, wherein one or more of application programs are stored in the memory and are configured To be executed by one or more of processors, one or more of application programs are configured to carry out according to claim 1 To 7 described in any item game units movements and attack control method.
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 true CN109395388A (en) 2019-03-01
CN109395388B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110215702A (en) * 2019-06-27 2019-09-10 网易(杭州)网络有限公司 The control method and control device organized into groups in game
CN110314373A (en) * 2019-07-08 2019-10-11 网易(杭州)网络有限公司 Information synchronization method, device, storage medium, processor and server
WO2022247196A1 (en) * 2021-05-24 2022-12-01 网易(杭州)网络有限公司 Game positioning method and apparatus, and mobile terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1794253A (en) * 2004-12-21 2006-06-28 株式会社光荣 Role group mobile control program memory medium and game device
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1794253A (en) * 2004-12-21 2006-06-28 株式会社光荣 Role group mobile control program memory medium and game device
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

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
百度网友DBC5766D8: "《百度知道》", 17 December 2013 *

Cited By (5)

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

Also Published As

Publication number Publication date
CN109395388B (en) 2022-05-10

Similar Documents

Publication Publication Date Title
US11376509B2 (en) Virtual object grouping method and device, storage medium, and electronic device
JP7038817B2 (en) Information processing methods, devices, storage media and electronic devices
CN109395388A (en) Game unit is mobile and attacks control method, device, storage medium and terminal
CN105214309A (en) A kind of information processing method, terminal and computer-readable storage medium
CN109126133A (en) game unit formation control method, device, storage medium and mobile terminal
CN105335064A (en) Information processing method, terminal, and computer storage medium
CN105260100A (en) Information processing method, terminal and computer storage medium
KR20210006513A (en) Graphical user interface for a gaming system
JP7232350B2 (en) Virtual key position adjustment method and device, computer device and program
CN111841001B (en) Information processing method, device, equipment and storage medium in game
CN110302530A (en) Virtual unit control method, device, electronic equipment and storage medium
WO2023020122A1 (en) Virtual skill control method and apparatus, device, storage medium, and program product
CN113885731B (en) Virtual prop control method and device, electronic equipment and storage medium
CN113101638A (en) Interactive data processing method and device in game
CN107038032A (en) The switching method of mobile terminal application running status, device and system
CN109701265A (en) Remote desktop cursor mode switching method, system, client and remote server
CN105597312A (en) Game command processing method and system
WO2024031969A9 (en) Method and apparatus for controlling virtual prop, and medium and electronic device
KR20140127931A (en) System and Method for implementing character action control skill in touch screen device
US10834561B2 (en) Smart hardware operation method and apparatus
CN116510287A (en) Game control method, game control device, electronic equipment and storage medium
CN109173260B (en) Game unit material acquisition control method and device, storage medium and mobile terminal
CN104007907A (en) Method for rapidly operating application program and intelligent terminal
CN113694514A (en) Object control method and device
CN113304472A (en) Secondary confirmation method and device, computer equipment and readable storage medium

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