CN107291317B - The selection method and device of target in a kind of virtual scene - Google Patents

The selection method and device of target in a kind of virtual scene Download PDF

Info

Publication number
CN107291317B
CN107291317B CN201610199687.5A CN201610199687A CN107291317B CN 107291317 B CN107291317 B CN 107291317B CN 201610199687 A CN201610199687 A CN 201610199687A CN 107291317 B CN107291317 B CN 107291317B
Authority
CN
China
Prior art keywords
virtual image
target
virtual
weight
sub
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
CN201610199687.5A
Other languages
Chinese (zh)
Other versions
CN107291317A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610199687.5A priority Critical patent/CN107291317B/en
Publication of CN107291317A publication Critical patent/CN107291317A/en
Application granted granted Critical
Publication of CN107291317B publication Critical patent/CN107291317B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04812Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses the selection methods and device of target in a kind of virtual scene, for automatically selecting out current goal for one's own side's virtual image, simplify the operation of user, and the accuracy of target selection in virtual scene can be improved, is applicable to the user operation mode of hide.The present invention provides a kind of selection method of target in virtual scene, it include: when receiving the target switching command of user's transmission, the configuration information of other side's virtual image in the virtual scene where one's own side's virtual image of the user's operation is obtained, includes at least two other side's virtual images in the virtual scene;Determine at least two sub- weights for corresponding to each other side's virtual image respectively according to the configuration information of other side's virtual image;At least two sub- weights of each other side's virtual image are overlapped, the target weight of each other side's virtual image is obtained;The current goal of one's own side's virtual image is selected from at least two other side virtual image according to the target weight of each other side's virtual image.

Description

The selection method and device of target in a kind of virtual scene
Technical field
The present invention relates to the selection methods and device of target in field of computer technology more particularly to a kind of virtual scene.
Background technique
With the development of computer technology, various application programs are continued to bring out in internet, such as instant messaging program, Online games and Streaming Media etc..Wherein, online games have become increases the most rapidly in electronic game industry Type of play, and welcome business model at present, the compound growth rate of online game is more than Internet user's growth rate It is high.And in the numerous classification of online game, Massively Multiplayer Online Role Playing Games (full name in English: Massive Multip- Layer Online Role-Playing Games, English abbreviation: MMORPG) it is mainstream type.
In traditional MMORPG game, when needing to carry out target switching for player, two kinds of target selection is provided Scheme.The first target selection scheme is to carry out click selection to target by the mouse pointer of player exercises, passes through client The band of position that detection mouse is clicked is switched to this target if mouse clicks in target pixel region, if mouse point It hits outside target pixel region, then chooses failure.Second of target selection scheme is to provide the shortcut key of a changeable target, Player often just will do it a target switching by a shortcut key, so as to realize the successively replacement of switching target.
For the first target selection scheme that the prior art provides, when player is overlapped in face of a large amount of targets, mesh Mark pixel region is also overlapped, and the accuracy for causing mouse to click progress Object selection will will be greatly reduced, or even can not select Correct target is got, and this implementation needs use mouse pointer, in the operation mode for needing hide Under can not carry out target selection.For second of target selection scheme that the prior art provides, when facing multiple optional targets, Player needs repeatedly to switch over the target that operation can just choose oneself desired, is not easy to player and carries out target selection operation.
Summary of the invention
The embodiment of the invention provides the selection methods and device of target in a kind of virtual scene, for being the virtual shape of one's own side As automatically selecting out current goal, the operation of simplified user, and the accuracy of target selection in virtual scene can be improved, it can User operation mode suitable for hide.
In order to solve the above technical problems, the embodiment of the present invention the following technical schemes are provided:
In a first aspect, the embodiment of the present invention provides a kind of selection method of target in virtual scene, comprising:
When receiving the target switching command of user's transmission, where obtaining one's own side's virtual image of the user's operation The configuration information of other side's virtual image in virtual scene includes at least two other side's virtual images in the virtual scene;
It is determined respectively according to the configuration information of other side's virtual image and corresponds to each other side's virtual image at least Two sub- weights;
At least two sub- weights of each other side's virtual image are overlapped, the target of each other side's virtual image is obtained Weight;
It is selected from at least two other side virtual image according to the target weight of each other side's virtual image The current goal of one's own side's virtual image.
Second aspect, the embodiment of the present invention also provide a kind of selection device of target in virtual scene, comprising:
Configuration obtains module, for obtaining the user's operation when receiving the target switching command of user's transmission The configuration information of other side's virtual image in virtual scene where one's own side's virtual image includes at least two in the virtual scene Other side's virtual image;
Sub- weight determination module corresponds to each for determining respectively according to the configuration information of other side's virtual image The sub- weight of at least two of other side's virtual image;
Target weight obtains module, is overlapped, obtains for at least two sub- weights to each other side's virtual image The target weight of each other side's virtual image;
Destination selection module, for according to the target weight of each other side's virtual image from least two other side The current goal of one's own side's virtual image is selected in virtual image.
As can be seen from the above technical solutions, the embodiment of the present invention has the advantage that
In embodiments of the present invention, when receiving the target switching command of user's transmission, user's operation is obtained first The configuration information of other side's virtual image in virtual scene where one's own side's virtual image includes at least two other side in virtual scene Then virtual image determines respectively according to the configuration information of other side's virtual image and corresponds to each other side's virtual image at least Next two sub- weights are overlapped at least two sub- weights of each other side's virtual image, it is virtual to obtain each other side The target weight of image, finally selects from least two other side's virtual images according to the target weight of each other side's virtual image The current goal of one's own side's virtual image out.Due to that can be matched according to other side virtual image in virtual scene in the embodiment of the present invention Confidence, which ceases, determines at least two sub- weights of each other side's virtual image, and the target weight of each other side's virtual image can be with It is obtained by least two sub- weighted superpositions of each other side's virtual image, and one's own side's virtual image in the embodiment of the present invention Current goal is to be determined by the target weight of each other side's virtual image, therefore can pass through target in the embodiment of the present invention Weight is that one's own side's virtual image automatically selects out current goal, simplifies the operation of user, and mesh in virtual scene can be improved The accuracy for marking selection is applicable to the user operation mode of hide.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those skilled in the art, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is the process blocks schematic diagram of the selection method of target in a kind of virtual scene provided in an embodiment of the present invention;
Fig. 2 is the flow chart that user provided in an embodiment of the present invention switches target by shortcut key;
Fig. 3-a is the composed structure signal of the selection device of target in a kind of virtual scene provided in an embodiment of the present invention Figure;
Fig. 3-b is a kind of composed structure schematic diagram of destination selection module provided in an embodiment of the present invention;
Fig. 3-c is the composed structure signal of the selection device of target in another virtual scene provided in an embodiment of the present invention Figure;
Fig. 3-d is the composed structure signal of the selection device of target in another virtual scene provided in an embodiment of the present invention Figure;
Fig. 3-e is the composed structure schematic diagram of seed weight determination module provided in an embodiment of the present invention;
Fig. 3-f is the composed structure signal of the selection device of target in another virtual scene provided in an embodiment of the present invention Figure;
Fig. 4 is that the selection method of target in virtual scene provided in an embodiment of the present invention is shown applied to the composed structure of terminal It is intended to.
Specific embodiment
The embodiment of the invention provides the selection methods and device of target in a kind of virtual scene, for being the virtual shape of one's own side As automatically selecting out current goal, the operation of simplified user, and the accuracy of target selection in virtual scene can be improved, it can User operation mode suitable for hide.
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the present invention Attached drawing in embodiment, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that disclosed below Embodiment be only a part of the embodiment of the present invention, and not all embodiments.Based on the embodiments of the present invention, this field Technical staff's every other embodiment obtained, shall fall within the protection scope of the present invention.
Term " includes " in description and claims of this specification and above-mentioned attached drawing and " having " and they Any deformation, it is intended that covering non-exclusive includes so as to a series of process, method comprising units, system, product or to set It is standby to be not necessarily limited to those units, but be not clearly listed or these process, methods, product or equipment are consolidated The other units having.
It is described in detail separately below.
One embodiment of the selection method of target in virtual scene of the present invention, specifically can be applied to user's operation One's own side's virtual image is recommended in the scene of current goal, and the embodiment of the present invention specifically also refers to scene of game, can also refer to Be operation scenario, such as application scenarios, the role's application scenarios of office software of application program etc..Refering to Figure 1, this The selection method of target in the virtual scene that invention one embodiment provides, may include steps of:
101, when receiving the target switching command of user's transmission, where obtaining one's own side's virtual image of user's operation The configuration information of other side's virtual image in virtual scene includes at least two other side's virtual images in virtual scene.
In embodiments of the present invention, user realizes user in virtual scene in virtual scene by operation virtual image In multiple-task.Wherein, virtual image can there are many implementations, such as under scene of game, virtual image be can be Player role, under application program operation scenario, virtual image can be the symbol logo etc. for representing user.Under virtual scene The case where having generally occurred within multiple virtual images, for some user, the virtual image of the user's operation is defined as one's own side The virtual image that other users other than the user operate is defined as other side's virtual image by virtual image.For example, each is virtual Image is all by a user's operation, and when some user needs to switch target, user can send target switching command, according to Method choice provided in an embodiment of the present invention goes out after current goal, and one's own side's virtual image of the user's operation can be to choosing Target carries out the movement processing in virtual scene, such as under scene of game, one's own side's virtual image release technical ability of user's operation, Target of attack etc..In the case where occurring multiple target in the virtual scene where one's own side's virtual image in user's operation with shielding, use Which target family needs to select as current goal, can be implemented as one's own side's virtual image of user's operation in the embodiment of the present invention Automatically select current goal.Next with one's own side's virtual image for some user's operation in virtual scene select current goal for Example carries out in detail, and it is " right that the virtual image that other users operate other than one's own side's virtual image in virtual scene is referred to as Square virtual image ", it is to be understood that other side's virtual image be by the virtual image of user's operations other in virtual scene, Such as under scene of game, which also refers to unfriendly target, also also refers to friendly square mesh mark.In addition, The other side's virtual image occurred in the virtual scene of the embodiment of the present invention can be two virtual images, be also possible to more Virtual image, specific implementation is without limitation.
In embodiments of the present invention, when receiving the target switching command of user's transmission, other side's virtual image is obtained Configuration information.Wherein, configuration information refers to that virtual image represents the vivid attribute information of user in virtual scene.Such as it obtains Configuration information to other side's virtual image can be the role personage that other side's virtual image represents as elite monster, enemy head etc., The configuration information of the other side's virtual image for another example got can also be that the attacking ability intensity of other side's virtual image, other side are virtual Blood volume, the moving speed of other side's virtual image etc. of image.It should be noted that the configuration information of other side's virtual image can wrap The related vivid attribute information of a variety of and other side's virtual image that other side's virtual image shows in virtual scene is included, no longer It illustrates one by one.In addition the configuration information of other side's virtual image can also refer to the one's own side of other side's virtual image and user's operation It is relevant between virtual image (one's own side's virtual image refer in particular to it needs to be determined that out virtual image operated by the user of current goal) Other side's configuration information of relationship, for example, the configuration information of other side's virtual image can be virtual for other side's virtual image and one's own side The distance between image distance, attack power comparison degree etc..
102, it is determined respectively according to the configuration information of other side's virtual image and corresponds to each other side's virtual image at least Two sub- weights.
In embodiments of the present invention, available empty to each other side for multiple other side's virtual images in virtual scene The configuration information for intending image, then can determine other side's virtual image according to the configuration information of other side's virtual image At least two sub- weights, wherein the value of this little weight is influenced by the configuration information of other side's virtual image, i.e., other side is virtual The configuration information of image is the influence factor of sub- weight, by the aforementioned illustration to configuration information it is found that for other side's void The value of its sub- weight that can be influenced of the particular content of configuration information of quasi- image is also different, but is to be able to Accurate Prediction is carried out to the target that user may select, needs to determine multiple sub- weights for each other side's virtual image, Different sub- weights represents other side's virtual image to the Different Effects factor of target weight.It is illustrated below, in virtual scene Including two other side's virtual images: role a and role b can then determine at least two corresponding to the role a for role a A sub- weight can determine at least two sub- weights corresponding to the role b for role b.For the virtual shape of each other side As all determining at least two sub- weights, then multiple sub- power are defined for each other side's virtual image in virtual scene Then weight executes step 103.
Next the configuration information of other side's virtual image is illustrated, for example, in some embodiments of the invention, other side The configuration information of virtual image may include at least one of following information: the vivid type in basis of other side's virtual image, right The distance between square virtual image and one's own side's virtual image information, the current life value of other side's virtual image, other side's virtual image Threat, the other side's virtual image of angle information, other side's virtual image to one's own side's virtual image between one's own side's virtual image With the associated special image type of one's own side's virtual image.
Wherein, the vivid type in the basis of other side's virtual image refers to the image that other side's virtual image itself has, such as Under scene of game, the vivid type in the basis of other side's virtual image specifically can be the basic character types of other side role, i.e. angle Color attribute, such as elite monster, hostile player.The distance between other side's virtual image and one's own side's virtual image information refer to other side Distance of the virtual image relative to one's own side's virtual image on distance relation, specifically by other side's virtual image in virtual scene The position of specific location and one's own side's virtual image determines.The current life value of other side's virtual image refers to the virtual shape of other side As the life numerical value currently having in virtual scene, for example, can be other side's virtual image current blood volume and the other side it is virtual The ratio for the highest blood volume that image has.It is virtual that other side's virtual image also refers to other side to the Threat of one's own side's virtual image Image may attack the degree of one's own side's virtual image, such as when other side's virtual image had just attacked one's own side's virtual image It can have bigger value.Other side's virtual image and the associated special image type of one's own side's virtual image refer to the virtual shape of other side As, with the vivid type of special relationship, such as under scene of game, other side's virtual image is for oneself between one's own side's virtual image The foe etc. of square virtual image.It should be noted that 6 kinds of particular contents that the configuration information of above-mentioned other side's virtual image includes are only It is a kind of achievable way of example, the realization of configuration information can be combined with virtual scene and angle in the embodiment of the present invention Color content is using other implementations, herein for illustrative purposes only.
It further, include above-mentioned 6 in the configuration information of other side's virtual image in other embodiments of the invention In the case where kind particular content, step 102 determines respectively according to the configuration information of other side's virtual image corresponds to each other side The sub- weight of at least two of virtual image, can specifically include following steps:
A1, the sub- weight of basic target type is calculated according to the vivid type in basis of other side's virtual image;
A2, it is calculated according to the distance between other side's virtual image and one's own side's virtual image information and is weighed with target range Weight;
A3, the sub- weight of target current life value is calculated according to the current life value of other side's virtual image;
A4, camera lens and target angle are calculated according to the angle information between other side's virtual image and one's own side's virtual image Weight;
A5, it is calculated according to Threat of other side's virtual image to one's own side's virtual image by the sub- weight of attack sequence;
A6, special objective type is calculated according to other side's virtual image and the associated special image type of one's own side's virtual image Sub- weight.
Wherein, step A1 is not to having timing or sequencing in logic between step A6, for other side's virtual image Configuration information can determine different sub- weights respectively when including specific character content, such as basic mesh can be calculated The sub- weight of mark type, with the sub- weight of target range, the sub- weight of target current life value, camera lens and the sub- weight of target angle, attacked The sub- weight of sequence and the sub- weight of special objective type are hit, detailed illustrate will be carried out to this 6 seed weight in subsequent embodiment It is bright.It should be noted that above-mentioned 6 kinds different sub- weights are a kind of achievable way of example, the embodiment of the present invention The realization of neutron weight can be combined with virtual scene and character content using other implementations, herein for illustrative purposes only.
In some embodiments of the invention, the implementation of sub- weight can use other way, for example, step 102 Determine at least two sub- weights for corresponding to each other side's virtual image respectively according to the configuration information of other side's virtual image, it can To include the following steps:
B1, the occupation that other side's virtual image represents in virtual scene is obtained according to the configuration information of other side's virtual image, The occupation that other side's virtual image represents in virtual scene has at least two;
B2, the different occupation represented in virtual scene according to other side's virtual image are determined respectively corresponding to each other side The sub- weight of virtual image.
Wherein, each virtual image can represent an occupation in virtual scene, when other side's virtual image is in virtual field When the occupation that Jing Zhong is represented has at least two, the embodiment of the present invention can also determine the virtual shape of each other side according to occupation The sub- weight of at least two of elephant can get other side's virtual image representative according to the configuration information of other side's virtual image first Occupation, a set of independent sub- weight is determined according to different occupations.It is illustrated below, in MMORPG scene of game, Certain occupations can possess many attitude.Possess super remote attack distance under A posture, at this time " target range " this sub- weight pair Its influence should be minimum.Under B posture, attack distance is extremely short, at this time shadow of " target range " this sub- weight to it It is great for responding this.The professional difference represented by other side's virtual image can be made using the sub- weight for adapting to the occupation It must determine that the mode of sub- weight can be suitable for the truth of other side's virtual image, the target weight obtained from can be trueer Real is depicted possibility degree of other side's virtual image as the current goal of one's own side's virtual image.
103, at least two sub- weights of each other side's virtual image are overlapped, obtain each other side's virtual image Target weight.
In embodiments of the present invention, after determining at least two sub- weights for each other side's virtual image, for All sub- weights of other side's virtual image can be overlapped to obtain other side's virtual image by one other side's virtual image Target weight, for other other side's virtual images in virtual scene, also available corresponding target weight.Wherein, right The target weight of square virtual image is for measuring the measurement factor that other side's virtual image can be selected as current goal, Dui Fangxu Intend what vivid target weight was not determined by the one aspect of other side's virtual image, is overlapped by multiple sub- weights It obtains, this little weight influences its last value, the target power of other side's virtual image by the configuration information of other side's virtual image It is the weighted value obtained after being merged to many factors of other side's virtual image in virtual scene again, so as to objective The each other side's virtual image occurred in virtual scene of measuring out be selected order of accuarcy for target.
104, one's own side is selected from least two other side's virtual images according to the target weight of each other side's virtual image The current goal of virtual image.
In embodiments of the present invention, the mesh of multiple other side's virtual images in virtual scene is determined by abovementioned steps 103 After marking weight, the target weight of each other side's virtual image can be analyzed, from least two other side's virtual images The current goal for selecting one's own side's virtual image, since the target weight fusion of other side's virtual image has multiple sub- weights, the mesh Mark weight can objectively measure out each other side's virtual image occurred in virtual scene and be selected order of accuarcy for target, Therefore it is user selects accurately to user which can recommend right when current goal according to the target weight of other side's virtual image Current goal of the square virtual image as one's own side's virtual image, therefore can be selected automatically according to target weight in the embodiment of the present invention Current goal of other side's virtual image as one's own side's virtual image is selected out, user is not needed and carrys out artificial selection, simplify the behaviour of user Make.
In some embodiments of the invention, step 104 is according to the target weight of each other side's virtual image from least two The current goal that one's own side's virtual image is selected in a other side's virtual image, can specifically include following steps:
C1, the target priority that each other side's virtual image is calculated according to the target weight of each other side's virtual image;
C2, object listing is generated according to the target priority of each other side's virtual image, includes: according to mesh in object listing Mark at least two other side's virtual images of priority ranking;
C3, target priority highest other side's virtual image working as one's own side's virtual image is selected from object listing Preceding target.
It wherein, can also be by way of object listing under the realization scene for selecting current goal according to target weight To be specifically chosen out other side's virtual image.Specifically, first calculating each other side according to the target weight of each other side's virtual image The target priority of virtual image, such as the target weight of other side's virtual image are bigger with higher target priority, will be every The target priority of a other side's virtual image is recorded in object listing, can be recorded in the object listing according to target priority All other side's virtual images occurred in virtual scene to sort from high to low, next can select according to object listing Other side's virtual image is as current goal, it is preferred that can choose the virtual shape of the highest other side of target priority in object listing As the current goal as one's own side's virtual image.
Further, in some embodiments of the invention, step C3 selects target priority most from object listing After current goal of the high other side's virtual image as one's own side's virtual image, mesh in virtual scene provided in an embodiment of the present invention Target selection method can also include the following steps:
D1, the current goal of one's own side's virtual image is shown to user;
D2, when receive user sending target gravity treatment instruction after, dispose working as selected one's own side's virtual image Preceding target is selected other side's virtual image that target priority is second according to target gravity treatment instruction from object listing and is made For the current goal of one's own side's virtual image, and the current goal after gravity treatment is shown to user again.
Wherein, it in the current goal for getting one's own side's virtual image by way of step C3, shows and gets to user One's own side's virtual image current goal, determined whether by shortcut key by user using selecting for one's own side's virtual image Current goal is used if user determines using being that the current goal that one's own side's virtual image is selected carries out subsequent game operation Family can pass through the keyboard shortcut confirming current goal, if user needs to change the current goal of one's own side's virtual image, Yong Huke To send target gravity treatment instruction by the operation of shortcut key, if receive target gravity treatment instruction, selected oneself is first disposed The current goal of square virtual image, then selecting target priority from object listing further according to target gravity treatment instruction is Current goal of the second other side's virtual image as one's own side's virtual image, and the current mesh after gravity treatment is shown to user again Mark, therefore user can also be switched to the target that user needs selection by the simple operations of shortcut key.It does not limit, in step After rapid D2 shows current goal to user, if user also needs re-aiming, this can execute step D1 and D2 again, remove Fall selected current goal, re-aiming is carried out according to object listing again.
In some embodiments of the invention, it is empty to select the highest other side of target priority from object listing by step D3 After current goal of the quasi- image as one's own side's virtual image, the selecting party of target in virtual scene provided in an embodiment of the present invention Method can also include the following steps:
E1, judge whether object listing alreadys exceed effective life cycle;
If E2, object listing already exceed effective life cycle, the current of selected one's own side's virtual image is disposed Target, and regenerate object listing;
E3, the highest other side's virtual image of target priority is selected from the object listing regenerated as one's own side's void Intend the current goal of image.
Wherein, in order to guarantee the validity of the current goal selected to user, Life Cycle can be arranged to object listing Phase, first judge whether current object listing alreadys exceed effective life cycle, if object listing is not above effective life The period is ordered, then the current goal of one's own side's virtual image can be determined according to object listing, if object listing alreadys exceed effectively Life cycle can then regenerate object listing, wherein the mode for generating object listing can be refering to the reality of aforementioned C1 to C2 Example explanation is applied, details are not described herein again.
In some embodiments of the invention, step 104 is according to the target weight of each other side's virtual image from least two After the current goal for selecting one's own side's virtual image in a other side's virtual image, in virtual scene provided in an embodiment of the present invention The selection method of target can also include the following steps:
F1, the skillset that one's own side's virtual image currently needs to discharge in virtual scene is obtained;
F2, it is switched over according to current goal of the skillset to selected one's own side's virtual image, after being switched Current goal;
F3, the technical ability for currently needing to discharge in virtual scene using one's own side's virtual image are applied to the current goal after switching Method.
Wherein, cutting for current goal can be carried out in conjunction with the skillset that one's own side's virtual image uses in the embodiment of the present invention It changes.For example, the skillset that user uses refers to the specific technical ability of one's own side's virtual image release, the skill under scene of game The difference of energy type can determine the switchings of current goal.For example, first determining the skillset that one's own side's virtual image uses, connect down It is switched over according to current goal of the skillset to selected one's own side's virtual image, the current mesh after generating switching Mark, the current goal after the switching are the objects of excuting a law of one's own side's virtual image release technical ability.
By above embodiments to the description of the embodiment of the present invention it is found that when the target switching command for receiving user's transmission When, the configuration information of other side's virtual image first in the virtual scene where one's own side's virtual image of acquisition user's operation, virtually Include at least two other side's virtual images in scene, is then determined and corresponded to often respectively according to the configuration information of other side's virtual image Next the sub- weight of at least two of one other side's virtual image carries out at least two sub- weights of each other side's virtual image Superposition, obtains the target weight of each other side's virtual image, finally according to the target weight of each other side's virtual image from least The current goal of one's own side's virtual image is selected in two other side's virtual images.Due to can be according to virtual in the embodiment of the present invention The configuration information of other side's virtual image determines at least two sub- weights of each other side's virtual image, each other side in scene The target weight of virtual image can be obtained by least two sub- weighted superpositions of each other side's virtual image, and of the invention The current goal of one's own side's virtual image is determined by the target weight of each other side's virtual image in embodiment, therefore this hair It can be that one's own side's virtual image automatically selects out current goal by target weight in bright embodiment, simplify the operation of user, and And the accuracy of target selection in virtual scene can be improved, it is applicable to the user operation mode of hide.
In order to facilitate a better understanding and implementation of the above scheme of the embodiment of the present invention, corresponding application scenarios of illustrating below come It is specifically described, next goes out for current goal is excuted a law to carry out for one's own side's role selecting in scene of game by user It is described in detail.
The acquisition operation and overlap-add operation for passing through a series of complex in the embodiment of the present invention first are attempted to want choosing to user In target guessed, accordingly generate the target weight of each other side role.Current mesh can be carried out according to the target weight Target determines.Further, target switching can also be carried out, or when target type does not meet skill requirement, is selected automatically First target in list is excuted a law.It can guarantee so in most cases, player, which can directly choose, to be wanted to choose Target, in a few cases, required target can be chosen by also only needing to carry out target switching.
In the embodiment of the present invention, target power can be introduced with intelligent selection target, in order to which the priority to target is ranked up This concept of weight, the higher target of target weight, priority are higher.The target weight of each other side role is by multiple Sub- weighted superposition obtains.It is illustrated below, target weight is influenced by Multiple factors, and each influence factor can generate one A sub- weight.The mode in the section of the size influence factor of every sub- weight is specified.In same section, the size of sub- weight It is linear with influence factor.For example, target range be [0,100) when, sub- weight be [500,400), in target range For [100,500), sub- weight be [400,100), target range be [500,1000) when, sub- weight be [100,0), in target Distance for [1000, ∞) when, sub- weight be 0.If target range is 300, once linear can be used in the embodiment of the present invention Function reflects influence of the different values of influence factor to sub- weight, for example, by using be that two point form constitutes linear mode and carries out It calculates, calculated sub- weight is (300-500)/(100-500) * (400-100)+100=250.
Specifically, the type of sub- weight temporarily includes: the sub- weight w1 of basic target type, and the sub- weight w2 of target range, The sub- weight w3 of target current life value, camera lens and the sub- weight w4 of target angle, by the sub- weight w5 of attack sequence, special objective type Sub- weight w6.It is illustrated below, in the sub- weight w1 of the basic target type, common basal target type is divided into the biggest frog in the pond (English Literary fame claims: BOSS), elite is strange, common small monster, hostile player, player is different to the attention rate of these targets in gaming, the power Player is made preferentially to choose the target type of current relatively concern again.In the sub- weight w2 of target range, due to player's technical ability Attack distance limitation, needs preferentially to choose closer target, which guarantees that player preferentially chooses the mesh for being easy to attack Mark.In the sub- weight w3 of target current life value, w3 specifically can be the current blood volume percentage of target, and player is often inclined in game It is easy the target killed in first attack, which guarantees that player preferentially chooses current blood volume and highest blood volume ratio is lower Target.In camera lens and target angle w4, player generally requires the selected target being currently seen in game, which guarantees to play Family preferentially chooses the target of camera lens face.By in the sub- weight w5 of attack sequence, during player fights in gaming, to from The higher target of body Threat, needs higher attention rate, which ensures that player can preferentially choose and attacked recently certainly Oneself target.In the sub- weight w6 of special objective type, in addition to the above-mentioned common weights influence factor, there are also a kind of special objective classes The sub- weight of type needs individually processing, for example, enemy head, foe, it is dying cut kill, the target priority that need to succour teammate will It is significantly increased.
According to above-mentioned calculated sub- weight w1, w2, w3, w4, w5, w6, final target weight W can be by above-mentioned sub- power It is overlapped to obtain again, the quantity of each sub- weight embodies the influence degree that corresponding factor chooses final goal, therefore final mesh Mark weight will be added to obtain by each sub- weight, in addition it can be set respectively according to each sub- weight to the influence degree of target weight Different impact factors is set, for example, w=a × w1+b × w2+c × w3+d × w4+e × w5+f × w6, a, b, c, d, e, f can be with It is the specific value of influence degree setting according to each sub- weight in target weight.
In some embodiments of the invention, the value of sub- weight can also be distinguished according to Professional Differences, such as MMORPG game, each occupation is to the various impact factor sensitivitys of target and different, for being able to carry out Posture exchange Occupation, also will form difference in the state of difference.In MMORPG game, certain occupations can possess many attitude, such as Possess super remote attack distance under A posture, this influence of sub- weight to it should " with the sub- weight w2 of target range " at this time Be it is minimum, under B posture, attack distance is extremely short, this influence of sub- weight to it " with the sub- weight w2 of target range " at this time It should be great.For this characteristic, when calculating sub- weight, each occupation or posture use independently the embodiment of the present invention Weight be configured to ensure that the accuracy and reliability of weights.
It please refers to shown in Fig. 2, is the flow chart that user provided in an embodiment of the present invention switches target by shortcut key, player Switching target shortcut key is pressed, target selecting method above-mentioned is first passed through and is labeled as current goal to have selected target, current goal In the absence of, object listing is regenerated according to target weight in range from high to low, has selected target there is no non-in lists, Or object listing time-out, when meeting this Rule of judgment, removing is all to have selected target label, is being unsatisfactory for this Rule of judgment When, displacement player's current goal, which is that weight is highest in list, non-has selected target.For example, in some embodiments of the invention, Overtime judgement can also be carried out for object listing, it, can be from most when shortcut key switching target is used continuously in player's short time First object listing according to priority successively switches over backward, and when the player interval long period carrying out target switching again, A object listing will be regenerated, and switches to the target of highest priority.
The embodiment of the present invention can also carry out intelligent Target switching in the following way, when player needs target using one Technical ability when, if not choosing legal target at this time, correct target can be selected to excute a law as needed.Main needle To following two situation: locking technical ability to enemy when discharging one, itself there is no selection target or current goal for friendly square mesh mark When, the highest hostile target of target sequence weight will be automatically selected and excuted a law.When release one locks technical ability to friend side, itself does not have When selection target or current goal are unfriendly target, the highest friendly square mesh mark of target sequence weight will be automatically selected and excuted a law.
Such as there are three when small strange A, B, C in front of player, their specifying information is as shown in table 1 below:
Monster essential information is described in table 1, according to embodiments of the present invention, 6 sub- weights, each sub- weight can be set In value it is as shown in table 2 below:
In table 2, the priority ranking of each monster can be calculated out by each sub- weight, wherein in the example above, Sub- weight w1 is identical as sub- weight w5, therefore no longer arranges the specific value of w1 and w5 in detail in table 2.If player carries out mesh at this time Mark switching, then the priority of target selection is successively small strange B, small strange A, small strange C.If player is without selection target at this time, but releases The hostility technical ability of a locking is put, system will automatically select small strange B and excute a law.
It should be noted that select current goal only to illustrate in scene of game above-mentioned, the embodiment of the present invention It is equally applicable to select current goal under other virtual scenes, it is only necessary to by the acquisition side of target weight in above-mentioned scene of game Formula is applied in other virtual scenes (such as operation scenario of application program), is no longer illustrated one by one herein.
By it is aforementioned to illustration of the invention it is found that technical solution provided by the invention can integrate multifactor progress The calculating of sub- weight carries out intelligent sorting to target priority, can be good at predicting that player is intended to choose in practical applications Target.Technical solution provided by the invention, which can be used as main target selection scheme, to be existed, and with need to hide in game " action mode " no-float of mouse pointer.Technical solution provided by the invention has very big convenience, based on intelligence Goal ordering will automatically select most correct target when release locks technical ability, and in most cases, player is without leading Dynamic target selection operation.In addition technical solution provided by the invention has scalability, and the target weight of each occupation calculates independent Configuration, and final target weight is calculated using each sub- weight summation, it is subsequent to pass through the sub- weight quantity amendment power of increase Re-computation is as a result, for example, in MMORPG game, and there are many occupation, every kind of professional characteristic is different, will lead to sub- weight Sensitivity is different.So needing to different occupation, according to its characteristic, using individual sub- weight configuration mode.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because According to the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules is not necessarily of the invention It is necessary.
For the above scheme convenient for the better implementation embodiment of the present invention, phase for implementing the above scheme is also provided below Close device.
It please refers to shown in Fig. 3-a, the selection device 300 of target in a kind of virtual scene provided in an embodiment of the present invention can To include: that configuration obtains module 301, sub- weight determination module 302, target weight acquisition module 303, destination selection module 304, Wherein,
Configuration obtains module 301, for obtaining the user's operation when receiving the target switching command of user's transmission One's own side's virtual image where virtual scene in other side's virtual image configuration information, include at least two in the virtual scene A other side's virtual image;
Sub- weight determination module 302 corresponds to often for being determined respectively according to the configuration information of other side's virtual image The sub- weight of at least two of one other side's virtual image;
Target weight obtains module 303, is overlapped, obtains for at least two sub- weights to each other side's virtual image To the target weight of each other side's virtual image;
Destination selection module 304, for according to the target weight of each other side's virtual image from described at least two The current goal of one's own side's virtual image is selected in other side's virtual image.
In some embodiments of the invention, it please refers to as shown in Fig. 3-b, the destination selection module 304, comprising:
Target priority computing unit 3041, for according to the calculating of the target weight of each other side's virtual image The target priority of each other side's virtual image;
Object listing generation unit 3042, for generating target according to the target priority of each other side's virtual image List includes: at least two other side virtual image according to the target priority in the object listing;
Target selection unit 3043, for selecting the virtual shape of the highest other side of target priority from the object listing As the current goal as one's own side's virtual image.
In some embodiments of the invention, it please refers to as shown in Fig. 3-c, the selection device of target in the virtual scene 300, further includes:
Target display module 305 is also used to the target selection unit and selects target priority from the object listing After current goal of the highest other side's virtual image of grade as one's own side's virtual image, by working as one's own side's virtual image Preceding target is shown to the user;
Target resets module 306, for disposing and having selected after receiving the target gravity treatment instruction that the user issues The current goal for the one's own side's virtual image selected selects target from the object listing according to target gravity treatment instruction Other side's virtual image that priority ranking is second is virtual as the one's own side
The current goal of image, and the current goal after gravity treatment is shown to the user again.
In some embodiments of the invention, it please refers to as shown in Fig. 3-d, the selection device of target in the virtual scene 300, further includes: overtime management module 307, wherein
The time-out management module 307, it is excellent to select target from the object listing for the target selection unit After current goal of the first highest other side's virtual image of grade as one's own side's virtual image, whether the object listing is judged Effective life cycle is alreadyd exceed,
The destination selection module 304 is disposed if being also used to the object listing alreadys exceed effective life cycle The current goal of selected one's own side's virtual image, and object listing is regenerated, from the object listing regenerated Select current goal of the highest other side's virtual image of target priority as one's own side's virtual image.
In some embodiments of the invention, the configuration information of other side's virtual image, including in following information extremely Few one kind: between the vivid type in the basis of other side's virtual image, other side's virtual image and one's own side's virtual image Range information, the current life value of other side's virtual image, other side's virtual image and one's own side's virtual image it Between angle information, other side's virtual image is to the Threat, other side's virtual image and institute of one's own side's virtual image State the associated special image type of one's own side's virtual image.
In some embodiments of the invention, the sub- weight determination module 302 is specifically used for virtual according to the other side The vivid type in the basis of image calculates the sub- weight of basic target type;It is virtual according to other side's virtual image and the one's own side The distance between image information calculates and the sub- weight of target range;It is calculated according to the current life value of other side's virtual image The sub- weight of target current life value out;According to the angle information meter between other side's virtual image and one's own side's virtual image Calculate camera lens and the sub- weight of target angle;It is calculated according to Threat of the other side's virtual image to one's own side's virtual image By the sub- weight of attack sequence;It is calculated according to other side's virtual image and the associated special image type of one's own side's virtual image The sub- weight of special objective type out.
In some embodiments of the invention, it please refers to as shown in Fig. 3-e, the sub- weight determination module 302, comprising:
Professional acquiring unit 3021, for obtaining the virtual shape of other side according to the configuration information of other side's virtual image As the occupation represented in the virtual scene, the occupation that other side's virtual image represents in the virtual scene has extremely It is two kinds few;
Sub- weight determining unit 3022, the difference for being represented in the virtual scene according to other side's virtual image Occupation determines the sub- weight for corresponding to each other side's virtual image respectively.
In some embodiments of the invention, it please refers to as shown in Fig. 3-f, the selection device of target in the virtual scene 300, further includes: technical ability control module 308 and target switching module 309, wherein
The technical ability control module 308, for the destination selection module according to the mesh of each other side's virtual image Weight is marked after the current goal for selecting one's own side's virtual image in at least two other side virtual image, obtains institute State the skillset that one's own side's virtual image currently needs to discharge in the virtual scene;
The target switching module 309 is also used to according to the skillset to selected one's own side's virtual image Current goal switch over, the current goal after being switched;
The technical ability control module 308, be also used for one's own side's virtual image currently needs in the virtual scene The technical ability to be discharged is excuted a law to the current goal after the switching.
By above embodiments to the description of the embodiment of the present invention it is found that when the target switching command for receiving user's transmission When, the configuration information of other side's virtual image first in the virtual scene where one's own side's virtual image of acquisition user's operation, virtually Include at least two other side's virtual images in scene, is then determined and corresponded to often respectively according to the configuration information of other side's virtual image Next the sub- weight of at least two of one other side's virtual image carries out at least two sub- weights of each other side's virtual image Superposition, obtains the target weight of each other side's virtual image, finally according to the target weight of each other side's virtual image from least The current goal of one's own side's virtual image is selected in two other side's virtual images.Due to can be according to virtual in the embodiment of the present invention The configuration information of other side's virtual image determines at least two sub- weights of each other side's virtual image, each other side in scene The target weight of virtual image can be obtained by least two sub- weighted superpositions of each other side's virtual image, and of the invention The current goal of one's own side's virtual image is determined by the target weight of each other side's virtual image in embodiment, therefore this hair It can be that one's own side's virtual image automatically selects out current goal by target weight in bright embodiment, simplify the operation of user, and And the accuracy of target selection in virtual scene can be improved, it is applicable to the user operation mode of hide.
The embodiment of the invention also provides a kind of terminals, as shown in figure 4, for ease of description, illustrating only and the present invention The relevant part of embodiment, it is disclosed by specific technical details, please refer to present invention method part.The terminal can be Including mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant), POS (Point of Sales, point-of-sale terminal), any terminal device such as vehicle-mounted computer, taking the terminal as an example:
Fig. 4 shows the block diagram of the part-structure of mobile phone relevant to terminal provided in an embodiment of the present invention.With reference to figure 4, mobile phone include: radio frequency (Radio Frequency, RF) circuit 44, memory 420, input unit 430, display unit 440, Sensor 450, voicefrequency circuit 460, Wireless Fidelity (wireless fidelity, WiFi) module 470, processor 480 and The components such as power supply 490.It will be understood by those skilled in the art that handset structure shown in Fig. 4 does not constitute the restriction to mobile phone, It may include perhaps combining certain components or different component layouts than illustrating more or fewer components.
It is specifically introduced below with reference to each component parts of the Fig. 4 to mobile phone:
RF circuit 44 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, will be under base station After row information receives, handled to processor 480;In addition, the data for designing uplink are sent to base station.In general, RF circuit 44 wraps Include but be not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..In addition, RF circuit 44 can also be communicated with network and other equipment by wireless communication. Any communication standard or agreement, including but not limited to global system for mobile communications (Global can be used in above-mentioned wireless communication System of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), CDMA (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) etc..
Memory 420 can be used for storing software program and module, and processor 480 is stored in memory 420 by operation Software program and module, thereby executing the various function application and data processing of mobile phone.Memory 420 can mainly include Storing program area and storage data area, wherein storing program area can application journey needed for storage program area, at least one function Sequence (such as sound-playing function, image player function etc.) etc.;Storage data area can be stored to be created according to using for mobile phone Data (such as audio data, phone directory etc.) etc..It, can be in addition, memory 420 may include high-speed random access memory Including nonvolatile memory, for example, at least a disk memory, flush memory device or other volatile solid-states Part.
Input unit 430 can be used for receiving the number or character information of input, and generate with the user setting of mobile phone with And the related key signals input of function control.Specifically, input unit 430 may include that touch panel 431 and other inputs are set Standby 432.Touch panel 431, also referred to as touch screen, collect user on it or nearby touch operation (such as user use The operation of any suitable object or attachment such as finger, stylus on touch panel 431 or near touch panel 431), and root Corresponding attachment device is driven according to preset formula.Optionally, touch panel 431 may include touch detecting apparatus and touch Two parts of controller.Wherein, the touch orientation of touch detecting apparatus detection user, and touch operation bring signal is detected, Transmit a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted into touching Point coordinate, then gives processor 480, and can receive order that processor 480 is sent and be executed.Furthermore, it is possible to using electricity The multiple types such as resistive, condenser type, infrared ray and surface acoustic wave realize touch panel 431.In addition to touch panel 431, input Unit 430 can also include other input equipments 432.Specifically, other input equipments 432 can include but is not limited to secondary or physical bond One of disk, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. are a variety of.
Display unit 440 can be used for showing information input by user or be supplied to user information and mobile phone it is various Menu.Display unit 440 may include display panel 441, optionally, can use liquid crystal display (Liquid Crystal Display, LCD), the forms such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) it is aobvious to configure Show panel 441.Further, touch panel 431 can cover display panel 441, when touch panel 431 detect it is on it or attached After close touch operation, processor 480 is sent to determine the type of touch event, is followed by subsequent processing device 480 according to touch event Type corresponding visual output is provided on display panel 441.Although in Fig. 4, touch panel 431 and display panel 441 It is that the input and input function of mobile phone are realized as two independent components, but in some embodiments it is possible to by touch-control Panel 431 and display panel 441 are integrated and that realizes mobile phone output and input function.
Mobile phone may also include at least one sensor 450, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ambient light Light and shade adjust the brightness of display panel 441, proximity sensor can close display panel 441 when mobile phone is moved in one's ear And/or backlight.As a kind of motion sensor, accelerometer sensor can detect (generally three axis) acceleration in all directions Size, can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture, (for example horizontal/vertical screen is cut Change, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;May be used also as mobile phone The other sensors such as gyroscope, barometer, hygrometer, thermometer, the infrared sensor of configuration, details are not described herein.
Voicefrequency circuit 460, loudspeaker 461, microphone 462 can provide the audio interface between user and mobile phone.Audio-frequency electric Electric signal after the audio data received conversion can be transferred to loudspeaker 461, be converted to sound by loudspeaker 461 by road 460 Signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 462, is turned after being received by voicefrequency circuit 460 It is changed to audio data, then by after the processing of audio data output processor 480, such as another mobile phone is sent to through RF circuit 44, Or audio data is exported to memory 420 to be further processed.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics postal by WiFi module 470 Part, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 4 is shown WiFi module 470, but it is understood that, and it is not belonging to must be configured into for mobile phone, it can according to need do not changing completely Become in the range of the essence of invention and omits.
Processor 480 is the control centre of mobile phone, using the various pieces of various interfaces and connection whole mobile phone, is led to It crosses operation or executes the software program and/or module being stored in memory 420, and call and be stored in memory 420 Data execute the various functions and processing data of mobile phone, to carry out integral monitoring to mobile phone.Optionally, processor 480 can wrap Include one or more processing units;Preferably, processor 480 can integrate application processor and modem processor, wherein answer With the main processing operation system of processor, user interface and application program etc., modem processor mainly handles wireless communication. It is understood that above-mentioned modem processor can not also be integrated into processor 480.
Mobile phone further includes the power supply 490 (such as battery) powered to all parts, it is preferred that power supply can pass through power supply pipe Reason system and processor 480 are logically contiguous, to realize management charging, electric discharge and power managed by power-supply management system Etc. functions.
Although being not shown, mobile phone can also include camera, bluetooth module etc., and details are not described herein.
In embodiments of the present invention, processor 480 included by the terminal also has control execution is above to be executed by terminal Virtual scene in target selection method process.
In addition it should be noted that, the apparatus embodiments described above are merely exemplary, wherein described as separation The unit of part description may or may not be physically separated, component shown as a unit can be or It can not be physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to reality Border needs to select some or all of the modules therein to achieve the purpose of the solution of this embodiment.In addition, provided by the invention In Installation practice attached drawing, the connection relationship between module indicates there is communication connection between them, specifically can be implemented as one Item or a plurality of communication bus or signal wire.Those of ordinary skill in the art are without creative efforts, it can It understands and implements.
Through the above description of the embodiments, it is apparent to those skilled in the art that the present invention can borrow Help software that the mode of required common hardware is added to realize, naturally it is also possible to by specialized hardware include specific integrated circuit, specially It is realized with CPU, private memory, special components and parts etc..Under normal circumstances, all functions of being completed by computer program are ok It is easily realized with corresponding hardware, moreover, being used to realize that the specific hardware structure of same function is also possible to a variety of more Sample, such as analog circuit, digital circuit or special circuit etc..But software program is real in situations more for the purpose of the present invention It is now more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words makes the prior art The part of contribution can be embodied in the form of software products, which is stored in the storage medium that can be read In, such as the floppy disk of computer, USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory Device (RAM, Random Access Memory), magnetic or disk etc., including some instructions are with so that a computer is set Standby (can be personal computer, server or the network equipment etc.) executes method described in each embodiment of the present invention.
In conclusion the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although referring to upper Stating embodiment, invention is explained in detail, those skilled in the art should understand that: it still can be to upper Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these It modifies or replaces, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.

Claims (14)

1. the selection method of target in a kind of virtual scene characterized by comprising
When receiving the target switching command of user's transmission, obtain virtual where one's own side's virtual image of the user's operation The configuration information of other side's virtual image in scene includes at least two other side's virtual images in the virtual scene;
It is determined respectively according to the configuration information of other side's virtual image and corresponds at least two of each other side's virtual image Sub- weight;
At least two sub- weights of each other side's virtual image are overlapped, the target power of each other side's virtual image is obtained Weight;
It is selected from at least two other side virtual image according to the target weight of each other side's virtual image described The current goal of one's own side's virtual image;
Wherein, the configuration information according to other side's virtual image determines respectively corresponds to each other side's virtual image At least two sub- weights, comprising:
Obtain what other side's virtual image represented in the virtual scene according to the configuration information of other side's virtual image Occupation, the occupation that other side's virtual image represents in the virtual scene have at least two;
It is right corresponding to each that the different occupation represented in the virtual scene according to other side's virtual image determines respectively At least two sub- weights of square virtual image being adapted to the occupation.
2. the method according to claim 1, wherein described weigh according to the target of each other side's virtual image Weight selects the current goal of one's own side's virtual image from at least two other side virtual image, comprising:
The target priority of each other side's virtual image is calculated according to the target weight of each other side's virtual image;
Generate object listing according to the target priority of each other side's virtual image, include: in the object listing according to At least two other side virtual image of the target priority;
The highest other side's virtual image of target priority is selected from the object listing as one's own side's virtual image Current goal.
3. according to the method described in claim 2, it is characterized in that, described select target priority from the object listing After current goal of the highest other side's virtual image as one's own side's virtual image, the method also includes:
The current goal of one's own side's virtual image is shown to the user;
After receiving the target gravity treatment instruction that the user issues, working as selected one's own side's virtual image is disposed It is empty to select the other side that target priority is second according to target gravity treatment instruction from the object listing for preceding target Current goal of the quasi- image as one's own side's virtual image, and the current goal after gravity treatment is shown to the user again.
4. according to the method described in claim 2, it is characterized in that, described select target priority from the object listing After current goal of the highest other side's virtual image as one's own side's virtual image, which comprises
Judge whether the object listing alreadys exceed effective life cycle;
If the object listing alreadys exceed effective life cycle, the current of selected one's own side's virtual image is disposed Target, and regenerate object listing;
It is virtual as the one's own side that the highest other side's virtual image of target priority is selected from the object listing regenerated The current goal of image.
5. the method according to claim 1, wherein the configuration information of other side's virtual image, including it is as follows At least one of information: the vivid type in the basis of other side's virtual image, other side's virtual image and the one's own side are empty The distance between quasi- image information, the current life value of other side's virtual image, other side's virtual image and the one's own side Angle information, other side's virtual image between virtual image is empty to the Threat of one's own side's virtual image, the other side Quasi- image and the associated special image type of one's own side's virtual image.
6. according to the method described in claim 5, it is characterized in that, the configuration information according to other side's virtual image point At least two sub- weights of each other side's virtual image Que Ding not corresponded to, comprising:
The sub- weight of basic target type is calculated according to the vivid type in the basis of other side's virtual image;
It is calculated according to the distance between other side's virtual image and one's own side's virtual image information and is weighed with target range Weight;
The sub- weight of target current life value is calculated according to the current life value of other side's virtual image;
Camera lens and target angle are calculated according to the angle information between other side's virtual image and one's own side's virtual image Sub- weight;
It is calculated according to Threat of the other side's virtual image to one's own side's virtual image by the sub- weight of attack sequence;
Special objective class is calculated according to other side's virtual image and the associated special image type of one's own side's virtual image Type weight.
7. the method according to claim 1, wherein described weigh according to the target of each other side's virtual image Weight is after the current goal for selecting one's own side's virtual image in at least two other side virtual image, and the method is also Include:
Obtain the skillset that one's own side's virtual image currently needs to discharge in the virtual scene;
It is switched over according to current goal of the skillset to selected one's own side's virtual image, after being switched Current goal;
The technical ability for currently needing to discharge in the virtual scene using one's own side's virtual image is to current after the switching Target is excuted a law.
8. the selection device of target in a kind of virtual scene characterized by comprising
Configuration obtains module, for obtaining the one's own side of the user's operation when receiving the target switching command of user's transmission The configuration information of other side's virtual image in virtual scene where virtual image includes at least two other side in the virtual scene Virtual image;
Sub- weight determination module corresponds to each other side for determining respectively according to the configuration information of other side's virtual image The sub- weight of at least two of virtual image;
Target weight obtains module, is overlapped, obtains each for at least two sub- weights to each other side's virtual image The target weight of other side's virtual image;
Destination selection module, for virtual from least two other side according to the target weight of each other side's virtual image The current goal of one's own side's virtual image is selected in image;
Wherein, the sub- weight determination module, comprising:
Professional acquiring unit, for obtaining other side's virtual image described according to the configuration information of other side's virtual image The occupation represented in virtual scene, the occupation that other side's virtual image represents in the virtual scene have at least two;
Sub- weight determining unit, the different occupation difference for being represented in the virtual scene according to other side's virtual image Determine the sub- weight being adapted to the occupation for corresponding to each other side's virtual image.
9. device according to claim 8, which is characterized in that the destination selection module, comprising:
Target priority computing unit, for calculating each other side according to the target weight of each other side's virtual image The target priority of virtual image;
Object listing generation unit, for generating object listing, institute according to the target priority of each other side's virtual image Stating includes: at least two other side virtual image according to the target priority in object listing;
Target selection unit, for selecting the highest other side's virtual image of target priority from the object listing as institute State the current goal of one's own side's virtual image.
10. device according to claim 9, which is characterized in that the selection device of target in the virtual scene also wraps It includes:
Target display module, being also used to the target selection unit, to select target priority from the object listing highest After current goal of other side's virtual image as one's own side's virtual image, the current goal of one's own side's virtual image is shown Show to the user;
Target resets module, for disposing selected institute after receiving the target gravity treatment instruction that the user issues The current goal for stating one's own side's virtual image selects target priority from the object listing according to target gravity treatment instruction It is ordered as the current goal of second other side's virtual image as one's own side's virtual image, and shows weight to the user again Current goal after choosing.
11. device according to claim 9, which is characterized in that the selection device of target in the virtual scene also wraps It includes: overtime management module, wherein
The time-out management module, selects target priority highest for the target selection unit from the object listing Current goal of other side's virtual image as one's own side's virtual image after, judge whether the object listing alreadys exceed Effective life cycle,
The destination selection module is disposed selected if being also used to the object listing alreadys exceed effective life cycle One's own side's virtual image current goal, and regenerate object listing, selected from the object listing regenerated Current goal of the highest other side's virtual image of target priority as one's own side's virtual image.
12. device according to claim 8, which is characterized in that the configuration information of other side's virtual image, including it is as follows At least one of information: the vivid type in the basis of other side's virtual image, other side's virtual image and the one's own side are empty The distance between quasi- image information, the current life value of other side's virtual image, other side's virtual image and the one's own side Angle information, other side's virtual image between virtual image is empty to the Threat of one's own side's virtual image, the other side Quasi- image and the associated special image type of one's own side's virtual image.
13. device according to claim 12, which is characterized in that the sub- weight determination module is specifically used for according to institute The vivid type in basis for stating other side's virtual image calculates the sub- weight of basic target type;According to other side's virtual image and institute The distance between one's own side's virtual image information is stated to calculate and the sub- weight of target range;According to the current of other side's virtual image Vital values calculate the sub- weight of target current life value;According between other side's virtual image and one's own side's virtual image Angle information calculates camera lens and the sub- weight of target angle;According to other side's virtual image to the prestige of one's own side's virtual image Stress is calculated by the sub- weight of attack sequence;According to other side's virtual image and the associated special form of one's own side's virtual image As type calculates the sub- weight of special objective type.
14. device according to claim 8, which is characterized in that the selection device of target in the virtual scene also wraps It includes: technical ability control module and target switching module, wherein
The technical ability control module, for the destination selection module according to the target weight of each other side's virtual image from After the current goal for selecting one's own side's virtual image in at least two other side virtual image, it is empty to obtain the one's own side The skillset that quasi- image currently needs to discharge in the virtual scene;
The target switching module is also used to the current mesh according to the skillset to selected one's own side's virtual image Mark switches over, the current goal after being switched;
The technical ability control module is also used for what one's own side's virtual image currently needed to discharge in the virtual scene Technical ability is excuted a law to the current goal after the switching.
CN201610199687.5A 2016-03-31 2016-03-31 The selection method and device of target in a kind of virtual scene Active CN107291317B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610199687.5A CN107291317B (en) 2016-03-31 2016-03-31 The selection method and device of target in a kind of virtual scene

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610199687.5A CN107291317B (en) 2016-03-31 2016-03-31 The selection method and device of target in a kind of virtual scene

Publications (2)

Publication Number Publication Date
CN107291317A CN107291317A (en) 2017-10-24
CN107291317B true CN107291317B (en) 2018-12-11

Family

ID=60086834

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610199687.5A Active CN107291317B (en) 2016-03-31 2016-03-31 The selection method and device of target in a kind of virtual scene

Country Status (1)

Country Link
CN (1) CN107291317B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108310772A (en) * 2018-01-22 2018-07-24 腾讯科技(深圳)有限公司 The execution method and apparatus and storage medium of attack operation, electronic device
CN108619717B (en) * 2018-03-21 2020-06-16 腾讯科技(深圳)有限公司 Method and device for determining operation object, storage medium and electronic device
CN110163976B (en) * 2018-07-05 2024-02-06 腾讯数码(天津)有限公司 Virtual scene conversion method, device, terminal equipment and storage medium
JP6677788B1 (en) * 2018-11-29 2020-04-08 株式会社Cygames Information processing program, information processing method and game device
CN110333804A (en) * 2019-06-20 2019-10-15 珠海文景科技有限公司 The response method of textures, device, terminal device and storage medium in game system
CN111552429B (en) * 2020-04-29 2021-07-23 杭州海康威视数字技术股份有限公司 Graph selection method and device and electronic equipment
CN112704876B (en) * 2020-12-30 2022-10-04 腾讯科技(深圳)有限公司 Method, device and equipment for selecting virtual object interaction mode and storage medium
CN113633995A (en) * 2021-08-10 2021-11-12 网易(杭州)网络有限公司 Interactive control method, device and equipment of game and storage medium
CN114187429B (en) * 2021-11-09 2023-03-24 北京百度网讯科技有限公司 Virtual image switching method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186710A (en) * 2011-12-31 2013-07-03 北京金山软件有限公司 Optimal route searching method and system
CN104025140A (en) * 2011-06-06 2014-09-03 恩弗伦斯媒体公司 Consumer driven advertising system
CN104854546A (en) * 2012-10-12 2015-08-19 微软技术许可有限责任公司 Weighted focus navigation of graphical user interface
CN105117579A (en) * 2015-07-21 2015-12-02 网易(杭州)网络有限公司 Object selection method and apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104025140A (en) * 2011-06-06 2014-09-03 恩弗伦斯媒体公司 Consumer driven advertising system
CN103186710A (en) * 2011-12-31 2013-07-03 北京金山软件有限公司 Optimal route searching method and system
CN104854546A (en) * 2012-10-12 2015-08-19 微软技术许可有限责任公司 Weighted focus navigation of graphical user interface
CN105117579A (en) * 2015-07-21 2015-12-02 网易(杭州)网络有限公司 Object selection method and apparatus

Also Published As

Publication number Publication date
CN107291317A (en) 2017-10-24

Similar Documents

Publication Publication Date Title
CN107291317B (en) The selection method and device of target in a kind of virtual scene
CN111773696B (en) Virtual object display method, related device and storage medium
CN110585726A (en) User recall method, device, server and computer readable storage medium
CN109905754A (en) Virtual present collection methods, device and storage equipment
CN109568938A (en) More resource game touch operation methods, device, storage medium and terminal
CN107038455A (en) A kind of image processing method and device
CN107870790A (en) PUSH message processing method and Related product based on game application
CN108236785A (en) A kind of method and device for obtaining object information
CN110704661A (en) Image classification method and device
CN108984087A (en) Social interaction method and device based on three-dimensional avatars
CN108984064A (en) Multi-screen display method, device, storage medium and electronic equipment
CN110163045A (en) A kind of recognition methods of gesture motion, device and equipment
CN110443190A (en) A kind of object identifying method and device
CN107292235A (en) The acquisition method and Related product of fingerprint
CN109067981A (en) Split screen application switching method, device, storage medium and electronic equipment
CN109246027A (en) A kind of method, apparatus and terminal device of network operation
CN112774194A (en) Interaction method of virtual objects and related device
CN109550248A (en) Virtual objects location recognition method, device, mobile terminal and storage medium
CN107766139B (en) Application management method and device
CN110227268A (en) A kind of method and device detecting violation game account number
CN110781421A (en) Virtual resource display method and related device
CN111803961B (en) Virtual article recommendation method and related device
CN110167006A (en) A kind of control application program uses the method and terminal device of SIM card
CN109529335A (en) Game role sound effect treatment method, device, mobile terminal and storage medium
CN116958715A (en) Method and device for detecting hand key points and 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