CN108837508A - The method and apparatus of carrier are controlled in game - Google Patents
The method and apparatus of carrier are controlled in game Download PDFInfo
- Publication number
- CN108837508A CN108837508A CN201810645080.4A CN201810645080A CN108837508A CN 108837508 A CN108837508 A CN 108837508A CN 201810645080 A CN201810645080 A CN 201810645080A CN 108837508 A CN108837508 A CN 108837508A
- Authority
- CN
- China
- Prior art keywords
- carrier
- game
- angle
- information
- turning
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/40—Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment
- A63F13/42—Processing 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
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
- A63F2300/30—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by output arrangements for receiving control signals generated by the game device
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Human Computer Interaction (AREA)
- Control Of Position, Course, Altitude, Or Attitude Of Moving Bodies (AREA)
- Traffic Control Systems (AREA)
Abstract
The invention discloses the method and apparatus that carrier is controlled in a kind of game.Wherein, this method includes:Obtain the current driving information of carrier in game;In the case where determining that carrier is in abnormal driving status according to current driving information, monitoring direction controls the work angle of control;The turn around parameters of carrier are determined according to work angle;It is mobile that carrier is controlled according to turn around parameters, wherein turn around parameters include at least turning radius.The present invention solves the technical issues of leading to carrier repeated collision after carrier life collision in game and refuse to budge.
Description
Technical field
The present invention relates to computer fields, in particular to the method and apparatus for controlling carrier in a kind of game.
Background technique
During game player carries out racing class game (for example, race racing, air racing, the game of cool run class),
The game object (for example, racing car, aircraft etc.) of game player's operation may deviate normally travel path, example due to operation error
Such as, collide with other racing cars, control turning manipulation fault etc., the operation error of above-mentioned game player is it is easier that game player
The game object difficulty of operation, the especially edge of autodrome in gaming, racing car may occur repeated collision or
Phenomena such as person refuses to budge.
To solve the above problems, the prior art mainly uses following two scheme:
Scheme one:It is arranged on interface resident control (the resident control A in display interface as shown in Figure 1), or
The game object of person game player's operation, which enters after abnormality, there is reset button, game player by operate resident control or
Reset button, the game object for operating game player return on correct travel route.
Mode two:After game object operated by game player is abnormal, control game object resets to traveling
The middle position of route, and game object is flashed, to prompt reset operation to be completed.
Using above two scheme, the direction controlling operation of game player in gaming is discontinuous, driving of not turning around
Feel, the game experiencing of game player is poor.
Aiming at the problem that leading to carrier repeated collision after carrier in above-mentioned game collides and refuse to budge, not yet propose at present
Effective solution scheme.
Summary of the invention
The embodiment of the invention provides the method and apparatus that carrier is controlled in a kind of game, at least to solve carrier in game
The technical issues of leading to carrier repeated collision after raw collision and refuse to budge.
According to an aspect of an embodiment of the present invention, a kind of method that carrier is controlled in game is provided, including:Obtain trip
The current driving information of carrier in play;In the case where determining that carrier is in abnormal driving status according to current driving information, prison
Survey the work angle of direction controlling control;The turn around parameters of carrier are determined according to work angle, wherein turn around parameters include at least
Turning radius;It is mobile that carrier is controlled according to turn around parameters.
Further, direction controlling control is virtual direction disk, and work angle is the deflection angle of virtual direction disk.
Further, the method for control carrier further includes in game:It obtains in the driving direction and travel speed of carrier extremely
It is one of few.
Further, the method for control carrier further includes in game:The route information of travel route where judging carrier,
In, the route type of travel route where route information characterizes carrier;The preset travel information of carrier is determined according to route information,
Wherein, preset travel information includes at least one of:Preset travel direction, preset travel speed;According to current driving information
And preset travel information determines that carrier is in abnormal driving status.
Further, the method for control carrier further includes in game:The middle line of travel route where obtaining carrier;In middle line
The upper multiple predeterminated positions of determination, wherein there is predetermined angle between two neighboring predeterminated position;It is identical in adjacent predetermined angle
In the case of, determine that route type is straight line;In the case where adjacent predetermined angle is different, determine that route type is curve.
Further, the method for control carrier further includes in game:Carrier in the condition for straight travel, determine default
The offset of driving direction is the first offset.
Further, the method for control carrier further includes in game:It is greater than first in the offset of the driving direction of carrier
Offset, and in the case that travel speed is less than preset travel speed, determine that carrier is in abnormal driving status.
Further, the method for control carrier further includes in game:In carrier in the case where being travelled on curve, determine pre-
If the offset of driving direction is the second offset.
Further, the method for control carrier further includes in game:It is greater than second in the offset of the driving direction of carrier
Offset, and in the case that travel speed is less than preset travel speed, determine that carrier is in abnormal driving status.
Further, turn around parameters further include:Turning velocity, wherein control carrier further includes in game:In operation angle
In the case that degree is greater than first angle, turning radius is adjusted to the first turning radius, the turning velocity of carrier is adjusted to the
One turning velocity, wherein the first turning radius and work angle are negatively correlated, and the first turning velocity and work angle are positively correlated;?
In the case that work angle is more than or equal to second angle, control turning radius is adjusted to the second turning radius, and control turns to
Speed is adjusted to the second turning velocity, wherein the second turning radius is greater than first less than the first turning radius, the second turning velocity
Turning velocity, the second turning radius and the second turning velocity are constant.
Further, the method for control carrier further includes in game:The turning axle center of carrier is determined according to turning radius;Root
It is mobile according to turning axle center and turning velocity control carrier.
According to another aspect of an embodiment of the present invention, the device that carrier is controlled in a kind of game is additionally provided, including:It obtains
Module, for obtaining the current driving information of carrier in game;Monitoring modular, for determining carrier according to current driving information
In the case where abnormal driving status, monitoring direction controls the work angle of control;Determining module, for according to work angle
Determine the turn around parameters of carrier, wherein turn around parameters include at least turning radius;Control module, for according to turn around parameters control
Carrier processed is mobile.
According to another aspect of an embodiment of the present invention, the terminal that carrier is controlled in a kind of game is additionally provided, including:Direction
Control control;Processor, processor run program, wherein from the data exported from control are executed as follows when program is run
Manage step:Obtain the current driving information of carrier in game;Determining that carrier is in abnormal traveling shape according to current driving information
In the case where state, monitoring direction controls the work angle of control;The turn around parameters of carrier are determined according to work angle, wherein turn
Turning radius is included at least to parameter;It is mobile that carrier is controlled according to turn around parameters.
According to another aspect of an embodiment of the present invention, a kind of storage medium is additionally provided, which includes storage
Program, wherein program executes the method that carrier is controlled in game.
According to another aspect of an embodiment of the present invention, a kind of processor is additionally provided, which is used to run program,
In, the method that carrier is controlled in game is executed when program is run.
In embodiments of the present invention, by the way of the angle control carrier according to operation rocking bar, by obtaining in game
The current driving information of carrier, then in the case where determining that carrier is in abnormal driving status according to current driving information, prison
The work angle of direction controlling control is surveyed, and determines the turn around parameters of carrier according to work angle, finally, according to turn around parameters control
Carrier processed is mobile, wherein turn around parameters include at least turning radius.It is easily noted that, user only passes through operation rocking bar
Angle is the control that can reach to carrier in game, does not need complicated operation, reduces the sense of defeat of new hand player.Separately
Outside, in the case where carrier is in abnormal driving status, the angle of user's operation rocking bar reflects the psychological condition of user, improves
The control sense of user.Finally, due to carry out the scene for operating carrier in the operation and real world of angle control to rocking bar
Similarity-rough set is big, therefore, controls carrier closer to real world by the way of operating rocking bar angle, further improves use
The game experiencing at family.It can be seen that scheme provided herein can achieve the deadlock for reducing carrier in abnormal driving status
The time is held, carrier is made to be rapidly separated the purpose of abnormal driving status, so that the technical effect for improving user's game experiencing is realized,
And then solves the technical issues of leading to carrier repeated collision after carrier life collision in game and refuse to budge.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair
Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is a kind of schematic diagram of display interface according to prior art;
Fig. 2 is the method flow diagram that carrier is controlled in a kind of game according to an embodiment of the present invention;
Fig. 3 is a kind of schematic diagram of the offset of optional driving direction according to an embodiment of the present invention;
Fig. 4 is a kind of schematic diagram of optional travel route according to an embodiment of the present invention;
Fig. 5 is the schematic diagram of optional kind of display interface of one kind according to an embodiment of the present invention;
Fig. 6 is a kind of schematic diagram of optional direction controlling control according to an embodiment of the present invention;
Fig. 7 is the curve synoptic diagram between a kind of optional work angle according to an embodiment of the present invention and turning radius;
Fig. 8 is the curve synoptic diagram between a kind of optional work angle according to an embodiment of the present invention and turning velocity;
Fig. 9 is a kind of schematic diagram of optional carrier traveling according to an embodiment of the present invention;And
Figure 10 is the apparatus structure schematic diagram that carrier is controlled in a kind of game according to an embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention
Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work
It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way
Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or
Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover
Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to
Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product
Or other step or units that equipment is intrinsic.
Embodiment 1
According to embodiments of the present invention, the embodiment of the method that carrier is controlled in a kind of game is provided, it should be noted that
The step of process of attached drawing illustrates can execute in a computer system such as a set of computer executable instructions, also,
It, in some cases, can be to be different from shown in sequence execution herein although logical order is shown in flow charts
The step of out or describing.
Fig. 2 is the method flow diagram that carrier is controlled in game according to an embodiment of the present invention, as shown in Fig. 2, this method packet
Include following steps:
Step S202 obtains the current driving information of carrier in game.
In above-mentioned steps S202, game object that carrier is controlled by game player in game, wherein the game object
The game object that can be but be not limited in racing class game, for example, aircraft, racing car, ship etc..In addition, the current driving of carrier
Information includes at least the current travel speed and driving direction of carrier.
In a kind of optional scheme, game terminal can obtain the current driving information of carrier.Specifically, in game player
During controlling carrier progress game, game terminal just acquires the current driving of carrier every preset duration (for example, 0.1ms)
Information, and then obtain the current driving information of carrier.In above process, game terminal can be but be not limited to mobile terminal
(for example, mobile phone, plate) and fixed terminal (for example, desktop computer, large-scale console).
Step S204, in the case where determining that carrier is in abnormal driving status according to current driving information, monitoring direction
Control the work angle of control.
It should be noted that the driving status of carrier mainly includes normally travel state and abnormal driving status, wherein different
Normal driving status refers to that carrier and other carriers or object collide the state for leading to carrier repeated collision or refusing to budge, for example,
In racing game, when the edge of racing car and autodrome collides, racing car and autodrome repeated collision or refuse to budge.
Normally travel state refers to the state of carrier normally travel in default route.
In addition, direction controlling control is virtual direction disk, or the void on interface in above-mentioned steps S204
Quasi- button or virtual rocking bar can also be the hardware device connecting with game terminal, for example, game paddle.In addition, direction controlling
The work angle of control can be the deflection angle of virtual direction disk, or predeterminated position in touch point and virtual rocking bar
The angle of line and preset direction.
In a kind of optional scheme, after obtaining the current driving information of carrier, game terminal is worked as according to carrier
Preceding driving information can determine whether carrier is in abnormal driving status.After determining that carrier handles abnormal driving status, game
Whether terminal detection direction control control receives the control signal that game player operates direction controlling control, if detecting control
Signal processed, then game terminal determines that game player is operating direction controlling control, and then continues to monitor game player operation side
To the work angle of control control.
Step S206 determines the turn around parameters of carrier according to work angle.
It should be noted that the turn around parameters of carrier are including at least one of following:The steering of the turning radius, carrier of carrier
Speed.
In a kind of optional scheme, game terminal obtain game player operate direction controlling control work angle it
Afterwards, the turning radius and turning velocity that carrier is turned to are determined according to the work angle of direction controlling control, for example, operation
Angle is bigger, then turning radius is smaller, and turning velocity is bigger.Wherein, meet between turning radius, turning velocity and work angle
Preset relation, for example, linear relation, hyperbolic relation, the form of expression of preset relation can be but be not limited to table, curve.
In another optional scheme, determining that the turn around parameters of carrier further include determining operation angle according to work angle
The steering direction of degree, that is, determine game player operate direction controlling control steering direction, for example, turn left 20 °, turn right
10°.The turn around parameters of carrier are determined according to the size of the steering direction of work angle and work angle, specifically, according to
The steering direction of work angle determines the center location in the corresponding center of circle of turning radius, then further according to center location and behaviour
Make the size of angle to determine the turn around parameters of carrier.
It is mobile to control carrier according to turn around parameters by step S208.
Specifically, game terminal can control carrier to carry out according to turning radius determining after the turn around parameters of carrier
Rotation, and turned with turning velocity, so that carrier be made to enter in normal travel route.It is contributed to normally in carrier
After travel route, game player can the progress game of normal control carrier.
It, can be according to acting on it can be seen that when detecting that carrier traveling is abnormal (for example, colliding in corner)
The work angle of the direction controlling control of carrier traveling is controlled to adjust the turning radius of carrier, helps to reduce carrier in exception
State is refused to budge the time (for example, can be to avoid in constant collision of corner after the turning radius of adjustment carrier), so that carrying
Tool can be rapidly separated abnormality, so that game player has more vivid driving experience.
Based on scheme defined by above-mentioned steps S202 to step S208, it can know, by obtaining carrier in game
Current driving information, then in the case where determining that carrier is in abnormal driving status according to current driving information, monitoring direction
The work angle of control is controlled, and determines the turn around parameters of carrier according to work angle, finally, controlling carrier according to turn around parameters
It is mobile, wherein turn around parameters include at least turning radius.
It being easily noted that, the angle that user only passes through operation rocking bar can reach the control to carrier in game, and
Complicated operation is not needed, the sense of defeat of new hand player is reduced.In addition, in the case where carrier is in abnormal driving status,
The angle of user's operation rocking bar reflects the psychological condition of user, improves the control sense of user.Finally, due to be carried out to rocking bar
The similarity-rough set for the scene for operating carrier in the operation of angle control and real world is big, therefore, using operation rocking bar angle
Mode control carrier closer to real world, further improve the game experiencing of user.
It can be seen that scheme provided herein can achieve reduce carrier in abnormal driving status when refusing to budge
Between, so that carrier is rapidly separated the purpose of abnormal driving status, to realize the technical effect for improving user's game experiencing, in turn
Solves the technical issues of leading to carrier repeated collision after carrier life collision in game and refuse to budge.
In a kind of optional scheme, the current driving information of carrier in game is obtained, that is, obtains the driving direction of carrier
At least one of with travel speed.Wherein, determine that carrier is in abnormal driving status according to current driving information, including:
Step S2040, the route information of travel route where judging carrier, wherein route information characterization carrier is expert at
Sail the route type of route;
Step S2042 determines the preset travel information of carrier according to route information, wherein preset travel information include with
It is at least one lower:Preset travel direction, preset travel speed;
Step S2044 determines that carrier is in abnormal driving status according to current driving information and preset travel information.
It should be noted that route type includes at least straight line and curve, different route types in step S2040
Corresponding different preset travel information, for example, in the case where route type is straight line, driving direction as shown in Figure 3 it is inclined
The schematic diagram of shifting amount, the driving direction with straight line parallel are 0 °, the offset model of the driving direction of carrier under normally travel state
Enclosing is 0 to a1, i.e., the offset ranges in preset travel direction are 0 to a1.It is parallel with current straight line tangent line in the case where bend
Driving direction be 0 °, the offset ranges of the driving direction of carrier are 0 to a2, i.e. preset travel direction under normally travel state
Offset ranges be 0 to a1.Wherein, position of the carrier on travel route is different, and 0 ° of direction is also changing.And
In the case that route type is curve, the driving direction parallel with the tangent line of present running route is 0 °.
As shown in the above, before the preset travel information for determining carrier according to route information, it is thus necessary to determine that carrier
The route type of place travel route, wherein judge that the method for route type may include steps of:
Step S20402, the middle line of travel route where obtaining carrier;
Step S20404 determines multiple predeterminated positions on middle line, wherein has between two neighboring predeterminated position default
Angle;
Step S20406 determines that route type is straight line in the identical situation of adjacent predetermined angle;
Step S20408 determines that route type is curve in the case where adjacent predetermined angle is different.
Specifically, the schematic diagram of travel route as shown in Figure 4, L is the middle line of travel route, line segment L1, L2 in Fig. 4
The predetermined position being located on middle line with the endpoint of L3, wherein the length of three line segments is identical, is reflected on travel route and shows
It is identical by the displacement of three predeterminated positions in carrier.In addition, having an angle, i.e. preset angle between every two lines section
Degree, for example, the angle between Fig. 4 middle conductor L1 and line segment L2 is α, the angle between line segment L2 and line segment L3 is β.In route class
In the case that type is curve, α is not identical as β;And route type be straight line in the case where, α is identical as β, usually 180 ° or
0°。
It should be noted that can determine the preset travel of carrier according to route information after route type has been determined
Information, and then determine that carrier is in abnormal driving status according to current driving information and preset travel information.A kind of optional
Scheme in, carrier in the condition for straight travel, determine preset travel direction offset be the first offset.In carrier
Driving direction offset be greater than the first offset, and travel speed be less than preset travel speed in the case where, determine carry
Tool is in abnormal driving status.In carrier in the case where travelling on curve, determine that the offset in preset travel direction is second
Offset.It is greater than the second offset in the offset of the driving direction of carrier, and travel speed is less than preset travel speed
In the case of, determine that carrier is in abnormal driving status.
In addition it is also necessary to explanation, the offset of driving direction be carrier towards between travel route parallel direction
Deviation angle or carrier towards and the deviation angle between curve tangential direction.It is said by taking straight line shown in Fig. 3 as an example
Bright, under normally travel state, the range of offset of the carrier in driving direction is 0 to a1, if carrier is in driving direction
On offset be greater than a1 and/or travel speed and be less than preset travel speed v1, it is determined that carrier is in abnormal driving status.
Judge whether carrier is similar with the above method in the method for abnormal driving status on curve, and details are not described herein.
In the case where determining that carrier is in abnormal driving status, game player can operate direction controlling control to control and carry
The movement of tool, wherein direction controlling control can be for such as the rocking bar S in Fig. 5.Specifically, being greater than first angle in work angle
In the case where, turning radius is adjusted to the first turning radius, the turning velocity of carrier is adjusted to the first turning velocity,
In, the first turning radius and work angle are negatively correlated, and the first turning velocity and work angle are positively correlated;Be greater than in work angle etc.
In the case where second angle, control turning radius is adjusted to the second turning radius, and control turning velocity is adjusted to second
Turning velocity, wherein for the second turning radius less than the first turning radius, the second turning velocity is greater than the first turning velocity, and second
Turning radius and the second turning velocity are constant.
In above process, first angle can be the a1 ' in Fig. 6, wherein if game player operates direction controlling control
The angle a ' of part is less than a1 ', then carrier by under carrier normally travel state turning radius and turning velocity it is mobile.Work as operation
Angle a ' is greater than a1 ' (a1 '≤180 °), and when being less than a2 ', then turning velocity and steering angle are according to the size of work angle a '
And change, curve synoptic diagram and work angle shown in Fig. 8 between work angle as shown in Figure 7 and turning radius
Curve synoptic diagram between turning velocity, wherein d1 is turning radius of the carrier under normally travel state, and d2 is that carrier exists
Turning radius under abnormal driving status, v1 are turning velocity of the carrier under normally travel state, and v2 is carrier in abnormal row
Sail the turning velocity under state.When work angle a ' is greater than (a2 '≤180 °) a2 ', carrier is with turning radius d2, turning velocity
V2 is mobile.
After the turn around parameters of carrier have been determined, game terminal can control carrier movement according to turn around parameters, specifically
It may include steps of:
Step S2080 determines the turning axle center of carrier according to turning radius;
Step S2082, it is mobile according to turning axle center and turning velocity control carrier.
Specifically, being the axis that can determine carrier according to the turning radius of carrier after the turning radius of carrier has been determined
The heart, as shown in figure 9, according to the current location of carrier and being turned to partly after the turning radius R1 and R2 of carrier A and carrier B
Diameter is the turning axle center that can determine carrier, for example, the turning axle center of carrier A is D, and the turning axle center of carrier B is C.According to load
The turning axle center of tool rotates carrier, and the turning velocity of carrier moves carrier, and then makes carrier by abnormal row
The state of sailing enters in normally travel state.
In addition it is also necessary to explanation, if determining working as carrier according to current driving information and preset travel information
Preceding driving status is normal driving status, then when game player operates direction controlling control, if the behaviour of direction controlling control
Make angle and be greater than maximum work angle, then game terminal control carrier is turned according to maximum angle of turn.
Embodiment 2
According to embodiments of the present invention, the Installation practice that carrier is controlled in a kind of game is additionally provided, the device is executable
The method of carrier is controlled in game in embodiment 10, wherein Figure 10 is to control carrier in game according to an embodiment of the present invention
Apparatus structure schematic diagram, as shown in Figure 10, which includes:Obtain module 1001, monitoring modular 1003, determining module 1005
And control module 1007.
Wherein, module 1001 is obtained, for obtaining the current driving information of carrier in game;Monitoring modular 1003, is used for
In the case where determining that carrier is in abnormal driving status according to current driving information, monitoring direction controls the operation angle of control
Degree;Determining module 1005, for determining the turn around parameters of carrier according to work angle, wherein turn around parameters, which include at least, to be turned to
Radius;Control module 1007, it is mobile for controlling carrier according to turn around parameters.
It should be noted that direction controlling control is virtual direction disk, work angle is the deflection angle of virtual direction disk.
In addition it is also necessary to explanation, above-mentioned acquisition module 1001, monitoring modular 1003, determining module 1005 and control
Molding block 1007 corresponds to the step S202 to step S208 in embodiment 1, and four modules are shown with what corresponding step was realized
Example is identical with application scenarios, but is not limited to the above embodiments 1 disclosure of that.
In a kind of optional scheme, obtaining module includes:First obtains module.Wherein, first module is obtained, for obtaining
Take at least one of driving direction and the travel speed of carrier.
In a kind of optional scheme, monitoring modular includes:Judgment module, the first determining module and second determine mould
Block.Wherein, judgment module, the route information for travel route where judging carrier, wherein route information characterizes where carrier
The route type of travel route;First determining module, for determining the preset travel information of carrier according to route information, wherein
Preset travel information includes at least one of:Preset travel direction, preset travel speed;Second determining module is used for basis
Current driving information and preset travel information determine that carrier is in abnormal driving status.
It should be noted that above-mentioned judgment module, the first determining module and the second determining module correspond in embodiment 1
Step S2040 to step S2044, the example and application scenarios that three modules and corresponding step are realized be identical but unlimited
In 1 disclosure of that of above-described embodiment.
In a kind of optional scheme, judgment module includes:First obtains module, third determining module, the 4th determining mould
Block and the 5th determining module.Wherein, first module is obtained, the middle line for travel route where obtaining carrier;Third determines
Module, for determining multiple predeterminated positions on middle line, wherein there is predetermined angle between two neighboring predeterminated position;4th
Determining module, in the identical situation of adjacent predetermined angle, determining that route type is straight line;5th determining module, is used for
In the case where adjacent predetermined angle is different, determine that route type is curve.
It should be noted that above-mentioned first obtains module, third determining module, the 4th determining module and the 5th determining mould
Block corresponds to the step S20402 to step S20408 in embodiment 1, example that four modules and corresponding step are realized and
Application scenarios are identical, but are not limited to the above embodiments 1 disclosure of that.
In a kind of optional scheme, the first determining module includes:6th determining module.Wherein, the 6th determining module is used
In carrier in the condition for straight travel, determine preset travel direction offset be the first offset.
In a kind of optional scheme, judgment module includes:7th determining module.Wherein, the 7th determining module is used for
In the case that the offset of the driving direction of carrier is greater than the first offset, and travel speed is less than preset travel speed, really
Determine carrier and is in abnormal driving status.
In a kind of optional scheme, the first determining module includes:8th determining module.Wherein, the 8th determining module is used
In carrier on curve travel in the case where, determine preset travel direction offset be the second offset.
In a kind of optional scheme, judgment module includes:9th determining module.Wherein, the 9th determining module is used for
In the case that the offset of the driving direction of carrier is greater than the second offset, and travel speed is less than preset travel speed, really
Determine carrier and is in abnormal driving status.
In a kind of optional scheme, turn around parameters further include:Turning velocity, wherein determining module includes:The first adjustment
Module and second adjustment module.Wherein, the first adjustment module is used in the case where work angle is greater than first angle, will
Turning radius is adjusted to the first turning radius, and the turning velocity of carrier is adjusted to the first turning velocity, wherein first turns to half
Diameter and work angle are negatively correlated, and the first turning velocity and work angle are positively correlated;Second adjustment module, for big in work angle
In the case where being equal to second angle, control turning radius is adjusted to the second turning radius, and control turning velocity is adjusted to
Second turning velocity, wherein the second turning radius is greater than the first turning velocity less than the first turning radius, the second turning velocity,
Second turning radius and the second turning velocity are constant.
In a kind of optional scheme, control module includes:Tenth determining module and control submodule.Wherein, the tenth
Determining module, for determining the turning axle center of carrier according to turning radius;Control submodule, for according to turning axle center and steering
Speed control carrier is mobile.
It should be noted that above-mentioned tenth determining module and control submodule correspond to the step S2080 in embodiment 1
To step S2082, two modules are identical as example and application scenarios that corresponding step is realized, but are not limited to the above embodiments
1 disclosure of that.
Embodiment 3
According to embodiments of the present invention, the terminal embodiment that carrier is controlled in a kind of game is additionally provided, the terminal is executable
The method of carrier is controlled in game in embodiment 1, wherein the terminal includes:Direction controlling control and processor.
Wherein, processor runs program, executes following processing step for the data exported from control when which runs:
Obtain the current driving information of carrier in game;The case where carrier is in abnormal driving status is being determined according to current driving information
Under, monitoring direction controls the work angle of control;The turn around parameters of carrier are determined according to work angle, wherein turn around parameters are extremely
It less include turning radius;It is mobile that carrier is controlled according to turn around parameters.
It should be noted that direction controlling control is virtual direction disk, work angle is the deflection angle of virtual direction disk.
From the foregoing, it will be observed that then being determined according to current driving information by the current driving information for obtaining carrier in game
In the case that carrier is in abnormal driving status, the work angle of monitoring direction control control, and determined and carried according to work angle
The turn around parameters of tool, finally, it is mobile to control carrier according to turn around parameters.
It being easily noted that, the angle that user only passes through operation rocking bar can reach the control to carrier in game, and
Complicated operation is not needed, the sense of defeat of new hand player is reduced.In addition, in the case where carrier is in abnormal driving status,
The angle of user's operation rocking bar reflects the psychological condition of user, improves the control sense of user.Finally, due to be carried out to rocking bar
The similarity-rough set for the scene for operating carrier in the operation of angle control and real world is big, therefore, using operation rocking bar angle
Mode control carrier closer to real world, further improve the game experiencing of user.
It can be seen that scheme provided herein can achieve reduce carrier in abnormal driving status when refusing to budge
Between, so that carrier is rapidly separated the purpose of abnormal driving status, to realize the technical effect for improving user's game experiencing, in turn
Solves the technical issues of leading to carrier repeated collision after carrier life collision in game and refuse to budge.
In a kind of optional scheme, processor be also used to obtain in the driving direction and travel speed of carrier at least it
One.
In a kind of optional scheme, the route information of travel route where processor is also used to judge carrier, and according to
Route information determines the preset travel information of carrier, then, determines carrier according to current driving information and preset travel information
In abnormal driving status, wherein preset travel information includes at least one of:Preset travel direction, preset travel speed,
The route type of travel route where route information characterizes carrier.
In a kind of optional scheme, the middle line of travel route where processor is also used to obtain carrier, and on middle line
Determine multiple predeterminated positions, wherein if adjacent predetermined angle is identical, it is determined that route type is straight line;If adjacent default
Angle is different, it is determined that route type is curve.Wherein, there is predetermined angle between two neighboring predeterminated position.
In a kind of optional scheme, processor be also used to carrier in the condition for straight travel, determine preset travel
The offset in direction is the first offset, and is greater than the first offset in the offset of the driving direction of carrier, and travel speed
In the case that degree is less than preset travel speed, determine that carrier is in abnormal driving status.
In a kind of optional scheme, processor is also used in carrier in the case where travelling on curve, determines default row
The offset for sailing direction is the second offset, and is greater than the second offset in the offset of the driving direction of carrier, and travel
In the case that speed is less than preset travel speed, determine that carrier is in abnormal driving status.
In a kind of optional scheme, turn around parameters further include:Turning velocity, wherein processor is also used in operation angle
In the case that degree is greater than first angle, turning radius is adjusted to the first turning radius, the turning velocity of carrier is adjusted to the
One turning velocity, wherein the first turning radius and work angle are negatively correlated, and the first turning velocity and work angle are positively correlated;?
In the case that work angle is more than or equal to second angle, control turning radius is adjusted to the second turning radius, and control turns to
Speed is adjusted to the second turning velocity, wherein the second turning radius is greater than first less than the first turning radius, the second turning velocity
Turning velocity, the second turning radius and the second turning velocity are constant.
In a kind of optional scheme, processor is also used to determine the turning axle center of carrier according to turning radius, and according to
Turning axle center and turning velocity control carrier are mobile.
Embodiment 4
According to another aspect of an embodiment of the present invention, a kind of storage medium is additionally provided, which includes storage
Program, wherein program executes the method that carrier is controlled in the game in embodiment 1.
Embodiment 5
According to another aspect of an embodiment of the present invention, a kind of processor is additionally provided, which is used to run program,
In, the method that carrier is controlled in the game in embodiment 1 is executed when program is run.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment
The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed technology contents can pass through others
Mode is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, Ke Yiwei
A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module
It connects, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
On unit.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can for personal computer, server or network equipment etc.) execute each embodiment the method for the present invention whole or
Part steps.And storage medium above-mentioned includes:USB flash disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic or disk etc. be various to can store program code
Medium.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.
Claims (14)
1. controlling the method for carrier in a kind of game, which is characterized in that including:
Obtain the current driving information of carrier in game;
In the case where determining that the carrier is in abnormal driving status according to the current driving information, monitoring direction control control
The work angle of part;
The turn around parameters of the carrier are determined according to the work angle, wherein the turn around parameters include at least turning radius;
It is mobile that the carrier is controlled according to the turn around parameters.
2. the method according to claim 1, wherein the direction controlling control is virtual direction disk, the behaviour
Make the deflection angle that angle is the virtual direction disk.
3. the method according to claim 1, wherein obtain game in carrier current driving information, including:
Obtain at least one of driving direction and the travel speed of the carrier.
4. according to the method described in claim 3, it is characterized in that, determining that the carrier is according to the current driving information
The exception driving status, including:
The route information of travel route where judging the carrier, wherein the route information characterizes traveling where the carrier
The route type of route;
The preset travel information of the carrier is determined according to the route information, wherein the preset travel information includes following
At least one:Preset travel direction, preset travel speed;
Determine that the carrier is in the abnormal driving status according to the current driving information and the preset travel information.
5. according to the method described in claim 4, it is characterized in that, judge the route information of travel route where the carrier,
Including:
The middle line of travel route where obtaining the carrier;
Multiple predeterminated positions are determined on the middle line, wherein there is predetermined angle between two neighboring predeterminated position;
In the identical situation of adjacent predetermined angle, determine that the route type is straight line;
In the case where adjacent predetermined angle is different, determine that the route type is curve.
6. according to the method described in claim 5, it is characterized in that, determining that the preset travel is believed according to the route information
Breath, including:
In the carrier in the case where straight-line travelling, determine that the offset in the preset travel direction is the first offset
Amount.
7. according to the method described in claim 6, it is characterized in that, according to the current driving information and the preset travel
Information determines that the carrier is in the abnormal driving status, including:
It is greater than first offset in the offset of the driving direction of the carrier, and the travel speed is less than described pre-
If in the case where travel speed, determining that the carrier is in the abnormal driving status.
8. according to the method described in claim 5, it is characterized in that, determining that the preset travel is believed according to the route information
Breath, including:
In the carrier in the case where travelling on the curve, determine that the offset in the preset travel direction is the second offset
Amount.
9. according to the method described in claim 8, it is characterized in that, according to the current driving information and the preset travel
Information determines that the carrier is in the abnormal driving status, including:
It is greater than second offset in the offset of the driving direction of the carrier, and the travel speed is less than described pre-
If in the case where travel speed, determining that the carrier is in the abnormal driving status.
10. the method according to claim 1, wherein the turn around parameters further include:Turning velocity, wherein root
The turn around parameters of the carrier are determined according to the work angle, including:
In the case where the work angle is greater than first angle, the turning radius is adjusted to the first turning radius, by institute
The turning velocity for stating carrier is adjusted to the first turning velocity, wherein and first turning radius and the work angle are negatively correlated,
First turning velocity and the work angle are positively correlated;
In the case where the work angle is more than or equal to second angle, controls the turning radius and be adjusted to the second steering half
Diameter, and the control turning velocity are adjusted to the second turning velocity, wherein second turning radius is less than described first turn
To radius, second turning velocity is greater than the first turning velocity, and second turning radius is with second turning velocity
Constant.
11. according to the method described in claim 10, it is characterized in that, to control the carrier according to the turn around parameters mobile,
Including:
The turning axle center of the carrier is determined according to the turning radius;
It is mobile that the carrier is controlled according to the turning axle center and the turning velocity.
12. controlling the device of carrier in a kind of game, which is characterized in that including:
Module is obtained, for obtaining the current driving information of carrier in game;
Monitoring modular, in the case where determining that the carrier is in abnormal driving status according to the current driving information,
The work angle of monitoring direction control control;
Determining module, for determining the turn around parameters of the carrier according to the work angle, wherein the turn around parameters are at least
Including turning radius;
Control module, it is mobile for controlling the carrier according to the turn around parameters.
13. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein described program right of execution
Benefit controls the method for carrier in game described in requiring any one of 1 to 11.
14. a kind of processor, which is characterized in that the processor is for running program, wherein right of execution when described program is run
Benefit controls the method for carrier in game described in requiring any one of 1 to 11.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810645080.4A CN108837508B (en) | 2018-06-21 | 2018-06-21 | Method and device for controlling carrier in game |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810645080.4A CN108837508B (en) | 2018-06-21 | 2018-06-21 | Method and device for controlling carrier in game |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108837508A true CN108837508A (en) | 2018-11-20 |
CN108837508B CN108837508B (en) | 2022-04-29 |
Family
ID=64203567
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810645080.4A Active CN108837508B (en) | 2018-06-21 | 2018-06-21 | Method and device for controlling carrier in game |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108837508B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110465091A (en) * | 2019-08-09 | 2019-11-19 | 腾讯科技(深圳)有限公司 | The control method and device of virtual race car object, storage medium and electronic device |
CN112148622A (en) * | 2020-10-15 | 2020-12-29 | 腾讯科技(深圳)有限公司 | Control method and device of virtual prop, electronic equipment and storage medium |
CN112192568A (en) * | 2020-09-30 | 2021-01-08 | 广东唯仁医疗科技有限公司 | Intelligent shopping robot control method and system based on 5G network |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH07275510A (en) * | 1994-04-13 | 1995-10-24 | Sega Enterp Ltd | Game device |
US20070111768A1 (en) * | 2005-11-14 | 2007-05-17 | Microsoft Corporation | Speed-dependent suggested driving lines |
US20100048271A1 (en) * | 2005-10-05 | 2010-02-25 | Nintendo Co., Ltd. | Driving game steering wheel simulation method and apparatus |
CN104915564A (en) * | 2015-06-16 | 2015-09-16 | 深圳市腾讯计算机系统有限公司 | Virtual character turning implementing method and device |
CN105641927A (en) * | 2015-12-31 | 2016-06-08 | 网易(杭州)网络有限公司 | Virtual object steering control method and device |
-
2018
- 2018-06-21 CN CN201810645080.4A patent/CN108837508B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH07275510A (en) * | 1994-04-13 | 1995-10-24 | Sega Enterp Ltd | Game device |
US20100048271A1 (en) * | 2005-10-05 | 2010-02-25 | Nintendo Co., Ltd. | Driving game steering wheel simulation method and apparatus |
US20070111768A1 (en) * | 2005-11-14 | 2007-05-17 | Microsoft Corporation | Speed-dependent suggested driving lines |
CN104915564A (en) * | 2015-06-16 | 2015-09-16 | 深圳市腾讯计算机系统有限公司 | Virtual character turning implementing method and device |
CN105641927A (en) * | 2015-12-31 | 2016-06-08 | 网易(杭州)网络有限公司 | Virtual object steering control method and device |
Non-Patent Citations (1)
Title |
---|
网友整理: "QQ飞车手游复位键是什么 怎么用复位键卡bug,http://www.qqtn.com/article/article_230414_1.html", 《百度》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110465091A (en) * | 2019-08-09 | 2019-11-19 | 腾讯科技(深圳)有限公司 | The control method and device of virtual race car object, storage medium and electronic device |
CN112192568A (en) * | 2020-09-30 | 2021-01-08 | 广东唯仁医疗科技有限公司 | Intelligent shopping robot control method and system based on 5G network |
CN112148622A (en) * | 2020-10-15 | 2020-12-29 | 腾讯科技(深圳)有限公司 | Control method and device of virtual prop, electronic equipment and storage medium |
CN112148622B (en) * | 2020-10-15 | 2022-02-25 | 腾讯科技(深圳)有限公司 | Control method and device of virtual prop, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108837508B (en) | 2022-04-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108837508A (en) | The method and apparatus of carrier are controlled in game | |
WO2019022841A1 (en) | Controlling behavior of entities in funnel sections of a computer-represented environment | |
US7837544B2 (en) | Speed-dependent suggested driving lines | |
CN110013671A (en) | Movement executes method and apparatus, storage medium and electronic device | |
US11806622B2 (en) | Information display method and apparatus, electronic device, and computer storage medium | |
CN108749818A (en) | Device for controlling a vehicle and method | |
JP2017529188A5 (en) | ||
US20200230496A1 (en) | Information processing system, storage medium storing information processing program, information processing apparatus, and information processing method | |
Butz et al. | Optimized sensory-motor couplings plus strategy extensions for the torcs car racing challenge | |
WO2006033258A1 (en) | Operation input device, operation evaluation method, recording medium, and program | |
CN108654087A (en) | Information indicating method and device, road condition advisory method and device | |
CN108434730A (en) | Control method, device, storage medium, processor and the terminal of game object | |
US7602397B2 (en) | Image creating device, load display method, recording medium, and program | |
CN105407992A (en) | Image processing program, server device, image processing system, and image processing method | |
KR102648598B1 (en) | Virtual racing car control method and apparatus, storage medium and device | |
CN108635855A (en) | The control method for movement of carrier, device and terminal in game | |
KR100871274B1 (en) | Image producing device, acceleration displaying method, and computer-readable information recording medium having a program recorded thereon | |
US20090118003A1 (en) | Image Creating Device, Load Display Method, Recording Medium, and Program | |
CN111035928B (en) | Method and device for displaying travel route, storage medium and electronic device | |
CN117308983A (en) | Path planning method, device, equipment and storage medium | |
CN110465091A (en) | The control method and device of virtual race car object, storage medium and electronic device | |
CN108635838A (en) | Direction-controlling method and device, storage medium, processor and terminal | |
Albelihi et al. | An application of neural networks to an autonomous car driver | |
CN109849934A (en) | Method, apparatus, storage medium and the terminal device of trajectory processing | |
WO2018079764A1 (en) | Portable terminal device, network game system, and race game processing method |
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 |