CN106385408B - The instruction of motion state variation, processing method and processing device - Google Patents

The instruction of motion state variation, processing method and processing device Download PDF

Info

Publication number
CN106385408B
CN106385408B CN201610807555.6A CN201610807555A CN106385408B CN 106385408 B CN106385408 B CN 106385408B CN 201610807555 A CN201610807555 A CN 201610807555A CN 106385408 B CN106385408 B CN 106385408B
Authority
CN
China
Prior art keywords
game
movement
motion state
updated
information
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
CN201610807555.6A
Other languages
Chinese (zh)
Other versions
CN106385408A (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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201610807555.6A priority Critical patent/CN106385408B/en
Publication of CN106385408A publication Critical patent/CN106385408A/en
Application granted granted Critical
Publication of CN106385408B publication Critical patent/CN106385408B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/131Protocols for games, networked simulations or virtual reality
    • 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
    • A63F13/426Processing 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 involving on-screen location information, e.g. screen coordinates of an area at which the player is aiming with a light gun
    • 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
    • A63F13/428Processing 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 involving motion or position input signals, e.g. signals representing the rotation of an input controller or a player's arm motions sensed by accelerometers or gyroscopes

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a kind of instructions of motion state variation, processing method and processing device.Wherein, this method comprises: determining that the current motion state of game role changes;Key frame information is sent to the game client of other games on line player in addition to itself, wherein key frame information is used to indicate the corresponding movement to be updated of the motion state after variation and movement to be updated corresponding time;Continue to send position synchronizing information to the game client of other games on line player according to predetermined period, wherein, the position synchronizing information persistently sent uses the opportunity of key frame information for determining, to obtain the location information that game role starts to execute movement to be updated.The method of synchronization that the present invention solves the location information of game role in provided more people's networking games on line in the related technology can not be suitable for the technical issues of being displaced sensitive movement, seriously affecting game experiencing.

Description

The instruction of motion state variation, processing method and processing device
Technical field
The present invention relates to internet areas, in particular to instruction, processing method and the dress of a kind of variation of motion state It sets.
Background technique
Currently, in multiplayer online games, it usually needs other online objects for appreciation of simultaneous display in the client of a player The behavior of family.And for first person shooting game (First-person shooting game, referred to as FPS), more people Online tactics competitive game (Multiplayer Online Battle Arena, referred to as MOBA) and Massively Multiplayer Online angle The types such as color game for play (Massively Multiplayer Online Role-Playing Game, referred to as MMORPG) Game for, need most simultaneous display is the location information and action message of the game role of other players.
The method of synchronization of the location information of the game role provided in the related technology generallys use following two mode and carries out:
The operational order that mode one, synchronous game player execute, when a player executes one to itself game role When moving operation instructs, this operational order can also be sent to the client of other online players simultaneously, then again by other objects for appreciation This operational order is applied on the game role of operational order promoter by the client of family, realizes game role with this The real-time synchronization of location information;
The location information of mode two, synchronous game player's game role, the client of each player are provided with timer, The location information for sending itself game role to other online game players at interval of solid duration, then again by other players' Client uses the position of this updating location information sender's game role, and the location information of game role is realized with this Real-time synchronization.
In the position that aforesaid way two is mentioned during synchronous realization, often sender's meeting of the location information of game role The subsidiary timestamp in the location information of sending, to ensure the moving characteristic of itself game role in the case where unstable networks (such as: real-time speed) it can accurately be embodied in the client of other game players.When the client of a game player It, can be according to previously received location information, corresponding game after the game role location information for receiving other game players The position of subsidiary update of time stamp game role in the position and speed and location information that role is presently in, to realize trip Play role is continuous and smoothly moves.
Even if can also ensure that it in the case where unstable networks using the game client of this position method of synchronization The mobile continuity and moving characteristic of his game player's game role will not occur significantly to deform.However, being based on this position The client of the method for synchronization can face following problem when realizing that game role action message is synchronous: game role action message is logical It is often to send this action message to simultaneously other online objects for appreciation when the game role of game player's operation executes specific action The client of family.Since position synchronizing information and movement synchronizing information are mutually indepedent and separately send, and game role position Set is to be changed by modifying rate smoothing, therefore work as client and receive the movement synchronizing information an of game role and add When playing, the position and speed of this game role may initiate game role institute when action command with game role operator The position and speed at place is not consistent;Likewise, can also there is a situation where at the end of movement similar.For common game angle For color movement, above-mentioned subtle difference will not cause apparent game experiencing problem, but for the movement (example of displacement sensitivity For such as: jump, starting), game experiencing will be seriously affected.When movements and velocity variations such as impact, the startings of game role Rhythm it is absonant when, the problems such as game role is easy to appear skidding, makes a misstep, on game experiencing, game role can be showed It is unable to do what one wishes;And if jump movement do not arrange in pairs or groups timely position go up and down with rise and fall when, game role can be as marionette Generally have no to control sense.
For above-mentioned problem, currently no effective solution has been proposed.
Summary of the invention
The embodiment of the invention provides a kind of instructions of motion state variation, processing method and processing device, at least to solve phase The method of synchronization of the location information of game role can not be suitable for displacement in more people's networking games on line provided in the technology of pass Sensitive movement, the technical issues of seriously affecting game experiencing.
According to an aspect of an embodiment of the present invention, a kind of indicating means of motion state variation is provided, comprising:
Determine that the current motion state of game role changes;Game to other games on line player in addition to itself Client sends key frame information, wherein key frame information is used to indicate the corresponding movement to be updated of motion state after variation And movement to be updated corresponding time;Continue to send position to the game client of other games on line player according to predetermined period Set synchronizing information, wherein the position synchronizing information persistently sent uses the opportunity of key frame information for determining, to obtain game Role starts to execute the location information of movement to be updated.
Optionally it is determined that the changed mode of current motion state includes following one: according to game player's input The control instruction for changing current motion state determines that current motion state changes;It is triggered according to extraneous factor in game environment The event that current motion state changes determines that current motion state changes.
Optionally, after determining that current motion state changes, further includes: control game role executes to be updated dynamic Make;Movement to be updated execute after, redefine the motion state of game role, and again control game role execute with The corresponding movement of the motion state redefined.
According to another aspect of an embodiment of the present invention, a kind of processing method of motion state variation is additionally provided, comprising:
Receive the key frame information from game client, wherein key frame information is the game on game client It when the current motion state of role changes, is issued by game client, the motion state after being used to indicate variation is corresponding Movement to be updated and movement to be updated corresponding time;Receive what game client was persistently sent according to the first predetermined period Position synchronizing information, wherein the position synchronizing information persistently sent uses the opportunity of key frame information for determining;According to key Frame information and the position synchronizing information persistently sent obtain game role and start to execute location information and the control of movement to be updated Game role processed executes movement to be updated based on location information in local client.
Optionally, the position synchronizing information sent according to key frame information and persistently obtains game role and starts to execute to more The location information of new movement includes: the timestamp for obtaining in the second predetermined period and carrying in key frame information;According to the time Stab the two neighboring position synchronizing information of selected distance timestamp time recently from the position synchronizing information of lasting transmission;Using Timestamp and the two neighboring position synchronizing information of selection carry out linear interpolation calculating, obtain location information.
Optionally, the position synchronizing information control game role sent according to key frame information and persistently is in local client Executing movement to be updated based on location information includes: the recent renewal time for obtaining and obtaining by the second predetermined period;True In the case that stamp of fixing time is less than recent renewal time, movement to be updated is executed based on location information in local client.
Another aspect according to an embodiment of the present invention additionally provides a kind of instruction device of motion state variation, comprising:
Determining module, for determining that the current motion state of game role changes;First sending module, for removing The game client of other games on line player outside itself sends key frame information, wherein key frame information is used to indicate change The corresponding movement to be updated of motion state and movement to be updated corresponding time after change;Second sending module, for according to Predetermined period continues to send position synchronizing information to the game client of other games on line player, wherein the position persistently sent Set synchronizing information for determine using key frame information opportunity, to obtain the position that game role starts to execute movement to be updated Confidence breath.
Optionally it is determined that module, for determining that the changed mode of current motion state includes following one: according to trip The control instruction of the change current motion state of play player's input determines that current motion state changes;According in game environment The event that extraneous factor triggering current motion state changes determines that current motion state changes.
Optionally, above-mentioned apparatus further include: control module executes movement to be updated for controlling game role;Handle mould Block, for redefining the motion state of game role after movement to be updated executes, and again, control game role is held Row movement corresponding with the motion state redefined.
It is according to an embodiment of the present invention in another aspect, additionally providing a kind of processing unit of motion state variation, comprising:
First receiving module, for receiving the key frame information from game client, wherein key frame information be When the current motion state of game role changes on game client, is issued by game client, be used to indicate variation The corresponding movement to be updated of motion state afterwards and movement to be updated corresponding time;Second receiving module, for receiving trip The position synchronizing information that play client is persistently sent according to the first predetermined period, wherein the position synchronizing information persistently sent is used In the determining opportunity for using key frame information;Processing module, for according to key frame information letter synchronous with the position persistently sent Breath obtains game role and starts to execute the location information of movement to be updated and control game role to be based on position in local client Confidence breath executes movement to be updated.
Optionally, processing module includes: first acquisition unit, for obtaining in key frame information in the second predetermined period The timestamp of carrying;Selection unit, for according to timestamp from the position synchronizing information of lasting transmission selected distance timestamp The two neighboring position synchronizing information of time recently;Computing unit, it is same for the two neighboring position using timestamp and selection It walks information and carries out linear interpolation calculating, obtain location information.
Optionally, processing module includes: second acquisition unit, for obtain pass through that the second predetermined period obtains recently more The new time;Execution unit, for being based on position in local client in the case where determining that timestamp is less than recent renewal time Information executes movement to be updated.
In embodiments of the present invention, the game client that motion state variation is occurred using game role is swum online to other The game client of play player sends the corresponding movement to be updated of motion state and movement to be updated after being used to indicate variation The key frame information of corresponding time and according to predetermined period continue to the game client of other games on line player send The mode of position synchronizing information determines the opportunity for using key frame information by the position synchronizing information of lasting transmission, to obtain Game role starts to execute the location information of movement to be updated, has reached and has determined key frame letter on the basis of the synchronizing information of position Cease the purpose on opportunity used, to realize in the game client synchronizing process of multiplayer online games so that other The game role of line player shows the technical effect for the altitude measurement fidelity experienced close to single machine, and then solves the relevant technologies Provided in more people network game on line in game role location information the method for synchronization can not be suitable for be displaced sensitivity The technical issues of acting, seriously affecting game experiencing.
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 the flow chart of the indicating means of motion state variation according to an embodiment of the present invention;
Fig. 2 is that the originating end of the game role movement synchronous method of the preferred embodiment of the present invention executes the process of concrete operations Figure;
Fig. 3 is the flow chart of the processing method of motion state variation according to an embodiment of the present invention;
Fig. 4 is that the receiving end of the game role movement synchronous method of the preferred embodiment of the present invention executes the process of concrete operations Figure;
Fig. 5 is the structural block diagram of the instruction device of motion state variation according to an embodiment of the present invention;
Fig. 6 is the structural block diagram of the instruction device of motion state variation according to the preferred embodiment of the invention;
Fig. 7 is the structural block diagram of the processing unit of motion state variation according to an embodiment of the present invention;
Fig. 8 is the structural block diagram of the processing unit of motion state variation according to the preferred embodiment of the 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.
According to embodiments of the present invention, a kind of embodiment of the indicating means of motion state variation is provided, needs to illustrate It is that step shown in the flowchart of the accompanying drawings can execute in a computer system such as a set of computer executable instructions, Also, although logical order is shown in flow charts, and it in some cases, can be to be different from sequence execution herein Shown or described step.
Fig. 1 is the flow chart of the indicating means of motion state variation according to an embodiment of the present invention, as shown in Figure 1, the party Method includes the following steps:
Step S12 determines that the current motion state of game role changes;
Step S14 sends key frame information to the game client of other games on line player in addition to itself, wherein Key frame information is used to indicate the corresponding movement to be updated of the motion state after variation and movement to be updated corresponding time;
Step S16 continues to send the synchronous letter in position to the game client of other games on line player according to predetermined period Breath, wherein the position synchronizing information persistently sent uses the opportunity of key frame information for determining, is started with obtaining game role Execute the location information of movement to be updated.
In game process, the movement for most easily producing single-play game and game on line difference is to need to change movement shape The movement of state, such as: the movement that changes the starting of horizontal velocity and stop, increase upward initial velocity jump movement, in short-term Between the movement of impact technical ability that rises sharply of acceleration.In these movements, if for the posture nothing for pedaling ground, center of gravity leans forward or swings back Method matches corresponding change in location, will violate the intuitive experience that people accumulate in long-term life, generate strong indisposed sense.On State movement of the movement for needing to change motion state referred to as to displacement sensitivity.
Through the above steps, it realizes and increases key frame information, key frame letter for the sensitive game role movement of displacement The crucial posture of breath respective action is the posture for starting to generate motion state variation, such as: starting to squat down and squat down before take-off Terminate.When the game role of game player's operation encounters a key frame during executing a movement, can use Asynchronous remote procedure call agreement (Remote Procedure Call Protocol, referred to as RPC) form is online to other The game client of game player sends a key frame information, which is used to indicate the motion state pair after variation The movement to be updated answered and movement to be updated corresponding time.Meanwhile asynchronous RPC mode can be also used at interval of fixed duration A position synchronizing information is sent to the game client of other games on line player, so that the game client of other game players End handles the position synchronizing information and key frame information of received each game role sequentially in time, and same with position The opportunity that key frame information uses is determined on the basis of step information.
Optionally, in step s 12, determine that the changed mode of current motion state may include following one:
Mode one determines that current motion state is sent out according to the control instruction of the change current motion state of game player's input Changing;
Above-mentioned control instruction can include but is not limited to: move, attack instruction, skip instruction.
Mode two determines current fortune according to the event that extraneous factor triggering current motion state changes in game environment Dynamic state changes.
I.e. game player does not issue control instruction to game role, but due to being influenced by extraneous factor in game environment And the motion state of game role is caused to change.Such as: game role remains static in mountain valley or at the uniform velocity runs State, however the attack that the unexpected game role for meeting with rival camps is initiated suddenly, lead to the trip of our game player's control Play role is surprisingly killed, and the motion state for equally also resulting in game role changes.
Optionally, can also include step performed below after determining that current motion state changes in step S12:
Step S17, control game role execute movement to be updated;
Step S18 redefines the motion state of game role, and secondary control again after movement to be updated executes Game role executes movement corresponding with the motion state redefined.
After the control instruction for receiving game player's input, the control instruction for inputting game player is needed to be converted to pair The control signal of game role is changed with controlling game role from current motion state to movement shape corresponding with control instruction State, and the corresponding movement of motion state after variation is played, the movement to displacement sensitivity is then based on to other games on line player Game client send key frame information, and change motion state movement after, game role enter completely new shape State starts the cycle over the perseveration segment for playing new state.
Fig. 2 is that the originating end of the game role movement synchronous method of the preferred embodiment of the present invention executes the process of concrete operations Figure.As shown in Fig. 2, the process may include following processing step:
Step S202, game role are in initial motion state, and it is corresponding dynamic that persistent loop plays the initial motion state Make.
Step S204, game player input a control instruction.
Step S206, client convert the control instruction that game player inputs to the game that will be controlled game player The control signal of role, and current movement shape is changed using game role operated by control information control game player State, and start to play the movement of change state.
Step S208 needs to contain to the transmission of the client of other games on line player if the movement is sensitive to displacement There is the key frame information of local time stamp.
In the preferred embodiment, above-mentioned key frame information can both be sent to other games on line by way of broadcast The client of player can also be forwarded by server.
Step S210, after the movement broadcasting for changing state terminates, game role enters completely new state, starts the cycle over and broadcasts Put the movement segment of the persistently state.
It should be noted that game role issue control instruction in implementation procedure, above-mentioned steps S204 to step S210 will be repeatedly carried out.
Step S212 starts timer at the same time, and at interval of fixed duration, client can also send a position Synchronizing information, wherein the position synchronizing information carries local timestamp.
According to embodiments of the present invention, a kind of embodiment of the processing method of motion state variation is additionally provided, needs to illustrate , step shown in the flowchart of the accompanying drawings can hold in a computer system such as a set of computer executable instructions Row, although also, logical order is shown in flow charts, and it in some cases, can be to be different from sequence herein Execute shown or described step.
Fig. 3 is the flow chart of the processing method of motion state variation according to an embodiment of the present invention, as shown in figure 3, the party Method includes the following steps:
Step S32 receives the key frame information from game client, wherein key frame information is in game client It when the current motion state of game role changes on end, is issued by game client, the movement after being used to indicate variation The corresponding movement to be updated of state and movement to be updated corresponding time;
Step S34 receives the position synchronizing information that game client is persistently sent according to the first predetermined period, wherein hold The position synchronizing information that supervention is sent uses the opportunity of key frame information for determining;
Step S36, the position synchronizing information according to key frame information and persistently sent obtain game role start to execute to The location information of the movement of update is simultaneously controlled game role and is executed movement to be updated based on location information in local client.
Optionally, in step S36, the position synchronizing information according to key frame information and persistently sent obtains game role The location information for starting to execute movement to be updated may include step performed below:
Step S361 obtains the timestamp carried in key frame information in the second predetermined period;
Step S362, the selected distance timestamp time is nearest from the position synchronizing information of lasting transmission according to timestamp Two neighboring position synchronizing information;
Step S363 carries out linear interpolation calculating using timestamp and the two neighboring position synchronizing information of selection, obtains Location information.
In a preferred embodiment, a local time can be distributed for each game role carry out mark position synchronizing information Processing progress, game settings the games update cycle (i.e. above-mentioned second predetermined period) in, access time stamp and with The immediate two position synchronizing informations of the timestamp, by linear interpolation calculate game role location information.Above-mentioned office The passage rate of portion's time is identical as natural time by default, when untreated position synchronizing information overstocks more, Slightly accelerate passage rate;Conversely, slightly slow down passage rate when untreated position synchronizing information is less, so that The storage of position synchronizing information keeps relative stability, its object is to: restore information source as far as possible when network is smooth, when network not Interpolation smoothing is kept as far as possible when stablizing.
Optionally, in step S36, the position synchronizing information control game role that according to key frame information and persistently sends Executing movement to be updated based on location information in local client may include step performed below:
Step S364 obtains the recent renewal time obtained by the second predetermined period;
Step S365 is believed in local client based on position in the case where determining that timestamp is less than recent renewal time Breath executes movement to be updated.
Whenever client complete a position synchronizing information interpolation after, compare local time (i.e. above-mentioned recent renewal when Between) and key frame information timestamp, all timestamps are changed to the state of expiring earlier than the key frame information of local time, need Overdue key frame information is extracted from caching and is subject to using and the key frame information for being later than local time can then continue It waits.If expired without key frame information, game role can maintain current state to continue cycling through and play the dynamic of current state Make segment (it typically is one section to being displaced insensitive movement segment, such as: static, at the uniform velocity running, weightless posture of standing) after It is continuous to wait;If there is key frame information expires, then the state of the movement of change immediately, starts to play the piece for entering next state Section, such as: if game role is currently at stationary state, before starting key frame information expires, it remain stationary dynamic Make loop play, and after starting key frame information expires, then start to play starting segment.So in the trip of internet game It plays on player's local client, the movement of the game role of other players can keep original rate and form substantially, simultaneously The tempo variation that can also adapt to displacement, obtains good strength sense and speed sense.
Fig. 4 is that the receiving end of the game role movement synchronous method of the preferred embodiment of the present invention executes the process of concrete operations Figure.As shown in figure 4, the process may include following processing step:
Step S402, game role are in initial motion state, and it is corresponding dynamic that persistent loop plays the initial motion state Make.
Step S404, the client of online player receive the key frame information of the game role of other game players manipulation, And cache the key frame information received.
Game client can't change initial motion state immediately after receiving key frame information, but need to close Key frame information is stored into cache list sequentially in time, and local time is waited to update.
Step S406, as local time updates, timestamp will be regarded as earlier than or equal to the key frame information of local time It expires, needs to remove from above-mentioned cache list.
Step S408, according to overdue key frame information, game role changes initial motion state, and starts to play and change The corresponding movement of change state.
Step S410, after the movement broadcasting for changing state terminates, game role enters completely new state, starts the cycle over and broadcasts Put the perseveration segment of new state.
Step S412, at the same time, game client choose in key frame information within each games update cycle The timestamp of carrying and with the immediate two position synchronizing informations of the timestamp, game role is calculated to obtain by linear interpolation Location information, and based on the mobile local corresponding game role of the location information to identical position, to realize game role Movement.
Step S414, new position synchronizing information is checked whether there is to reach;If it is, continuing to execute step S416;Such as Fruit is no, then return step S412.
Step S416 receives position synchronizing information and caches to the position synchronizing information received.
It should be noted that above-mentioned steps S404- step S416 will be repeatedly carried out in practical application scene.
According to embodiments of the present invention, a kind of embodiment of the instruction device of motion state variation is provided.Fig. 5 is according to this The structural block diagram of the instruction device of the motion state variation of inventive embodiments, as shown in figure 5, the device comprises determining that module 10, For determining that the current motion state of game role changes;First sending module 20, for in addition to itself other The game client of line game player sends key frame information, wherein key frame information is used to indicate the motion state after variation Corresponding movement to be updated and movement to be updated corresponding time;Second sending module 30, for continuing according to predetermined period Position synchronizing information is sent to the game client of other games on line player, wherein the position synchronizing information persistently sent is used In determining the opportunity for using key frame information, to obtain the location information that game role starts to execute movement to be updated.
Optionally it is determined that module 10, for determining that the changed mode of current motion state includes following one: according to The control instruction of the change current motion state of game player's input determines that current motion state changes;According to game environment The event that middle extraneous factor triggering current motion state changes determines that current motion state changes.
Optionally, Fig. 6 is the structural block diagram of the instruction device of motion state variation according to the preferred embodiment of the invention, such as Shown in Fig. 6, above-mentioned apparatus further include: control module 40 executes movement to be updated for controlling game role;Processing module 50, For redefining the motion state of game role after movement to be updated executes, and again, control game role is executed Movement corresponding with the motion state redefined.
According to embodiments of the present invention, a kind of embodiment of the processing unit of motion state variation is provided.Fig. 7 is according to this The structural block diagram of the processing unit of the motion state variation of inventive embodiments, as shown in fig. 7, the device includes: the first reception mould Block 60, for receiving the key frame information from game client, wherein key frame information is the game on game client It when the current motion state of role changes, is issued by game client, the motion state after being used to indicate variation is corresponding Movement to be updated and movement to be updated corresponding time;Second receiving module 70, for receiving game client according to The position synchronizing information that one predetermined period is persistently sent, wherein the position synchronizing information persistently sent is for determining using crucial The opportunity of frame information;Processing module 80, the position synchronizing information for according to key frame information and persistently sending obtain game angle Color start to execute the location information of movement to be updated and control game role local client be based on location information execute to The movement of update.
Optionally, Fig. 8 is the structural block diagram of the processing unit of motion state variation according to the preferred embodiment of the invention, such as Shown in Fig. 8, processing module 80 includes: first acquisition unit 800, is taken for obtaining in key frame information in the second predetermined period The timestamp of band;Selection unit 802, for according to timestamp from the position synchronizing information of lasting transmission selected distance timestamp The two neighboring position synchronizing information of time recently;Computing unit 804, for the two neighboring position using timestamp and selection Synchronizing information carries out linear interpolation calculating, obtains location information.
Optionally, as shown in figure 8, processing module 80 further include: second acquisition unit 806, it is pre- by second for obtaining If the recent renewal time that the period obtains;Execution unit 808, for determining the case where timestamp is less than recent renewal time Under, movement to be updated is executed based on location information in local client.
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: that 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 (12)

1. a kind of indicating means of motion state variation characterized by comprising
Determine that the current motion state of game role changes;
Key frame information is sent to the game client of other games on line player in addition to itself, wherein the key frame letter Breath is used to indicate the corresponding movement to be updated of the motion state after variation and the movement to be updated corresponding time;
Continue to send position synchronizing information to the game client of other games on line player according to predetermined period, wherein The position synchronizing information persistently sent is for determining the opportunity using the key frame information, to obtain the game role Start to execute the location information of the movement to be updated.
2. the method according to claim 1, wherein determining the changed mode packet of current motion state Include following one:
Determine that the current motion state occurs according to the control instruction of the change current motion state of game player's input Variation;
The event that the current motion state changes, which is triggered, according to extraneous factor in game environment determines the current kinetic State changes.
3. the method according to claim 1, wherein after determining that the current motion state changes, Further include:
It controls the game role and executes the movement to be updated;
After the movement to be updated executes, the motion state of the game role is redefined, and again described in secondary control Game role executes movement corresponding with the motion state redefined.
4. a kind of processing method of motion state variation characterized by comprising
Receive the key frame information from game client, wherein the key frame information is on the game client It when the current motion state of game role changes, is issued by the game client, the movement after being used to indicate variation The corresponding movement to be updated of state and the movement to be updated corresponding time;
Receive the position synchronizing information that the game client is persistently sent according to the first predetermined period, wherein the lasting hair The position synchronizing information sent is for determining the opportunity using the key frame information;
The game role is obtained according to the key frame information and the position synchronizing information persistently sent to start to execute institute It states the location information of movement to be updated and controls the game role and be based on location information execution institute in local client State movement to be updated.
5. according to the method described in claim 4, it is characterized in that, according to the key frame information and the position persistently sent It sets synchronizing information and obtains the game role and start to execute the location information of the movement to be updated and include:
The timestamp carried in the key frame information is obtained in the second predetermined period;
It is nearest according to the timestamp time described in timestamp selected distance from the position synchronizing information persistently sent Two neighboring position synchronizing information;
Linear interpolation calculating is carried out using the timestamp and the two neighboring position synchronizing information of the selection, obtains institute's rheme Confidence breath.
6. according to the method described in claim 5, it is characterized in that, according to the key frame information and the position persistently sent Set synchronizing information control the game role executed in the local client based on the location information it is described to be updated dynamic Work includes:
Obtain the recent renewal time obtained by second predetermined period;
In the case where determining that the timestamp is less than the recent renewal time, the position is based in the local client Information executes the movement to be updated.
7. a kind of instruction device of motion state variation characterized by comprising
Determining module, for determining that the current motion state of game role changes;
First sending module, for sending key frame information to the game client of other games on line player in addition to itself, Wherein, the key frame information is used to indicate the corresponding movement to be updated of motion state and the movement to be updated after variation The corresponding time;
Second sending module sends position to the game client of other games on line player for continuing according to predetermined period Set synchronizing information, wherein the position synchronizing information persistently sent uses the opportunity of the key frame information for determining, with The game role is obtained to start to execute the location information of the movement to be updated.
8. device according to claim 7, which is characterized in that the determining module, for determining the current kinetic shape The changed mode of state includes following one:
Determine that the current motion state occurs according to the control instruction of the change current motion state of game player's input Variation;
The event that the current motion state changes, which is triggered, according to extraneous factor in game environment determines the current kinetic State changes.
9. device according to claim 7, which is characterized in that described device further include:
Control module executes the movement to be updated for controlling the game role;
Processing module, for redefining the motion state of the game role after movement to be updated executes, and Game role described in secondary control executes movement corresponding with the motion state redefined again.
10. a kind of processing unit of motion state variation characterized by comprising
First receiving module, for receiving the key frame information from game client, wherein the key frame information be When the current motion state of game role changes on the game client, is issued, be used for by the game client The corresponding movement to be updated of motion state and the movement to be updated corresponding time after indicating variation;
Second receiving module, the synchronous letter in position persistently sent for receiving the game client according to the first predetermined period Breath, wherein the position synchronizing information persistently sent is for determining the opportunity using the key frame information;
Processing module, for obtaining the game angle according to the key frame information and the position synchronizing information persistently sent Color starts to execute the location information of the movement to be updated and control the game role to be based on institute's rheme in local client Confidence breath executes the movement to be updated.
11. device according to claim 10, which is characterized in that the processing module includes:
First acquisition unit, for obtaining the timestamp carried in the key frame information in the second predetermined period;
Selection unit, for the time according to timestamp selected distance from the position synchronizing information persistently sent Stab the two neighboring position synchronizing information of time recently;
Computing unit, by being carried out based on linear interpolation using the two neighboring position synchronizing information of the timestamp and the selection It calculates, obtains the location information.
12. device according to claim 11, which is characterized in that the processing module includes:
Second acquisition unit, for obtaining the recent renewal time obtained by second predetermined period;
Execution unit, for determine the timestamp be less than the recent renewal time in the case where, in the native client End group executes the movement to be updated in the location information.
CN201610807555.6A 2016-09-01 2016-09-01 The instruction of motion state variation, processing method and processing device Active CN106385408B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610807555.6A CN106385408B (en) 2016-09-01 2016-09-01 The instruction of motion state variation, processing method and processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610807555.6A CN106385408B (en) 2016-09-01 2016-09-01 The instruction of motion state variation, processing method and processing device

Publications (2)

Publication Number Publication Date
CN106385408A CN106385408A (en) 2017-02-08
CN106385408B true CN106385408B (en) 2019-08-16

Family

ID=57939488

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610807555.6A Active CN106385408B (en) 2016-09-01 2016-09-01 The instruction of motion state variation, processing method and processing device

Country Status (1)

Country Link
CN (1) CN106385408B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107124416B (en) * 2017-05-02 2020-10-16 阿里巴巴(中国)有限公司 Multi-avatar position synchronization system, method, device, electronic device and storage medium
CN108650217B (en) * 2018-03-21 2019-07-23 腾讯科技(深圳)有限公司 Synchronous method, device, storage medium and the electronic device of action state
CN109381858B (en) * 2018-10-22 2021-10-15 竞技世界(北京)网络技术有限公司 Position synchronization method in online game
CN109718543B (en) * 2018-12-28 2022-07-12 北京像素软件科技股份有限公司 Same-screen processing method and device
CN109758766B (en) * 2019-01-14 2021-10-22 腾讯科技(深圳)有限公司 Role state synchronization method and related device
CN110855861B (en) * 2019-10-16 2021-11-30 建荣半导体(深圳)有限公司 Online game method and device for child camera and child camera
CN111265863B (en) * 2020-01-17 2022-05-24 腾讯科技(深圳)有限公司 Target object position correction method, device, equipment and medium
CN111408132B (en) * 2020-02-17 2023-04-07 网易(杭州)网络有限公司 Game picture display method, device, equipment and storage medium
CN111459626B (en) * 2020-03-11 2021-06-01 完美世界(北京)软件科技发展有限公司 Method and device for realizing non-branching seamless game world
CN111467798B (en) * 2020-04-01 2021-09-21 腾讯科技(深圳)有限公司 Frame display method, device, terminal and storage medium in game application program
CN111494953B (en) * 2020-04-20 2023-03-28 网易(杭州)网络有限公司 Game role movement synchronization method, device, equipment and storage medium
CN113398591A (en) * 2021-06-18 2021-09-17 网易(杭州)网络有限公司 Game control method, device, equipment and storage medium
CN115025495B (en) * 2022-06-02 2023-07-07 北京新唐思创教育科技有限公司 Method and device for synchronizing character model, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101010125A (en) * 2004-08-30 2007-08-01 松下电器产业株式会社 Client terminal for executing multiplayer application, group forming method, and group forming program
KR101353531B1 (en) * 2012-09-10 2014-01-21 (주)네오위즈게임즈 Method of providing video guide, server performing the same and storage media storing the same
CN105879391A (en) * 2016-04-08 2016-08-24 腾讯科技(深圳)有限公司 Movement control method for role in game, server, and client

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4319233B2 (en) * 2007-12-11 2009-08-26 株式会社コナミデジタルエンタテインメント Terminal device, game control method, and program
JP5563541B2 (en) * 2011-10-26 2014-07-30 株式会社コナミデジタルエンタテインメント GAME SYSTEM AND SERVER DEVICE
US20130296049A1 (en) * 2012-05-04 2013-11-07 Thomas Jump System and Method for Computer Control
CN105031922B (en) * 2015-07-07 2017-04-12 网易(杭州)网络有限公司 Game data processing method, game server and game client

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101010125A (en) * 2004-08-30 2007-08-01 松下电器产业株式会社 Client terminal for executing multiplayer application, group forming method, and group forming program
KR101353531B1 (en) * 2012-09-10 2014-01-21 (주)네오위즈게임즈 Method of providing video guide, server performing the same and storage media storing the same
CN105879391A (en) * 2016-04-08 2016-08-24 腾讯科技(深圳)有限公司 Movement control method for role in game, server, and client

Also Published As

Publication number Publication date
CN106385408A (en) 2017-02-08

Similar Documents

Publication Publication Date Title
CN106385408B (en) The instruction of motion state variation, processing method and processing device
CN109847361B (en) Method and device for synchronizing motion states, storage medium and electronic device
CN106302679B (en) A kind of virtual objects movement synchronous method, client and server
CN111494953B (en) Game role movement synchronization method, device, equipment and storage medium
CN109731330B (en) Method and device for displaying picture, storage medium and electronic device
CN109672918B (en) Animation synchronous playing method and device
WO2011062662A1 (en) Synchronizing mission progress in peer-to-peer cooperative games
KR20200115304A (en) Dynamic streaming video game client
US11786812B2 (en) Systems and methods for transcribing user interface elements of a game application into haptic feedback
JP2000502276A (en) Influence of Latency on Multiplayer Video Games Reduced by Agents
CN114344892B (en) Data processing method and related device
CN108310771A (en) The execution method and apparatus of task, storage medium, electronic device
EP1604711B1 (en) Game device, game control method, and program
US20230084808A1 (en) Method and apparatus for controlling virtual race car, storage medium, and device
KR20220044589A (en) Method and device for controlling virtual manipulation object, storage medium, and electronic device
CN111589121A (en) Information display method and device, storage medium and electronic device
JP2015126775A (en) Program and server system
CN112107856A (en) Hit feedback method and device, storage medium and electronic equipment
CN111790155A (en) Online game state synchronization method, device, terminal and storage medium
CN112370782B (en) Auxiliary resource display method and device, storage medium and electronic equipment
US8676996B2 (en) System and method for variable time scale for multi-player games
JP7359558B2 (en) Program, image generation device and image generation method
JP2011200448A (en) On-line game system and server device group
WO2018091860A1 (en) Latency-tolerant responsive real-time multiplayer networking for racing videogames
US20170266553A1 (en) Program and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant