CN108525297B - Cartoon display method, device, storage medium and electronic device - Google Patents
Cartoon display method, device, storage medium and electronic device Download PDFInfo
- Publication number
- CN108525297B CN108525297B CN201810186708.9A CN201810186708A CN108525297B CN 108525297 B CN108525297 B CN 108525297B CN 201810186708 A CN201810186708 A CN 201810186708A CN 108525297 B CN108525297 B CN 108525297B
- Authority
- CN
- China
- Prior art keywords
- animation
- area
- unit
- target object
- background
- 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
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/50—Controlling the output signals based on the game progress
- A63F13/52—Controlling the output signals based on the game progress involving aspects of the displayed game scene
-
- 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/45—Controlling the progress of the video game
-
- 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/55—Controlling game characters or game objects based on the game progress
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Human Computer Interaction (AREA)
- Processing Or Creating Images (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a kind of cartoon display method, device, storage medium and electronic devices.Wherein, this method comprises: the first operational order of detection, wherein first operational order, which is used to indicate, executes the first operation to the target object in first area;The first animation is shown in the first area, wherein first animation is used to indicate the operating result of first operation;In the case where the target object meets goal condition, the second animation is shown in second area, wherein, second animation executes the second operation associated with first operation to the first object for indicating, first object is associated with the target object.The present invention solves the relatively simple technical problem of the animation effect shown in client.
Description
Technical field
The present invention relates to animation process field, in particular to a kind of cartoon display method, device, storage medium and
Electronic device.
Background technique
When showing animation in the client, prospect animation and background animation are separation, the region where prospect animation
When being operated, background animation is not interacted with prospect animation, it is shown that single animation.For example, where prospect animation
Region carry out A operation when, A animation is shown in the region where background animation;B behaviour is carried out in the region where prospect animation
When making, A animation is still shown in the region where background animation, so that the animation effect shown in client is relatively simple.
For above-mentioned problem, currently no effective solution has been proposed.
Summary of the invention
The embodiment of the invention provides a kind of cartoon display method, device, storage medium and electronic devices, at least to solve
The relatively simple technical problem of the animation effect shown in client.
According to an aspect of an embodiment of the present invention, a kind of cartoon display method is provided, comprising: the first operation of detection refers to
It enables, wherein first operational order, which is used to indicate, executes the first operation to the target object in first area;Described first
The first animation is shown in region, wherein first animation is used to indicate the operating result of first operation;In the target
In the case that object meets goal condition, animation is shown in second area, wherein second animation is for indicating to the
An object executes the second operation associated with first operation, and first object is associated with the target object.
According to another aspect of an embodiment of the present invention, a kind of animation display device is additionally provided, comprising: detection unit is used
In detecting the first operational order, wherein first operational order, which is used to indicate, executes the to the target object in first area
One operation;First display unit, for showing the first animation in the first area, wherein first animation is used for table
Show the operating result of first operation;Second display unit, in the case where the target object meets goal condition,
The second animation is shown in second area, wherein second animation executes the first object and first behaviour for indicating
Make associated second operation, first object is associated with the target object.
According to another aspect of an embodiment of the present invention, a kind of storage medium is additionally provided, which is characterized in that the storage is situated between
Computer program is stored in matter, wherein the computer program is arranged to execute above-mentioned method when operation.
According to another aspect of an embodiment of the present invention, a kind of electronic device, including memory and processor are additionally provided,
It is characterized in that, computer program is stored in the memory, and the processor is arranged to hold by the computer program
The above-mentioned method of row.
In embodiments of the present invention, the first operation target object executed in first area, the operation knot of the first operation
Fruit interacts with the second animation generation shown in second area, i.e. the second animation is relevant with the first operation, to solve
It is richer to have reached the animation for show in second area for the prior art technical problem relatively simple when showing animation
Rich technical effect.
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 schematic diagram of the network architecture according to an embodiment of the present invention;
Fig. 2 is the flow chart of cartoon display method according to an embodiment of the present invention;
Fig. 3 is according to an embodiment of the present invention in first area and second area schematic diagram;
Fig. 4 is the schematic diagram of the animation of attack operation according to an embodiment of the present invention;
Fig. 5 is the schematic diagram of the animation of attack snail according to an embodiment of the present invention;
Fig. 6 is the schematic diagram of display third animation according to an embodiment of the present invention;
Fig. 7 is the schematic diagram of the animation according to an embodiment of the present invention that the check-in succeeds;
Fig. 8 is the schematic diagram of the animation according to an embodiment of the present invention that failed;
Fig. 9 is the interaction figure of background animation unit according to an embodiment of the present invention;
Figure 10 is the schematic diagram of animation play process according to an embodiment of the present invention;
Figure 11 is the schematic diagram of animation display device according to an embodiment of the present invention;
Figure 12 is the schematic diagram of electronic device 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.
According to an aspect of an embodiment of the present invention, a kind of cartoon display method is provided.In the present embodiment, above-mentioned dynamic
Drawing display methods can be applied in the hardware environment that terminal 101 and server 102 as shown in Figure 1 are constituted.Such as Fig. 1 institute
Show, terminal 101 is attached by network with server 102, and above-mentioned network includes but is not limited to: wide area network, Metropolitan Area Network (MAN) or office
Domain net, terminal 101 can be mobile phone terminal, be also possible to PC terminal, notebook terminal or tablet computer terminal.
Fig. 2 is the flow chart of cartoon display method according to an embodiment of the present invention.As shown in Fig. 2, the cartoon display method
Include:
Step S202 detects the first operational order, wherein the first operational order is used to indicate to the target in first area
Object executes the first operation.
The cartoon display method can be using in the client.Two regions, respectively the firstth area are shown in the client
Domain and second area.Second area may include partly or completely first area.For example, second area is background animation
Display area, first area are the display areas of prospect animation, and first area may be at the upper surface of second area, second area
It can be around first area, alternatively, being in the lower section of first area and including first area.It include first in second area
In the case where region, in the range of the animation shown on second area may be at where first area.
First operational order can be issued by user, and target object can be any one object in first area.The
It may include the object of multiple and different types in one region, the first operational order, which can be, carries out mobile finger to target object
It enables.First operation, which can be, executes moving operation to target object, so that the target object after mobile is identical as other at least two
The object of type draws a straight line, or target object and the object of other at least two same types is made to form preboarding
Shape, e.g., the square of the object composition of multiple same types, cross, triangle etc..First operation is held in first area
Row.
Step S204 shows the first animation in first area, wherein the first animation is used to indicate the operation of the first operation
As a result.
First animation is corresponding with the operating result of the first operation.The corresponding different operating result of different operations, also
Corresponding different animation.For example, the object (identical as the type of target object) at least two same type draws a straight line
In the case where, the object of the multiple same types to draw a straight line disappears out of first area, shows corresponding related animation.?
In the case where the object group across of at least two same type, the objects of criss-cross multiple same types is formed from first
It disappears in region, shows corresponding related animation.Although being all that the object of same type disappears out of first area, it is multiple
Animation corresponding to the different shape of object composition is different.
Step S206 shows the second animation in the case where target object meets goal condition in second area,
In, the second animation executes the second operation associated with the first operation, the first object and target pair to the first object for indicating
As associated.
There are multiple objects in first area, if the target object that the first operation executes meets goal condition, the
The second animation is shown in two regions.Target object and the first object have incidence relation, then to target object in first area
After executing operation, correspondingly, executing the second operation to the first object in second area.Wherein, the first object is shown in second
In region.It is same or different role that the first object relevant to target object, which can be with target object,.For example,
In the case that an object and target object are same role, when eliminating the target object in first area by the first operation,
The second animation that the first object is attacked in display in second area.In the feelings that the first object and target object are different role
Under condition, when eliminating the target object in first area by the first operation, show that the first object attacks opponent in second area
The second animation, the second object attack opponent can with target object be same role.
In the present embodiment, in the first operation that first area executes target object, the operating result and the of the first operation
The second animation shown in two regions generates interaction, i.e. the second animation is relevant with the first operation, to solve existing
The technology technical problem relatively simple when showing animation has reached the animation skill more abundant for making to show in second area
Art effect.
Optionally, in the case where target object meets goal condition, shown in second area the second animation include:
First operation is eliminates the target object in first area, and target object is associated with the first object in second area
In the case of, the second animation is shown in second area, wherein the second animation carries out attack operation to the first object for indicating,
Second operation includes attack operation.
As shown in figure 3, multiple hexagonal groups at chessboard where region be first area, first area is removed in the picture
Region in addition can be that the whole region (including first area) of second area or the picture is second area.This is sentenced
Region in picture in addition to first area is to be illustrated for second area.
Having role suslik 31 (target object) in the middle section of the first area of Fig. 3, second area shows suslik 33, with
And beat the Little Bear 32 of suslik.The target object suslik 31 is that have incidence relation with the role suslik 33 in second area, i.e.,
Target object meets goal condition, i.e., the object in the first operation performed object and second area has incidence relation.Such as
Shown in Fig. 4, in the case where the first object is suslik 33,3 susliks are made to be linked to be predetermined shape in first area, to disappear
Except suslik.The Little Bear 32 shown in second area attacks suslik 33.
In another embodiment, the first object and target object are different types of role.Such as the first area of Fig. 4
Middle kitten 41 is target object, and the first object is Little Bear 32 in second area, then carries out first to kitten 41 in first area
Operation, the then kitten eliminated attack the Little Bear 32 in second area.
For example, operated as shown in figure 5, executing first to snail 51 in first area, it is correspondingly, small in second area
Bear police officer 52 executes attack operation to the snail 53 in second area.
Optionally, after the second animation is shown in second area, method further include: operated first to eliminate the firstth area
Target object in domain, and operating result triggers in the case where carrying out attack operation to the second object in second area,
Third animation is shown in second area, wherein third animation is for prompting the operation under attack of the second object.
As shown in fig. 6, target object is the door 61 (i.e. target object) in Fig. 6,61 the is executed on the door in the first region
After one operation, the operating result of generation is attacked the dirigible 62 (i.e. the second object) in second area, at this point, in Fig. 6
Second area in display reminding animation (i.e. third animation), the prompt animation prompt dirigible 62 attacked.
In the present embodiment, after having executed the first operation, if current outpost is completed, can first area and/
Or the animation shown in Fig. 7 that the check-in succeeds is played in second area;If current outpost failure, can first area and/
Or the animation shown in Fig. 8 that failed is played in second area.Under normal circumstances, above-mentioned rush can be played in second area
The animation that closes successful animation and failed.It should be noted that dead without sliding step number or chessboard in first area
When office, the animation that failed is played.Sliding step number refers to that regulation can slide object in first area and complete to prolong six in one innings
The number for the operation slided in any one of shape;The dead office of chessboard refers to, can not pass through one object of sliding in one innings of game
So that the object of three same types is linked to be straight line.Whithin a period of time, any operation is not detected in first area
In the case of, leisure animation is shown in first area and second area.The leisure animation may include multiple angles in second area
The animation of color can also include the animation of multiple roles in first area.
Optionally, before the second animation is shown in second area, method further include: to multiple background animations of client
Unit sends broadcast message, wherein broadcast message, which is used to indicate, plays the second animation, and each background animation unit is associated with the secondth area
An object in domain shows first area and second area in client.
The corresponding background animation unit of each object in the client, each background animation unit storage corresponding object
Animation data, and handle animation data and make that animation relevant to the first operation can be played in second area.
It is illustrated below in conjunction with Fig. 9.
1.0 users execute slide.For example, user slides the target object in first area, elimination and target object
The identical object of type.
1.1 processing game logics generate animation data.Game logic generates animation data according to slide.
1.2 submit animation data.Game logic submits animation data to animation main logic.
Animation in 1.3 processing chessboards.Animation main logic handles the animation in chessboard.
1.4 show the animation in chessboard to user.Animation main logic shows the animation in chessboard in first area, with to
User shows animation.
1.5 broadcast background animation message.Animation main logic is to all background animation cell broadcast background animation message.This is dynamic
Drawing message can be that the check-in succeeds, failed, first object of attack etc..
1.6 call general-purpose interface to load animation data.The general-purpose interface of background animation cell call oneself heavy duty is by animation
Message is converted into animation data, is put into the animation queue of oneself.
1.7 activation factum trees, playing animation.Behavior tree is provided in background animation unit, behavior tree can be true
The playing sequence for determining animation in animation queue calls the animation in animation queue using behavior tree, to complete in second area
Interior playing animation.
1.8 show the animation of chessboard background to user.
Optionally, in the case where target object meets goal condition, show that the second animation includes: visitor in second area
The background animation unit at family end receives broadcast message, wherein broadcast message, which is used to indicate, plays the second animation, background animation unit
For showing the second animation of the first object in second area, first area and second area are shown in client;Background is dynamic
Draw the animation data that unit searches the second animation according to broadcast message;The animation data found is inserted by background animation unit
Play queue;Background animation unit plays in order the animation data played in queue.
Background animation unit is converted to animation data after receiving broadcast message, by broadcast message, i.e., dynamic from background
Draw the animation that the indicated object of broadcast message is searched in unit.For example, broadcast message instruction is the dynamic of Little Bear attack suslik
It draws, then the corresponding background animation unit of Little Bear role searches the animation of Little Bear attack suslik, the corresponding background animation of suslik role
Unit searches suslik animation under attack, to show the animation of Little Bear attack suslik in the second area.Wherein, Little Bear is attacked
The movement decomposition for hitting suslik is multiple sub- movements, and multiple sub- movements are put into and play queue to play multiple sub- movements, for example,
Lift the movement of hammer, put down hammer movement all can serve as Little Bear attack suslik son movement, by this it is a little movement be put into
It is to be played to play queue etc..
Optionally, before background animation unit searches the animation data of the second animation according to broadcast message, method is also wrapped
Include: background animation unit receives animation more new command, and animation more new command is used to indicate the animation data progress to the first object
It updates;The store-updated animation data of background animation unit;Background animation unit is that the setting of updated animation data is called
Interface plays updated animation data will pass through calling interface.
Due to the corresponding background animation unit of each cartoon role shown in second area, in the animation of more new role
When, the animation of the update of role is inserted into the corresponding background animation unit of role, when calling the animation data of the role, just
It can directly be called in the background animation unit.That is, each background animation unit has the ability of independent play-out animation, the
Animation in one region and second area can respond simultaneously, improve the treatment effeciency of animation.
When using behavior tree to call animation data, the son of behavior tree corresponding to the animation of the update is pre-set
Node type, when behavior tree runs the animation in animation queue, according to the animation number in the type search animation queue of child node
According to realize the broadcasting of animation.
Specifically, the heavily loaded side for realizing oneself animation data to be treated in each independent background animation unit
Method is translated into animation data insertion queue when receiving the animated message of broadcast, and last operation action tree is dynamic to play
It draws.Such as: Actor1 by ReceiveEvent (Msg) receive broadcast notice need to call game winnings animation when, call oneself
The PlayWin () of heavy duty generates new animation data and is inserted into actionList by AddAction (), finally called
RunBehaviorTree () operation action tree.
Illustrate the cartoon display method of the present embodiment by taking Figure 10 as an example.
In eliminating class game, player, which triggers, to be eliminated.
Judge whether there is the chess piece for belonging to clearance condition in the chess piece eliminated, is moved if it is, chessboard background plays to collect
It draws, if it is not, then judging whether have and the associated chess piece of background animation in the chess piece eliminated.
In the case where having chess piece associated with background animation in judging the chess piece eliminated, plays and blame in chessboard background
Object is hit animation.
After the completion of waiting animation play, judge whether game terminates.
If game over, judge whether game wins, if triumph, chessboard background plays triumph animation, if it fails,
Chessboard background plays failure animation.
If game is not over, judge whether the leading role in chessboard is in the hole.
If the leading role in chessboard is in the hole, chessboard background plays the animation that leading role is in jeopardy.If main
Angle is not in precarious position, then waits player to slide, if waiting time-out, chessboard background plays leisure animation.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of
Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because
According to the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know
It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules is not necessarily of the invention
It is necessary.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation
The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much
In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing
The part that technology contributes can be embodied in the form of software products, which is stored in a storage
In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate
Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Other side according to an embodiment of the present invention additionally provides a kind of for implementing the dynamic of above-mentioned cartoon display method
Draw display device.Figure 11 is the schematic diagram of animation display device according to an embodiment of the present invention.As shown in figure 11, which shows
Device includes: detection unit 1102, the first display unit 1104 and the second display unit 1106.
Detection unit 1102, for detecting the first operational order, wherein first operational order is used to indicate to first
Target object in region executes the first operation;
The cartoon display method can be using in the client.Two regions, respectively the firstth area are shown in the client
Domain and second area.Second area may include partly or completely first area.For example, second area is background animation
Display area, first area are the display areas of prospect animation, and first area may be at the upper surface of second area, second area
It can be around first area, alternatively, being in the lower section of first area and including first area.It include first in second area
In the case where region, in the range of the animation shown on second area may be at where first area.
First operational order can be issued by user, and target object can be any one object in first area.The
It may include the object of multiple and different types in one region, the first operational order, which can be, carries out mobile finger to target object
It enables.First operation, which can be, executes moving operation to target object, so that the target object after mobile is identical as other at least two
The object of type draws a straight line, or target object and the object of other at least two same types is made to form preboarding
Shape, e.g., the square of the object composition of multiple same types, cross, triangle etc..First operation is held in first area
Row.
First display unit 1104, for showing the first animation in the first area, wherein first animation is used
In the operating result for indicating first operation;
First animation is corresponding with the operating result of the first operation.The corresponding different operating result of different operations, also
Corresponding different animation.For example, the object (identical as the type of target object) at least two same type draws a straight line
In the case where, the object of the multiple same types to draw a straight line disappears out of first area, shows corresponding related animation.?
In the case where the object group across of at least two same type, the objects of criss-cross multiple same types is formed from first
It disappears in region, shows corresponding related animation.Although being all that the object of same type disappears out of first area, it is multiple
Animation corresponding to the different shape of object composition is different.
Second display unit 1106, in the case where the target object meets goal condition, in second area
Show the second animation, wherein second animation executes associated with first operation the to the first object for indicating
Two operations, first object are associated with the target object.
There are multiple objects in first area, if the target object that the first operation executes meets goal condition, the
The second animation is shown in two regions.Target object and the first object have incidence relation, then to target object in first area
After executing operation, correspondingly, executing the second operation to the first object in second area.Wherein, the first object is shown in second
In region.It is same or different role that the first object relevant to target object, which can be with target object,.For example,
In the case that an object and target object are same role, when eliminating the target object in first area by the first operation,
The second animation that the first object is attacked in display in second area.In the feelings that the first object and target object are different role
Under condition, when eliminating the target object in first area by the first operation, show that the first object attacks opponent in second area
The second animation, the second object attack opponent can with target object be same role.
In the present embodiment, in the first operation that first area executes target object, the operating result and the of the first operation
The second animation shown in two regions generates interaction, i.e. the second animation is relevant with the first operation, to solve existing
The technology technical problem relatively simple when showing animation has reached the animation skill more abundant for making to show in second area
Art effect.
Optionally, second display unit includes: the first display module, for being described in elimination in first operation
The target object in first area, and the target object is associated with first object in the second area
In the case where, the second animation is shown in the second area, wherein second animation is for indicating to first object
Attack operation is carried out, second operation includes the attack operation.
As shown in figure 3, multiple hexagonal groups at chessboard where region be first area, first area is removed in the picture
Region in addition can be that the whole region (including first area) of second area or the picture is second area.This is sentenced
Region in picture in addition to first area is to be illustrated for second area.
Having role suslik 31 (target object) in the middle section of the first area of Fig. 3, second area shows suslik 33, with
And beat the Little Bear 32 of suslik.The target object suslik 31 is that have incidence relation with the role suslik 33 in second area, i.e.,
Target object meets goal condition, i.e., the object in the first operation performed object and second area has incidence relation.Such as
Shown in Fig. 4, in the case where the first object is suslik 33,3 susliks are made to be linked to be predetermined shape in first area, to disappear
Except suslik.The Little Bear 32 shown in second area attacks suslik 33.
In another embodiment, the first object and target object are different types of role.Such as the first area of Fig. 4
Middle kitten 41 is target object, and the first object is Little Bear 32 in second area, then carries out first to kitten 41 in first area
Operation, the then kitten eliminated attack the Little Bear 32 in second area.
For example, operated as shown in figure 5, executing first to snail 51 in first area, it is correspondingly, small in second area
Bear police officer 52 executes attack operation to the snail 53 in second area.
Optionally, described device further include: third display unit, for showing that described second is dynamic in the second area
After picture, in first operation to eliminate the target object in the first area, and the operating result is triggered
In the case where carrying out attack operation to the second object in the second area, third animation is shown in the second area,
Wherein, the third animation is for prompting second object by the attack operation.
As shown in fig. 6, target object is the door 61 (i.e. target object) in Fig. 6,61 the is executed on the door in the first region
After one operation, the operating result of generation is attacked the dirigible 62 (i.e. the second object) in second area, at this point, in Fig. 6
Second area in display reminding animation (i.e. third animation), the prompt animation prompt dirigible 62 attacked.
In the present embodiment, after having executed the first operation, if current outpost is completed, can first area and/
Or the animation shown in Fig. 7 that the check-in succeeds is played in second area;If current outpost failure, can first area and/
Or the animation shown in Fig. 8 that failed is played in second area.Under normal circumstances, above-mentioned rush can be played in second area
The animation that closes successful animation and failed.It should be noted that dead without sliding step number or chessboard in first area
When office, the animation that failed is played.Sliding step number refers to that regulation can slide object in first area and complete to prolong six in one innings
The number for the operation slided in any one of shape;The dead office of chessboard refers to, can not pass through one object of sliding in one innings of game
So that the object of three same types is linked to be straight line.Whithin a period of time, any operation is not detected in first area
In the case of, leisure animation is shown in first area and second area.The leisure animation may include multiple angles in second area
The animation of color can also include the animation of multiple roles in first area.
Optionally, described device further include: transmission unit, for shown in the second area second animation it
Before, it sends and broadcasts the message to multiple background animation units of client, wherein the broadcast message, which is used to indicate, plays described the
Two animations, each background animation unit are associated with an object in the second area, show in the client
State first area and the second area.
The corresponding background animation unit of each object in the client, each background animation unit storage corresponding object
Animation data, and handle animation data and make that animation relevant to the first operation can be played in second area.
Optionally, second display unit includes background animation unit, and the background animation unit is arranged in client
In, the background animation unit includes: receiving module, for receiving broadcast message, wherein the broadcast message, which is used to indicate, to be broadcast
Second animation is put, the background animation unit is used to show that described the second of first object moves in the second area
It draws, shows the first area and the second area in the client;Searching module, for according to the broadcast message
Search the animation data of second animation;It is inserted into module, for the animation data found to be inserted into broadcasting queue;
Playing module, for plaing in order the animation data in the broadcasting queue.
Background animation unit is converted to animation data after receiving broadcast message, by broadcast message, i.e., dynamic from background
Draw the animation that the indicated object of broadcast message is searched in unit.For example, broadcast message instruction is the dynamic of Little Bear attack suslik
It draws, then the corresponding background animation unit of Little Bear role searches the animation of Little Bear attack suslik, the corresponding background animation of suslik role
Unit searches suslik animation under attack, to show the animation of Little Bear attack suslik in the second area.Wherein, Little Bear is attacked
The movement decomposition for hitting suslik is multiple sub- movements, and multiple sub- movements are put into and play queue to play multiple sub- movements, for example,
Lift the movement of hammer, put down hammer movement all can serve as Little Bear attack suslik son movement, by this it is a little movement be put into
It is to be played to play queue etc..
Optionally, the background animation unit further include: receiving module is used in the background animation unit according to
Before broadcast message searches the animation data of second animation, animation more new command is received, the animation more new command is used for
Instruction is updated the animation data of first object;Memory module is used for store-updated animation data;Mould is set
Block, for calling interface to be arranged for the updated animation data, after it will pass through the calling interface broadcasting update
Animation data.
Due to the corresponding background animation unit of each cartoon role shown in second area, in the animation of more new role
When, the animation of the update of role is inserted into the corresponding background animation unit of role, when calling the animation data of the role, just
It can directly be called in the background animation unit.That is, each background animation unit has the ability of independent play-out animation, the
Animation in one region and second area can respond simultaneously, improve the treatment effeciency of animation.
When using behavior tree to call animation data, the son of behavior tree corresponding to the animation of the update is pre-set
Node type, when behavior tree runs the animation in animation queue, according to the animation number in the type search animation queue of child node
According to realize the broadcasting of animation.
Another aspect according to an embodiment of the present invention additionally provides a kind of for implementing the display methods of above-mentioned animation
Electronic device, as shown in figure 12, which includes, including memory and processor, is stored with computer in the memory
Program, the processor are arranged to execute the step in any of the above-described embodiment of the method by computer program.
Optionally, Figure 12 is a kind of structural block diagram of electronic device according to an embodiment of the present invention.As shown in figure 12, the electricity
Sub-device may include: one or more (one is only shown in figure) processor 1201, at least one communication bus 1202, user
Interface 1203, at least one transmitting device 1204 and memory 1205.Wherein, communication bus 1202 for realizing these components it
Between connection communication.Wherein, user interface 1203 may include display 1206 and keyboard 1207.Transmitting device 1204 is optional
It may include the wireline interface and wireless interface of standard.
Optionally, in the present embodiment, above-mentioned electronic device can be located in multiple network equipments of computer network
At least one network equipment.
Optionally, in the present embodiment, above-mentioned processor can be set to execute following steps by computer program:
S1 detects the first operational order, wherein first operational order is used to indicate to the target pair in first area
As executing the first operation;
S2 shows the first animation in the first area, wherein first animation is for indicating first operation
Operating result;
S3 shows animation in the case where the target object meets goal condition in second area, wherein institute
State the second animation for indicate to the first object execute it is associated with first operation second operate, first object and
The target object is associated.
Optionally, it will appreciated by the skilled person that structure shown in Figure 12 is only to illustrate, electronic device can also
To be smart phone (such as Android phone, iOS mobile phone), tablet computer, palm PC and mobile internet device
The terminal devices such as (Mobile Internet Devices, MID), PAD.Figure 12 it does not make to the structure of above-mentioned electronic device
At restriction.For example, electronic device may also include more or less component (such as network interface, display dress than shown in Figure 12
Set), or with the configuration different from shown in Figure 12.
Wherein, memory 1205 can be used for storing software program and module, as the animation in the embodiment of the present invention is shown
Corresponding program instruction/the module of method and apparatus, the software program that processor 1201 is stored in memory 1205 by operation
And module realizes above-mentioned cartoon display method thereby executing various function application and data processing.Memory 1205
It may include high speed random access memory, can also include nonvolatile memory, such as one or more magnetic storage device dodges
It deposits or other non-volatile solid state memories.In some instances, memory 1205 can further comprise relative to processor
1201 remotely located memories, these remote memories can pass through network connection to terminal.The example of above-mentioned network includes
But be not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Above-mentioned transmitting device 1204 is used to that data to be received or sent via a network.Above-mentioned network specific example
It may include cable network and wireless network.In an example, transmitting device 1204 includes a network adapter (Network
Interface Controller, NIC), can be connected by cable with other network equipments with router so as to interconnection
Net or local area network are communicated.In an example, transmitting device 1204 is radio frequency (Radio Frequency, RF) module,
For wirelessly being communicated with internet.
Wherein, specifically, memory 1205 is for storing goal condition and animation.
In the present embodiment, in the first operation that first area executes target object, the operating result and the of the first operation
The second animation shown in two regions generates interaction, i.e. the second animation is relevant with the first operation, to solve existing
The technology technical problem relatively simple when showing animation has reached the animation skill more abundant for making to show in second area
Art effect.
The embodiment of the invention also provides a kind of storage medium, computer program is stored in the storage medium, wherein should
Computer program is arranged to execute the step in any of the above-described embodiment of the method when operation.
Optionally, in the present embodiment, above-mentioned storage medium can be set to store by executing based on following steps
Calculation machine program:
S1 detects the first operational order, wherein first operational order is used to indicate to the target pair in first area
As executing the first operation;
S2 shows the first animation in the first area, wherein first animation is for indicating first operation
Operating result;
S3 shows animation in the case where the target object meets goal condition in second area, wherein institute
State the second animation for indicate to the first object execute it is associated with first operation second operate, first object and
The target object is associated.
Optionally, storage medium is also configured to store the computer program for executing following steps: the first behaviour of detection
It instructs, wherein first operational order, which is used to indicate, executes the first operation to the target object in first area;Described
The first animation is shown in first area, wherein first animation is used to indicate the operating result of first operation;Described
In the case that target object meets goal condition, the second animation is shown in second area, wherein second animation is used for table
Show and the second operation associated with first operation is executed to the first object, first object is related to the target object
Connection.
Optionally, in the case where the target object meets goal condition, the second animation packet is shown in second area
It includes: in first operation to eliminate the target object in the first area, and the target object and described the
In the associated situation of the first object in two regions, the second animation is shown in the second area, wherein described
Two animations carry out attack operation to first object for indicating, second operation includes the attack operation.
Optionally, after second animation is shown in the second area, the method also includes: described first
Operation is eliminates the target object in the first area, and operating result triggering is in the second area
In the case that second object carries out attack operation, third animation is shown in the second area, wherein the third animation is used
In prompt second object by the attack operation.
Optionally, before second animation is shown in the second area, the method also includes: to client
Multiple background animation units send broadcast message, wherein the broadcast message, which is used to indicate, plays second animation, Mei Gesuo
The object that background animation unit is associated in the second area is stated, shows the first area and institute in the client
State second area.
Optionally, in the case where the target object meets the goal condition, institute is shown in the second area
It states the background animation unit that the second animation includes: client and receives broadcast message, wherein the broadcast message is used to indicate broadcasting
Second animation, the background animation unit are used to show that described the second of first object moves in the second area
It draws, shows the first area and the second area in the client;The background animation unit is according to the broadcast
Message searches the animation data of second animation;The animation data found is inserted into and broadcasts by the background animation unit
Put queue;The background animation unit plays in order the animation data in the broadcasting queue.
Optionally, the background animation unit according to the broadcast message search second animation animation data it
Before, animation more new command is received the method also includes: the background animation unit, and the animation more new command is used to indicate pair
The animation data of first object is updated;The store-updated animation data of background animation unit;The background
Animation unit is that calling interface is arranged in the updated animation data, after it will pass through the calling interface broadcasting update
Animation data.
Optionally, storage medium is also configured to store for executing step included in the method in above-described embodiment
Computer program, this is repeated no more in the present embodiment.
Optionally, in the present embodiment, those of ordinary skill in the art will appreciate that in the various methods of above-described embodiment
All or part of the steps be that the relevant hardware of terminal device can be instructed to complete by program, the program can store in
In one computer readable storage medium, storage medium may include: flash disk, read-only memory (Read-Only Memory,
ROM), random access device (RandomAccess Memory, RAM), disk or CD etc..
If the integrated unit in above-described embodiment is realized in the form of SFU software functional unit and as independent product
When selling or using, it can store in above-mentioned computer-readable storage medium.Based on this understanding, skill of the invention
Substantially all or part of the part that contributes to existing technology or the technical solution can be with soft in other words for art scheme
The form of part product embodies, which is stored in a storage medium, including some instructions are used so that one
Platform or multiple stage computers equipment (can be personal computer, server or network equipment etc.) execute each embodiment institute of the present invention
State all or part of the steps of method.
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 client, it can be by others side
Formula is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, and only one
Kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
It is desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed it is mutual it
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
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
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.
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 cartoon display method characterized by comprising
Detect the first operational order, wherein first operational order, which is used to indicate, executes the target object in first area
First operation;
The first animation is shown in the first area, wherein first animation is used to indicate the operation of first operation
As a result;
In the case where the target object meets goal condition, the second animation is shown in second area, wherein described second
Animation executes the second operation associated with first operation, first object and the mesh to the first object for indicating
It is associated to mark object;
Wherein, in the case where the target object meets the goal condition, described second is shown in the second area
Animation includes: that the background animation unit of client receives broadcast message, wherein the broadcast message, which is used to indicate, plays described the
Two animations, the background animation unit is used to show second animation of first object in the second area, described
The first area and the second area are shown in client;The background animation unit is searched according to the broadcast message
The animation data of second animation;The animation data found is inserted into broadcasting queue by the background animation unit;
The background animation unit plays in order the animation data in the broadcasting queue.
2. the method according to claim 1, wherein in the case where the target object meets goal condition,
Show that the second animation includes: in second area
In first operation to eliminate the target object in the first area, and the target object and described the
In the associated situation of the first object in two regions, the second animation is shown in the second area, wherein described
Two animations carry out attack operation to first object for indicating, second operation includes the attack operation.
3. the method according to claim 1, wherein shown in the second area second animation it
Afterwards, the method also includes:
In first operation to eliminate the target object in the first area, and operating result triggering is to institute
In the case where stating the second object progress attack operation in second area, third animation is shown in the second area, wherein
The third animation is for prompting second object by the attack operation.
4. the method according to claim 1, wherein shown in the second area second animation it
Before, the method also includes:
Broadcast message is sent to multiple background animation units of the client, wherein the broadcast message is used to indicate
Second animation is played, each background animation unit is associated with an object in the second area, the client
On show the first area and the second area.
5. the method according to claim 1, wherein being looked into the background animation unit according to the broadcast message
It looks for before the animation data of second animation, the method also includes:
The background animation unit receives animation more new command, and the animation more new command is used to indicate to first object
Animation data is updated;
The store-updated animation data of background animation unit;
The background animation unit is that calling interface is arranged in the updated animation data, is broadcast with will pass through the calling interface
Put the updated animation data.
6. a kind of animation display device characterized by comprising
Detection unit, for detecting the first operational order, wherein first operational order is used to indicate in first area
Target object executes the first operation;
First display unit, for showing the first animation in the first area, wherein first animation is for indicating institute
State the operating result of the first operation;
Second display unit, for showing second in second area in the case where the target object meets goal condition
Animation, wherein second animation executes the second operation associated with first operation, institute to the first object for indicating
It is associated with the target object to state the first object;
Wherein, second display unit includes background animation unit, and the background animation unit setting is in the client, described
Background animation unit includes: receiving module, for receiving broadcast message, wherein the broadcast message is used to indicate described in broadcasting
Second animation, the background animation unit are used to show second animation of first object, institute in the second area
It states and shows the first area and the second area in client;Searching module, for being searched according to the broadcast message
The animation data of second animation;It is inserted into module, for the animation data found to be inserted into broadcasting queue;It plays
Module, for plaing in order the animation data in the broadcasting queue.
7. device according to claim 6, which is characterized in that second display unit includes:
First display module eliminates the target object in the first area, and institute for operating described first
It states in target object situation associated with first object in the second area, is shown in the second area
Two animations, wherein second animation carries out attack operation to first object for indicating, second operation includes institute
State attack operation.
8. device according to claim 6, which is characterized in that described device further include:
Third display unit is to disappear in first operation after showing second animation in the second area
Except the target object in the first area, and operating result triggering is to the second object in the second area
In the case where carrying out attack operation, third animation is shown in the second area, wherein the third animation is for prompting institute
The second object is stated by the attack operation.
9. device according to claim 6, which is characterized in that described device further include:
Transmission unit, for before showing second animation in the second area, Xiang Suoshu client it is multiple described
Background animation unit sends broadcast message, wherein the broadcast message, which is used to indicate, plays second animation, each back
Scape animation unit is associated with an object in the second area, and the first area and described are shown in the client
Two regions.
10. device according to claim 6, which is characterized in that the background animation unit further include:
Receiving module, for searching the animation data of second animation according to the broadcast message in the background animation unit
Before, animation more new command is received, the animation more new command, which is used to indicate, carries out more the animation data of first object
Newly;
Memory module is used for store-updated animation data;
Setup module is played for calling interface to be arranged for the updated animation data with will pass through the calling interface
The updated animation data.
11. a kind of storage medium, which is characterized in that be stored with computer program in the storage medium, wherein the computer
Program is arranged to execute method described in any one of claim 1 to 5 when operation.
12. a kind of electronic device, including memory and processor, which is characterized in that be stored with computer journey in the memory
Sequence, the processor are arranged to execute side described in any one of claim 1 to 5 by the computer program
Method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810186708.9A CN108525297B (en) | 2018-03-07 | 2018-03-07 | Cartoon display method, device, storage medium and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810186708.9A CN108525297B (en) | 2018-03-07 | 2018-03-07 | Cartoon display method, device, storage medium and electronic device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108525297A CN108525297A (en) | 2018-09-14 |
CN108525297B true CN108525297B (en) | 2019-05-24 |
Family
ID=63486491
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810186708.9A Active CN108525297B (en) | 2018-03-07 | 2018-03-07 | Cartoon display method, device, storage medium and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108525297B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111111185B (en) * | 2019-12-02 | 2022-03-11 | 腾讯科技(深圳)有限公司 | Target animation playing method and device, storage medium and electronic device |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102193719A (en) * | 2010-03-15 | 2011-09-21 | 联想(北京)有限公司 | Display method and display terminal |
CN103902188A (en) * | 2012-12-26 | 2014-07-02 | 联想(北京)有限公司 | Information processing method and electronic device |
CN104111780A (en) * | 2014-06-30 | 2014-10-22 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN104391710A (en) * | 2014-12-15 | 2015-03-04 | 北京奇虎科技有限公司 | Template generation method for tile-matching type games and tile-matching type game device |
CN105094651A (en) * | 2014-05-04 | 2015-11-25 | 联想(北京)有限公司 | Information processing method and information processing equipment |
CN105094538A (en) * | 2015-06-30 | 2015-11-25 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN105335077A (en) * | 2014-06-20 | 2016-02-17 | 联想(北京)有限公司 | Information processing method and electronic device |
CN105377381A (en) * | 2013-05-15 | 2016-03-02 | 金.Com有限公司 | Mobile device game interface |
CN105630787A (en) * | 2014-10-28 | 2016-06-01 | 腾讯科技(深圳)有限公司 | Animation implementation method and device based on dynamic portable network graphics |
CN106598926A (en) * | 2016-11-29 | 2017-04-26 | 青岛海信电器股份有限公司 | Operation cancellation method and apparatus |
CN106730827A (en) * | 2016-12-06 | 2017-05-31 | 腾讯科技(深圳)有限公司 | Method and terminal device that a kind of object shows |
CN106861189A (en) * | 2017-01-20 | 2017-06-20 | 杭州碧游信息技术有限公司 | It is a kind of be applied to eliminate class game in fall method when disappearing |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6218002B2 (en) * | 2017-03-09 | 2017-10-25 | 株式会社コナミデジタルエンタテインメント | Program, computer apparatus, and computer processing method |
-
2018
- 2018-03-07 CN CN201810186708.9A patent/CN108525297B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102193719A (en) * | 2010-03-15 | 2011-09-21 | 联想(北京)有限公司 | Display method and display terminal |
CN103902188A (en) * | 2012-12-26 | 2014-07-02 | 联想(北京)有限公司 | Information processing method and electronic device |
CN105377381A (en) * | 2013-05-15 | 2016-03-02 | 金.Com有限公司 | Mobile device game interface |
CN105094651A (en) * | 2014-05-04 | 2015-11-25 | 联想(北京)有限公司 | Information processing method and information processing equipment |
CN105335077A (en) * | 2014-06-20 | 2016-02-17 | 联想(北京)有限公司 | Information processing method and electronic device |
CN104111780A (en) * | 2014-06-30 | 2014-10-22 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN105630787A (en) * | 2014-10-28 | 2016-06-01 | 腾讯科技(深圳)有限公司 | Animation implementation method and device based on dynamic portable network graphics |
CN104391710A (en) * | 2014-12-15 | 2015-03-04 | 北京奇虎科技有限公司 | Template generation method for tile-matching type games and tile-matching type game device |
CN105094538A (en) * | 2015-06-30 | 2015-11-25 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN106598926A (en) * | 2016-11-29 | 2017-04-26 | 青岛海信电器股份有限公司 | Operation cancellation method and apparatus |
CN106730827A (en) * | 2016-12-06 | 2017-05-31 | 腾讯科技(深圳)有限公司 | Method and terminal device that a kind of object shows |
CN106861189A (en) * | 2017-01-20 | 2017-06-20 | 杭州碧游信息技术有限公司 | It is a kind of be applied to eliminate class game in fall method when disappearing |
Also Published As
Publication number | Publication date |
---|---|
CN108525297A (en) | 2018-09-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106861186B (en) | Object control method and apparatus in game application | |
CN105260100B (en) | Information processing method and terminal | |
CN105094346B (en) | A kind of information processing method, terminal and computer storage media | |
CN107423015B (en) | The synchronous display method and device of game content | |
CN106422332B (en) | Artificial intelligence operating method and device applied to game | |
CN108744512A (en) | Information cuing method and device, storage medium and electronic device | |
CN107115674B (en) | The distribution method and device of virtual resource | |
CN109107161A (en) | A kind of control method of game object, device, medium and equipment | |
CN110124307A (en) | Method of controlling operation thereof and device, storage medium and electronic device | |
CN105214309A (en) | A kind of information processing method, terminal and computer-readable storage medium | |
CN106390456A (en) | Generating method and generating device for role behaviors in game | |
CN110597395B (en) | Object interaction control method and device, storage medium and electronic device | |
CN108211358A (en) | The display methods and device of information, storage medium, electronic device | |
CN107103089A (en) | The matching process and device of object | |
CN108970116A (en) | Virtual role control method and device | |
CN108310771A (en) | The execution method and apparatus of task, storage medium, electronic device | |
CN110339569A (en) | Control the method and device of virtual role in scene of game | |
CN109806588A (en) | The restoration methods and device of attribute value, storage medium, electronic device | |
CN110152290A (en) | Game running method and device, storage medium and electronic device | |
CN105288998B (en) | The exchange method and device of Intelligent hardware | |
CN109697123A (en) | The rendering method and device of game animation, storage medium, electronic device | |
CN111544889B (en) | Behavior control method and device of virtual object and storage medium | |
CN111298430A (en) | Virtual item control method and device, storage medium and electronic device | |
CN109731330A (en) | The display methods and device of picture, storage medium, electronic device | |
WO2021143318A1 (en) | Control method and device for virtual operating object, storage medium, and electronic device |
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 |