CN106914019B - A kind of data processing method, device and server - Google Patents

A kind of data processing method, device and server Download PDF

Info

Publication number
CN106914019B
CN106914019B CN201710161491.1A CN201710161491A CN106914019B CN 106914019 B CN106914019 B CN 106914019B CN 201710161491 A CN201710161491 A CN 201710161491A CN 106914019 B CN106914019 B CN 106914019B
Authority
CN
China
Prior art keywords
technical ability
virtual objects
coverage
virtual
initial
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
CN201710161491.1A
Other languages
Chinese (zh)
Other versions
CN106914019A (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 CN201710161491.1A priority Critical patent/CN106914019B/en
Publication of CN106914019A publication Critical patent/CN106914019A/en
Application granted granted Critical
Publication of CN106914019B publication Critical patent/CN106914019B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/80Special adaptations for executing a specific game genre or game mode
    • A63F13/822Strategy games; Role-playing games
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/40Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment
    • A63F13/42Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/55Controlling game characters or game objects based on the game progress
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/60Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

A kind of data processing method of offer of the embodiment of the present invention, device and server, this method include:It receives the technical ability that client is sent and puts request to good use, the technical ability puts the first technical ability that request is used to ask to put to good use the first virtual objects to good use;Determine the initial technical ability coverage of the first technical ability;According to gradually widened technical ability coverage, the second virtual objects of scanning gradually are expanded to range limit until being scanned to the second virtual objects or technical ability coverage in technical ability coverage since initial technical ability coverage;If scanned in technical ability coverage to the second virtual objects, destination virtual object is determined from the second virtual objects scanned, and send the first notice to the client, to notify the client to control the position that the first virtual objects move to destination virtual object, and show the first effect that the first technical ability generates destination virtual object.The embodiment of the present invention can be easy realization collide class technical ability, reduce the resource overhead of server.

Description

A kind of data processing method, device and server
Technical field
The present invention relates to technical field of data processing, and in particular to a kind of data processing method, device and server.
Background technology
An important component of the technical ability as network applications such as game, emulation, technical ability realize to be always this kind of network The technology emphasis of developer's research of application, the realization for colliding class technical ability among these are more difficult;Colliding class technical ability is When finger technical ability is started, the virtual objects for putting technical ability to good use will produce movement, and generate strike effect to the target that movement is collided on the way.
Collision class technical ability is realized generally by physical engine at present, by being touched to the virtual objects definition in virtual scene Device is hit, when collision class technical ability is started, physical engine can drive the virtual objects for putting technical ability to good use to be moved, in virtual objects In motion process, whether the impinger that physical engine can detect virtual objects contacts with the generation of the impinger of other virtual objects, And when the generation of the impinger of the impinger of virtual objects and other virtual objects contacts, the virtual objects to generating contact generate Strike effect.
However the quantity of the virtual objects of same screen is more in network application, and collision class technical ability is realized using physical engine, Server needs handle a large amount of information, cause the resource overhead of server larger, therefore how easy realization is touched Class technical ability is hit, reduces the resource overhead of server, becomes problem to be solved.
Invention content
In view of this, a kind of data processing method of offer of the embodiment of the present invention, device and server, are touched with easy realization Class technical ability is hit, the resource overhead of server is reduced.
To achieve the above object, the embodiment of the present invention provides the following technical solutions:
A kind of data processing method, including:
It receives the technical ability that client is sent and puts request to good use, the technical ability puts request to good use and puts the first virtual objects to good use for asking The first technical ability;First technical ability moves on the way the first virtual objects for triggering the first virtual objects movement Second virtual objects of collision generate the first effect;
Using position of first virtual objects in virtual scene as starting point, determine that the initial technical ability of the first technical ability influences model It encloses;
According to gradually widened technical ability coverage, scanning second gradually are virtual since initial technical ability coverage Object, until scanning is expanded to range limit to the second virtual objects or technical ability coverage in technical ability coverage;
If scanning is to the second virtual objects in technical ability coverage, mesh is determined from the second virtual objects scanned Virtual objects are marked, and the first notice is sent to the client, to notify the client controls first virtual objects to transport It moves to the position of the destination virtual object, and makes the client in first virtual objects and the destination virtual pair When as collision, the first effect that first technical ability generates destination virtual object is shown.
The embodiment of the present invention also provides a kind of data processing equipment, including:
Request receiving module, the technical ability for receiving client transmission put request to good use, and the technical ability puts request to good use for asking Seek the first technical ability for putting the first virtual objects to good use;First technical ability is for triggering first virtual objects movement, and to the The second virtual objects that the movement of one virtual objects is collided on the way generate the first effect;
Initial range determining module is used for the position using the first virtual objects in virtual scene as starting point, determines first The initial technical ability coverage of technical ability;
Scan round module, for according to the gradually widened technical ability coverage since initial technical ability coverage, The second virtual objects of scanning gradually, until scanning influences model to the second virtual objects or technical ability in technical ability coverage It encloses and is expanded to range limit;
First result treatment module, if in technical ability coverage scanning to the second virtual objects, from scanning to The second virtual objects in determine destination virtual object, and the first notice is sent to the client, to notify the client The position that first virtual objects move to the destination virtual object is controlled, and so that the client is empty described first When quasi- object is collided with the destination virtual object, the first effect that first technical ability generates destination virtual object is shown.
The embodiment of the present invention also provides a kind of server, including data processing equipment described above.
Based on the above-mentioned technical proposal, in data processing method provided in an embodiment of the present invention, server is receiving client After the technical ability for the first technical ability that the first virtual objects are put in the request that end is sent to good use puts request to good use, it is virtual that server wouldn't control first Object is moved, but using position of first virtual objects in virtual scene as starting point, determines the initial of the first technical ability Technical ability coverage;And then according to the gradually widened technical ability coverage since initial technical ability coverage, sweeping gradually The second virtual objects are retouched, are expanded to the second virtual objects or technical ability coverage until being scanned in technical ability coverage Range limit;During this, if the server determine that scanning is to the second virtual objects in technical ability coverage, then server Destination virtual object can be determined from the second virtual objects scanned, and sends the first notice to the client, with notice The client controls the position that first virtual objects move to the destination virtual object, and the client is existed When first virtual objects are collided with the destination virtual object, show what first technical ability generated destination virtual object First effect realizes the first technical ability.
As can be seen that the embodiment of the present invention can be described and be configured by the realization logic to the first technical ability, thus When client transmission technical ability puts request to good use, server can be by executing by the realization of program language description and the first technical ability configured Logic realizes the first technical ability so that realizing for collision class technical ability can be completed by easy script configuration, need not rely on physics The resource overhead of engine, server is reduced.Meanwhile on the basis of not scanning to the second virtual objects, by gradually expanding Big technical ability coverage carrys out the second virtual objects of scanning gradually to range limit, may make the number of the second virtual objects of scanning It is controlled according to treating capacity, reduces the data processing amount involved by the second virtual objects of scanning.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is the system architecture schematic diagram of the embodiment of the present invention;
Fig. 2 is the flow chart of data processing method provided in an embodiment of the present invention;
Fig. 3 is the schematic diagram for colliding class technical ability;
Fig. 4 is another schematic diagram for colliding class technical ability;
Fig. 5 is another flow chart of data processing method provided in an embodiment of the present invention;
Fig. 6 is the schematic diagram of initial technical ability coverage;
Fig. 7 is the schematic diagram of the technical ability coverage after expanding;
Fig. 8 is another flow chart of data processing method provided in an embodiment of the present invention;
Fig. 9 is the schematic diagram that the embodiment of the present invention is applied in gaming;
Figure 10 is the structure diagram of data processing equipment provided in an embodiment of the present invention;
Figure 11 is another structure diagram of data processing equipment provided in an embodiment of the present invention;
Figure 12 is another structure diagram of data processing equipment provided in an embodiment of the present invention;
Figure 13 is the hardware block diagram of server.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Data processing method provided in an embodiment of the present invention realizes the mode of collision class technical ability, does not use physical engine, But the realization logic for colliding class technical ability is described and is configured by program language, to start to collide in client request When class technical ability, server can be by executing by the realization logic of program language description and the collision class technical ability configured, to colliding class Technical ability is realized;Remove the prior art from and define impinger, and in the motion process of virtual objects, detects touching for virtual objects It hits whether device with the impingers of other virtual objects generates the process contacted, is greatly reduced the resource overhead of server.
Fig. 1 shows the system architecture schematic diagram of the embodiment of the present invention, and referring to Fig.1, which may include:Client End 10 and server 20;
Client 10 can be arranged on the user equipmenies such as smart mobile phone, tablet computer, laptop, to play, imitating Very equal network applications provide local service;Optionally, by taking gaming network is applied as an example, client 10 such as game client;
Server 20 is set to network side, can provide network service for network applications such as game, emulation, server 20 can To be that individual server is realized, it is also possible to be realized by the server farm that multiple servers form;Optionally, with net game For network application, server 20 such as game server.
Based on system shown in Figure 1 framework, client 10 can be sent when putting technical ability to good use based on user's operation to server 20 Technical ability puts request to good use, and it can be the collision class technical ability that virtual objects are put in request to good use which, which puts request to good use,.
Server 20 can perform the collision class technical ability for being described by program language and being configured after receiving technical ability and putting request to good use Realize logic, the optional flow that server executes the realization logic of collision class technical ability can be as shown in Figure 2.
Fig. 2 is the flow chart of data processing method provided in an embodiment of the present invention, which can be applied to take Business device, with reference to Fig. 2, data processing method provided in an embodiment of the present invention may include:
Step S100, it receives the technical ability that client is sent and puts request to good use, the technical ability puts request to good use and puts the to good use for request First technical ability of one virtual objects;First technical ability is moved for triggering first virtual objects, and virtual right to first The first effect is generated as moving the second virtual objects collided on the way.
Optionally, the first technical ability can collide one kind of class technical ability;By taking gaming network is applied as an example, class technical ability is such as collided The virtual role that can trigger user's control is made a spurt forwards, and starts to hit to the hostile target collided on spurt path, to enemy Strike effect (a kind of form of the first effect) is generated to target;Fig. 3 shows that corresponding signal, a game role are put to good use and touched It after hitting class technical ability, can make a spurt to the front of direction, and the hostile game role collided on spurt path is started to hit so that enemy Vital values are lost to game role;
For another example, the device (such as weapon) that collision class technical ability can trigger operated by the virtual role of user's control projects forwards Object, and strike is generated to the hostile target in projected path, and if hostile target is not present in projected path, technical ability is beaten It is empty;As shown in figure 4, Fig. 4 left halfs show that a game role controls cannon and projects shell, but cannon to cannon towards front It projects and hostile target is not present on the path of shell, the signal that shell fans the air, Fig. 4 right halfs show a game role control Cannon projects shell to cannon towards front, and cannon projects on the path of shell there are hostile target, and shell hits hostile target, So that the signal of hostile target loss vital values;
Obviously, the citing of the collision class technical ability of foregoing description is only schematically illustrate, and the concrete form for colliding class technical ability can be with It is defined according to the exploitation demand of the network applications such as game.
When first virtual objects can be that the first technical ability is started, the virtual objects of movement are generated;As the first virtual objects can To be virtual role that user is controlled, by taking gaming network is applied as an example, the first virtual objects can be the trip that user is controlled Play role;First virtual objects are also likely to be the device operated by the virtual role that user is controlled, and are applied with gaming network and are Example, the first virtual objects can be the weapon etc. operated by the game role that user is controlled;
Second virtual objects can be the virtual objects that can apply the first technical ability, can be specifically to be with the first virtual objects The virtual objects of hostile relations;Monster in second virtual objects such as virtual scene is with the first virtual objects in virtual scene The virtual role etc. of hostile relations (rival camps or battle relationship);
First effect can be the strike effect of first the second virtual objects of technical ability pair;First the second virtual objects of technical ability pair The first effect is generated, then the second virtual objects are typically subject to declining profit influence, such as the vital values attribute value of the second virtual objects Loss.
Step S110, the position using the first virtual objects in virtual scene determines the initial skill of the first technical ability as starting point It can coverage.
Optionally, the technical ability coverage of the first technical ability can be two-dimensional range, it is also possible to three-dimensional range, specifically Depending on the virtual scene that the form of the first technical ability and network application are supported is two dimension or three-dimensional.
Server is after receiving the technical ability and putting request to good use, position that can be with the first virtual objects in virtual scene, For the starting point of technical ability coverage, determine that the initial technical ability coverage of the first technical ability, the initial technical ability of the first technical ability influence model The original dimension enclosed can be preset;
The embodiment of the present invention can determine direction of first virtual objects in virtual scene, with the first virtual objects in void Position in quasi- scene is starting point, determines the initial technical ability coverage of the first technical ability of setting original dimension, and initial The direction of technical ability coverage is corresponding to direction of first virtual objects in virtual scene;Optionally, obtained initial Technical ability coverage corresponding position range in virtual scene, position that can be according to the first virtual objects in virtual scene, And the corresponding position range of original dimension of setting is combined and is determined.
Step S120, the second virtual objects are scanned according to initial technical ability coverage, judges to influence in initial technical ability Whether scanned to the second virtual objects in range, if it is not, step S130 is executed, if so, executing step S160.
Optionally, the embodiment of the present invention can by virtual scene the second virtual objects (in such as virtual scene with first void Quasi- object is the virtual objects of hostile relations) position, with initial technical ability coverage in virtual scene corresponding position Range is matched, the to match if there is position and position range of the initial technical ability coverage in virtual scene Two virtual objects then can determine that scanning is to the second virtual objects in initial technical ability coverage, otherwise, it determines initial It is not scanned in technical ability coverage to the second virtual objects.
Step S130, dimension enlargement technical ability coverage is adjusted according to setting.
Optionally, the starting point of the technical ability coverage after expansion is still position of first virtual objects in virtual scene, The direction of technical ability coverage after expansion is still corresponding to direction of first virtual objects in virtual scene;Expanding technical ability influences Setting adjustment size, can define according to actual conditions used in range.
By initial technical ability coverage in virtual scene corresponding position range, in addition the setting adjust size pair The position range for the virtual scene answered, then technical ability coverage after can the being expanded corresponding position model in virtual scene It encloses;
If technical ability coverage had carried out expansion, can be scanned to corresponding technical ability coverage virtual the last time Corresponding position range in scene, in addition the position range of the corresponding virtual scene of the setting adjustment size, is currently expanded Technical ability coverage after the big corresponding position range in virtual scene.
Step S140, the second virtual objects are scanned according to the technical ability coverage after expansion, judges the technical ability after expansion Whether scanned to the second virtual objects in coverage, if it is not, step S150 is executed, if so, executing step S160.
Optionally, the embodiment of the present invention can be by the position of the second virtual objects in virtual scene, with the technical ability after expansion Coverage corresponding position range in virtual scene is matched, and judges whether swept in the technical ability coverage after expansion It retouches to the second virtual objects.
Step S150, judge the technical ability coverage after expanding, if reach the model of the technical ability coverage of the first technical ability Limit value is enclosed, if it is not, step S130 is executed, if so, executing step S170.
As it can be seen that the embodiment of the present invention can be with technical ability coverage the second virtual objects of run-down, and do not scan to When two virtual objects, expand a technical ability coverage, and it is virtual right with the technical ability coverage after expansion to scan second again As being recycled with this, until the technical ability coverage reach limit value after expanding, is arrived alternatively, being scanned in technical ability coverage Second virtual objects.
The range limit of the technical ability coverage of first technical ability can be set according to the concrete condition of the first technical ability, such as with First energy-efficient technical ability strike range is corresponding.
Step S160, destination virtual object is determined from the second virtual objects scanned, and the is sent to the client One notice, to notify the client controls first virtual objects to move to the position of the destination virtual object, and makes The client is obtained when first virtual objects and the destination virtual object collide, shows first technical ability to target The first effect that virtual objects generate.
Optionally, the effect that server sends the first notice to the client can inform the first technical ability of client The destination virtual object to be applied is in the middle position of virtual scene, to which the client can be with destination virtual object virtual Position in scene, is the movement destination of first virtual objects, and the client can control first virtual objects Move to the movement destination;Meanwhile the movement destination is moved in first virtual objects, with target void When quasi- object collides, the client can show the first effect that first technical ability generates destination virtual object.
As it can be seen that if server scans in the initial technical ability coverage of the first technical ability to the second virtual objects, or Person, the technical ability coverage (can be the technical ability coverage for expanding at least once, but being not more than range limit) after expansion Interior scanning can determine destination virtual object to the second virtual objects, then server from the second virtual objects scanned, and The first virtual objects can be made to move to position of the destination virtual object in virtual scene, and this is moved in the first virtual objects When position collides with destination virtual object, the first effect of the first technical ability is generated to destination virtual object.
Optionally, the embodiment of the present invention can define determines setting for destination virtual object from the second virtual objects scanned Fixed condition is chosen with the first virtual objects such as from the second virtual objects scanned apart from nearest destination virtual object, or The second virtual objects scanned are determined as destination virtual object etc. by person, and what setting condition can be according to the first technical ability can Situations such as hitting quantity sets.
The virtual role that such as can trigger user's control with the first technical ability is made a spurt forwards, and to the hostile mesh on spurt path For mark starts strike, server using position of the virtual role in virtual scene as starting point, determine the first technical ability just The technical ability coverage of beginning, and scan and arrive hostile target, alternatively, with the technical ability coverage scanning after expansion to hostile target Afterwards, server can choose target hostile target nearest at a distance from virtual role from the hostile target scanned, and to institute It states client and sends the first notice so that position of the client control virtual role with target hostile target in virtual scene It is set to destination thrust forward, and at the position of virtual role spurt to target hostile target, client shows the first technical ability To the strike effect of target hostile target.
Step S170, the second notice is sent to the client, to notify the client control described first virtual right The corresponding position of Distance l imit set as moving to first technical ability, and so that the client is virtual right described first When as moving to the position, the second effect of first technical ability is shown.
If server is during expanding technical ability coverage to range limit, equal every time by technical ability coverage Scanning can be moved less than the second virtual objects, then the first virtual objects according to the Distance l imit that the first technical ability is set, i.e., will The first virtual objects of distance be the Distance l imit position as a purpose, and control the first virtual objects move to the purpose Ground generates the second effect of the first technical ability.
Optionally, due to there is no the second virtual objects, the first virtual objects in the path of the first virtual objects movement During movement there is no the second virtual objects that can collide, the first virtual objects first technical ability after movement is beaten Hitting will fan the air, correspondingly, the second effect of the first technical ability can be the effect that fans the air of the first technical ability.Optionally, first technical ability Strike effect and the effect that fans the air may be set according to actual conditions, and there is no the fixed effect forms of expression.
In data processing method provided in an embodiment of the present invention, server puts the to good use in the request for receiving client transmission After the technical ability of first technical ability of one virtual objects puts request to good use, server wouldn't control the first virtual objects and be moved, but Using position of first virtual objects in virtual scene as starting point, the initial technical ability coverage of the first technical ability is determined;In turn According to the gradually widened technical ability coverage since initial technical ability coverage, the second virtual objects of scanning gradually, directly It is expanded to range limit to being scanned to the second virtual objects or technical ability coverage in technical ability coverage;This process In, if the server determine that scanning is to the second virtual objects in technical ability coverage, then server can be from second scanned Destination virtual object is determined in virtual objects, and sends the first notice to the client, to notify the client to control institute The position that the first virtual objects move to the destination virtual object is stated, and makes the client in first virtual objects When being collided with the destination virtual object, the first effect that first technical ability generates destination virtual object is shown, realization the One technical ability.
As can be seen that the embodiment of the present invention can be described and be configured by the realization logic to the first technical ability, thus When client transmission technical ability puts request to good use, server can be by executing by the realization of program language description and the first technical ability configured Logic realizes the first technical ability so that realizing for collision class technical ability can be completed by easy script configuration, need not rely on physics The resource overhead of engine, server is reduced.Meanwhile on the basis of not scanning to the second virtual objects, by gradually expanding Big technical ability coverage carrys out the second virtual objects of scanning gradually to range limit, may make the number of the second virtual objects of scanning It is controlled according to treating capacity, reduces the data processing amount involved by the second virtual objects of scanning.
Optionally, from can be seen that the tactile branches up to step S160 of Fig. 1 shown in Fig. 1, the first of the first technical ability may be implemented Effect so far can complete the realization of the strike effect of collision class technical ability by easy script configuration, reduce the resource of server Expense, therefore Fig. 1 touches the purpose that can reach the resource overhead for reducing server up to the branch of step S160, solution technology is asked Topic;And Fig. 1 touches the branch up to step S170, it is believed that be on the basis for the resource overhead for achieving the purpose that reduce server On, further realize the means of the effect that fans the air of collision class technical ability;
I.e. further, every by technical ability coverage if during expanding technical ability coverage to range limit Secondary to scan less than the second virtual objects, server can send the second notice to client, to notify the client to control institute It states the first virtual objects and moves to the corresponding position of Distance l imit of the first technical ability setting, and make the client in institute When stating the first virtual objects and moving to the position, the second effect of first technical ability is shown, to the second of the first technical ability Effect is realized.
If data processing method provided in an embodiment of the present invention scans corresponding technical ability coverage according to the last time, not It scans to the second virtual objects, then can set the corresponding technical ability coverage of adjustment dimension enlargement last time scanning, obtain this The corresponding technical ability coverage of secondary scanning (the technical ability coverage i.e. corresponding to present scan, and corresponding to last scanning Technical ability coverage difference setting adjustment size), to virtual according to the corresponding technical ability coverage scanning second of present scan Object is recycled with this, until scanning is expanded to model to the second virtual objects or technical ability coverage in technical ability coverage Enclose limit value;
Wherein, the last technical ability coverage for scanning corresponding technical ability coverage and may be initial, it is also possible to right and wrong Initial expansion technical ability coverage at least once.
Optionally, the embodiment of the present invention " if scanning corresponding technical ability coverage according to the last time, will can not scan Second virtual objects scan corresponding technical ability coverage with the setting adjustment dimension enlargement last time, obtain present scan correspondence Technical ability coverage, the second virtual objects are scanned according to the corresponding technical ability coverage of present scan " process be referred to as the One step, the embodiment of the present invention is recyclable to execute first step, until scanned in technical ability coverage to the second virtual objects, Or technical ability coverage is expanded to range limit.
Optionally, setting adjustment size can be setting adjustment width, the first technical ability that the embodiment of the present invention can be set Length limit as initial length, while determining with the original width of setting the initial technical ability coverage of the first technical ability, And when not scanned to the second virtual objects subsequently through technical ability coverage, with the skill of setting adjustment the first technical ability of width expansion Can coverage, and the scanning of second virtual objects is carried out with the technical ability coverage after expanding every time, until the first skill The width of the technical ability coverage of energy reaches the width limit of setting, alternatively, scanning is virtual to second in technical ability coverage Object;
Correspondingly, the mode that the embodiment of the present invention expands technical ability coverage can be, the first of technical ability coverage is limited Beginning length is length limit, since the original width of setting, the width of expansion technical ability coverage gradually, until in technical ability Scanning is to the second virtual objects or the width expansion of technical ability coverage to width limit in coverage;
Further, if the first technical ability supports three-dimensional technical ability coverage, the first of technical ability coverage can also be limited Beginning length is the length limit of the first technical ability of setting, and elemental height is the Height of the first technical ability of setting, from setting Original width starts, the width of expansion technical ability coverage gradually, until scanning is virtual to second in technical ability coverage Object or the width expansion of technical ability coverage are to width limit;
Optionally, Fig. 5 shows another flow chart of data processing method provided in an embodiment of the present invention, the data processing Method can be applied to server, and with reference to Fig. 5, data processing method provided in an embodiment of the present invention may include:
Step S200, it receives the technical ability that client is sent and puts request to good use, the technical ability puts request to good use and puts the to good use for request First technical ability of one virtual objects;First technical ability is moved for triggering first virtual objects, and virtual right to first The first effect is generated as moving the second virtual objects collided on the way.
Step S210, starting point is in the position using the first virtual objects in virtual scene, the length of the first technical ability of setting Limit value is initial length, sets width and determines the initial technical ability coverage of the first technical ability as original width.
Optionally, the direction of initial technical ability coverage, can with the first virtual objects in virtual scene towards phase It answers.
As shown in fig. 6, a game role, when starting the first technical ability, server can be with game role in virtual scene Current location be starting point, the length limit (extreme length) of the first technical ability set as initial length, set adjust width as Original width determines the initial technical ability coverage of the first technical ability, and the initial technical ability coverage is as shown in Fig. 6 square boxes;
Obviously, if the technical ability coverage of the first technical ability supports three-dimensional range, it is initial that the first technical ability can be also set The elemental height of technical ability coverage is the Height of the first technical ability setting.
Optionally, as the setting width of original width, width is adjusted with setting used in technical ability coverage is expanded It may be identical, it is also possible to different, specific visual actual conditions setting.
Step S220, the second virtual objects are scanned according to initial technical ability coverage, judges to influence in initial technical ability Whether scanned to the second virtual objects in range, if it is not, step S230 is executed, if so, executing step S260.
Step S230, with the width of setting adjustment width expansion technical ability coverage.
The embodiment of the present invention is when expanding technical ability coverage, due to the length of technical ability coverage, alternatively, length and height Degree has been limit value, therefore the width that adjustable dimension is technical ability coverage, and the embodiment of the present invention can be in skill of every expansion When energy coverage, corresponding technical ability coverage is scanned with the setting adjustment width expansion last time, obtains present scan correspondence Technical ability coverage;
As shown in fig. 7, Fig. 7 is to expand primary technical ability coverage, the comparison with initial technical ability coverage is shown It is intended to, the length of the two does not change, but expands technical ability coverage by expanding width.
Step S240, the second virtual objects are scanned according to the technical ability coverage after expansion, judges the technical ability after expansion Whether scanned to the second virtual objects in coverage, if it is not, step S250 is executed, if so, executing step S260.
Step S250, judge the width of the technical ability coverage after expanding, if reaching the technical ability of the first technical ability influences model The width limit enclosed, if it is not, step S230 is executed, if so, executing step S270.
As it can be seen that server device puts the technical ability of the first technical ability of the first virtual objects to good use in the request for receiving client transmission After putting request to good use, server can wouldn't control the first virtual objects and be moved, but can be with the first virtual objects in virtual field Position in scape is starting point, and the length limit of the first technical ability set sets width and determine the as original width as initial length The initial technical ability coverage of one technical ability, and then according to since initial technical ability coverage, it is wide gradually to expand setting adjustment The technical ability coverage of degree, the second virtual objects of scanning gradually, until scanning is virtual right to second in technical ability coverage As or technical ability coverage width expansion to width limit.
Step S260, destination virtual object is determined from the second virtual objects scanned, and the is sent to the client One notice, to notify the client controls first virtual objects to move to the position of the destination virtual object, and makes The client is obtained when first virtual objects and the destination virtual object collide, shows first technical ability to target The first effect that virtual objects generate.
Step S270, the second notice is sent to the client, to notify the client control described first virtual right The corresponding position of Distance l imit set as moving to first technical ability, and so that the client is virtual right described first When as moving to the position, the second effect of first technical ability is shown.
Optionally, the setting adjustment size that the embodiment of the present invention expands technical ability coverage can also be setting adjustment length Degree, the embodiment of the present invention can be using position of first virtual objects in virtual scene as starting point, the width of the first technical ability of setting Limit value is original width, sets length and determines the initial technical ability coverage of the first technical ability as initial length, and subsequently through When technical ability coverage is not scanned to the second virtual objects, expand the technical ability coverage of the first technical ability with setting adjustment length; It is optionally, identical as setting adjustment length possibility used in technical ability coverage is expanded as the setting length of initial length, May also be different, specific visual actual conditions setting;
Optionally, another middle mode that the embodiment of the present invention expands technical ability coverage can be that limitation technical ability influences model The original width enclosed is the width limit of the first technical ability of setting, since the initial length of setting, expansion technical ability shadow gradually The length of range is rung, until scanning is expanded to the length of the second virtual objects or technical ability coverage in technical ability coverage Length limit is arrived greatly;
Further, if the first technical ability supports three-dimensional technical ability coverage, the first of technical ability coverage can also be limited Beginning width is width limit, and elemental height is the Height of the first technical ability of setting, and then since the initial length of setting, The length of expansion technical ability coverage gradually, until being scanned to the second virtual objects or technical ability in technical ability coverage The length of coverage is expanded to length limit.
Optionally, if server passes through the corresponding technical ability coverage of present scan (the corresponding technical ability shadow of present scan It rings range such as, scans used initial technical ability coverage for the first time, alternatively, being extended to used in non-first time scanning Few primary technical ability coverage), scanning can will then be scanned to the second virtual objects with the first virtual objects for hostile relations To the second virtual objects in meet the virtual objects of setting condition, as destination virtual object;
Meet the virtual objects of setting condition in second virtual objects scanned such as, second scanned is empty In quasi- object, the nearest virtual objects at a distance from the first virtual objects;Alternatively, the second virtual objects conduct that will be scanned Destination virtual object;
The concrete form of setting condition can determine that such as the first technical ability is beaten for monomer according to quantity etc. of hitting of the first technical ability Technical ability is hit, then can choose the second virtual objects nearest at a distance from the first virtual objects scanned, is destination virtual pair As such as the first technical ability is that technical ability is hit by group, then can regard the second virtual objects scanned as destination virtual object.
Optionally, the embodiment of the present invention can it is upper it is primary do not scan to the second virtual objects when, dividing into, fixed number frame is (as follows One frame) arrive when, expand technical ability coverage, and with after expansion technical ability coverage scan the second virtual objects, followed with this Ring, until scanning is expanded to range limit to the first virtual objects or technical ability coverage in technical ability coverage;And Every time when the second virtual objects of scanning, it can be swept with this according to the position of the second virtual objects in the virtual scene of present frame The matching of position range of the technical ability coverage in virtual scene used in retouching is realized;
Fig. 8 shows another flow chart of data processing method provided in an embodiment of the present invention, which can Applied to server, with reference to Fig. 8, data processing method provided in an embodiment of the present invention may include:
Step S300, it receives the technical ability that client is sent and puts request to good use, the technical ability puts request to good use and puts the to good use for request First technical ability of one virtual objects;First technical ability is moved for triggering first virtual objects, and virtual right to first The first effect is generated as moving the second virtual objects collided on the way.
Step S310, the position using the first virtual objects in virtual scene determines the initial skill of the first technical ability as starting point It can coverage.
Step S320, by the position of the second virtual objects in the virtual scene of present frame, model is influenced with initial technical ability It is trapped among corresponding position range in virtual scene to be matched, judges whether scanned to second in initial technical ability coverage Virtual objects, if it is not, step S330 is executed, if so, executing step S360.
Step S330, the arrival of fixed number frame is divided into, dimension enlargement technical ability coverage is adjusted with setting, obtains present scan pair The technical ability coverage answered.
Step S340, by the position of the second virtual objects in the virtual scene of present frame, skill corresponding with present scan Can position range of the coverage in virtual scene matched, judge be in the corresponding technical ability coverage of present scan No scanning is to the second virtual objects, if it is not, step S350 is executed, if so, executing step S360.
Step S350, judge the technical ability coverage after expanding, if reach the model of the technical ability coverage of the first technical ability Limit value is enclosed, if it is not, step S330 is executed, if so, executing step S370.
Step S360, destination virtual object is determined from the second virtual objects scanned, and the is sent to the client One notice, to notify the client controls first virtual objects to move to the position of the destination virtual object, and makes The client is obtained when first virtual objects and the destination virtual object collide, shows first technical ability to target The first effect that virtual objects generate.
Step S370, the second notice is sent to the client, to notify the client control described first virtual right The corresponding position of Distance l imit set as moving to first technical ability, and so that the client is virtual right described first When as moving to the position, the second effect of first technical ability is shown.
As it can be seen that if scanning corresponding technical ability coverage according to the last time, do not scan to the second virtual objects, the present invention Embodiment can scan corresponding technical ability shadow when dividing into fixed number frame (such as next frame) arrival with the setting adjustment dimension enlargement last time Range is rung, obtains the corresponding technical ability coverage of present scan, and according to the corresponding technical ability coverage scanning of present scan the Two virtual objects;It, can be by the position of the second virtual objects in the virtual scene of present frame meanwhile when scanning the second virtual objects It sets, position range of the technical ability coverage corresponding with present scan in virtual scene is matched, to judge to sweep at this It retouches and whether is scanned in corresponding technical ability coverage to the second virtual objects so that is more smart to the scanning of the second virtual objects Standard improves the accuracy of the first technical ability realization.
Optionally, the client is notified according to described first, is controlled first virtual objects and is moved to the target Behind the position of virtual objects, the client can send the displaying request of the first effect to server, to which server can be to same screen The client for showing destination virtual object sends third notice, and the third notice is for notifying the first technical ability of displaying to target The first effect that virtual objects generate, to realize the synchronization among clients of the first effect of the first technical ability;
Optionally, the client is notified according to described second, is controlled first virtual objects and is moved to the first technical ability Behind the corresponding position of Distance l imit of setting, the client can send the displaying request of the second effect to server, to service The client that device can match to current indication range position corresponding with the Distance l imit sends the 4th and notifies, and the described 4th Second effect of the notice for notify the first technical ability of displaying, among clients same of the second effect of the first technical ability of realization Step.
With gaming network application, for especially MMORPG (Massively Multiplayer Online Role Playing Games), the present invention is implemented The data processing method that example provides can not depend on physical engine, but be matched by easy script when realizing collision class technical ability Set realization;
As shown in figure 9, game client can be based on user's operation (such as user click collision class technical ability technical ability icon, or Person, user click keyboard corresponding with collision class technical ability) put collision class technical ability to good use to game server game role A Technical ability put request to good use;
Game server receives after the technical ability puts request to good use, if it is determined that the collision class technical ability is available (such as game role A The attribute values such as magic, life can meet the consumption of collision class technical ability, terminate the cooling time of collision class technical ability), game garment Being engaged in device can be using positions of the game role A in map (a kind of form of virtual scene) as starting point, with the collision class technical ability Corresponding length limit (as influenced length limit), Height (as influenced Height), setting original width are determined just The technical ability coverage S1 of beginning;
Game server transfers the position with the game role that game role A is hostile relations in present frame map, The position transferred is matched with position ranges of the technical ability coverage S1 in map, judges to influence model in technical ability The game role that hostile relations whether are scanned in S1 enclosed;
If game server does not scan the game role of hostile relations in technical ability coverage S1, in next frame When bringing, width expansion technical ability coverage is adjusted with setting, obtains technical ability coverage S2, and transfer present frame map In with game role A be hostile relations game role position, the position transferred and technical ability coverage S2 are being played Position range in map is matched, and judges the game role that hostile relations whether are scanned in technical ability coverage S2;
If game server does not scan the game role of hostile relations, game services in technical ability coverage S2 Think highly of a multiple frame and expand a technical ability coverage, and scans the game role of hostile relations with the technical ability coverage after expansion The step of, until the game role of hostile relations is arrived in scanning in technical ability coverage, alternatively, the width of technical ability coverage expands Width limit is arrived greatly;As shown in figure 9, the width of technical ability coverage has reached width limit by 4 expansion, cannot expand again Greatly;
As shown in figure 9, game server in the scanning of third time, scans in technical ability coverage S3 and arrives hostile relations Game role, game server can therefrom choose nearest game role B at a distance from game role A be technical ability hit mesh Mark, and send the first notice to game client;
After game client receives the first notice, controllable game role A moves to the position of game role B, is playing When role A is collided with game role B, strike effect of the displaying collision class technical ability to game role B;Meanwhile to game server Send strike effect synchronization request;
Game server can send third notice to the client of Display on the same screen game role B, to notify these clients Strike effect of the synchronous displaying collision class technical ability to game role B.
Data processing method provided in an embodiment of the present invention, what server can be described and be configured by program language by execution The realization logic of first technical ability can specifically put the first technical ability of the first virtual objects to good use in the request for receiving client transmission After technical ability puts request to good use, according to the gradually widened technical ability coverage since the initial technical ability coverage of the first technical ability, by Secondary the second virtual objects of scanning, until being scanned to the second virtual objects or technical ability coverage in technical ability coverage It is expanded to range limit;During this, if the second virtual objects for being scanned in technical ability coverage and therefrom determined Destination virtual object, server can be realized the first technical ability by sending the first notice to client;As it can be seen that of the invention In embodiment, realizing for collision class technical ability can configure completion by easy script, need not rely on physical engine, server Resource overhead is reduced;It can also mitigate client due to being used cooperatively data processing pressure caused by physical engine simultaneously. Further, the embodiment of the present invention is not on the basis of scanning to the second virtual objects, by gradually expanding technical ability coverage extremely Range limit carrys out the second virtual objects of scanning gradually, may make that the data processing amount of the second virtual objects of scanning is controlled, Possibility is provided to reduce the data processing amount involved by the second virtual objects of scanning.
Data processing equipment provided in an embodiment of the present invention is introduced below, data processing equipment described below can It is cross-referenced with above-described data processing method.It is to realize that data processing equipment described below, which may be considered server, Data processing method provided in an embodiment of the present invention, the functional module framework of required setting.
Figure 10 is the structure diagram of data processing equipment provided in an embodiment of the present invention, which can be applied to Server, referring to Fig.1 0, data processing equipment provided in an embodiment of the present invention may include:
Request receiving module 100, the technical ability for receiving client transmission put request to good use, and the technical ability is put request to good use and is used for The first technical ability of the first virtual objects is put in request to good use;First technical ability is moved for triggering first virtual objects, and right The second virtual objects that the movement of first virtual objects is collided on the way generate the first effect;
Initial range determining module 200, for using position of first virtual objects in virtual scene as starting point, determining the The initial technical ability coverage of one technical ability;
Scan round module 300, for according to gradually widened technical ability influences model since initial technical ability coverage It encloses, the second virtual objects of scanning gradually, until scanning is influenced to the second virtual objects or technical ability in technical ability coverage Range is expanded to range limit;
First result treatment module 400, if for scanning to be to the second virtual objects in technical ability coverage, from scanning To the second virtual objects in determine destination virtual object, and the first notice is sent to the client, to notify the client End controls the position that first virtual objects move to the destination virtual object, and makes the client described first When virtual objects are collided with the destination virtual object, the first effect that first technical ability generates destination virtual object is shown Fruit.
Optionally, Figure 11 shows another structure diagram of data processing equipment provided in an embodiment of the present invention, in conjunction with figure Shown in 10 and Figure 11, data processing equipment provided in an embodiment of the present invention can also include:
Second result treatment module 500, if for during expanding technical ability coverage to range limit, passing through Technical ability coverage is scanned every time less than the second virtual objects, the second notice is sent to the client, to notify the visitor Family end controls first virtual objects and moves to the corresponding position of Distance l imit of the first technical ability setting, and makes described Client shows the second effect of first technical ability when first virtual objects move to the position.
Optionally, initial range determining module 200, for being with position of first virtual objects in virtual scene Point determines the initial technical ability coverage of the first technical ability, specifically includes:
Using position of first virtual objects in virtual scene as starting point, determine that the first technical ability of setting original dimension is initial Technical ability coverage;The direction of the initial technical ability coverage and the first virtual objects in virtual scene towards phase It answers.
Optionally, scan round module 300, for according to the gradually widened technical ability since initial technical ability coverage Coverage, the second virtual objects of scanning gradually, until being scanned to the second virtual objects, Huo Zheji in technical ability coverage Energy coverage is expanded to range limit, can specifically include:
Cycle executes first step, until scanning is influenced to the second virtual objects or technical ability in technical ability coverage Range is expanded to range limit;
The first step includes:If scanning corresponding technical ability coverage according to the last time, do not scan to the second void Quasi- object scans corresponding technical ability coverage with the setting adjustment dimension enlargement last time, obtains the corresponding technical ability of present scan Coverage scans the second virtual objects according to the corresponding technical ability coverage of present scan.
Optionally, the corresponding technical ability coverage of the last scanning includes:Initial technical ability coverage, or, expanding Greater than technical ability coverage at least once.
Optionally, initial range determining module 200, for being with position of first virtual objects in virtual scene Point determines the initial technical ability coverage of the first technical ability of setting original dimension, specifically includes:
Using position of first virtual objects in virtual scene as starting point, the length limit of the first technical ability set is initial Length sets width and determines the initial technical ability coverage of the first technical ability as original width;
Or, using position of first virtual objects in virtual scene as starting point, the length limit of the first technical ability set as Initial length, the Height of the first technical ability set are set as elemental height at the beginning of width determines the first technical ability as original width The technical ability coverage of beginning;
Correspondingly, scan round module 300, influences for scanning corresponding technical ability with the setting adjustment dimension enlargement last time Range specifically includes:
Corresponding technical ability coverage is scanned with the setting adjustment width expansion last time.
Optionally, the range limit includes:The width limit of the technical ability coverage of first technical ability.
Optionally, if scan round module 300 is not swept for scanning corresponding technical ability coverage according to the last time It retouches to the second virtual objects, corresponding technical ability coverage is scanned with the setting adjustment dimension enlargement last time, obtains present scan Corresponding technical ability coverage, specifically includes:
If scanning corresponding technical ability coverage according to the last time, does not scan to the second virtual objects, dividing into fixed number When frame arrives, corresponding technical ability coverage is scanned with the setting adjustment dimension enlargement last time, obtains the corresponding skill of present scan It can coverage;
Correspondingly, scan round module 300, for virtual according to the corresponding technical ability coverage scanning second of present scan Object specifically includes:
By the position of the second virtual objects in the virtual scene of present frame, technical ability coverage corresponding with present scan Position range in virtual scene is matched, and judges whether scanned in the corresponding technical ability coverage of present scan to Two virtual objects.
Optionally, the virtual objects that second virtual objects are with the first virtual objects are hostile relations;
First result treatment module 400, for determining destination virtual object from the second virtual objects scanned, specifically Including:
From the second virtual objects scanned, it is determined for compliance with the destination virtual object of setting condition.
Optionally, the first result treatment module 400, for from the second virtual objects scanned, being determined for compliance with setting The destination virtual object of condition, specifically includes:
From the second virtual objects scanned, destination virtual pair nearest at a distance from first virtual objects is determined As.
Optionally, Figure 12 shows another structure diagram of data processing equipment provided in an embodiment of the present invention, in conjunction with figure Shown in 11 and Figure 12, which can also include:
First synchronization module 600 shows request for receiving the first effect that the client is sent, has to Display on the same screen The client of destination virtual object sends third notice, and the third notice is for notifying the first technical ability of displaying to destination virtual pair As the first effect of generation.
Second synchronization module 700 shows request for receiving the second effect that the client is sent, to current display model It encloses the client that position corresponding with the Distance l imit matches and sends the 4th notice, the 4th notice is for notifying displaying Second effect of the first technical ability.
Data processing equipment provided in an embodiment of the present invention can be configured by easy script, realize collision class technical ability, no It needs to rely on physical engine, the resource overhead of server is reduced.
The embodiment of the present invention also provides a kind of server, including data processing equipment described above.
Optionally, Figure 13 shows the hardware configuration of server, referring to Fig.1 3, which may include:Processor 1, Communication interface 2, memory 3 and communication bus 4;
Wherein processor 1, communication interface 2, memory 3 complete mutual communication by communication bus 4;
Optionally, communication interface 2 can be the interface of communication module, such as the interface of gsm module;
Processor 1 may be a central processor CPU or specific integrated circuit ASIC (Application Specific Integrated Circuit), or be arranged to implement the integrated electricity of one or more of the embodiment of the present invention Road.
Memory 3 may include high-speed RAM memory, it is also possible to further include nonvolatile memory (non-volatile Memory), a for example, at least magnetic disk storage.
Wherein, processor 1 is specifically used for:
It receives the technical ability that client is sent and puts request to good use, the technical ability puts request to good use and puts the first virtual objects to good use for asking The first technical ability;First technical ability moves on the way the first virtual objects for triggering the first virtual objects movement Second virtual objects of collision generate the first effect;
Using position of first virtual objects in virtual scene as starting point, determine that the initial technical ability of the first technical ability influences model It encloses;
According to gradually widened technical ability coverage, scanning second gradually are virtual since initial technical ability coverage Object, until scanning is expanded to range limit to the second virtual objects or technical ability coverage in technical ability coverage;
If scanning is to the second virtual objects in technical ability coverage, mesh is determined from the second virtual objects scanned Virtual objects are marked, and the first notice is sent to the client, to notify the client controls first virtual objects to transport It moves to the position of the destination virtual object, and makes the client in first virtual objects and the destination virtual pair When as collision, the first effect that first technical ability generates destination virtual object is shown.
Each embodiment is described by the way of progressive in this specification, the highlights of each of the examples are with other The difference of embodiment, just to refer each other for identical similar portion between each embodiment.For device disclosed in embodiment For, since it is corresponded to the methods disclosed in the examples, so description is fairly simple, related place is said referring to method part It is bright.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These Function is implemented in hardware or software actually, depends on the specific application and design constraint of technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered Think beyond the scope of this invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, as defined herein General Principle can in other embodiments be realized in the case where not departing from core of the invention thought or scope.Therefore, originally Invention is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein Consistent widest range.

Claims (15)

1. a kind of data processing method, which is characterized in that including:
It receives the technical ability that client is sent and puts request to good use, the technical ability puts that request is used to ask to put to good use the first virtual objects to good use One technical ability;First technical ability is collided on the way for triggering the first virtual objects movement, and to the movement of the first virtual objects The second virtual objects generate the first effect;
Using position of first virtual objects in virtual scene as starting point, the initial technical ability coverage of the first technical ability is determined;
According to gradually widened technical ability coverage, scanning second gradually are virtual right since initial technical ability coverage As until scanning is expanded to range limit to the second virtual objects or technical ability coverage in technical ability coverage;
If scanning is to the second virtual objects in technical ability coverage, determine that target is empty from the second virtual objects scanned Quasi- object, and the first notice is sent to the client, to notify the client controls first virtual objects to move to The position of the destination virtual object, and the client is touched in first virtual objects and the destination virtual object When hitting, the first effect that first technical ability generates destination virtual object is shown.
2. data processing method according to claim 1, which is characterized in that further include:
If during expanding technical ability coverage to range limit, scanned every time by technical ability coverage less than Two virtual objects send the second notice to the client, to notify the client controls first virtual objects to move To the corresponding position of Distance l imit of first technical ability setting, and the client is moved in first virtual objects When to the position, the second effect of first technical ability is shown.
3. data processing method according to claim 1, which is characterized in that it is described with the first virtual objects in virtual scene In position be starting point, determine that the initial technical ability coverage of the first technical ability includes:
Using position of first virtual objects in virtual scene as starting point, the initial skill of the first technical ability of setting original dimension is determined It can coverage;The direction of the initial technical ability coverage is corresponding to direction of first virtual objects in virtual scene.
4. data processing method according to claim 3, which is characterized in that the basis is from initial technical ability coverage Start gradually widened technical ability coverage, the second virtual objects of scanning gradually, is arrived until being scanned in technical ability coverage Second virtual objects or technical ability coverage are expanded to range limit and include:
Cycle executes first step, until being scanned to the second virtual objects or technical ability coverage in technical ability coverage It is expanded to range limit;
The first step includes:If scanning corresponding technical ability coverage according to the last time, it is virtual right to second not scan As scanning corresponding technical ability coverage with the setting adjustment dimension enlargement last time, obtaining the corresponding technical ability of present scan influences Range scans the second virtual objects according to the corresponding technical ability coverage of present scan.
5. data processing method according to claim 4, which is characterized in that the last time, which scans corresponding technical ability, to be influenced Range includes:Initial technical ability coverage, or, expanding technical ability coverage at least once.
6. data processing method according to claim 4 or 5, which is characterized in that it is described with the first virtual objects virtual Position in scene is starting point, determines that the initial technical ability coverage of the first technical ability of setting original dimension includes:
Using position of first virtual objects in virtual scene as starting point, the length limit of the first technical ability set is initial length Degree, sets width and determines the initial technical ability coverage of the first technical ability as original width;
Or, using position of first virtual objects in virtual scene as starting point, the length limit of the first technical ability set is initial Length, the Height of the first technical ability set set width and determine that the first technical ability is initial as original width as elemental height Technical ability coverage;
It is described to include with the corresponding technical ability coverage of setting adjustment dimension enlargement last time scanning:
Corresponding technical ability coverage is scanned with the setting adjustment width expansion last time.
7. data processing method according to claim 6, which is characterized in that the range limit includes:First skill The width limit of the technical ability coverage of energy.
8. data processing method according to claim 4 or 5, which is characterized in that if described according to last time scanning pair The technical ability coverage answered does not scan to the second virtual objects, and corresponding technical ability is scanned with the setting adjustment dimension enlargement last time Coverage, obtaining the corresponding technical ability coverage of present scan includes:
If scanning corresponding technical ability coverage according to the last time, does not scan to the second virtual objects, arrived dividing into fixed number frame When coming, corresponding technical ability coverage is scanned with the setting adjustment dimension enlargement last time, obtains the corresponding technical ability shadow of present scan Ring range;
It is described to include according to present scan the second virtual objects of corresponding technical ability coverage scanning:
By the position of the second virtual objects in the virtual scene of present frame, technical ability coverage corresponding with present scan is in void Position range in quasi- scene is matched, and judges whether scanned in the corresponding technical ability coverage of present scan to the second void Quasi- object.
9. data processing method according to claim 1, which is characterized in that second virtual objects be with it is first virtual Object is the virtual objects of hostile relations;
It is described to determine that destination virtual object includes from the second virtual objects scanned:
From the second virtual objects scanned, determine that nearest the second virtual objects at a distance from first virtual objects are Destination virtual object.
10. data processing method according to claim 2, which is characterized in that the method further includes:
The first effect displaying request that the client is sent is received, has the client of destination virtual object to send to Display on the same screen Third notice, the third notice are used to notify the first effect that the first technical ability of displaying generates destination virtual object;
Or, the second effect displaying request that the client is sent is received, it is corresponding with the Distance l imit to current indication range The client that matches of position send the 4th notice, second effect of the 4th notice for notify to show the first technical ability.
11. a kind of data processing equipment, which is characterized in that including:
Request receiving module, the technical ability for receiving client transmission put request to good use, and the technical ability is put request to good use and applied for asking Open up the first technical ability of the first virtual objects;First technical ability is moved for triggering first virtual objects, and to the first void The second virtual objects that quasi- object movement is collided on the way generate the first effect;
Initial range determining module is used for the position using the first virtual objects in virtual scene as starting point, determines the first technical ability Initial technical ability coverage;
Scan round module, for according to the gradually widened technical ability coverage since initial technical ability coverage, gradually The second virtual objects of scanning, until scanning is expanded to the second virtual objects or technical ability coverage in technical ability coverage Range limit is arrived greatly;
First result treatment module, if for scanning to be to the second virtual objects in technical ability coverage, from the scanned Destination virtual object is determined in two virtual objects, and sends the first notice to the client, to notify the client to control First virtual objects move to the position of the destination virtual object, and so that the client is virtual right described first When as being collided with the destination virtual object, the first effect that first technical ability generates destination virtual object is shown.
12. data processing equipment according to claim 11, which is characterized in that further include:
Second result treatment module, if for during expanding technical ability coverage to range limit, passing through technical ability shadow It rings range to be scanned every time less than the second virtual objects, the second notice is sent to the client, to notify the client control It makes first virtual objects and moves to the corresponding position of Distance l imit of the first technical ability setting, and make the client When first virtual objects move to the position, the second effect of first technical ability is shown.
13. data processing equipment according to claim 11, which is characterized in that the initial range determining module is used for Using position of first virtual objects in virtual scene as starting point, the initial technical ability coverage of the first technical ability is determined, it is specific to wrap It includes:
Using position of first virtual objects in virtual scene as starting point, the initial skill of the first technical ability of setting original dimension is determined It can coverage;The direction of the initial technical ability coverage is corresponding to direction of first virtual objects in virtual scene;
The scan round module, for according to the gradually widened technical ability coverage since initial technical ability coverage, The second virtual objects of scanning gradually, until scanning influences model to the second virtual objects or technical ability in technical ability coverage It encloses and is expanded to range limit, specifically include:
Cycle executes first step, until being scanned to the second virtual objects or technical ability coverage in technical ability coverage It is expanded to range limit;
The first step includes:If scanning corresponding technical ability coverage according to the last time, it is virtual right to second not scan As scanning corresponding technical ability coverage with the setting adjustment dimension enlargement last time, obtaining the corresponding technical ability of present scan influences Range scans the second virtual objects according to the corresponding technical ability coverage of present scan.
14. data processing equipment according to claim 13, which is characterized in that the initial range determining module is used for Using position of first virtual objects in virtual scene as starting point, the initial technical ability shadow of the first technical ability of setting original dimension is determined Range is rung, is specifically included:
Using position of first virtual objects in virtual scene as starting point, the length limit of the first technical ability set is initial length Degree, and setting original width determine the initial technical ability coverage of the first technical ability;
Or, using position of first virtual objects in virtual scene as starting point, the length limit of the first technical ability set is initial Length, the Height of the first technical ability set set width and determine that the first technical ability is initial as original width as elemental height Technical ability coverage;
The scan round module, for scanning corresponding technical ability coverage with the setting adjustment dimension enlargement last time, specifically Including:
Corresponding technical ability coverage is scanned with the setting adjustment width expansion last time.
15. a kind of server, which is characterized in that including claim 11-14 any one of them data processing equipments.
CN201710161491.1A 2017-03-17 2017-03-17 A kind of data processing method, device and server Active CN106914019B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710161491.1A CN106914019B (en) 2017-03-17 2017-03-17 A kind of data processing method, device and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710161491.1A CN106914019B (en) 2017-03-17 2017-03-17 A kind of data processing method, device and server

Publications (2)

Publication Number Publication Date
CN106914019A CN106914019A (en) 2017-07-04
CN106914019B true CN106914019B (en) 2018-09-07

Family

ID=59461310

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710161491.1A Active CN106914019B (en) 2017-03-17 2017-03-17 A kind of data processing method, device and server

Country Status (1)

Country Link
CN (1) CN106914019B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108355355A (en) * 2018-03-16 2018-08-03 深圳冰川网络股份有限公司 A kind of control method and system of 3D sports class online game
CN108379838A (en) * 2018-03-16 2018-08-10 深圳冰川网络股份有限公司 A kind of control method and system of 3D sports class online game
CN108970116B (en) * 2018-07-19 2020-05-08 腾讯科技(深圳)有限公司 Virtual role control method and device
CN111054066B (en) * 2019-12-17 2021-01-15 腾讯科技(深圳)有限公司 Operation method and device of virtual prop, storage medium and electronic device
CN111672102A (en) * 2020-06-05 2020-09-18 腾讯科技(深圳)有限公司 Virtual object control method, device, equipment and storage medium in virtual scene
CN117244243B (en) * 2023-11-20 2024-02-02 腾讯科技(深圳)有限公司 Virtual object processing method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103501287A (en) * 2013-09-03 2014-01-08 网易(杭州)网络有限公司 Method and equipment for determining hit motion object in game operation process
EP2829307A3 (en) * 2013-07-25 2015-02-25 Square Enix Co., Ltd. Image processing program, image processing device and image processing method
CN104915117A (en) * 2015-06-16 2015-09-16 深圳市腾讯计算机***有限公司 Method and device for controlling interaction with virtual target
CN104922906A (en) * 2015-07-15 2015-09-23 网易(杭州)网络有限公司 Action executing method and device
CN105582674A (en) * 2015-12-25 2016-05-18 网易(杭州)网络有限公司 Game target selecting method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2829307A3 (en) * 2013-07-25 2015-02-25 Square Enix Co., Ltd. Image processing program, image processing device and image processing method
CN103501287A (en) * 2013-09-03 2014-01-08 网易(杭州)网络有限公司 Method and equipment for determining hit motion object in game operation process
CN104915117A (en) * 2015-06-16 2015-09-16 深圳市腾讯计算机***有限公司 Method and device for controlling interaction with virtual target
CN104922906A (en) * 2015-07-15 2015-09-23 网易(杭州)网络有限公司 Action executing method and device
CN105582674A (en) * 2015-12-25 2016-05-18 网易(杭州)网络有限公司 Game target selecting method and device

Also Published As

Publication number Publication date
CN106914019A (en) 2017-07-04

Similar Documents

Publication Publication Date Title
CN106914019B (en) A kind of data processing method, device and server
CN107222510B (en) A kind of game synchronization method, system and relevant device
US10751626B2 (en) Collision control method and apparatus, and storage medium
KR102257801B1 (en) Notification method in virtual scene, related device and computer storage medium
CN109568963B (en) Virtual resource data processing method and device, computer equipment and storage medium
CN110559663B (en) Display control method and device for virtual rounds in game
US11260300B2 (en) Image processing method and apparatus
WO2019105395A1 (en) Method for processing object operation, method for generating object operation data, and computer device
US20230043121A1 (en) Skill casting method and apparatus of virtual object, device, and storage medium
CN108404406A (en) Display methods, device, equipment and the readable medium of ballistic trajectory in virtual environment
US11110352B2 (en) Object moving method and apparatus, storage medium, and electronic apparatus
JP6535407B1 (en) Program, electronic device, method and system
CN106657127A (en) Information processing method and device as well as server
CN109963187A (en) A kind of cartoon implementing method and device
KR100963846B1 (en) Game device, image generation method and information recording medium
JP6254627B2 (en) Program and system
CN109847356A (en) A kind of data processing method, device, terminal and the server of turn-based game
CN112057870A (en) Game level generation method and device, storage medium and computer equipment
JP6527993B1 (en) Program, electronic device, method, and system
CN112107856B (en) Hit feedback method and device, storage medium and electronic equipment
TWI723801B (en) Game device, game system, recording media and control method
JP2016039876A (en) System, server device, and program
CN113730907B (en) Virtual resource transfer method and device, storage medium and electronic equipment
CN111905368B (en) Method, device, equipment and storage medium for controlling virtual prop in game
KR101400536B1 (en) Method and server of displaying impact responses between characters in on-line game service, and on-line game system with impact response display function

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