CN108525297A - Cartoon display method, device, storage medium and electronic device - Google Patents

Cartoon display method, device, storage medium and electronic device Download PDF

Info

Publication number
CN108525297A
CN108525297A CN201810186708.9A CN201810186708A CN108525297A CN 108525297 A CN108525297 A CN 108525297A CN 201810186708 A CN201810186708 A CN 201810186708A CN 108525297 A CN108525297 A CN 108525297A
Authority
CN
China
Prior art keywords
animation
area
unit
background
target object
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810186708.9A
Other languages
Chinese (zh)
Other versions
CN108525297B (en
Inventor
钟由
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201810186708.9A priority Critical patent/CN108525297B/en
Publication of CN108525297A publication Critical patent/CN108525297A/en
Application granted granted Critical
Publication of CN108525297B publication Critical patent/CN108525297B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • 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/45Controlling the progress of the video game
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/55Controlling game characters or game objects based on the game progress

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 includes:Detect the first operational order, wherein first operational order 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 for indicating to the first object, and 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

Cartoon display method, device, storage medium and electronic device
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 technology
When showing animation in the client, foreground animation and background animation are separation, the region where foreground animation When being operated, background animation and the no interaction of foreground animation, it is shown that single animation.For example, where foreground animation Region carry out A operations when, A animations are shown in the region where background animation;B behaviour is carried out in the region where foreground animation When making, A animations are 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.
Invention content
An embodiment of the present 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 that is shown in client.
One side according to the ... of the embodiment of the present invention provides a kind of cartoon display method, including:The first operation of detection refers to It enables, wherein first operational order 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.
Another aspect according to the ... of the embodiment of the present invention additionally provides a kind of animation display device, including:Detection unit is used In detecting the first operational order, wherein first operational order 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 is grasped for indicating to execute the first object with described first Make associated second operation, first object is associated with the target object.
Another aspect according to the ... of the embodiment of the present invention additionally provides a kind of storage medium, 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.
Another aspect according to the ... of the embodiment of the present invention additionally provides a kind of electronic device, including memory and processor, 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 generates interaction with the second animation shown in second area, i.e. the second animation is relevant with the first operation, to solve The prior art technical problem relatively simple when showing animation has reached so that the animation shown in second area is richer Rich technique effect.
Description of the drawings
Attached drawing described herein is used to provide further understanding of the present invention, and is constituted part of this application, this hair Bright illustrative embodiments and their description are not constituted improper limitations of the present invention for explaining the present invention.In the accompanying drawings:
Fig. 1 is the schematic diagram of the network architecture according to the ... of the embodiment of the present invention;
Fig. 2 is the flow chart of cartoon display method according to the ... of the embodiment of the present invention;
Fig. 3 is according to the ... of the 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 the ... of the embodiment of the present invention;
Fig. 5 is the schematic diagram of the animation of attack snail according to the ... of the embodiment of the present invention;
Fig. 6 is the schematic diagram of display third animation according to the ... of the embodiment of the present invention;
Fig. 7 is the schematic diagram of the animation according to the ... of the embodiment of the present invention that the check-in succeeds;
Fig. 8 is the schematic diagram of failed animation according to the ... of the embodiment of the present invention;
Fig. 9 is the interaction figure of background animation unit according to the ... of the embodiment of the present invention;
Figure 10 is the schematic diagram of animation play flow according to the ... of the embodiment of the present invention;
Figure 11 is the schematic diagram of animation display device according to the ... of the embodiment of the present invention;
Figure 12 is the schematic diagram of electronic device according to the ... of the embodiment of the present invention.
Specific implementation mode
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 every other embodiment that member is obtained without making creative work should all belong to the model that the present invention protects It encloses.
It should be noted that term " first " in description and claims of this specification and above-mentioned attached drawing, " Two " etc. be for distinguishing similar object, without being used to describe specific sequence or precedence.It should be appreciated that using in this way Data can be interchanged in the appropriate case, 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 " comprising " and " having " and their any deformation, it is intended that cover It includes to be not necessarily limited to for example, containing the process of series of steps or unit, method, system, product or equipment to cover non-exclusive Those of clearly list step or unit, but may include not listing clearly or for these processes, method, product Or the other steps or unit that equipment is intrinsic.
One side according to the ... of the embodiment of the present invention provides a kind of cartoon display method.In the present embodiment, above-mentioned dynamic It draws in the hardware environment that display methods can be applied to terminal 101 as shown in Figure 1 and server 102 is constituted.Such as Fig. 1 institutes Show, terminal 101 is attached by network and server 102, and above-mentioned network includes but not limited to:Wide area network, Metropolitan Area Network (MAN) or office Domain net, terminal 101 can be mobile phone terminals, can also be PC terminals, notebook terminal or tablet computer terminal.
Fig. 2 is the flow chart of cartoon display method according to the ... of the embodiment of the present invention.As shown in Fig. 2, the cartoon display method Including:
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 applied 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 foreground 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.Include first in second area In the case of region, the animation shown on second area may be in the range of the place of first area.
First operational order can be sent out by user, and target object can be any one object in first area.The May include the object of multiple and different types in one region, the first operational order can be that mobile finger is carried out to target object It enables.First operation can execute 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 of, the object of the multiple same types to draw a straight line disappears out of first area, shows corresponding related animation. In the case of 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 for indicating to the first object 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.From relevant first object of target object can be with target object be identical or different role.For example, In the case that an object is same role with target object, 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 first object and the feelings that target object is 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, existing to solve The technology technical problem relatively simple when showing animation has reached the skill for so that the animation shown in second area is abundanter Art effect.
Optionally, in the case where target object meets goal condition, show that the second animation includes in second area: First operation is the target object in elimination 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 for indicating to the first object, 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 illustrate for second area.
There are role suslik 31 (target object), second area to show suslik 33 in the middle section of the first area of Fig. 3, 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, so that 3 susliks are linked to be predetermined shape, to disappear in first area 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 includes:It is the firstth area of elimination in the first operation Target object in domain, and operating result triggers in the case of 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 execution the 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 the current outpost of the tax office 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 of the tax office failure, can first area and/ Or failed animation shown in Fig. 8 is played in second area.Under normal circumstances, above-mentioned rush can be played in second area Close successful animation and failed animation.It should be noted that dead without sliding step number or chessboard in first area When office, failed animation 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 that 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 includes: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.
Each object corresponds to a background animation unit in the client, each background animation unit storage corresponding object Animation data, and handle animation data and to play in second area and the first relevant animation of operation.
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 It can be that the check-in succeeds to draw message, 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 in second area:Visitor 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 The second animation for showing the first object in second area shows first area and second area 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- actions, and multiple sub- actions are put into and play queue to play multiple sub- actions, for example, Lift the action of hammer, put down hammer action all can serve as Little Bear attack suslik son action, by this it is a little action 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 It includes: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 Update;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.
Since each cartoon role shown in second area corresponds to a background animation unit, 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.
In the son for when calling animation data, pre-setting the behavior tree corresponding to the newer animation using behavior tree 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 and is inserted into queue, last operation action tree is dynamic to play when receiving the animated message of broadcast It draws.Such as:Actor1 by ReceiveEvent (Msg) receive broadcast notice need 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 for 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 for player to slide, if waiting for time-out, chessboard background plays leisure animation.
It should be noted that for each method embodiment above-mentioned, for simple description, therefore it is all expressed as a series of Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the described action sequence because According to the present invention, certain steps can be performed in other orders or simultaneously.Secondly, those skilled in the art should also know It knows, embodiment described in this description belongs to preferred embodiment, and involved action and module are 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 add the mode of required general hardware platform to realize by software, 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 scheme of the present invention is substantially in other words to existing The part that technology contributes can be expressed in the form of software products, which is stored in a storage In medium (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (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 the ... of the 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 the ... of the 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 applied 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 foreground 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.Include first in second area In the case of region, the animation shown on second area may be in the range of the place of first area.
First operational order can be sent out by user, and target object can be any one object in first area.The May include the object of multiple and different types in one region, the first operational order can be that mobile finger is carried out to target object It enables.First operation can execute 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 of, the object of the multiple same types to draw a straight line disappears out of first area, shows corresponding related animation. In the case of 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 for indicating to the first object 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.From relevant first object of target object can be with target object be identical or different role.For example, In the case that an object is same role with target object, 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 first object and the feelings that target object is 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, existing to solve The technology technical problem relatively simple when showing animation has reached the skill for so that the animation shown in second area is abundanter Art effect.
Optionally, second display unit includes:First display module, described in being eliminated 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 of, 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 illustrate for second area.
There are role suslik 31 (target object), second area to show suslik 33 in the middle section of the first area of Fig. 3, 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, so that 3 susliks are linked to be predetermined shape, to disappear in first area 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 includes:Third display unit, for showing that described second is dynamic in the second area It is the target object for eliminating in the first area in first operation, and the operating result triggers after picture In the case of 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 execution the 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 the current outpost of the tax office 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 of the tax office failure, can first area and/ Or failed animation shown in Fig. 8 is played in second area.Under normal circumstances, above-mentioned rush can be played in second area Close successful animation and failed animation.It should be noted that dead without sliding step number or chessboard in first area When office, failed animation 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 that 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 includes: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, are shown in the client State first area and the second area.
Each object corresponds to a background animation unit in the client, each background animation unit storage corresponding object Animation data, and handle animation data and to play in second area and the first relevant animation of operation.
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, the first area and the second area is shown 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- actions, and multiple sub- actions are put into and play queue to play multiple sub- actions, for example, Lift the action of hammer, put down hammer action all can serve as Little Bear attack suslik son action, by this it is a little action be put into It is to be played to play queue etc..
Optionally, the background animation unit further includes: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.
Since each cartoon role shown in second area corresponds to a background animation unit, 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.
In the son for when calling animation data, pre-setting the behavior tree corresponding to the newer animation using behavior tree 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 the ... of the 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, and computer is stored 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 structure diagram of electronic device according to the ... of the 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) processors 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 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 also may be used To be smart mobile phone (such as Android phone, iOS mobile phones), tablet computer, palm PC and mobile internet device The terminal devices such as (Mobile Internet Devices, MID), PAD.Figure 12 it does not make the structure of above-mentioned electronic device At restriction.For example, electronic device may also include more than shown in Figure 12 or less component (such as network interface, display dress 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, processor 1201 are stored in the software program in memory 1205 by operation And module realizes above-mentioned cartoon display method to perform various functions 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, LAN, mobile radio communication and combinations thereof.
Above-mentioned transmitting device 1204 is used to receive via a network or transmission data.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 with other network equipments with router by cable so as to interconnection Net or LAN 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, existing to solve The technology technical problem relatively simple when showing animation has reached the skill for so that the animation shown in second area is abundanter Art effect.
The embodiment of the present invention additionally provides a kind of storage medium, and 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 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:It is the target object for eliminating in the first area in first operation, and the target object and described the In the case of first object in two regions is associated, the second animation is shown in the second area, wherein described Two animations carry out attack operation for indicating to first object, and second operation includes the attack operation.
Optionally, after second animation is shown in the second area, the method further includes:Described first Operation is the target object in the elimination 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 further 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, the first area and institute are shown 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 Stating the second animation includes:The background animation unit of client 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, the first area and the second area is shown 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, the method further includes:The background animation unit receives animation more new command, 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, one of ordinary skill in the art will appreciate that in the various methods of above-described embodiment All or part of step be that can be completed come command terminal device-dependent hardware by program, which can be stored 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 Sale in use, can be stored in the storage medium that above computer can be read.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 step of method.
In the above embodiment of the present invention, all emphasizes particularly on different fields to the description of each embodiment, do not have in some embodiment The part of detailed description may refer to the associated description of other embodiment.
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, for example, the unit division, only one Kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component 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 INDIRECT COUPLING or communication link by some interfaces, unit or module It connects, can be electrical or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (14)

1. a kind of cartoon display method, which is characterized in that including:
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 for indicating to the first object It is associated to mark object.
2. according to the method described in claim 1, it is characterized in that, in the case where the target object meets goal condition, Show that the second animation includes in second area:
It is the target object for eliminating in the first area in first operation, and the target object and described the In the case of first object in two regions is associated, the second animation is shown in the second area, wherein described Two animations carry out attack operation for indicating to first object, and second operation includes the attack operation.
3. according to the method described in claim 1, it is characterized in that, shown in the second area second animation it Afterwards, the method further includes:
It is the target object for eliminating in the first area in first operation, and operating result triggering is to institute In the case of 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. according to the method described in claim 1, it is characterized in that, shown in the second area second animation it Before, the method further includes:
It sends and broadcasts the message to multiple background animation units of client, wherein the broadcast message is used to indicate described in broadcasting Second animation, each background animation unit are associated with an object in the second area, are shown in the client The first area and the second area.
5. according to the method described in claim 1, it is characterized in that, the case where the target object meets the goal condition Under, show that second animation includes in the second area:
The background animation unit of client receives broadcast message, wherein it is dynamic that the broadcast message is used to indicate broadcasting described second It draws, the background animation unit is used to show second animation of first object, the client in the second area The first area and the second area are shown on end;
The background animation unit searches the animation data of second animation according to the broadcast message;
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.
6. according to the method described in claim 5, it is characterized in that, being looked into according to the broadcast message in the background animation unit It looks for before the animation data of second animation, the method further 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.
7. a kind of animation display device, which is characterized in that including:
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, in the case where the target object meets goal condition, second to be shown in second area Animation, wherein second animation executes the second operation associated with first operation, institute for indicating to the first object It is associated with the target object to state the first object.
8. device according to claim 7, which is characterized in that second display unit includes:
First display module, the target object for eliminating in the first area in first operation, and institute State target object it is associated with first object in the second area in the case of, is shown in the second area Two animations, wherein second animation carries out attack operation for indicating to first object, and second operation includes institute State attack operation.
9. device according to claim 7, which is characterized in that described device further includes:
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 of 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.
10. device according to claim 7, which is characterized in that described device further includes:
Transmission unit, for before showing second animation in the second area, to multiple background animations of client Unit sends broadcast message, wherein the broadcast message, which is used to indicate, plays second animation, each background animation list Member is associated with an object in the second area, and the first area and the second area are shown in the client.
11. device according to claim 7, which is characterized in that second display unit includes background animation unit, institute State the setting of background animation unit in the client, the background animation unit includes:
Receiving module, for receiving broadcast message, wherein the broadcast message, which is used to indicate, plays second animation, described Background animation unit is used to show second animation of first object in the second area, is shown in the client There are the first area and the second area;
Searching module, the animation data for searching second animation according to the broadcast message;
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.
12. according to the devices described in claim 11, which is characterized in that the background animation unit further includes:
Receiving module, the animation data for searching 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.
13. 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 the method described in any one of claim 1 to 6 when operation.
14. 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 the side described in any one of claim 1 to 6 by the computer program Method.
CN201810186708.9A 2018-03-07 2018-03-07 Cartoon display method, device, storage medium and electronic device Active CN108525297B (en)

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 true CN108525297A (en) 2018-09-14
CN108525297B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111111185A (en) * 2019-12-02 2020-05-08 腾讯科技(深圳)有限公司 Target animation playing method and device, storage medium and electronic device

Citations (13)

* Cited by examiner, † Cited by third party
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
CN105094538A (en) * 2015-06-30 2015-11-25 联想(北京)有限公司 Information processing method and electronic equipment
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
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
JP2017104639A (en) * 2017-03-09 2017-06-15 株式会社コナミデジタルエンタテインメント Program, computer device, and computer processing method
CN106861189A (en) * 2017-01-20 2017-06-20 杭州碧游信息技术有限公司 It is a kind of be applied to eliminate class game in fall method when disappearing

Patent Citations (13)

* Cited by examiner, † Cited by third party
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
JP2017104639A (en) * 2017-03-09 2017-06-15 株式会社コナミデジタルエンタテインメント Program, computer device, and computer processing method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111111185A (en) * 2019-12-02 2020-05-08 腾讯科技(深圳)有限公司 Target animation playing method and device, storage medium and electronic device
CN111111185B (en) * 2019-12-02 2022-03-11 腾讯科技(深圳)有限公司 Target animation playing method and device, storage medium and electronic device

Also Published As

Publication number Publication date
CN108525297B (en) 2019-05-24

Similar Documents

Publication Publication Date Title
CN106861186B (en) Object control method and apparatus in game application
CN105260100B (en) Information processing method and terminal
CN108744512A (en) Information cuing method and device, storage medium and electronic device
CN110597395B (en) Object interaction control method and device, storage medium and electronic device
CN107340944B (en) The display methods and device of interface
CN105214309A (en) A kind of information processing method, terminal and computer-readable storage medium
CN108970116A (en) Virtual role control method and device
CN110134375B (en) Game character behavior control method and device and readable storage medium
CN109513208A (en) Display methods, device, storage medium and the electronic device of object
CN109395376A (en) Exchange method, device and system based on game live streaming
CN104606884B (en) Matching process and device in a kind of game fighting
CN110124307A (en) Method of controlling operation thereof and device, storage medium and electronic device
CN110152290A (en) Game running method and device, storage medium and electronic device
CN108681390A (en) Information interacting method and device, storage medium and electronic device
CN110538452A (en) Skill control method and device, computing equipment and storage medium
CN113032268B (en) Software testing method, device and storage medium
WO2023065676A1 (en) Method and device for controlling air conditioner, and air conditioner
CN108619717A (en) Determination method, apparatus, storage medium and the electronic device of operation object
CN107684720A (en) Game skill generation method and device
CN108154197A (en) Realize the method and device that image labeling is verified in virtual scene
CN107648853A (en) Display target object method, device and storage medium in interface
CN111001158A (en) Attribute parameter updating method and device, storage medium and electronic device
CN110339571A (en) Event generation method and device, storage medium and electronic device
CN108446063A (en) Processing method, device, storage medium and the electronic device of object
CN108525297B (en) Cartoon display method, device, 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