CN108989898A - A kind of method, storage medium, equipment and system showing present double hit animation - Google Patents

A kind of method, storage medium, equipment and system showing present double hit animation Download PDF

Info

Publication number
CN108989898A
CN108989898A CN201710400983.1A CN201710400983A CN108989898A CN 108989898 A CN108989898 A CN 108989898A CN 201710400983 A CN201710400983 A CN 201710400983A CN 108989898 A CN108989898 A CN 108989898A
Authority
CN
China
Prior art keywords
animation
double hit
hit number
present
submodule
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
CN201710400983.1A
Other languages
Chinese (zh)
Other versions
CN108989898B (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.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network Technology 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 Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201710400983.1A priority Critical patent/CN108989898B/en
Publication of CN108989898A publication Critical patent/CN108989898A/en
Application granted granted Critical
Publication of CN108989898B publication Critical patent/CN108989898B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/475End-user interface for inputting end-user data, e.g. personal identification number [PIN], preference data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a kind of method, storage medium, equipment and system for showing present double hit animation, it is related to that applicating developing technology field is broadcast live.This method comprises: generating present double hit number image according to the double hit number of user, the present double hit number image is corresponding with the double hit number of user, including digital picture corresponding to each bit digital with double hit number when there is user's double hit gifts;Expand multiple according to the width of the present double hit number image of generation and preset animation, calculates the displaying width of present double hit animation;Widened animation effect is added for present double hit number image;The present double hit number image for being added to widened animation effect is executed, present double hit animation is obtained;Present double hit animation is shown according to the displaying width calculated.The present invention increases the feedback of interest and ornamental value by way of showing present double hit animation to present double hit, and the user experience is improved, improves the enthusiasm of user's double hit gifts, so that liveness is high in direct broadcasting room.

Description

A kind of method, storage medium, equipment and system showing present double hit animation
Technical field
The present invention relates to live streaming applicating developing technology field, be specifically it is a kind of show present double hit animation method, Storage medium, equipment and system.
Background technique
Online Video live streaming refers to the live video direct broadcast service carried out using Internet resource, passes through the view at scene Frequency shooting, which synchronizes, to be published on network, and user can see real-time field condition the same time on network.
With the rapid development of mobile terminals, live streaming industry is becoming increasingly popular, and many users like viewing live streaming.And During viewing live streaming, main broadcaster's gifts that user often likes oneself, some users, which also miss potter, passes through company The mode gifts hit.So-called double hit just refers to that the main broadcaster liked in the short time to oneself gives multiple presents.But mesh For preceding user after gifts, the feedback generally yielded is simply to show the gift given in a static manner at live streaming interface Object number.This simple effect for showing the present number given lacks interest and ornamental value, and user experience is bad, so that with The interest of family gifts reduces, and willingness to pay is not high, while also reducing the liveness of direct broadcasting room, affects live streaming quality.
Summary of the invention
The purpose of the invention is to overcome the shortcomings of above-mentioned background technique, a kind of side for showing present double hit animation is provided Method, storage medium, equipment and system, being increased by way of showing present double hit animation to present double hit has interest and sight The feedback of reward property promotes user experience, improves the enthusiasm of user's double hit gifts, so that liveness is high in direct broadcasting room.
To achieve the above objectives, the technical solution adopted by the present invention is that: provide it is a kind of show present double hit animation method, Method includes the following steps:
S1, when there is user's double hit gifts, according to the double hit number of user generate realize present double hit animation needed for Present double hit number image, the present double hit number image is corresponding with the double hit number of user, the present double hit number image include with Digital picture corresponding to each bit digital of double hit number;
S2, multiple is expanded according to the width of the present double hit number image of generation and preset animation, it is dynamic calculates present double hit The displaying width of picture;
S3, widened animation effect is added for present double hit number image;
S4, execution are added to the present double hit number image of widened animation effect, obtain present double hit animation;By the gift Object double hit animation is shown according to the displaying width calculated.
Based on the above technical solution, step S1 specifically includes following below scheme:
S101, a variable data array is defined, for storing and digital picture corresponding to each bit digital of double hit number;It is fixed The double hit number variable of an adopted integer, for indicating current double hit quantity, and the initial value of the double hit number variable is user's Double hit number;
S102, judge whether current double hit number variable is greater than zero, if so, step S103 is transferred to, if it is not, being transferred to step S105;
S103, remainder R will be obtained after current double hit number variable mould 10, the integer which is 0~9;By the remainder R It is converted into a corresponding digital picture, and obtained digital picture is added in the variable data array;
S104, current double hit number variable is assigned to double hit number variable divided by the value behind 10 and rounding again, is then returned Step S102 is returned, continues to obtain digital picture corresponding to next bit digital of double hit number, until each bit digital of double hit number Corresponding digital picture is all acquired and saves into the variable data array;
Step S105, it according to all digital pictures saved in the current variable data array, generates and realizes present double hit Present double hit number image needed for animation.
Based on the above technical solution, when this method is applied to IOS system, step S3 is specifically included to flow down Journey:
S301, obtain present double hit number image figure layer layer in point bit attribute point place value;According to the point got Place value creates an insertion animation;
One S302, creation expansion animation, and the maximum value that the amplification of the expansion animation is arranged is the expansion of preset animation Multiple;
One S303, creation group animation, and the execution time that this group of animation is arranged is preset group of animation duration;
S304, set the fill pattern of group animation to the fill pattern day after tomorrow, and by the insertion animation of creation, expand animation It is encapsulated into group animation;
S305, group animation is added in the figure layer layer of present double hit number image;
One S306, creation timer, and the execution time phase with group animation is set by the time interval of the timer Together;
The end point values of the mobile picture of the basic bit are set present double hit number figure by S307, the mobile picture of one basic bit of creation The threshold value of the mobile picture of the basic bit is set described place value by the point place value of point bit attribute in the figure layer layer of picture Half sets identical as the time interval of timer for the Starting Executing Time of the mobile picture of the basic bit, this is displaced substantially The animation execution time of animation is set as the preset displacement animation duration;
S308, the mobile picture of basic bit is added in the figure layer layer of digital picture.
The present invention also provides a kind of storage mediums, are stored thereon with computer program, the computer program is by processor The step of method of above-mentioned displaying present double hit animation is realized when execution.
The present invention also provides a kind of equipment for showing present double hit animation, including memory, processor and are stored in storage The computer program run on device and on the processor, the processor realize above-mentioned exhibition when executing the computer program Display courtesy object double hit animation method the step of.
The present invention also provides it is a kind of show present double hit animation system, the system include double hit number image generation module, Animated show width computing module, animation effect insertion module, animation producing and display module;
The double hit number image generation module is used for: raw according to the double hit number of user when there is user's double hit gifts At present double hit number image needed for realizing present double hit animation, the present double hit number image is corresponding with the double hit number of user, Including digital picture corresponding to each bit digital with double hit number;
The animated show width computing module is used for: according to the width of the present double hit number image of generation and preset dynamic It draws and expands multiple, calculate the displaying width of present double hit animation;
The animation effect insertion module is used for: adding widened animation effect for present double hit number image;
The animation producing is used for display module: the present double hit number image for being added to widened animation effect is executed, Obtain present double hit animation;The present double hit animation is shown according to the displaying width calculated.
Based on the above technical solution, the double hit number image generation module includes original definition submodule, double hit Assignment submodule and generation handle submodule again for number variable judging submodule, digital picture acquisition submodule, double hit number variable;
The original definition submodule is used for: a variable data array is defined, for storing and each bit digital of double hit number Corresponding digital picture;The double hit number variable for defining an integer, for indicating current double hit quantity, and the double hit number becomes The initial value of amount is the double hit number of user;Signal is judged to the transmission of double hit number variable judging submodule;
The double hit number variable judging submodule is used for: being received after judging signal, whether is judged current double hit number variable Greater than zero, signal is obtained if so, sending to digital picture acquisition submodule, if it is not, generating letter to processing submodule transmission is generated Number;
The digital picture acquisition submodule is used for: being received after obtaining signal, will be obtained after current double hit number variable mould 10 To remainder R, the integer which is 0~9;A corresponding digital picture, and the number that will be obtained are converted by the remainder R Picture is added in the variable data array;Assertive signal is sent to double hit number variable again assignment submodule;
Again assignment submodule is used for the double hit number variable: after receiving assertive signal, current double hit number variable being removed It is assigned to double hit number variable again with the value behind 10 and rounding, and judges signal to the transmission of double hit number variable judging submodule;
The generation processing submodule is used for: being received after generating signal, according to what is saved in the current variable data array All digital pictures generate present double hit number image needed for realizing present double hit animation.
Based on the above technical solution, the animation effect insertion module includes insertion animation creation submodule, expands Big animation creation submodule, group animation creation submodule, group animation package submodule, group animation addition submodule, timer wound Build submodule, basic bit moves animation creation submodule and the mobile picture addition submodule of basic bit;
The insertion animation creation submodule is used for: obtaining the point bit attribute in the figure layer layer of present double hit number image Point place value;According to the point place value got, an insertion animation is created;
The expansion animation creation submodule is used for: one expansion animation of creation, and the amplification of the expansion animation is set Maximum value is that preset animation expands multiple;
Described group of animation creation submodule is used for: one group animation of creation, and the execution time that this group of animation is arranged is pre- If the group animation duration;
Described group of animation package submodule is used for: setting the fill pattern day after tomorrow for the fill pattern of group animation, and will wound The insertion animation built expands animation package into group animation;
Described group of animation addition submodule is used for: group animation being added in the figure layer layer of present double hit number image;
The timer creation submodule is used for: one timer of creation, and sets the time interval of the timer to It is identical as the execution time of group animation;
The basic bit moves animation creation submodule and is used for: the mobile picture of one basic bit of creation, by the mobile picture of the basic bit End point values be set as the point place value of the point bit attribute in the figure layer layer of present double hit number image, by the mobile picture of the basic bit Threshold value be set as the half of described place value, set the Starting Executing Time of the mobile picture of the basic bit to and timer Time interval is identical, sets the preset displacement animation duration for the animation execution time of the mobile picture of the basic bit;
The mobile picture addition submodule of the basic bit is used for: the mobile picture of basic bit is added to the figure layer of digital picture In layer.
Based on the above technical solution, the animated show width computing module calculates the displaying of present double hit animation The detailed process of width are as follows: according to present double hit animation show width=reserved width+present double hit number image width × Preset animation expands multiple, and the displaying width of present double hit animation is calculated;Wherein, the width of present double hit number image= Width × digital picture number of digital picture.
Based on the above technical solution, it is 1.5 times that the preset animation, which expands multiple,.
The beneficial effects of the present invention are:
(1) in the present invention, one can be generated in such a way that the image to present double hit number increases widened animation effect Present double hit animation, and the present double hit animation is shown to user.This mode phase that present double hit animation is shown to user It is compared compared with common static display mode, there is stronger interest and ornamental value, user experience is good, and then improves user The enthusiasm of double hit gifts, so that liveness is high in direct broadcasting room.
(2) in the present invention, when circulation obtains each bit digital of double hit number, 10 roundings are removed using first 10 remainder of mould again Mode successively obtains, and whole operation is accurate, efficient;And the corresponding digital picture got every time, which is added to one, can be changed In array, not only convenient storage and also facilitate it is subsequent carry out animation execution when use.
(3) in the present invention, when adding widened animation effect for present double hit number image, group animation has been used.Group is dynamic Picture is to provide basic, single frames animation, and organizes animation and execute at layer layers, so that the execution efficiency of animation is relatively high, occupies Memory is fewer.
(4) in the present invention, the expansion multiple of animation is a preset value, which expands multiple can be by developing Personnel are according to specifically needing to carry out self-setting and adjustment, and artificial controllability is high, flexibility ratio is big.
Detailed description of the invention
Fig. 1 is the flow chart that the method for present double hit animation is shown in the embodiment of the present invention;
Fig. 2 is the specific flow chart of step S1 in the embodiment of the present invention;
Fig. 3 is the structural schematic diagram that the equipment of present double hit animation is shown in the embodiment of the present invention;
Fig. 4 is the structural block diagram that the system of present double hit animation is shown in the embodiment of the present invention;
Fig. 5 is the specific block diagram of double hit number image generation module in the embodiment of the present invention;
Fig. 6 is the specific block diagram that animation effect is inserted into module in the embodiment of the present invention.
Specific embodiment
With reference to the accompanying drawing and specific embodiment the present invention is described in further detail.
Mentality of designing of the invention is, when there is user's double hit gifts, can be increased by the image to present double hit number The mode for adding widened animation effect generates a present double hit animation, and the present double hit animation is shown to user.Pass through Increase widened animation effect to static present double hit number, the interest and ornamental value of the displaying of double hit number, user's body can be enhanced It tests, and then improves the enthusiasm of user's double hit gifts, so that liveness is high in direct broadcasting room.
Shown in Figure 1 based on above-mentioned mentality of designing, the embodiment of the present invention provides a kind of side for showing present double hit animation Method, method includes the following steps:
Step S1, the generation of present double hit number image: raw according to the double hit number of user when there is user's double hit gifts At present double hit number image needed for realizing present double hit animation and save, the double hit number of the present double hit number image and user Corresponding, including digital picture corresponding to each bit digital with double hit number, for example, the connection number of user is 15, then present connects Connect several images just should as corresponding to bit digital one by one digital picture 5 and a ten digits corresponding to digital picture 1 Composition.
Shown in Figure 2, in one embodiment, step S1 specifically includes following below scheme:
Step S101, a variable data array (such as imgArray) is defined, for storing and each bit digital institute of double hit number Corresponding digital picture;The double hit number variable (such as Combo) for defining an integer, for indicating current double hit quantity, and should The initial value of double hit number variable is the double hit number of user.
Step S102, judge whether current double hit number variable is greater than zero, if so, step S103 is transferred to, if it is not, being transferred to step Rapid S105.
Step S103, remainder R will be obtained after current double hit number variable mould 10, the integer which is 0~9;Pass through number R is converted a corresponding digital picture by the function of word changing image, such as: remainder R 5, the then digital picture after converting It is exactly the picture of number 5;Obtained digital picture is added in the variable data array (such as imgArray).
When practical operation, the function of the digital conversion image can be the realization number that developer writes in advance and become The function for changing image function, such as imageWithNumber function.In addition, by obtained digital picture be added to it is described can parameter When in group (such as imgArray), it is possible to use it is customized to be realized for realizing the element insertion function of element insertions function, such as InsertObject function.Pass through the operation of step S103, so that it may successfully get corresponding to the one-bit digital in double hit number Digital picture.
Step S104, current double hit number variable is assigned to double hit number variable divided by the value behind 10 and rounding again again, Then return step S102 continues to obtain digital picture corresponding to next bit digital of double hit number, until double hit number is each Digital picture corresponding to bit digital is all acquired and saves into the variable data array (such as imgArray).
Step S105, it according to all digital pictures saved in the current variable data array, generates and realizes present double hit Present double hit number image needed for animation.
It is understood that substantially one circulation obtains double hit number due to the process for generating present double hit number image Each bit digital corresponding to digital picture process, therefore, in the realization of code, can be used while Do statement. The characteristics of while is recycled is just not execute loop body until being unsatisfactory for condition, therefore, can be set the while execution condition recycled Double hit number variable is set to greater than zero, such as Combo > 0;Can by while recycle loop body be arranged to carry out above-mentioned steps S103~ S104。
Step S2, the calculating of animated show width: according to the width and preset animation of the present double hit number image of generation Expand multiple, calculates the displaying width of present double hit animation.Preset animation expands multiple can be by developer according to specific It needs to carry out self-setting, usually, animation expands multiple and is set as 1.5 times.
Specifically, the detailed process of the displaying width of present double hit animation is calculated are as follows: according to the exhibition of present double hit animation Show that width=reserved width+present double hit number image width × preset animation expands multiple, it is dynamic that present double hit is calculated The displaying width of picture;Wherein, the number stored in width=digital picture width × variable data array of present double hit number image The number (i.e. the digit of double hit number and the number of digital picture) of picture.It is understood that reserved width is to add After animation, there are enough width to realize certain displacement for the digital picture of present double hit number image.In addition, in variable data array Number is exactly the digit of the double hit number of corresponding user, for example, the double hit number of user is a double figures 15, then in variable data array Number is exactly 2.
Step S3, the insertion of animation effect: widened animation effect is added for present double hit number image.
By taking IOS system as an example, in one embodiment, the detailed process of step S3 can are as follows:
Step S301, the point place value of the point bit attribute position in the figure layer layer of present double hit number image is obtained;Root According to the point place value got, the existing transparency animation creation function animationWithKeyPath function creation of IOS is used One insertion animation, such as insertAnimation.
Step S302, using the existing transparency animation creation function animationWithKeyPath function creation of IOS One for realizing the expansion animation for expanding effect, such as bigAnimation;And the maximum value of the amplification of the expansion animation is set Expand multiple, such as 1.5 times for preset animation.
Step S303, by way of the object of creation group animated type CAAnimationGroup, a group animation is created, Such as inserAnimationGroup;And be arranged this group of animation the execution time be preset group of animation duration (such as insertDuration).Preset group of animation duration (insertDuration) can be by developer according to specific need Self-setting is carried out, usually, the group animation duration is set as 0.3 second.
Step S304, the fill pattern day after tomorrow is set by the fill pattern of group animation, and is inserted what is created in step S301 Entering the expansion animation (such as bigAnimation) created in animation (such as insertAnimation) and step S302, to be encapsulated into group dynamic In picture.When specific implementation encapsulation, it is that will be inserted into animation and expand animation package into an array, then sets the array to The animation attributes animations of group animation.
Step S305, a group animation is added to present double hit using the existing animation addition function addAnimation of IOS In the figure layer layer of number image.
Step S306, by way of creating the object of timer class CFTimeInterval, a timer is created (such as AddTimer), and by the time interval of the timer it is set as identical as the group execution time of animation.That is, setting should The time interval of timer is preset group of animation duration (insertDuration).
Step S307, the mobile picture of a basic bit is created (such as using basic animated type CABasicAnimation positionAnimation);It sets the end point values of the mobile picture of the basic bit in the figure layer layer of present double hit number image Point bit attribute position point place value;Set the threshold value of the mobile picture of the basic bit to the figure layer of present double hit number image The half of the point place value of point bit attribute position in layer;It sets the Starting Executing Time of the mobile picture of the basic bit to It is identical as the time interval of timer (that is, the Starting Executing Time of the mobile picture of basic bit, the time interval of timer are equal It for preset group of animation duration, is equivalent at interval of a group animation duration, is carried out the mobile picture of a basic bit);It will The animation execution time of the mobile picture of the basic bit is set as preset displacement animation duration (such as posDuration), presets The displacement animation duration (posDuration) can usually come by developer according to specifically needing to carry out self-setting It says, preset displacement animation duration (posDuration) is preset group of animation duration (insertDuration) Half, that is, 0.15 second.
Step S308, the mobile picture of basic bit is added to number using IOS existing animation addition function addAnimation In the figure layer layer of word picture.
Operation through the above steps, so that it may successfully complete and add widened animation effect for present double hit number image.
It should be noted that the above-mentioned concrete operations that step S3 is realized in IOS system are only an example, In other systems (such as in Android system), the specific implementation flow of step S3, developer can be according to the reality of Android system Situations such as border function, code, interface, is specifically designed and is adjusted, herein with no restrictions.
Step S4, the generation and displaying of present double hit animation: the present double hit number for being added to widened animation effect is executed Image obtains present double hit animation;The present double hit animation is shown according to the displaying width calculated in step S2.
It is understood that executing the present double hit number image for being added to widened animation effect in step S4, obtaining gift When object double hit animation, be the timer (such as addTimer) that creates in S306 through the above steps periodically (according to timer when Between be spaced) obtain all digital pictures for saving in variable data array, to execute the present double hit for being added to widened animation effect Number image, to obtain present double hit animation.
The method of corresponding above-mentioned displaying present double hit animation, the embodiment of the present invention also provide a kind of storage medium, thereon It is stored with computer program, the displaying present double hit in the various embodiments described above can be realized when which is executed by processor The step of method of animation.It should be noted that the storage medium includes USB flash disk, mobile hard disk, ROM (Read-Only Memory, read-only memory), RAM (Random Access Memory, random access memory), magnetic or disk etc. it is each Kind can store the medium of program code.
In addition, shown in Figure 3, the method for corresponding above-mentioned displaying present double hit animation, the embodiment of the present invention is also provided A kind of equipment showing present double hit animation, including memory, processor and storage can transport on a memory and on a processor Capable computer program, the processor can realize the displaying present double hit animation in the various embodiments described above when executing computer program Method the step of.
Shown in Figure 4, the embodiment of the present invention also provides a kind of system for showing present double hit animation, which includes connecting Hit several image generation modules, animated show width computing module, animation effect insertion module, animation producing and display module.
Wherein, double hit number image generation module is used for: raw according to the double hit number of user when there is user's double hit gifts At present double hit number image needed for realizing present double hit animation, the present double hit number image is corresponding with the double hit number of user, Including digital picture corresponding to each bit digital with double hit number;
Animated show width computing module is used for: being expanded according to the width of the present double hit number image of generation and preset animation Big multiple calculates the displaying width of present double hit animation;
Animation effect insertion module is used for: adding widened animation effect for present double hit number image;
Animation producing is used for display module: being executed the present double hit number image for being added to widened animation effect, is obtained Present double hit animation;The present double hit animation is shown according to the displaying width calculated.
Further, shown in Figure 5, double hit number image generation module specifically includes original definition submodule, double hit number Assignment submodule and generation handle submodule again for variable judging submodule, digital picture acquisition submodule, double hit number variable.
Wherein, original definition submodule is used for: a variable data array is defined, for storing and each bit digital of double hit number Corresponding digital picture;The double hit number variable for defining an integer, for indicating current double hit quantity, and the double hit number becomes The initial value of amount is the double hit number of user;Signal is judged to the transmission of double hit number variable judging submodule;
Double hit number variable judging submodule is used for: being received after judging signal, is judged whether current double hit number variable is greater than Zero, signal is obtained if so, sending to digital picture acquisition submodule, if it is not, generating signal to processing submodule transmission is generated;
Digital picture acquisition submodule is used for: being received after obtaining signal, will be obtained after current double hit number variable mould 10 remaining Number R, the integer which is 0~9;A corresponding digital picture, and the digital picture that will be obtained are converted by the remainder R It is added in the variable data array;Assertive signal is sent to double hit number variable again assignment submodule;
Again assignment submodule is used for double hit number variable: after receiving assertive signal, by current double hit number variable divided by 10 And the value after being rounded is assigned to double hit number variable again, and judges signal to the transmission of double hit number variable judging submodule;
It generates processing submodule to be used for: receive after generating signal, it is all according to what is saved in the current variable data array Digital picture generates present double hit number image needed for realizing present double hit animation.
Further, shown in Figure 6, animation effect insertion module specifically includes insertion animation creation submodule, expands Big animation creation submodule, group animation creation submodule, group animation package submodule, group animation addition submodule, timer wound Build submodule, basic bit moves animation creation submodule and the mobile picture addition submodule of basic bit.
Wherein, insertion animation creation submodule is used for: obtaining the point bit attribute in the figure layer layer of present double hit number image Point place value;According to the point place value got, an insertion animation is created;
Expand animation creation submodule to be used for: one expansion animation of creation, and the maximum of the amplification of the expansion animation is set Value is that preset animation expands multiple;
Group animation creation submodule is used for: one group animation of creation, and the execution time that this group of animation is arranged is preset The group animation duration;
Group animation package submodule is used for: setting the fill pattern day after tomorrow for the fill pattern of group animation, and by creation It is inserted into animation, expands animation package into group animation;
Group animation addition submodule is used for: group animation being added in the figure layer layer of present double hit number image;
Timer creation submodule is used for: one timer of creation, and sets the time interval of the timer to and group The execution time of animation is identical;
Basic bit moves animation creation submodule and is used for: the mobile picture of one basic bit of creation, by the end of the mobile picture of the basic bit Point value is set as the point place value of the point bit attribute in the figure layer layer of present double hit number image, by rising for the mobile picture of the basic bit Point value is set as the half of described place value, sets the time with timer for the Starting Executing Time of the mobile picture of the basic bit It is spaced identical, the animation of the mobile picture of the basic bit is executed into the time and is set as the preset displacement animation duration;
The mobile picture addition submodule of basic bit is used for: the mobile picture of basic bit is added in the figure layer layer of digital picture.
It should be understood that system provided by the above embodiment realize present double hit animation displaying when, only with above-mentioned The division progress of each functional module can according to need and for example, in practical application by above-mentioned function distribution by different Functional module is completed, i.e., the internal structure of system is divided into different functional modules, with complete it is described above whole or Partial function.
The present invention is not limited to the above-described embodiments, for those skilled in the art, is not departing from Under the premise of the principle of the invention, several improvements and modifications can also be made, these improvements and modifications are also considered as protection of the invention Within the scope of.
The content being not described in detail in this specification belongs to the prior art well known to professional and technical personnel in the field.

Claims (10)

1. a kind of method for showing present double hit animation, which is characterized in that method includes the following steps:
S1, when there is user's double hit gifts, according to the double hit number of user generate realize present double hit animation needed for present Double hit number image, the present double hit number image is corresponding with the double hit number of user, and the present double hit number image includes and double hit Digital picture corresponding to several each bit digitals;
S2, multiple is expanded according to the width of the present double hit number image of generation and preset animation, calculates present double hit animation Show width;
S3, widened animation effect is added for present double hit number image;
S4, execution are added to the present double hit number image of widened animation effect, obtain present double hit animation;The present is connected Animation is hit to be shown according to the displaying width calculated.
2. showing the method for present double hit animation as described in claim 1, which is characterized in that step S1 is specifically included to flow down Journey:
S101, a variable data array is defined, for storing and digital picture corresponding to each bit digital of double hit number;Define one The double hit number variable of a integer, for indicating current double hit quantity, and the initial value of the double hit number variable is the double hit of user Number;
S102, judge whether current double hit number variable is greater than zero, if so, step S103 is transferred to, if it is not, being transferred to step S105;
S103, remainder R will be obtained after current double hit number variable mould 10, the integer which is 0~9;The remainder R is converted For a corresponding digital picture, and obtained digital picture is added in the variable data array;
S104, current double hit number variable is assigned to double hit number variable divided by the value behind 10 and rounding again, then returns to step Rapid S102 continues to obtain digital picture corresponding to next bit digital of double hit number, until each bit digital institute of double hit number is right The digital picture answered all is acquired and saves into the variable data array;
Step S105, it according to all digital pictures saved in the current variable data array, generates and realizes present double hit animation Required present double hit number image.
3. showing the method for present double hit animation as described in claim 1, it is characterised in that: when this method is applied to IOS system When system, step S3 specifically includes following below scheme:
S301, obtain present double hit number image figure layer layer in point bit attribute point place value;According to the point got Value, creates an insertion animation;
One S302, creation expansion animation, and the maximum value that the amplification of the expansion animation is arranged is that preset animation expands multiple;
One S303, creation group animation, and the execution time that this group of animation is arranged is preset group of animation duration;
S304, set the fill pattern of group animation to the fill pattern day after tomorrow, and by the insertion animation of creation, expand animation package Into group animation;
S305, group animation is added in the figure layer layer of present double hit number image;
One S306, creation timer, and set identical as the group execution time of animation for the time interval of the timer;
The end point values of the mobile picture of the basic bit are set present double hit number image by S307, the mobile picture of one basic bit of creation The point place value of point bit attribute in figure layer layer sets the threshold value of the mobile picture of the basic bit to the half of described place value, Set identical as the time interval of timer for the Starting Executing Time of the mobile picture of the basic bit, by the mobile picture of the basic bit The animation execution time is set as the preset displacement animation duration;
S308, the mobile picture of basic bit is added in the figure layer layer of digital picture.
4. a kind of storage medium, is stored thereon with computer program, it is characterised in that: the computer program is executed by processor The step of any one of Shi Shixian the claims 1 to 3 the method.
5. a kind of equipment for showing present double hit animation, including memory, processor and be stored on the memory and in institute State the computer program run on processor, it is characterised in that: the processor is realized above-mentioned when executing the computer program The step of any one of claims 1 to 3 the method.
6. a kind of system for showing present double hit animation, it is characterised in that: the system includes double hit number image generation module, animation Show width computing module, animation effect insertion module, animation producing and display module;
The double hit number image generation module is used for: when there is user's double hit gifts, being generated according to the double hit number of user real Present double hit number image needed for existing present double hit animation, the present double hit number image is corresponding with the double hit number of user, including Digital picture corresponding to each bit digital with double hit number;
The animated show width computing module is used for: being expanded according to the width of the present double hit number image of generation and preset animation Big multiple calculates the displaying width of present double hit animation;
The animation effect insertion module is used for: adding widened animation effect for present double hit number image;
The animation producing is used for display module: being executed the present double hit number image for being added to widened animation effect, is obtained Present double hit animation;The present double hit animation is shown according to the displaying width calculated.
7. showing the system of present double hit animation as claimed in claim 6, it is characterised in that: the double hit number image generates mould Block includes that original definition submodule, double hit number variable judging submodule, digital picture acquisition submodule, double hit number variable are assigned again It is worth submodule and generates processing submodule;
The original definition submodule is used for: a variable data array is defined, it is right with each bit digital of double hit number institute for storing The digital picture answered;The double hit number variable for defining an integer, for indicating current double hit quantity, and the double hit number variable Initial value is the double hit number of user;Signal is judged to the transmission of double hit number variable judging submodule;
The double hit number variable judging submodule is used for: being received after judging signal, is judged whether current double hit number variable is greater than Zero, signal is obtained if so, sending to digital picture acquisition submodule, if it is not, generating signal to processing submodule transmission is generated;
The digital picture acquisition submodule is used for: being received after obtaining signal, will be obtained after current double hit number variable mould 10 remaining Number R, the integer which is 0~9;A corresponding digital picture, and the digital picture that will be obtained are converted by the remainder R It is added in the variable data array;Assertive signal is sent to double hit number variable again assignment submodule;
Again assignment submodule is used for the double hit number variable: after receiving assertive signal, by current double hit number variable divided by 10 And the value after being rounded is assigned to double hit number variable again, and judges signal to the transmission of double hit number variable judging submodule;
The generation processing submodule is used for: it receives after generating signal, it is all according to what is saved in the current variable data array Digital picture generates present double hit number image needed for realizing present double hit animation.
8. showing the system of present double hit animation as claimed in claim 6, it is characterised in that: the animation effect is inserted into module Including insertion animation creation submodule, expand animation creation submodule, group animation creation submodule, group animation package submodule, Group animation addition submodule, timer creation submodule, basic bit move animation creation submodule and mobile picture addition of basic bit Module;
The insertion animation creation submodule is used for: obtaining the point of the point bit attribute in the figure layer layer of present double hit number image Place value;According to the point place value got, an insertion animation is created;
The expansion animation creation submodule is used for: one expansion animation of creation, and the maximum of the amplification of the expansion animation is arranged Value is that preset animation expands multiple;
Described group of animation creation submodule is used for: one group animation of creation, and the execution time that this group of animation is arranged is preset The group animation duration;
Described group of animation package submodule is used for: setting the fill pattern day after tomorrow for the fill pattern of group animation, and by creation It is inserted into animation, expands animation package into group animation;
Described group of animation addition submodule is used for: group animation being added in the figure layer layer of present double hit number image;
The timer creation submodule is used for: one timer of creation, and sets the time interval of the timer to and group The execution time of animation is identical;
The basic bit moves animation creation submodule and is used for: the mobile picture of one basic bit of creation, by the end of the mobile picture of the basic bit Point value is set as the point place value of the point bit attribute in the figure layer layer of present double hit number image, by rising for the mobile picture of the basic bit Point value is set as the half of described place value, sets the time with timer for the Starting Executing Time of the mobile picture of the basic bit It is spaced identical, the animation of the mobile picture of the basic bit is executed into the time and is set as the preset displacement animation duration;
The mobile picture addition submodule of the basic bit is used for: the mobile picture of basic bit is added in the figure layer layer of digital picture.
9. showing the system of present double hit animation as claimed in claim 6, which is characterized in that the animated show width calculates Module calculates the detailed process of the displaying width of present double hit animation are as follows: according to the displaying width of present double hit animation=reserved width Degree+present double hit number image width × preset animation expands multiple, and the displaying width of present double hit animation is calculated;Its In, width=digital picture width × digital picture number of present double hit number image.
10. the system of the displaying present double hit animation as described in any one of claim 6 to 9, it is characterised in that: described default Animation expand multiple be 1.5 times.
CN201710400983.1A 2017-05-31 2017-05-31 Method, storage medium, equipment and system for displaying gift continuous-click animation Active CN108989898B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710400983.1A CN108989898B (en) 2017-05-31 2017-05-31 Method, storage medium, equipment and system for displaying gift continuous-click animation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710400983.1A CN108989898B (en) 2017-05-31 2017-05-31 Method, storage medium, equipment and system for displaying gift continuous-click animation

Publications (2)

Publication Number Publication Date
CN108989898A true CN108989898A (en) 2018-12-11
CN108989898B CN108989898B (en) 2021-05-28

Family

ID=64500923

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710400983.1A Active CN108989898B (en) 2017-05-31 2017-05-31 Method, storage medium, equipment and system for displaying gift continuous-click animation

Country Status (1)

Country Link
CN (1) CN108989898B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111757135A (en) * 2020-06-24 2020-10-09 北京字节跳动网络技术有限公司 Live broadcast interaction method and device, readable medium and electronic equipment
CN113778365A (en) * 2021-09-29 2021-12-10 腾讯科技(深圳)有限公司 Element display method, element selection method, device, equipment and storage medium
WO2023045708A1 (en) * 2021-09-24 2023-03-30 北京字跳网络技术有限公司 Interaction method and apparatus, electronic device, readable storage medium, and program product

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000125191A (en) * 1998-10-12 2000-04-28 Nippon Telegr & Teleph Corp <Ntt> Special effect display device
CN103810909A (en) * 2012-11-13 2014-05-21 腾讯科技(深圳)有限公司 Reading history display method and electronic reading device
CN104184731A (en) * 2014-08-22 2014-12-03 广州华多网络科技有限公司 Information display method, device and system
CN104994421A (en) * 2015-06-30 2015-10-21 广州华多网络科技有限公司 Interaction method, device and system of virtual goods in live channel
CN106060676A (en) * 2016-05-17 2016-10-26 腾讯科技(深圳)有限公司 Online interaction method and apparatus based on live streaming
CN106504057A (en) * 2016-10-19 2017-03-15 天脉聚源(北京)传媒科技有限公司 A kind of display methods of electronic gift and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000125191A (en) * 1998-10-12 2000-04-28 Nippon Telegr & Teleph Corp <Ntt> Special effect display device
CN103810909A (en) * 2012-11-13 2014-05-21 腾讯科技(深圳)有限公司 Reading history display method and electronic reading device
CN104184731A (en) * 2014-08-22 2014-12-03 广州华多网络科技有限公司 Information display method, device and system
CN104994421A (en) * 2015-06-30 2015-10-21 广州华多网络科技有限公司 Interaction method, device and system of virtual goods in live channel
CN106060676A (en) * 2016-05-17 2016-10-26 腾讯科技(深圳)有限公司 Online interaction method and apparatus based on live streaming
CN106504057A (en) * 2016-10-19 2017-03-15 天脉聚源(北京)传媒科技有限公司 A kind of display methods of electronic gift and device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111757135A (en) * 2020-06-24 2020-10-09 北京字节跳动网络技术有限公司 Live broadcast interaction method and device, readable medium and electronic equipment
WO2021259301A1 (en) * 2020-06-24 2021-12-30 北京字节跳动网络技术有限公司 Live broadcast interaction method and apparatus, and readable medium and electronic device
US11895354B2 (en) 2020-06-24 2024-02-06 Beijing Bytedance Network Technology Co., Ltd. Live broadcast interaction method and apparatus, and readable medium and electronic device
WO2023045708A1 (en) * 2021-09-24 2023-03-30 北京字跳网络技术有限公司 Interaction method and apparatus, electronic device, readable storage medium, and program product
CN113778365A (en) * 2021-09-29 2021-12-10 腾讯科技(深圳)有限公司 Element display method, element selection method, device, equipment and storage medium
CN113778365B (en) * 2021-09-29 2023-05-26 腾讯科技(深圳)有限公司 Element display method, element selection method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN108989898B (en) 2021-05-28

Similar Documents

Publication Publication Date Title
CN112184856B (en) Multimedia processing device supporting multi-layer special effect and animation mixing
CN111669623B (en) Video special effect processing method and device and electronic equipment
CN109168026A (en) Instant video display methods, device, terminal device and storage medium
CN105700925B (en) A kind of interface implementing method and device of APP
CN109300179A (en) Animation method, device, terminal and medium
CN108989898A (en) A kind of method, storage medium, equipment and system showing present double hit animation
CN106649541A (en) Cartoon playing and generating method and device
CN104079978A (en) Window-adaptive media playing method and device and media interconnection release method
CN109101233A (en) It is adapted to the method, storage equipment and Android device of a variety of screen resolutions
CN104918112A (en) Camera resource application method and device
CN106331089A (en) Video play control method and system
CN115965840A (en) Image style migration and model training method, device, equipment and medium
CN111031399B (en) Bullet screen processing method and system
CN114463473A (en) Image rendering processing method and device, storage medium and electronic equipment
CN108777810B (en) Video data storage method, device, equipment and storage medium
CN113034658B (en) Method and device for generating model map
CN102479387A (en) Method for generating multimedia animation and playing multimedia animation and apparatus thereof
CN104133607A (en) Handwriting sharing method and handwriting sharing device
CN106599176A (en) Image display method and apparatus
CN107678863A (en) The page assembly means of communication and device
CN108876866B (en) Media data processing method, device and storage medium
CN109660852A (en) Video previewing method, storage medium, equipment and system before recorded video publication
CN104506920A (en) Method and device for playing omnimedia data information
CN109032712A (en) Method and device for generating application program configuration diagram
CN106162253B (en) Multimedia information playing order determining method and server

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