CN109908592B - Virtual shield supplementing method and device, storage medium and terminal - Google Patents

Virtual shield supplementing method and device, storage medium and terminal Download PDF

Info

Publication number
CN109908592B
CN109908592B CN201910027210.2A CN201910027210A CN109908592B CN 109908592 B CN109908592 B CN 109908592B CN 201910027210 A CN201910027210 A CN 201910027210A CN 109908592 B CN109908592 B CN 109908592B
Authority
CN
China
Prior art keywords
virtual shield
mobile
shield
virtual
value
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
CN201910027210.2A
Other languages
Chinese (zh)
Other versions
CN109908592A (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 CN201910027210.2A priority Critical patent/CN109908592B/en
Publication of CN109908592A publication Critical patent/CN109908592A/en
Application granted granted Critical
Publication of CN109908592B publication Critical patent/CN109908592B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/60Other road transportation technologies with climate change mitigation effect
    • Y02T10/70Energy storage systems for electromobility, e.g. batteries

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The invention provides a virtual shield supplementing method, a device, a storage medium and a terminal, wherein the virtual shield supplementing method comprises the following steps: acquiring the current virtual shield storage capacity and position coordinates of a virtual shield energy charging station; obtaining a virtual shield value loss value of own mobile army unit within the preset radius range of the position coordinate; the virtual shield loss value is the difference between the maximum virtual shield value of the own mobile army unit and the current virtual shield value; and if the virtual shield loss value of the own mobile arming unit is larger than a preset value, transferring the current virtual shield storage amount of the virtual shield energy charging station to the corresponding own mobile arming unit at a preset energy charging speed. According to the invention, the virtual shield can be automatically supplemented through the virtual shield energy charging station only by controlling the own mobile army unit to move within the preset radius range of the position coordinate by the user, so that the operation of the user on the mobile terminal is simplified, and the operation efficiency of the user is improved.

Description

Virtual shield supplementing method and device, storage medium and terminal
Technical Field
The invention relates to the technical field of computers, in particular to a virtual shield supplementing method, a virtual shield supplementing device, a storage medium and a terminal.
Background
For computer game (for short, end game), because the virtual characters are numerous, and the magic skills and control modes corresponding to the virtual characters are also very many, and in addition, the operations of building virtual buildings, collecting virtual resources and the like are performed, so that many large classical end games can only be operated at the computer end through the traditional modes of a mouse, a keyboard and the like, and are difficult to operate at the mobile end lacking a mouse and a keyboard. For example, in a large-scale end game, a user selects a required virtual character, or selects a virtual character with required skills, then expands an operation list corresponding to the character on an interface, determines an executed instruction according to an operation selected by the user from the operation list, or invokes a required instruction through cooperation of a keyboard shortcut key and a mouse, and determines a release target or a control object corresponding to the instruction through further operation. For a large-scale end game with a large game map, wide virtual character distribution and more skills in the game, if the operation mode is directly moved to the mobile terminal, the user spends a large amount of time dragging the map and searching for the needed virtual character due to the small display area of the mobile terminal and no combined operation of a mouse and a keyboard, so that the operation difficulty of the user is increased; for instant fight games, the play of user strategies is greatly limited, and the user experience is extremely poor.
The existing portable mobile devices such as touch screen mobile phones and the like have limited display range and lack of external control devices such as a mouse, a keyboard and the like, and only through single touch screen touch click, different types of operations such as character selection, skill selection, operation interface switching, character movement control, magic skill release and the like are realized, so that corresponding virtual operation buttons occupy a large number of display areas, a game main interface is reduced, and user experience is poor. In some games, in order to reduce the influence of the virtual operation buttons on the game main interface, some virtual operation buttons are generally hidden, but the hiding also increases the difficulty of finding the required virtual operation buttons for users.
Due to the operation complexity of the large-scale end game and the singleness of the touch control mode of the existing mobile equipment, a large number of classical end games are difficult to realize on the mobile equipment; especially, for the functions which are needed to be used in the game but have more use frequency, if the set control buttons are deeper (the control buttons can be input by clicking for many times), the operation efficiency is reduced; if the operation buttons are directly arranged on the game interface, the operation efficiency is improved, but the game interface with limited display area is occupied, so that other operation buttons with higher operation frequency are difficult to arrange on the game interface.
In some fight games at the PC end, the weapon and seed units operated by the user may have not only life values but also shield values. The shield value is used for preventing or counteracting harm of the enemy army to the army unit operated by the user, so that the life value of the army unit is prevented from being reduced. For example, if an adversary unit attacks an army unit a, if the army unit a does not have a shield, the army unit a will directly consume the corresponding vital value; if the army unit A has a shield, the shield is preferentially subjected to attack force, and if the shield is broken or loses the capability of bearing the attack force, the life value of the army unit A is consumed. In order to extend the combat capability of the army units and to increase the game's resistance by the user's handling capability, in some games, when the shield is broken or loses the ability to withstand the force of attack, the number of shield points may be repaired or replenished by special army or construction. The operation of repairing or supplementing the number of the shields is generally to click a specific weapon with maintenance skills through a mouse, then select maintenance instructions in a menu of the weapon or input the maintenance instructions together with the mouse through a keyboard shortcut key (for example, click the mouse while pressing a keyboard alt key), and then designate a target unit needing maintenance; or selecting the energy charging building with the function of supplementing the shield, and then directly transferring the energy of the energy charging building to a target unit at one time through the combination operation of a mouse and a keyboard.
However, in the mobile terminal, the user generally can only input a touch instruction through the touch screen, and the matching of the mouse and the keyboard is lacking, so that the mode of inputting the instruction is single, and different shortcut operations are difficult to be combined by means of the external component, so that the user usually needs to click the touch screen of the mobile terminal for multiple times to input the explicit touch instruction, thereby seriously reducing the operation efficiency of the user, increasing the resource consumption of the client, causing the difficulty in running the fight computer game on the mobile terminal directly, and reducing the range of game users.
Disclosure of Invention
Aiming at the problem that the large-scale fight end game is difficult to operate on the mobile terminal, the invention provides a virtual shield supplementing method, a device, a storage medium and a terminal, so as to simplify the control problem when the large-scale fight end game supplements the virtual shield on the mobile terminal and provide convenience for the end game to operate on the mobile terminal.
The virtual shield supplementing method comprises the following steps:
acquiring the current virtual shield storage capacity and position coordinates of a virtual shield energy charging station;
obtaining a virtual shield value loss value of own mobile army unit within the preset radius range of the position coordinate; the virtual shield loss value is the difference between the maximum virtual shield value of the own mobile army unit and the current virtual shield value;
And if the virtual shield loss value of the own mobile arming unit is larger than a preset value, transferring the current virtual shield storage amount of the virtual shield energy charging station to the corresponding own mobile arming unit at a preset energy charging speed.
Further, if the virtual shield loss value of the own mobile arming unit is greater than a preset value, transferring the current virtual shield storage amount of the virtual shield energy charging station to the corresponding own mobile arming unit at a preset energy charging speed, including:
if the virtual shield loss value of one own mobile arming unit is larger than a preset value, transferring all or part of the current virtual shield storage capacity of the virtual shield energy charging station to the own mobile arming unit at a preset energy charging speed according to the virtual shield loss value;
if the virtual shield loss value of the plurality of own mobile arming units is larger than a preset value, sequencing the plurality of own mobile arming units according to the fact that the virtual shield loss value of each own mobile arming unit is from large to small; and according to the sorting, transferring the current virtual shield storage capacity of the virtual shield energy charging station to the plurality of own mobile army seed units in sequence at a preset energy charging speed.
Further, according to the sorting, transferring the current virtual shield storage amount of the virtual shield energy charging station to the plurality of own mobile weapon units in sequence at a preset energy charging speed, including:
obtaining a virtual shield loss value of an Nth own mobile arming unit in the sorting, wherein N is a positive integer;
judging whether the virtual shield value loss value of the Nth own mobile arming unit is smaller than the current virtual shield storage amount of the virtual shield energy charging station or not;
if yes, deducting the virtual shield value loss value from the current virtual shield storage amount of the virtual shield energy charging station, and setting the virtual shield value of the own mobile arming unit as the maximum virtual shield value of the own mobile arming unit when the preset animation is finished; continuing to obtain the virtual shield loss value of the own mobile arming unit positioned at the (n+1) th position in the sorting until the virtual shield value of each own mobile arming unit in the preset radius range is set as the maximum virtual shield value of the own mobile arming unit;
and if not, the current virtual shield storage capacity of the virtual shield energy charging station is completely deducted, and when the preset animation is finished, the virtual shield value of the own mobile army unit is set to be the sum of the current virtual shield storage capacity and the current virtual shield value of the own mobile army unit.
Further, if the current virtual shield storage capacity of the virtual shield charging station is lower than the maximum virtual shield storage capacity of the virtual shield charging station, the current virtual shield storage capacity of the virtual shield charging station is increased at a preset recovery speed until the maximum virtual shield storage capacity is reached.
Further, before transferring the current virtual shield storage amount of the virtual shield energy charging station to the corresponding own mobile army seed unit at the preset energy charging speed, the method further includes:
detecting the current virtual shield storage amount of the virtual shield energy charging station;
confirming that the current virtual shield storage amount is lower than a lowest storage value; the lowest storage value is smaller than the maximum virtual shield storage amount;
continuously detecting whether the current virtual shield storage amount of the virtual shield charging station is increased to the lowest storage value;
if yes, continuing to transfer the current virtual shield storage capacity of the virtual shield energy charging station to the corresponding own mobile army seed unit at the preset energy charging speed.
Further, before transferring the current virtual shield storage amount of the virtual shield energy charging station to the corresponding own mobile army seed unit at the preset energy charging speed, the method further includes:
Acquiring the distance between the position coordinates of the virtual shield energy charging station and the own mobile weapon unit, and calculating a preset energy charging speed according to the distance; the preset charging speed is positively correlated with the distance.
Further, the transferring the current virtual shield storage capacity of the virtual shield charging station to the corresponding own mobile army seed unit at the preset charging speed further includes:
judging whether a preset accelerating building exists in the current virtual building of the user or not;
if not, taking the preset speed as the preset energy charging speed, and transferring the current shield storage capacity of the virtual shield energy charging station to a corresponding own mobile weapon seed unit at the preset energy charging speed;
if yes, calculating an acceleration value according to the acceleration building, obtaining a preset energy charging speed according to the acceleration value and the preset speed, and transferring the current shield storage amount of the virtual shield energy charging station to a corresponding own mobile weapon unit at the preset energy charging speed.
The invention also provides a virtual shield supplementing device, which comprises:
the information acquisition module is used for acquiring the current virtual shield storage capacity and the position coordinates of the virtual shield energy charging station;
the shield loss module is used for acquiring a virtual shield value loss value of the own mobile weapon unit within the preset radius range of the position coordinate; the virtual shield loss value is the difference between the maximum virtual shield value of the own mobile army unit and the current virtual shield value;
And the energy charging module is used for transferring the current virtual shield storage capacity of the virtual shield energy charging station to the corresponding own mobile army unit at a preset energy charging speed when the virtual shield loss value of the own mobile army unit is larger than a preset value.
The invention also proposes a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the virtual shield replenishment method of any of the preceding claims.
The invention also proposes a terminal comprising:
one or more processors;
storage means for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the steps of any of the virtual shield replenishment methods described in the foregoing.
The beneficial effects of the invention are as follows:
1. according to the virtual shield supplementing method, the virtual shield can be automatically supplemented through the virtual shield energy charging station only by controlling the own mobile army unit to move to the preset radius range of the position coordinate by the user, so that the operation of the user on the mobile terminal is simplified, and the operation efficiency of the user is improved. When the own mobile army unit does not need to supplement the shield, the virtual shield energy charging station can be left to automatically stop energy charging, so that the energy charging device is convenient and quick.
2. According to the invention, the transfer mode of the virtual shield can be determined according to the quantity of the own mobile army units needing to be supplemented with the virtual shield in the energy charging range, and when the virtual shields need to be supplemented by a plurality of own mobile army units, the virtual shield can be supplemented by the own mobile army unit with the largest virtual shield loss value preferentially, so that the risk of overall army loss is reduced rapidly.
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 invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings, in which:
FIG. 1 is a schematic diagram of an embodiment of a game interface of the present invention;
FIG. 2 is a flow chart of an embodiment of a virtual shield replenishment method according to the present invention;
FIG. 3 is a flowchart illustrating a virtual shield replenishment method according to another embodiment of the present invention;
FIG. 4 is a flowchart illustrating a virtual shield replenishment method according to another embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal embodiment of the present invention.
Detailed Description
Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are illustrative only and are not to be construed as limiting the invention.
It will be understood by those within the art that, unless expressly stated otherwise, the singular forms "a," "an," "the," and "the" are intended to include the plural forms as well, and that "first," "second," and "the" are used herein merely to distinguish one and the same technical feature and do not limit the order, quantity, etc. of that technical feature. 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, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It will be understood by those skilled in the art that 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 unless defined otherwise. 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.
As used herein, "portable touch device," "terminal device," and "terminal device" are understood by those skilled in the art to include both devices that include wireless signal receivers only without transmitting capability, and devices that include receiving and transmitting hardware having devices capable of performing two-way communications over a two-way communications link. Such a device may include: a cellular or other communication device having a single-line display or a multi-line display or a cellular or other communication device without a multi-line display; a PCS (Personal Communications Service, personal communication system) that may combine voice, data processing, facsimile and/or data communication capabilities; a PDA (Personal Digital Assistant ) that may include a radio frequency receiver, pager, internet/intranet access, web browser, notepad, calendar, and/or GPS (Global Positioning System ) receiver. As used herein, "portable touch devices," "terminals," "terminal devices," may be portable, transportable, installed in a vehicle (aeronautical, maritime, and/or land-based), or adapted and/or configured to operate locally and/or in a distributed fashion, at any other location(s) on earth and/or in space. As used herein, "portable touch device", "terminal device" may also be a communication terminal, a netsurfing terminal, a music/video playing terminal, for example, a PDA, MID (Mobile Internet Device ) and/or a mobile phone with music/video playing function.
The invention provides a virtual shield supplementing method for solving the problem that when an end trip runs on a mobile terminal, the input efficiency of part of operation instructions is low. For convenience in describing the method described in this patent, it is necessary to conduct the following pilot description of the operation of the present invention in connection with the game interface embodiment shown in fig. 1.
The game interface 10 in fig. 1 may be a touch display area of a portable touch device. When the game application is in full screen mode, the game interface 10 can be displayed on all touch display areas of the portable touch device; in the non-full screen mode, the game interface 10 may also be displayed on a portion of the touch display area of the portable touch device according to a preset size. A virtual shield charging station 20 may be built in the game, and the virtual shield charging station 20 may be used to supplement the own mobile army unit 30 with points of the virtual shield. According to the operation mode of the general game, the operation of supplementing the own mobile army unit 30 with the virtual shield can be as follows: the virtual shield charging station 20 is clicked first, then the option of supplementing the virtual shield is clicked, and then the number of shield points to be supplemented and the own mobile army unit 30 are clicked. The unit information display area 40 may be used to display information of a currently selected target unit, for example, when a user selects a own mobile weapon unit 30, a character name, a life value, a shield value, an attack force, an attack scope, and the like of the unit may be displayed. The operation mode needs four operation steps to realize the supplement of the energy shield of the own mobile army unit 30, and the operation process is too complicated, which is unfavorable for the fight game.
In some games, the virtual shield charging station 20 may be a stationary virtual building in which a certain amount of virtual shield points may be stored; of course, in some embodiments, the device may be a movable virtual building or a vehicle, which is not limited in this application. The own mobile army unit 30 can be multiple army units controlled by the same user, or specified special army units, or army units belonging to different users but all belonging to the same alliance in the fight game, and can be set according to specific game rules. When the number of virtual shield points of the virtual shield energy charging station 20 is supplemented to the own mobile army unit 30, the number of virtual shield points of the virtual shield energy charging station 20 is reduced, and correspondingly, the number of virtual chaos points of the own mobile army unit 30 is increased, and the increment and the decrement are equal. The number of virtual shield points of the virtual shield charging station 20 may be increased at a fixed rate with the game time until the stored upper limit is reached, or may be manufactured and increased according to the user's instructions until the stored upper limit is reached. The virtual shield value of the own mobile army unit 30 can only be supplemented from the virtual shield charging station 20, but cannot be increased or manufactured by itself.
The game interface 10 shown in FIG. 1 is merely one example of a game interface of the present invention to facilitate an understanding of the method of the present invention; those skilled in the art will appreciate that the game interface may vary from game to game; some users can also adjust the layout of the game interface or the positions of some buttons according to different requirements; in some games, the number or arrangement of the buttons of the virtual resources may be different according to the different number of the virtual resources, which is not described herein.
The invention provides an embodiment of a virtual shield supplementing method shown in fig. 2, which specifically comprises the following steps:
step S10: acquiring the current virtual shield storage capacity and position coordinates of a virtual shield energy charging station;
step S20: obtaining a virtual shield value loss value of own mobile army unit within the preset radius range of the position coordinate; the virtual shield value loss value is the difference between the maximum virtual shield value of the own mobile army unit and the current virtual shield value;
step S30: and if the virtual shield loss value of the own mobile arming unit is larger than a preset value, transferring the current virtual shield storage amount of the virtual shield energy charging station to the corresponding own mobile arming unit at a preset energy charging speed.
Wherein, each step is specifically as follows:
step S10: and acquiring the current virtual shield storage capacity and position coordinates of the virtual shield energy charging station.
In some games, the building location of the virtual shield charging station 20, the virtual shield storage amount, and the life value may be set with different rules according to the game character currently selected by the user. For example, when the user's character is a supernatural, the building location thereof can be located only within a designated area, the maximum value of the virtual shield storage amount thereof can be 200 points, and the life value thereof can be 200 points. If the virtual shield charging station 20 is attacked, the shield storage can be reduced until the virtual shield charging station is reduced to a zero value, and then the life value of the virtual shield charging station is reduced; or directly reducing the life value when being attacked; when the life value decreases to zero, the virtual shield charging station 20 is destroyed, and the own mobile army unit 30 cannot be supplemented with the virtual shield. For simplicity of description, the construction position, life value, etc. of the virtual shield charging station 20 are not limited in any way in the embodiment of the present invention.
To balance the game values, the virtual shield charging station 20 has the maximum virtual shield storage capacity so that users can reasonably distribute limited virtual shield points to different own mobile units 30 according to tactical requirements. If the current virtual shield storage amount is the maximum virtual shield storage amount, after the virtual shield charging station 20 supplements the virtual shield for the own mobile army unit 30, the current virtual shield storage amount becomes the difference between the number of points of the maximum virtual shield storage amount and the number of points of the virtual shield supplemented for the own mobile army unit 30. When there are multiple own mobile arming units 30 supplementing the virtual shield, the virtual shield of the virtual shield charging station 20 may be quickly lowered until a value of zero. When the virtual shield charging station 20 stops supplementing the own mobile arming unit 30 with the virtual shield, the current virtual shield storage amount of the virtual shield charging station 20 may be increased at a certain speed or according to a user instruction so as to continuously provide the own mobile arming unit 30 with the supplementing function of the virtual shield. The growth of the game can consume a certain amount of virtual currency, such as a certain amount of virtual crystal or gas mine resources, and the like, and the game can be specifically set according to game requirements, and the game is not repeated here. Therefore, at different game time points, the current virtual shield storage amount of the virtual shield charging station 20 is a variable value.
When the virtual shield energy charging station 20 is a fixed building, the position coordinates of the virtual shield energy charging station 20 are fixed coordinates; when the virtual shield charging station 20 is a movable building, its coordinate position is a variable value, and the movement may be continuous along the virtual ground or through the air or underground. With the position coordinates as the center, the virtual shield energy charging station 20 may provide a supplementary function of the virtual shield for the own mobile army unit 30 within the surrounding preset range, for example, as shown in fig. 1, the virtual shield energy charging station 20 may supplement the virtual shield for the own mobile army unit 30 within the energy charging range 21 shown by the dotted line, so as to improve the protection capability of the own mobile army unit 30 in combat, and improve the combat time.
Step S20: obtaining a virtual shield value loss value of own mobile army unit within the preset radius range of the position coordinate; and the virtual shield loss value is the difference between the maximum virtual shield value of the own mobile army unit and the current virtual shield value.
Each own mobile army unit 30 may have a maximum virtual shield value, and different army units may correspond to different maximum virtual shield values. For example, a user currently has six moveable arms, three of which have virtual shields, which may have different maximum virtual shield values; of course, in some embodiments, the maximum virtual shield value of the plurality of movable arms may be the same. When the own mobile army unit 30 is attacked in the battle, the point number of the current virtual shield value is correspondingly reduced, for example, 1 point attack is carried out, and then the point number of the current virtual shield value is reduced by 1; when the point number of the current virtual shield value reaches a zero value, if the attack is continued, the life value of the own mobile weapon unit 30 is correspondingly reduced, for example, if the attack is suffered at one point, the 1-point life value is reduced; when the vital value reaches zero, the own mobile army unit 30 dies. In order to reduce the death rate of the own mobile army unit 30 and reduce the army force loss, the user can move the own mobile army unit 30 with a lower current virtual shield value to the preset energy charging range 21, that is, the position coordinate is in the preset radius range, so that the virtual shield energy charging station 20 transfers the self-stored virtual shield points to the own mobile army unit 30, thereby improving the protection capability of the own mobile army unit 30.
To improve game play, the user may control each own mobile army unit 30 to move individually to organize rapid and efficient attack or defense; meanwhile, the user can control the own mobile army unit 30 to continuously fight or move to the energy charging range 21 to supplement the virtual shield according to the current virtual shield value and the life value of the own mobile army unit 30. Therefore, the charging range 21 is limited to be within the preset radius range of the position coordinate in the step, so that the user can avoid the loss of force by improving the proficiency and sensitivity of operation, thereby obtaining the game advantage, improving the influence of the user operation on the game situation, improving the mastery of the user on the game situation, and further improving the entertainment and the competitive performance of the game.
The virtual shield loss value of the own mobile army unit 30 is the difference between the maximum virtual shield value of the own mobile army unit 30 and the current virtual shield value, and the virtual shield loss value is also the virtual shield value that the virtual shield charging station 20 needs to supplement to the own mobile army unit 30.
Step S30: and if the virtual shield loss value of the own mobile arming unit is larger than a preset value, transferring the current virtual shield storage amount of the virtual shield energy charging station to the corresponding own mobile arming unit at a preset energy charging speed.
In the step, when the loss value of the virtual shield is smaller, the virtual shield does not need to be automatically supplemented, so that the consumption of virtual resources is reduced; especially, when a certain cooling time is required for supplementing the virtual shield, and the own mobile army unit 30 which is supplementing the virtual shield cannot move within the cooling time, if a longer cooling time is spent for supplementing fewer virtual shields, the time for executing other tasks by the own mobile army unit 30 is wasted, so that the weapon development or resource development speed of a user is delayed. The preset value can be a value which is preset in the game value and cannot be changed by a user, so that the game value design is simplified, and the attack value and the protection value among various arms are conveniently balanced; the preset value can also be a value which can be modified by a user through game setting, so that the user can conveniently set a proper value according to the current game process, the development speed of virtual resources and the like.
The energy charging mode of transferring the current virtual shield storage capacity of the virtual shield energy charging station to the corresponding own mobile army unit can comprise the following steps: one is to supplement the current virtual shield value of the own mobile army unit 30 to the maximum virtual shield value through one energy charging action, wherein the duration of the energy charging action is fixed preset energy charging time or the preset energy charging time which is in positive correlation with the point number of the virtual shield value loss value; the other is that the number of points of the virtual shield value of the own mobile army unit 30 is increased at a preset speed until the maximum virtual shield value of the increase value is reached. Therefore, according to different charging modes, the preset charging speed can comprise different calculation modes or preset speed values.
In the charging process of the own mobile army unit 30, the corresponding own mobile army unit 30 can be set to be in an immovable state according to game setting, and if the mobile army unit moves, the timing is restarted; the movable state is also set, that is, the corresponding own mobile weapon unit 30 can move within the charging range 21, so that the charging effect is not affected at all, or the charging speed is only affected, and the interruption and the re-timing of charging are not caused. When the current virtual shield storage amount of the virtual shield energy charging station is transferred to the corresponding own mobile army unit, the virtual shield increment value of the own mobile army unit 30 is the same as the virtual shield increment value reduced by the virtual shield energy charging station 20.
The virtual shield of the mobile army unit can lose when being attacked, and after the virtual shield is lost, if the virtual shield can not automatically recover, the army force can be rapidly lost. In part of the end-stream, the user needs to manually click the virtual shield charging station 20 and the own mobile army unit 30 for many times, and input corresponding operation instructions through a keyboard, so that the operation is complex. According to the invention, the virtual shield can be automatically supplemented through the virtual shield energy charging station 20 only by controlling the own mobile army unit 30 to move within the preset radius range of the position coordinates by the user, so that the operation of the user on the mobile terminal is simplified, and the operation efficiency of the user is improved. When the own mobile army unit 30 does not need to supplement the shield, the virtual shield energy charging station 20 can be left to automatically stop energy charging, so that the energy charging is convenient and quick.
In another embodiment of the present invention, as shown in fig. 3, if the virtual shield loss value of the own mobile army unit is greater than a preset value, the current virtual shield storage amount of the virtual shield energy charging station is transferred to the corresponding own mobile army unit at a preset energy charging speed, which specifically includes:
step S31: if the virtual shield loss value of one own mobile arming unit is larger than a preset value, transferring all or part of the current virtual shield storage capacity of the virtual shield energy charging station to the own mobile arming unit at a preset energy charging speed according to the virtual shield loss value;
step S32: if the virtual shield loss value of the plurality of own mobile arming units is larger than a preset value, sequencing the plurality of own mobile arming units according to the fact that the virtual shield loss value of each own mobile arming unit is from large to small; and according to the sorting, transferring the current virtual shield storage capacity of the virtual shield energy charging station to the plurality of own mobile army seed units in sequence at a preset energy charging speed.
When there is only one own mobile army unit 30, the present embodiment can determine the virtual shield value for transfer based on the virtual shield loss value. For example, if the virtual shield loss value is 5 points, the current virtual shield storage amount in the virtual shield charging station 20 is not less than 5 points, then the partial virtual shield points in the current virtual shield storage amount in the virtual shield charging station may be transferred to the own mobile army unit 30 once, so that the virtual shield of the own mobile army unit 30 is supplemented to the maximum virtual shield value. The time required for completing the transfer once is a preset time, and the preset time can be the same as the transfer animation performance of the virtual shield, namely: at the end of the preset time for performing the transition animation of the virtual shield, 5 points of virtual shields can be deducted from the virtual shield charging station 20, and the current virtual shield value of the own mobile arming unit 30 is increased by 5, namely, the current virtual shield value of the own mobile arming unit 30 is increased to the maximum virtual shield value of the own mobile arming unit 30. When the current virtual shield storage amount in the virtual shield charging station 20 is less than 5 points, all the current virtual shield storage amount can be transferred to the own mobile army seed unit 30 at a time, so that the virtual shield points are not wasted.
When the virtual shield loss values of the plurality of own mobile arming units 30 in the energy charging range 21 are larger than a preset value, the virtual shield energy charging station 20 needs to supplement the virtual shields to the plurality of own mobile arming units 30; the present embodiment can sort the virtual shield loss values of each own mobile weapon unit 30 from large to small, and obtain the sequence of sequentially supplementing the virtual shields to the plurality of own mobile weapon units 30, so as to achieve the purpose of quickly supplementing the virtual shields to the own mobile weapon unit 30 with the largest virtual shield loss value, that is, preferentially supplementing the shields to the own mobile weapon unit 30 with the largest possible death risk, so as to reduce the death risk caused by attack, and thus the own mobile weapon unit 30 can be put into combat again as soon as possible. According to the embodiment, the transferring mode of the virtual shield can be determined according to the number of the own mobile army units 30 needing to supplement the virtual shield in the energy charging range 21, and when the plurality of own mobile army units 30 need to supplement the virtual shield, the own mobile army unit 30 with the largest loss value of the virtual shield can be supplemented with the virtual shield preferentially, so that the death risk of the own mobile army unit 30 is reduced, and the risk of the overall army loss of a user is reduced.
In other embodiments of the present application, the supplement manner of the virtual shield may be to transfer the points of multiple virtual shields at a time within a certain period of time, or may be to reduce the points of the virtual shield storage of the virtual shield charging station 20 at a fixed speed and increase the points of the virtual shield of the corresponding own mobile weapon unit 30 at the same time, which may be determined according to a specific game setting.
Further, as shown in fig. 4, according to the sorting, the transferring, in order, the current virtual shield storage amount of the virtual shield charging station to the plurality of own mobile weapon units at a preset charging speed specifically includes:
step S321: obtaining a virtual shield loss value of an Nth own mobile arming unit in the sorting, wherein N is a positive integer;
step S322: judging whether the virtual shield value loss value of the Nth own mobile arming unit is smaller than the current virtual shield storage amount of the virtual shield energy charging station or not; if yes, go to step S323; if not, go to step S324;
step S323: deducting the virtual shield value loss value from the current virtual shield storage amount of the virtual shield energy charging station, and setting the virtual shield value of the own mobile arming unit as the maximum virtual shield value of the own mobile arming unit when the preset animation is finished; continuing to obtain the virtual shield loss value of the own mobile arming unit positioned at the (n+1) th position in the sorting until the virtual shield value of each own mobile arming unit in the preset radius range is set as the maximum virtual shield value of the own mobile arming unit;
Step S324: and (3) completely deducting the current virtual shield storage capacity of the virtual shield energy charging station, and setting the virtual shield value of the own mobile army unit as the sum of the current virtual shield storage capacity and the current virtual shield value of the own mobile army unit when the preset animation is finished.
The preset animation can be a progress bar animation for displaying the charging progress, or can be an animation for executing the charging action for the corresponding target model, or can be an animation for representing the charging cooling time. When the preset animation is performed, if the number of points of the virtual shield storage amount stored in the virtual shield charging station 20 is enough, the virtual shield value of one own mobile army unit 30 can be supplemented to the maximum value at a time; if the number of points of the storage amount of the virtual shield stored in the virtual shield charging station 20 is insufficient, transferring all the storage amounts of the virtual shield in the virtual shield charging station 20 to the own mobile army unit 30 which is required to be supplemented with the virtual shield currently. When supplementing, the virtual shield point number corresponding to the virtual shield charging station 20 can be firstly buckled, and the preset animation is started to perform; when the preset animation performance is finished, the buckled virtual shield points are added to the own mobile army unit 30. If the own mobile army unit 30 needing to supplement the virtual shield is increased or decreased in the charging range 21 after the sorting, the own mobile army unit 30 in the current charging range 21 is reordered, and the virtual shield is sequentially supplemented according to the reordered sequence.
In this embodiment, the transfer mode of the virtual shield is determined by determining the value between the virtual shield value loss value of the nth own mobile arming unit and the current virtual shield storage amount of the virtual shield charging station, so that after the time of performing the preset animation, the current virtual shield storage amount of the virtual shield charging station 20 is quickly transferred to the own mobile arming unit 30 requiring the virtual shield until the virtual shield value of each own mobile arming unit 30 reaches the maximum virtual shield value within the charging range 21, or the current virtual shield storage amount of the virtual shield charging station 20 is deducted to the zero value. Meanwhile, the embodiment can achieve the purpose of controlling the preset charging speed by controlling the playing time of the preset animation so as to adjust the game value according to the game setting or the game progress.
In still another embodiment of the present invention, if the current virtual shield storage amount of the virtual shield charging station 20 is lower than the maximum virtual shield storage amount of the virtual shield charging station 20, the current virtual shield storage amount of the virtual shield charging station 20 is increased at a preset recovery speed until the maximum virtual shield storage amount is reached.
When the virtual shield stored in the virtual shield charging station 20 is transferred to the own mobile army unit 30, the number of virtual shield points in the virtual shield charging station 20 correspondingly becomes smaller. In order to meet the requirement of continuously supplementing the own mobile army unit 30 with the virtual shield in the whole game process, the invention sets the current virtual shield storage amount in the virtual shield charging station 20 to be capable of presetting the recovery speed to be increased to the maximum virtual shield storage amount so that the user can continuously supplement and improve the defensive ability of the army according to the combat requirement.
Further, before transferring the current virtual shield storage amount of the virtual shield charging station to the corresponding own mobile army seed unit at the preset charging speed, the method may further include:
detecting the current virtual shield storage amount of the virtual shield energy charging station;
confirming that the current virtual shield storage amount is lower than a lowest storage value; the lowest storage value is smaller than the maximum virtual shield storage amount;
continuously detecting whether the current virtual shield storage amount of the virtual shield energy charging station is increased to the lowest storage value;
if yes, continuing to transfer the current virtual shield storage capacity of the virtual shield energy charging station to the corresponding own mobile army seed unit at the preset energy charging speed.
When the storage amount of the current virtual shield in the virtual shield charging station 20 is too low, if the virtual shield is directly supplemented to the own mobile army unit 30, the number of the virtual shield to be supplemented is small; if the playing time of the preset animation is longer, that is, if the cooling time of the primary supplement virtual shield is longer, the current supplement virtual shield is only supplemented with a small amount of virtual shields in a longer preset animation time, and if the virtual shield of the own mobile army unit 30 needs to be supplemented to the maximum value, multiple supplements are needed, and more time of the own mobile army unit 30 will be wasted. Therefore, the present embodiment detects the current virtual shield storage amount of the virtual shield charging station 20, and if the current virtual shield storage amount is lower than the lowest storage value, waits for the virtual shield charging station 20 to reply to the virtual shield storage amount; when the minimum storage is restored, the own mobile army unit 30 is only started to supplement the virtual shield. The embodiment can improve the efficiency of supplementing the virtual shield for the own mobile army unit 30 and reduce the virtual shield supplementing time of the own mobile army unit 30 when the current virtual shield storage amount stored by the virtual shield energy charging station 20 is smaller.
In another embodiment of the present invention, before transferring the current virtual shield storage amount of the virtual shield charging station to the corresponding own mobile army seed unit at the preset charging speed, the method further includes:
acquiring the distance between the position coordinates of the virtual shield energy charging station and the own mobile weapon unit, and calculating a preset energy charging speed according to the distance; the preset charging speed is positively correlated with the distance.
In the embodiment, the distance between the own mobile army unit 30 and the position coordinates can be controlled to automatically adjust the preset energy charging speed for supplementing the virtual shield for the own mobile army unit 30, so that the operation instruction of controlling the energy charging speed by a user is simplified; moreover, the user can rapidly predict the change of the preset charging speed through the position change of the own mobile army unit 30, which is beneficial to controlling the position of the own mobile army unit 30 according to the game situation. The preset charging speed can be in a proportional relation with the distance so as to simplify the calculation of the preset charging speed; the preset charging speed may also be in a non-proportional relationship with the distance, for example, the preset charging speed is in a proportional relationship with the square of the distance, so that the influence of the distance on the preset charging speed is greater.
The present invention also proposes another embodiment, wherein the transferring the current virtual shield storage capacity of the virtual shield charging station to the corresponding own mobile army seed unit at the preset charging speed may specifically include:
judging whether a preset accelerating building exists in the current virtual building of the user or not;
if not, taking the preset speed as the preset energy charging speed, and transferring the current shield storage capacity of the virtual shield energy charging station to a corresponding own mobile weapon seed unit at the preset energy charging speed;
if yes, calculating an acceleration value according to the acceleration building, obtaining a preset energy charging speed according to the acceleration value and the preset speed, and transferring the current shield storage amount of the virtual shield energy charging station to a corresponding own mobile weapon unit at the preset energy charging speed.
In some games, the shield value, attack speed, etc. of the own mobile army unit 30 can be improved by building special virtual buildings. The invention can also be provided with the acceleration building for improving the supplement speed of the virtual shield, so that the user can improve the competitive advantage through the configuration of the virtual resources and the proficiency of game operation, thereby improving the competitive performance and entertainment of the game. If the acceleration building is not available, the default preset speed is used for supplementing a virtual shield for the own mobile army unit 30; if the acceleration building exists, a corresponding acceleration value is obtained to improve the default preset speed, and a new preset energy charging speed is obtained.
The acceleration value may be an increased charging speed value, for example, the default preset charging speed is the number of virtual shields for the own mobile army unit 30 to be supplemented with 1-5 points in a cooling time of 3 seconds, and the specific point value may be determined according to the virtual shield loss value of the own mobile army unit 30, but when the number of virtual shields to be supplemented is less than 5 points, the cooling time of 3 seconds is also required; if the own mobile army unit 30 needs to supplement the number of the virtual shield points of 6-10 points, 4 seconds of cooling time is needed, and the specific point value is also determined according to the virtual shield loss value of the own mobile army unit 30; when the acceleration value is 2-point virtual shield points which can be lifted in the cooling time, the new preset charging speed is 7-point or less virtual shield points which are supplemented for the own mobile army unit 30 in the cooling time of 3 seconds, and 8-12-point virtual shield points which are supplemented for the own mobile army unit 30 in the cooling time of 4 seconds. The acceleration value may be a percentage increased based on a default preset charging speed value, for example, the default preset speed is a virtual shield number of 10 points or less for the own mobile weapon unit 30 within a cooling time of 5 seconds, and if the acceleration value is a charging speed increased by 20%, the new preset charging speed may be a virtual shield number of 12 points or less for the own mobile weapon unit 30 within 5 seconds. Of course, according to different game numerical systems, the specific calculation relation among the acceleration building, the acceleration value and the preset charging speed can be determined according to the situation, and is not limited to the calculation modes and specific numerical values listed in the application.
In another embodiment of the present invention, before transferring the current virtual shield storage amount of the virtual shield charging station to the corresponding own mobile army seed unit at the preset charging speed, the method further includes:
obtaining the distance between the position coordinates of the virtual shield energy charging station and the own mobile arming unit, obtaining the limit distance and the preset speed of the energy charging range, dividing the distance between the position coordinates of the virtual shield energy charging station and the own mobile arming unit by the limit distance and multiplying the preset speed to obtain the initial fixed energy charging speed;
judging whether a preset accelerating building exists in the current virtual building of the user or not;
if not, taking the initial fixed charging speed as a preset charging speed;
and if not, acquiring an acceleration value corresponding to the acceleration building, and presetting a charging speed according to the initial charging speed and the acceleration value.
According to the embodiment, the initial energy charging speed can be obtained according to the position coordinates of the virtual shield energy charging station and the distance between own mobile army units, the preset energy charging speed can be continuously determined according to whether an acceleration building exists, the range of the preset energy charging speed is further enlarged, a user can obtain game advantages and victory through improving game operation, and the game competitive and entertainment are improved.
When the game map is large, only a part of game images or game maps are generally displayed in the game interface 10, and the own mobile army unit 30 which needs to supplement the virtual shield may be far away from the virtual shield charging station 20, and cannot be displayed in the same game image. In some embodiments, when the user controls the own mobile army unit 30 to supplement the virtual shield, the game screen may also be switched to the screen where the own mobile army unit 30 is located, so as to select the own mobile army unit 30 that needs to supplement the virtual shield; meanwhile, the game picture is switched to the picture where the virtual shield charging station 20 is located, so as to designate the virtual shield charging station 20 for supplementing the virtual shield. The operation mode is complicated and troublesome on the touch mobile terminal, and is not beneficial to the rapid organization of attack and defense of users. In addition, the manner of switching the game screen will cause great inconvenience to the user in the fight state, and although the game screen may be switched for only a few seconds, for a large fight game, especially a game in a fierce fight state, the game screen switching time of a few seconds may be critical to the overall situation of the game; in some critical campaigns, there will be a direct impact on the user's full-field game winnings and winnings. The application only needs to control the own mobile army unit 30 to move into the energy charging range 21, and does not need to perform any operation on the virtual shield energy charging station 20; when the charging range 21 is large and the micro-game small map is provided on the game screen, the user can also directly designate the moving target position of the own moving army unit 30 on the micro-game small map, thereby further simplifying the operation of the user.
The application can set the region in the preset radius range of the coordinate position of the virtual shield energy charging station 20 as the energy charging range 21 capable of supplementing the virtual shield, so that the own mobile army seed unit 30 automatically supplements the virtual shield when approaching the virtual shield energy charging station 20, and the user operation is convenient. When the user needs to reserve the storage amount of the virtual shield stored in the virtual shield charging station 20 for a specific own mobile army unit 30, the own mobile army unit 30 is only required to be kept within the charging range 21, and other own mobile army units 30 are required to leave the charging range 21. In the primary virtual shield replenishment, the virtual shield of the own mobile army unit 30 may be replenished directly to the maximum virtual shield value, or a fixed replenishment value may be set. The present application may also use the virtual shield loss value as one of conditions for triggering the supplement of the virtual shield, so that the own mobile army unit 30 may be supplemented as soon as there is a loss of the virtual shield, or the loss is only supplemented until a certain threshold is reached. In some embodiments, if the user has a plurality of different weapon characters, the time for the own mobile weapon unit 30 corresponding to each weapon character to supplement the virtual shield may be set to different preset times, so as to improve game competitiveness and strategic performance.
The mobile terminal can be a hand-held touch device such as a smart phone and an IPAD. The own mobile army unit 30 can be controlled by clicking a touch screen of the mobile terminal by a user, or by externally connected components such as a touch button, a rocker and the like.
The invention also provides a virtual shield supplementing device, which comprises:
the invention also proposes a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the virtual shield replenishment method of any of the preceding claims.
Wherein the 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 Memory), RAMs (Random AcceSS Memory ), EPROMs (EraSable Programmable Read-Only Memory), EEPROMs (Electrically EraSable Programmable Read-Only Memory), flash Memory, magnetic cards, or optical cards. That is, a storage medium includes any medium that stores or transmits information in a form readable by a device (e.g., a computer). And may be a read-only memory, a magnetic or optical disk, etc.
The embodiment of the invention also provides a terminal, which comprises:
one or more processors;
storage means for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the steps of any of the virtual shield replenishment methods described in the foregoing.
As shown in fig. 5, for convenience of explanation, only the portions related to the embodiments of the present invention are shown, and specific technical details are not disclosed, please refer to the method portions of the embodiments of the present invention. The terminal may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant ), a POS (Point of Sales), a vehicle-mounted computer, a server, and the like, taking the mobile phone as an example of the terminal:
fig. 5 is a block diagram showing a part of a structure of a mobile phone related to a terminal provided by an embodiment of the present invention. Referring to fig. 5, the mobile phone includes: radio Frequency (RF) circuitry 1510, memory 1520, input unit 1530, display unit 1540, sensor 1550, audio circuitry 1560, wireless fidelity (wireless fidelity, wi-Fi) module 1570, processor 1580, power supply 1590, and the like. Those skilled in the art will appreciate that the handset configuration shown in fig. 5 is not limiting of the handset and may include more or fewer components than shown, or may combine certain components, or may be arranged in a different arrangement of components.
The following describes the components of the mobile phone in detail with reference to fig. 5:
the RF circuit 1510 may be used for receiving and transmitting signals during a message or a call, and particularly, after receiving downlink information of a base station, the signal is processed by the processor 1580; in addition, the data of the design uplink is sent to the base station. Typically, RF circuitry 1510 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, and the like. In addition, the RF circuitry 1510 may also communicate with networks and other devices through wireless communication. The wireless communications may use any communication standard or protocol including, but not limited to, global system for mobile communications (Global System of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), code division multiple access (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE), email, short message service (Short Messaging Service, SMS), and the like.
The memory 1520 may be used to store software programs and modules, and the processor 1580 performs various functional applications and data processing of the cellular phone by executing the software programs and modules stored in the memory 1520. The memory 1520 may mainly include a storage program area that may store an operating system, application programs (such as a game program, etc.) required for at least one function, and a storage data area; the storage data area may store data created according to the use of the handset (such as a character model, etc.), and the like. In addition, memory 1520 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 1530 may be used to receive input numerical or character information and generate key signal inputs related to user settings and function control of the handset. In particular, the input unit 1530 may include a touch panel 1531 and other input devices 1532. The touch panel 1531, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch panel 1531 or thereabout by using any suitable object or accessory such as a finger, a stylus, etc.), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch panel 1531 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends the touch point coordinates to the processor 1580, and can receive and execute commands sent from the processor 1580. In addition, the touch panel 1531 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The input unit 1530 may include other input devices 1532 in addition to the touch panel 1531. In particular, other input devices 1532 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc.
The display unit 1540 may be used to display information input by a user or information provided to the user and various menus of the mobile phone. The display unit 1540 may include a display panel 1541, and alternatively, the display panel 1541 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 1531 may cover the display panel 1541, and when the touch panel 1531 detects a touch operation thereon or thereabout, the touch operation is transferred to the processor 1580 to determine the type of touch event, and then the processor 1580 provides a corresponding visual output on the display panel 1541 according to the type of touch event. Although in fig. 5, the touch panel 1531 and the display panel 1541 are two separate components for implementing the input and input functions of the mobile phone, in some embodiments, the touch panel 1531 may be integrated with the display panel 1541 to implement the input and output functions of the mobile phone.
The handset may also include at least one sensor 1550, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 1541 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 1541 and/or the backlight when the phone is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when stationary, and can be used for applications of recognizing the gesture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured with the handset are not described in detail herein.
Audio circuitry 1560, a speaker 1561, and a microphone 1562 may provide an audio interface between a user and a cell phone. The audio circuit 1560 may transmit the received electrical signal converted from audio data to the speaker 1561, and be converted into a voiceprint signal by the speaker 1561 for output; on the other hand, the microphone 1562 converts the collected voiceprint signals into electrical signals, which are received by the audio circuit 1560 and converted into audio data, which are then processed by the audio data output processor 1580 for transmission, for example, to another cell phone via the RF circuit 1510 or for output to the memory 1520 for further processing.
Wi-Fi belongs to a short-distance wireless transmission technology, and a mobile phone can help a user to send and receive e-mails, browse webpages, access streaming media and the like through a Wi-Fi module 1570, so that wireless broadband Internet access is provided for the user. While fig. 5 shows Wi-Fi module 1570, it is to be understood that it is not an essential component of a cell phone and may be omitted entirely as desired without changing the essence of the invention.
The processor 1580 is a control center of the mobile phone, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions and processes data of the mobile phone by running or executing software programs and/or modules stored in the memory 1520 and calling data stored in the memory 1520, thereby performing overall monitoring of the mobile phone. In the alternative, processor 1580 may include one or more processing units; preferably, the processor 1580 can integrate an application processor and a modem processor, wherein the application processor primarily processes operating systems, user interfaces, application programs, and the like, and the modem processor primarily processes wireless communications. It is to be appreciated that the modem processor described above may not be integrated into the processor 1580.
The handset further includes a power supply 1590 (e.g., a battery) for powering the various components, which may preferably be logically connected to the processor 1580 via a power management system so as to provide for the management of charging, discharging, and power consumption by the power management system.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which will not be described herein.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited in order and may be performed in other orders, unless explicitly stated herein. Moreover, at least some of the steps in the flowcharts of the figures may include a plurality of sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, the order of their execution not necessarily being sequential, but may be performed in turn or alternately with other steps or at least a portion of the other steps or stages.
It should be understood that each functional unit in the embodiments of the present invention may be integrated in one processing module, or each unit may exist alone physically, or two or more units may be integrated in one module. The integrated modules may be implemented in hardware or in software functional modules.
The foregoing is only a partial embodiment of the present invention, and it should be noted that it will be apparent to those skilled in the art that modifications and adaptations can be made without departing from the principles of the present invention, and such modifications and adaptations are intended to be comprehended within the scope of the present invention.

Claims (10)

1. A virtual shield replenishment method, comprising:
acquiring the current virtual shield storage capacity and position coordinates of a virtual shield energy charging station;
the method for obtaining the virtual shield value loss value of the own mobile army unit within the preset radius range of the position coordinate comprises the following steps: if the display interface supports the miniature game small map, determining a virtual shield loss value of the own mobile army unit within a preset radius range of the position coordinate based on the specification of a target user on the mobile target position of the own mobile army unit in the miniature game small map; the virtual shield loss value is the difference between the maximum virtual shield value of the own mobile army unit and the current virtual shield value;
for each own mobile arming unit, if the virtual shield loss value of the own mobile arming unit is larger than a preset value, acquiring the distance between the position coordinates of the virtual shield energy charging station and the own mobile arming unit, calculating a preset energy charging speed according to the distance, and transferring the current virtual shield storage capacity of the virtual shield energy charging station to the corresponding own mobile arming unit at the preset energy charging speed; the preset charging speed is positively correlated with the distance, and the distance is correlated with the moving target position;
The virtual shield energy charging station is a virtual building or a virtual vehicle; the own mobile weapon unit is an own control object and comprises a plurality of weapon units controlled by the same target user.
2. The method of claim 1, wherein the transferring the current virtual shield storage amount of the virtual shield charging station to the corresponding own mobile army unit at the preset charging speed if the virtual shield loss value of the own mobile army unit is greater than the preset value comprises:
if the virtual shield loss value of one own mobile arming unit is larger than a preset value, transferring all or part of the current virtual shield storage capacity of the virtual shield energy charging station to the own mobile arming unit at a preset energy charging speed according to the virtual shield loss value;
if the virtual shield loss value of the plurality of own mobile arming units is larger than a preset value, sequencing the plurality of own mobile arming units according to the fact that the virtual shield loss value of each own mobile arming unit is from large to small; and according to the sorting, transferring the current virtual shield storage capacity of the virtual shield energy charging station to the plurality of own mobile army seed units in sequence at a preset energy charging speed.
3. The method of claim 2, wherein sequentially transferring the current virtual shield storage amount of the virtual shield charging station to the plurality of own mobile army units at a preset charging speed according to the ranking comprises:
obtaining a virtual shield loss value of an Nth own mobile arming unit in the sorting, wherein N is a positive integer;
judging whether the virtual shield value loss value of the Nth own mobile arming unit is smaller than the current virtual shield storage amount of the virtual shield energy charging station or not;
if yes, deducting the virtual shield value loss value from the current virtual shield storage amount of the virtual shield energy charging station, and setting the virtual shield value of the own mobile arming unit as the maximum virtual shield value of the own mobile arming unit when the preset animation is finished; continuing to obtain the virtual shield loss value of the own mobile arming unit positioned at the (n+1) th position in the sorting until the virtual shield value of each own mobile arming unit in the preset radius range is set as the maximum virtual shield value of the own mobile arming unit;
and if not, the current virtual shield storage capacity of the virtual shield energy charging station is completely deducted, and when the preset animation is finished, the virtual shield value of the own mobile army unit is set to be the sum of the current virtual shield storage capacity and the current virtual shield value of the own mobile army unit.
4. The method of claim 1, wherein if the current virtual shield storage amount of the virtual shield charging station is lower than the maximum virtual shield storage amount of the virtual shield charging station, the current virtual shield storage amount of the virtual shield charging station increases at a preset reply rate until the maximum virtual shield storage amount is reached.
5. The method of claim 4, wherein before transferring the current virtual shield storage amount of the virtual shield charging station to the corresponding own mobile army unit at the preset charging speed, further comprising:
detecting the current virtual shield storage amount of the virtual shield energy charging station;
confirming that the current virtual shield storage amount is lower than a lowest storage value; the lowest storage value is smaller than the maximum virtual shield storage amount;
continuously detecting whether the current virtual shield storage amount of the virtual shield charging station is increased to the lowest storage value;
if yes, continuing to transfer the current virtual shield storage capacity of the virtual shield energy charging station to the corresponding own mobile army seed unit at the preset energy charging speed.
6. The method of claim 1, wherein the preset charging speed is positively correlated with the distance, comprising:
The preset charging speed and the distance are in a proportional relation;
or, the preset charging speed is in a proportional relation with the square of the distance.
7. The method of claim 1, wherein transferring the current virtual shield storage capacity of the virtual shield charging station to the corresponding own mobile army unit at the preset charging speed further comprises:
judging whether a preset accelerating building exists in the current virtual building of the user or not;
if not, taking the preset speed as the preset energy charging speed, and transferring the current shield storage capacity of the virtual shield energy charging station to a corresponding own mobile weapon seed unit at the preset energy charging speed;
if yes, calculating an acceleration value according to the acceleration building, obtaining a preset energy charging speed according to the acceleration value and the preset speed, and transferring the current shield storage amount of the virtual shield energy charging station to a corresponding own mobile weapon unit at the preset energy charging speed.
8. A virtual shield complementary apparatus, comprising:
the information acquisition module is used for acquiring the current virtual shield storage capacity and the position coordinates of the virtual shield energy charging station;
the shield loss module is used for obtaining a virtual shield value loss value of own mobile weapon units within the preset radius range of the position coordinates, and comprises the following components: if the display interface supports the miniature game small map, determining a virtual shield loss value of the own mobile army unit within a preset radius range of the position coordinate based on the specification of a target user on the mobile target position of the own mobile army unit in the miniature game small map; the virtual shield loss value is the difference between the maximum virtual shield value of the own mobile army unit and the current virtual shield value;
The energy charging module is used for acquiring the distance between the position coordinate of the virtual shield energy charging station and the own mobile army unit when the virtual shield loss value of the own mobile army unit is larger than a preset value for each own mobile army unit, calculating a preset energy charging speed according to the distance, and transferring the current virtual shield storage capacity of the virtual shield energy charging station to the corresponding own mobile army unit at the preset energy charging speed; the preset charging speed is positively correlated with the distance, and the distance is correlated with the moving target position;
the virtual shield energy charging station is a virtual building or a virtual vehicle; the own mobile weapon unit is an own control object and comprises a plurality of weapon units controlled by the same target user.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the steps of the virtual shield replenishment method according to any one of claims 1 to 7.
10. A terminal, the terminal comprising:
one or more processors;
storage means for storing one or more programs,
When executed by the one or more processors, causes the one or more processors to implement the steps of the virtual shield replenishment method of any one of claims 1 to 7.
CN201910027210.2A 2019-01-11 2019-01-11 Virtual shield supplementing method and device, storage medium and terminal Active CN109908592B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910027210.2A CN109908592B (en) 2019-01-11 2019-01-11 Virtual shield supplementing method and device, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910027210.2A CN109908592B (en) 2019-01-11 2019-01-11 Virtual shield supplementing method and device, storage medium and terminal

Publications (2)

Publication Number Publication Date
CN109908592A CN109908592A (en) 2019-06-21
CN109908592B true CN109908592B (en) 2023-08-04

Family

ID=66960302

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910027210.2A Active CN109908592B (en) 2019-01-11 2019-01-11 Virtual shield supplementing method and device, storage medium and terminal

Country Status (1)

Country Link
CN (1) CN109908592B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111111194B (en) * 2019-11-28 2021-06-25 腾讯科技(深圳)有限公司 Virtual object control method, device, storage medium and electronic device
CN117672037B (en) * 2023-12-12 2024-06-14 青岛航讯网络技术服务有限公司 Modeling training method and platform based on large space positioning

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010268854A (en) * 2009-05-19 2010-12-02 Sega Corp Game control program, game device, game control method, and recording medium
CN107678663A (en) * 2017-08-25 2018-02-09 网易(杭州)网络有限公司 A kind of method and device for controlling game skill release
CN108579087A (en) * 2018-04-10 2018-09-28 网易(杭州)网络有限公司 A kind of control method and device of game role
CN108829328A (en) * 2018-05-11 2018-11-16 努比亚技术有限公司 A kind of game operation method, terminal and computer readable storage medium
CN109011572A (en) * 2018-08-27 2018-12-18 广州要玩娱乐网络技术股份有限公司 Game magic technical ability processing method and storage medium, computer equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7789743B2 (en) * 2001-11-15 2010-09-07 Igt Method and apparatus for facilitating play of gaming device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010268854A (en) * 2009-05-19 2010-12-02 Sega Corp Game control program, game device, game control method, and recording medium
CN107678663A (en) * 2017-08-25 2018-02-09 网易(杭州)网络有限公司 A kind of method and device for controlling game skill release
CN108579087A (en) * 2018-04-10 2018-09-28 网易(杭州)网络有限公司 A kind of control method and device of game role
CN108829328A (en) * 2018-05-11 2018-11-16 努比亚技术有限公司 A kind of game operation method, terminal and computer readable storage medium
CN109011572A (en) * 2018-08-27 2018-12-18 广州要玩娱乐网络技术股份有限公司 Game magic technical ability processing method and storage medium, computer equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
亚洲王朝中天坛是按照什么规律给所有部队加血的?跟部队与天坛的距离成反比么;匿名;《https://zhidao.***.com/question/215406645.html》;百度知道;20110121;全文 *

Also Published As

Publication number Publication date
CN109908592A (en) 2019-06-21

Similar Documents

Publication Publication Date Title
CN109568950B (en) Multi-role and multi-skill game control method, storage medium and terminal
CN109568938B (en) Multi-resource game touch operation method and device, storage medium and terminal
CN109568965B (en) Target unit moving method, device, storage medium and terminal
CN111773696B (en) Virtual object display method, related device and storage medium
CN109568954B (en) Weapon type switching display method and device, storage medium and terminal
CN111265869B (en) Virtual object detection method, device, terminal and storage medium
US11135515B2 (en) Information processing method and apparatus and server
CN109343773B (en) Control method and device of portable touch equipment, storage medium and terminal
EP4011471A1 (en) Virtual object control method and apparatus, device, and readable storage medium
CN109718545B (en) Object control device and method
CN106693367B (en) Processing method for displaying data at client, server and client
CN109173250B (en) Multi-role control method, computer storage medium and terminal
CN109126135B (en) Virtual shooting method, computer storage medium and terminal
CN109908592B (en) Virtual shield supplementing method and device, storage medium and terminal
CN112691367B (en) Data processing method and related device
WO2023005234A1 (en) Virtual resource delivery control method and apparatus, computer device, and storage medium
CN107562303B (en) Method and device for controlling element motion in display interface
CN112316428A (en) Method and device for processing virtual prop and computer readable storage medium
CN109821241A (en) Method of construction, device, storage medium and the terminal of multiple Virtual Buildings
CN112044072A (en) Interaction method of virtual objects and related device
CN111617472A (en) Method and related device for managing model in virtual scene
CN113633985B (en) Virtual accessory using method, related device, equipment and storage medium
CN111346374B (en) Interaction method and related device
CN109157835B (en) Control method and device for anti-watchman, storage medium and terminal
CN113599825A (en) Method and related device for updating virtual resources in game match

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