CN106528201A - Method and device for cartoon loading in game - Google Patents

Method and device for cartoon loading in game Download PDF

Info

Publication number
CN106528201A
CN106528201A CN201610882725.7A CN201610882725A CN106528201A CN 106528201 A CN106528201 A CN 106528201A CN 201610882725 A CN201610882725 A CN 201610882725A CN 106528201 A CN106528201 A CN 106528201A
Authority
CN
China
Prior art keywords
game
animation file
game action
loading
action
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
CN201610882725.7A
Other languages
Chinese (zh)
Other versions
CN106528201B (en
Inventor
盛凯
朱荣湖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201610882725.7A priority Critical patent/CN106528201B/en
Publication of CN106528201A publication Critical patent/CN106528201A/en
Application granted granted Critical
Publication of CN106528201B publication Critical patent/CN106528201B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The embodiment mode of the invention provides a method for cartoon loading in a game. The method comprises the steps that when a cartoon document corresponding to a game action needs to be played in the game, the cartoon document corresponding to the game action will be determined according to a correspondence relation between a pre-stored game action identifier and the carton document; and the cartoon document corresponding to the game action is read and played. Through pre-establishment of the correspondence relation between the game action identifier and the cartoon document, the corresponding cartoon document can be read and played when the cartoon document corresponding to the game action needs to be played, and a user does not need to read all the cartoon documents into internal memory for standby at a time during starting. In this way, the game loading speed is increased; the internal memory cost is reduced because only a part of cartoon documents need to be stored in the internal memory; a game running speed is increased; and better experience is brought to the user. In addition, the embodiment mode of the invention also provides a device for the cartoon loading in the game.

Description

The method and apparatus for loading animation in game
Technical field
Embodiments of the present invention are related to field of network game technology, more specifically, embodiments of the present invention are related to trip The method and apparatus for loading animation in play.
Background technology
This part is it is intended that the embodiments of the present invention stated in claims provide background or context.Herein Description is not because just recognize it is prior art in being included in this part.
Unity 3D can be easily created such as 3 D video game, be built by what Unity Technologies were developed The multi-platform comprehensive development of games instrument of the type interaction content such as visualization, realtime three dimensional animation is built, is one comprehensively whole The professional game engine of conjunction.
Animation controller (Animation Controller) is the mechanism in Unity for configuring animations state machine, is used After family has configured correlation behavior conversion and the animated card (Animation Clip) under corresponding statess, in gaming can be according to The pattern of configuration is played out.Rewrite controlling device (Override Controller) is Unity offers for redirecting Animation file inside original Animation Controller, is conveniently used for carrying out the quick modification under big animation file, uses Family can carry out animation modification with it.
The content of the invention
But, in prior art, the mechanism of Unity is that have reference to load immediately, the good Animation of user configuring After Controller, loaded with different Override Controller, then a large amount of in Override Controller Animation information disposably will be loaded in internal memory, i.e. all of animation information all can be carried by user when game is started Enter in internal memory.
But, due in game process, it is generally the case that only need to play part animation file therein, if Whole animation informations is loaded in internal memory when game starts, causes internal memory waste, reduce game loading velocity, Er Qieyou A large amount of internal memories are occupied in the whole animation information of loading, memory cost is increased, is reduced game running speed.
For this purpose, a kind of method for loading animation in being highly desirable to improved game, to reduce memory cost, improves game and adds Carry speed and the speed of service.
In the present context, the method and apparatus that embodiments of the present invention load animation in expecting to provide a kind of game.
In the first aspect of embodiment of the present invention, there is provided a kind of method for loading animation in game, including:
When needing the corresponding animation file of game replaying action in gaming, according to the game action mark for prestoring with The corresponding relation of animation file, determines the corresponding animation file of the game action;
Read the corresponding animation file of the game action and play out.
Preferably, methods described is applied in game engine Unity.
Alternatively, according to predefined game action mark and the corresponding relation of animation file, determine the game Before the corresponding animation file of action, also include:
Configuration Rewrite controlling device Override Controller are sky.
Alternatively, before reading the corresponding animation file of the game action and loading, also include:
Whether there is the corresponding animation file of the game action in judging internal memory;And
Read the corresponding animation file of the game action and play out, specifically include:
If there is the corresponding animation file of the game action in internal memory, the game action pair is read from internal memory The animation file answered simultaneously is played out;
If there is no the corresponding animation file of the game action in internal memory, game action correspondence is read from hard disk Animation file and play out.
Preferably, the corresponding animation file of game action is read from hard disk and is played out, specifically include:
Animated card adapter AnimationClipAdapter files are read from hard disk;
The corresponding animated card of game action for needing to play is searched from the AnimationClipAdapter files AnimationClip files;
The Override Controller are updated according to the AnimationClip files for finding;
Override Controller after loading updates are played out.
Alternatively, before playing out after the Override Controller after loading updates, also include:
The game engine is reconfigured according to the Override Controller after renewal.
In the second aspect of embodiment of the present invention, there is provided load the device of animation in a kind of game, including:
Determining unit, for needing during the corresponding animation file of game replaying action, according to what is prestored in gaming Game action identifies the corresponding relation with animation file, determines the corresponding animation file of the game action;
Loading unit, for reading the corresponding animation file of the game action and playing out.
Preferably, described device is applied in game engine Unity.
Alternatively, described device, also includes:
First dispensing unit, for identifying and animation file according to predefined game action in the determining unit Corresponding relation, before determining the corresponding animation file of the game action, configures Rewrite controlling device Override Controller For sky.
Alternatively, described device, also including judging unit, wherein:
The judging unit, for reading the corresponding animation file of the game action in the loading unit and loading it Before, whether there is the corresponding animation file of the game action in judging internal memory;
The loading unit, if being yes specifically for the judged result of the judging unit, reads institute from internal memory State the corresponding animation file of game action and play out;If the judged result of the judging unit is no, from hard disk Read the corresponding animation file of game action and play out.
Preferably, the loading unit, including:
Subelement is read, for reading animated card adapter AnimationClipAdapter files from hard disk;
Subelement is searched, and the game action played is needed for searching from the AnimationClipAdapter files Corresponding animated card AnimationClip files;
Subelement is updated, for the Override being updated according to the AnimationClip files for finding Controller;
Loading subelement, plays out for loading the Override Controller after updating.
Alternatively, described device, also includes:
Second dispensing unit, after the Override Controller after the loading subelement loading updates Before playing out, the game engine is reconfigured according to the Override Controller after renewal.
In the third aspect of embodiment of the present invention, there is provided a kind of method for loading animation in game, including:
Set up the mapping relations between animation file and game action mark;
In running game, according to the invoked order of game action, progressively load game action and identify corresponding animation File is to internal memory and plays out.
In the fourth aspect of embodiment of the present invention, there is provided load the device of animation in a kind of game, for example, can be with Including memorizer and processor, wherein, processor can be used for reading the program in memorizer, perform following process:In game In when needing the corresponding animation file of game replaying action, it is corresponding with animation file according to the game action mark for prestoring Relation, determines the corresponding animation file of the game action;Read the corresponding animation file of the game action and play out.
In in terms of the 5th of embodiment of the present invention, there is provided a kind of program product, which includes program code, when described When program product runs, described program code is used for performing procedure below:Need game replaying action corresponding dynamic in gaming When drawing file, according to the game action mark for prestoring and the corresponding relation of animation file, the game action correspondence is determined Animation file;Read the corresponding animation file of the game action and play out.
Method and apparatus according to animation is loaded in the game of embodiment of the present invention, by pre-building game action mark Know and the corresponding relation between animation file, so, need to play arbitrary game action in game play corresponding dynamic When drawing file, the corresponding animation file of the game action can be read immediately according to the corresponding relation for pre-building and be played out, And it is standby in internal memory without the need for being disposably all read into whole animation files on startup, improve loading when game starts Speed, the part animation file for being read in need to only storing game play in being additionally, since internal memory immediately, and it is complete without the need for storage The animation file in portion, so as to save memory cost, improves game running speed, is that user brings preferably experience.
Description of the drawings
Detailed description below, above-mentioned and other mesh of exemplary embodiment of the invention are read by reference to accompanying drawing , feature and advantage will become prone to understand.In the accompanying drawings, if showing the present invention's by way of example, and not by way of limitation Dry embodiment, wherein:
The method flow schematic diagram of animation is loaded in the game that Fig. 1 schematically shows according to embodiment of the present invention;
Fig. 2 schematically shows and is identified and corresponding animation file according to the game action of setting up of embodiment of the present invention Between corresponding relation schematic flow sheet;
The method flow for loading animation in the game that Fig. 3 schematically shows according to further embodiment of this invention is illustrated Figure;
Fig. 4 schematically show according to yet another embodiment of the invention to read the game action from hard disk corresponding dynamic Draw file the schematic flow sheet for playing out;
The implementing procedure of the method for animation is loaded in the game that Fig. 5 schematically shows according to yet another embodiment of the invention Schematic diagram;
Fig. 6 loads the apparatus structure schematic diagram of animation in schematically showing game according to an embodiment of the invention;
Fig. 7 loads the structural representation of the device of animation in schematically showing game according to an embodiment of the invention Figure;
The program product of the device that Fig. 8 loads animation in schematically showing game according to an embodiment of the invention shows It is intended to;
In the accompanying drawings, identical or corresponding label represents identical or corresponding part.
Specific embodiment
The principle and spirit of the present invention are described below with reference to some illustrative embodiments.It should be appreciated that providing this Just for the sake of making, those skilled in the art better understood when a little embodiments and then realization is of the invention, and not with any Mode limits the scope of the present invention.Conversely, these embodiments are provided so that the disclosure is more thorough and complete, and energy It is enough that the scope of the present disclosure is intactly conveyed to those skilled in the art.
One skilled in the art will appreciate that embodiments of the present invention can be implemented as a kind of system, device, equipment, method Or computer program.Therefore, the disclosure can be implemented as following form, i.e.,:Completely hardware, completely software (including firmware, resident software, microcode etc.), or the form that hardware and software is combined.
According to the embodiment of the present invention, it is proposed that the method and apparatus for loading animation in a kind of game.
Herein, any number of elements in accompanying drawing is used to example and unrestricted, and any name is only used for Distinguish, not with any limitation.
Below with reference to some representative embodiments of the present invention, the in detail principle and spirit of the explaination present invention.
Summary of the invention
The inventors discovered that, existing game engine when game is started can disposably by whole animation files read in from It is standby in internal memory, if needing to play certain animation file in game play, corresponding animation text is read from internal memory Part is played out, but due to game play in, may only need to play a part of animation file therein, so, When game starts, the whole animation file of disposable loading needs to expend longer time, reduces game loading velocity;And In game play, the animation file of loading is more, and the memory cost of occupancy is bigger, have impact on game running speed.
In view of this, the corresponding relation between action identification and animation file is pre-defined in the embodiment of the present invention, in trip An empty file is loaded when play starts, and so, improves game loading velocity, and in game running, according to the actual requirements Immediately its corresponding animation file is read when needing and performing an action to play out, so, realize File, the animation file for storing is greatly reduced, memory cost is reduced in internal memory, improves game running speed.
After the ultimate principle for describing the present invention, lower mask body introduces the various non-limiting embodiment party of the present invention Formula.
Application scenarios overview
In game provided in an embodiment of the present invention load animation method suitable for game engine, game suitable in Unity game engines.
It should be noted that above-mentioned application scenarios are for only for ease of understands spirit and principles of the present invention, it is of the invention Embodiment is unrestricted in this regard.Conversely, embodiments of the present invention can apply to applicable any scene.
Illustrative methods
As shown in figure 1, the implementation process diagram of the method for loading animation in game provided in an embodiment of the present invention, bag Include following steps:
S11, the mapping relations set up between animation file and game action mark.
When being embodied as, it is actually needed according to game, the game action for being likely to occur makes corresponding animation file, The corresponding animation file of game action such as example, on foot, kick, bend over, running, jumping, and set up game action mark with it is corresponding Corresponding relation between animation file.As shown in Fig. 2 which is a kind of possible signal of mapping relations set up.
S12, in running game, according to the invoked order of game action, progressively load game action mark corresponding Animation file is to internal memory and plays out.
In this step, in game play, according to the invoked order of game action, game action mark is progressively loaded Know corresponding animation file to play out into internal memory.For example, turn left after game role is directly walked, when game role starts to walk, Game action " walking " corresponding animation file is read in into internal memory first and is played, when game role needs again by game action " left-hand rotation " corresponding animation file reads in internal memory and plays, thus, it is possible to progressively be loaded according to the invoked order of game action Game action identifies corresponding animation file to internal memory and plays out.
It should be noted that the speed in order to improve playing cartoon file, is reading the corresponding animation file of game action When, whether there is the corresponding animation file of the game action during internal memory can be first determined whether, if then can directly play phase The animation file answered, if it is not, from hard disk read in corresponding animation file in internal memory again play out again.It is based on This, step S12 can be implemented according to below scheme:Whether there is the corresponding animation file of the game action in judging internal memory, If there is no the corresponding animation file of the game action in internal memory, by being assigned to again Rewrite controlling device, will correspondence Hard disk in animation file be loaded onto internal memory and play out.
For Unity game engines, in the embodiment of the present invention, can be replaced with an empty OverrideController Former OverrideController, as new OverrideController is an empty file, wherein not comprising any Animation file, therefore, it is to avoid the problem of whole game actions corresponding animation file of loading definition when game starts, because This, improves game toggle speed;And in game play, loading section animation file is needed according to game, with loading Whole animation files are compared, and have been saved memory cost, have been improve game running speed.
Based on the mapping relations between the animation file and game action mark set up in step S11, as shown in figure 3, being According to the method implementation process diagram for loading animation in the game of further embodiment of this invention, may comprise steps of:
S31, when needing the corresponding animation file of game replaying action in gaming, according to the game action mark for prestoring Know the corresponding relation with animation file, determine the corresponding animation file of the game action.
In step S31, after game running, when needing to perform if desired certain game action according to game role, according to In needing corresponding relation of the game action mark of the game action for performing in game action mark with animation file, trip is found The corresponding animation file of play action identification.
S32, the corresponding animation file of the reading game action are simultaneously played out.
According to the animation file that step S31 finds, corresponding animation file is read in internal memory and broadcast.
It should be noted that in the embodiment of the present invention to be applied to game engine Unity, before execution step S31, Also need to configure Override Controller (Rewrite controlling device) for sky, so, load in game start-up course Override Controller, as Override Controller are empty file, the inside do not have any content, accordingly, it is capable to It is enough to improve game loading velocity.
When being embodied as, for the animation file for having been read into internal memory can be buffered in internal memory, in game play In, can also comprise the following steps before execution step S32:Move with the presence or absence of the game action is corresponding in judging internal memory Draw file.Specifically, when needing the corresponding animation file of game replaying action in gaming, first according to the game for prestoring Action identification and the corresponding relation of animation file, determine the corresponding animation file of the game action, then, are loaded according to internal memory Whether the caching record of animation file, be cached with the corresponding animation file of the game action, if it has, then direct in judging internal memory Read corresponding animation file from internal memory to play out, if there is no the corresponding animation file of the game action in internal memory, The corresponding animation file of game action is then read from hard disk and is played out, i.e., first by corresponding animation file from hard disk Internal memory is read in, and then corresponding animation file is read from internal memory again and is played out.
It is when being embodied as, literary from the corresponding animation of the game action can be read from hard disk according to the flow process shown in Fig. 4 Part is simultaneously played out:
S41, from hard disk read animated card adapter AnimationClipAdapter files.
S42, the corresponding animated card of game action that lookup needs are played from AnimationClipAdapter files AnimationClip files.
The AnimationClip files that S43, basis find update the Override Controller.
Override Controller after S44, loading renewal are played out.
When being embodied as, due to have modified Override Controller, therefore, before execution step S44, also need The game engine is reconfigured according to the Override Controller after renewal.
It should be noted that when game is exited every time, it will remove the animation file read in internal memory, once swim upper When play starts, need progressively loading corresponding animation file into internal memory according to game.
As shown in figure 5, which is the implementation process diagram of the method for loading animation in game provided in an embodiment of the present invention, May comprise steps of:
S51, set up animation file and game action identify between mapping relations.
When being embodied as, by taking game engine Unity as an example, original OverrideController can be peeled off, Its all map information for including is extracted, and is recycled self-defining form unloading to be carried out by ScriptableObject, is recorded In OverrideController, original game action mark is identified and animation text with animation file and the new game action that is loaded into Mapping relations between part.
S52, startup game.
It should be noted that according to embodiments of the present invention, by OverrideController is configured to sky so that Start in game process, without the need for pre-loaded any animation file into internal memory, thus, improve game loading velocity.
In S53, game play, when needing the corresponding animation file of game replaying action, moved according to the game set up The corresponding relation made a check mark with animation file, determines the corresponding animation file of game action.
When being embodied as, can according to game action identify in Fig. 2 shown in form in search corresponding animation file.
S54, judge in internal memory with the presence or absence of the corresponding animation file of the game action, if it is, execution step S55, Otherwise, execution step S56.
S55, the corresponding animation file of game action being read from internal memory and being played out, flow process terminates.
S56, from hard disk read animated card adapter AnimationClipAdapter files.
S57, the corresponding animation of game action that lookup needs are played from the AnimationClipAdapter files Card AnimationClip files.
The AnimationClip files that S58, basis find update Override Controller.
S59, game engine is reconfigured according to the Override Controller after renewal.
Override Controller after S510, loading renewal are played out.
The method for loading animation in the game for providing according to embodiments of the present invention, when game starts, is not loaded with any dynamic File is drawn into internal memory, game loading velocity is this improves, in game play, is progressively loaded according to demand corresponding Animation file into internal memory, as the animation file being loaded onto in internal memory is only the game that is related in this game play The corresponding animation file of action, rather than for whole animation files of game design, so as to reduce memory cost, improve Sort run speed.
Example devices
After the method for describing exemplary embodiment of the invention, next, with reference to Fig. 6 to exemplary reality of the invention Apply mode, game in load animation device illustrate.
As shown in fig. 6, which is the structural representation of the device of loading animation in game provided in an embodiment of the present invention, bag Include:
Determining unit 61, for being needed during the corresponding animation file of game replaying action in gaming, according to prestoring Game action mark and the corresponding relation of animation file, determine the corresponding animation file of the game action;
Loading unit 62, for reading the corresponding animation file of the game action and playing out.
Preferably, the device for loading animation in game provided in an embodiment of the present invention can apply to game engine Unity In.
Alternatively, the device of animation is loaded in game provided in an embodiment of the present invention, can also be included:
First dispensing unit 63, for literary according to predefined game action mark and animation in the determining unit 61 The corresponding relation of part, before determining the corresponding animation file of the game action, configures Rewrite controlling device Override Controller is sky.
Alternatively, the device of animation is loaded in game provided in an embodiment of the present invention, can also include judging unit 64, its In:
The judging unit 64, for reading the corresponding animation file of the game action in the loading unit 62 and adding Before load, in judging internal memory, whether there is the corresponding animation file of the game action;
The loading unit 62, if being yes specifically for the judged result of the judging unit 64, reads from internal memory Take the corresponding animation file of the game action and play out;If the judged result of the judging unit 64 is no, from The corresponding animation file of game action is read in hard disk and is played out.
Preferably, the loading unit 62, including:
Subelement 621 is read, for reading animated card adapter AnimationClipAdapter files from hard disk;
Subelement is searched, 622 need the game played for searching from the AnimationClipAdapter files The corresponding animated card AnimationClip files of action;
Subelement 623 is updated, for the Override being updated according to the AnimationClip files for finding Controller;
Loading subelement 624, plays out for loading the Override Controller after updating.
Alternatively, the device of animation is loaded in game provided in an embodiment of the present invention, can also be included:
Second dispensing unit 65, for the Override Controller after loading subelement 624 loading updates Before playing out afterwards, the game engine is reconfigured according to the Override Controller after renewal.
In some possible embodiments, at least one can be included according to the device for loading animation in present invention game Processing unit and at least one memory element.Wherein, the memory element has program stored therein code, when described program code When being performed by the processing unit so that the processing unit is performed described in above-mentioned " illustrative methods " part of this specification According to the various steps in the method for loading animation in various illustrative embodiments game of the invention.For example, it is described to process single The step of unit can perform as shown in Figure 3 S31, when needing the corresponding animation file of game replaying action in gaming, according to Game action mark and the corresponding relation of animation file for prestoring, determines the corresponding animation file of the game action, walks Rapid S32, reads the corresponding animation file of the game action and plays out.
The device 70 of animation is loaded in describing the game of this embodiment of the invention referring to Fig. 7.Fig. 7 The device for loading animation in the game of display is only an example, should not be to the function of the embodiment of the present invention and use range band Carry out any restriction.
As shown in fig. 7, the device 70 for loading animation in game can be showed in the form of universal computing device, for example which can Think server apparatus.The component for loading the device 70 of animation in game can be including but not limited to:Above-mentioned at least one is processed Unit 71, above-mentioned at least one memory element 72, connection different system component (including memory element 72 and processing unit 71) Bus 73.
Bus 73 represents one or more in a few class bus structures, including memory bus or Memory Controller, Peripheral bus, processor or using various bus structures in any bus-structured local bus.
Memory element 72 can include the computer-readable recording medium of form of volatile memory, such as random access memory (RAM) 721 and/or cache memory 722, can further include read only memory (ROM) 723.
Memory element 72 can also include the program/utility 725 with one group of (at least one) program module 724, Such program module 724 is included but is not limited to:Operating system, one or more application program, other program modules and Routine data, potentially includes the realization of network environment in each or certain combination in these examples.
The device 70 for loading animation in game can also be with one or more external equipment 74 (such as keyboards, sensing equipment Deng) communication, can also enable a user to and the equipment communication that interacts of device 70 for loading animation in the game with one or more, And/or with enable what the device 70 for loading animation in the game communicated with one or more of the other computing device any to set Standby (such as router, modem etc.) communicates.This communication can be carried out by input/output (I/O) interface 75.And And, the device 70 for loading animation in game can also be by network adapter 76 and one or more network (such as LAN (LAN), wide area network (WAN) and/or public network, such as the Internet) communication.As illustrated, network adapter 76 passes through bus 73 are communicated with other modules for the device 70 for loading animation in game.It should be understood that although not shown in, can with reference to game The device 70 of middle loading animation uses other hardware and/or software module, including but not limited to:It is microcode, device driver, superfluous Remaining processing unit, external disk drive array, RAID system, tape drive and data backup storage system etc..
Exemplary process product
In some possible embodiments, various aspects of the invention are also implemented as a kind of shape of program product Formula, which includes program code, and when described program product is run on the terminal device, described program code is used for making the terminal Equipment performs the trip according to various illustrative embodiments of the invention described in above-mentioned " illustrative methods " part of this specification The step in the method for animation is loaded in play, for example, the S31 the step of terminal unit can be performed as shown in Figure 3, in trip It is when needing the corresponding animation file of game replaying action in play, right with animation file according to the game action mark for prestoring Should be related to, determine the corresponding animation file of the game action, step S32 reads the corresponding animation file of the game action And play out.
Described program product can be using the combination in any of one or more computer-readable recording mediums.Computer-readable recording medium can be readable letter Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing can for example be but not limited to electricity, magnetic, optical, electromagnetic, red The system of outside line or quasiconductor, device or device, or combination arbitrarily above.The more specifically example of readable storage medium storing program for executing (non exhaustive list) includes:Electrical connection with one or more wires, portable disc, hard disk, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc Read memorizer (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
As shown in figure 8, loading the program product 80 of animation in describing game according to the embodiment of the present invention, which can With using portable compact disc read only memory (CD-ROM) and including program code, it is possible to run on the terminal device.So And, the present invention program product not limited to this, in this document, readable storage medium storing program for executing can be it is any comprising or storage program Tangible medium, the program can be commanded execution system, device or device and use or in connection.
Readable signal medium can include the data signal propagated in a base band or as a carrier wave part, wherein carry Readable program code.The data signal of this propagation can take various forms, including but not limited to electromagnetism letter Number, optical signal or above-mentioned any appropriate combination.Readable signal medium can also be beyond readable storage medium storing program for executing it is any can Read medium, the computer-readable recording medium can send, propagate or transmit for by instruction execution system, device or device use or Program in connection.
The program code included on computer-readable recording medium can be with any appropriate medium transmission, including but not limited to Wirelessly, wired, optical cable, RF etc., or above-mentioned any appropriate combination.
The program for performing present invention operation can be write with the combination in any of one or more programming language Code, described program design language include object oriented program language Java, C++ etc., also including routine Procedural programming language such as " C " language or similar programming language.Program code can fully in user Perform in computing device, partly perform on a user device, performing as an independent software kit, partly calculating in user Its upper side point is performed on a remote computing or is performed in remote computing device or server completely.It is being related to far In the situation of journey computing device, remote computing device can include LAN (LAN) or wide by the network of any kind Domain net (WAN) is connected to user's computing device, or, it may be connected to external computing device is (such as using Internet service Provider comes by Internet connection).
Although it should be noted that be referred to some units or subelement of device in above-detailed, this stroke What is point be merely exemplary is not enforceable.In fact, according to the embodiment of the present invention, it is above-described two or more The feature and function of unit can embody in a unit.Conversely, the feature and function of an above-described unit can It is embodying by multiple units with Further Division.
Although additionally, describe the operation of the inventive method in the accompanying drawings with particular order, this do not require that or Hint must perform according to the particular order these operation, or the operation having to carry out shown in whole could realize it is desired As a result.Additionally or alternatively, it is convenient to omit some steps, multiple steps are merged into a step to perform, and/or by one Step is decomposed into execution of multiple steps.
Although describing spirit and principles of the present invention by reference to some specific embodiments, it should be appreciated that, this Invention is not limited to disclosed specific embodiment, and the feature in also not meaning that to the division of each side in terms of these can not Combination is to be benefited, this to divide merely to the convenience of statement.It is contemplated that cover claims spirit and In the range of included various modifications and equivalent arrangements.

Claims (13)

1. a kind of method for loading animation in game, including:
When needing the corresponding animation file of game replaying action in gaming, according to the game action mark and animation that prestore The corresponding relation of file, determines the corresponding animation file of the game action;
Read the corresponding animation file of the game action and play out.
2. method according to claim 1, methods described are applied in game engine Unity;And
According to predefined game action mark and the corresponding relation of animation file, determine that the game action is corresponding dynamic Before drawing file, also include:
Configuration Rewrite controlling device Override Controller are sky.
3. method according to claim 2, before reading the corresponding animation file of the game action and loading, also wraps Include:
Whether there is the corresponding animation file of the game action in judging internal memory;And
Read the corresponding animation file of the game action and play out, specifically include:
If there is the corresponding animation file of the game action in internal memory, the game action is read from internal memory corresponding Animation file is simultaneously played out;
If there is no the corresponding animation file of the game action in internal memory, game action is read from hard disk corresponding dynamic Draw file and play out.
4. method according to claim 3, reads the corresponding animation file of game action from hard disk and plays out, have Body includes:
Animated card adapter AnimationClipAdapter files are read from hard disk;
The corresponding animated card of game action for needing to play is searched from the AnimationClipAdapter files AnimationClip files;
The Override Controller are updated according to the AnimationClip files for finding;
Override Controller after loading updates are played out.
5. method according to claim 4, plays out it after the Override Controller after loading updates Before, also include:
The game engine is reconfigured according to the Override Controller after renewal.
6. the device of animation is loaded in a kind of game, including:
Determining unit, for needing during the corresponding animation file of game replaying action, according to the game for prestoring in gaming Action identification and the corresponding relation of animation file, determine the corresponding animation file of the game action;
Loading unit, for reading the corresponding animation file of the game action and playing out.
7. device according to claim 6, described device are applied in game engine Unity;And
Described device, also includes:
First dispensing unit, it is corresponding with animation file for being identified according to predefined game action in the determining unit Relation, before determining the corresponding animation file of the game action, configuration Rewrite controlling device Override Controller are It is empty.
8. device according to claim 7, also including judging unit, wherein:
The judging unit, for before the loading unit reads the corresponding animation file of the game action loading, Whether there is the corresponding animation file of the game action in judging internal memory;
The loading unit, if being yes specifically for the judged result of the judging unit, reads the trip from internal memory The corresponding animation file of play action is simultaneously played out;If the judged result of the judging unit is no, read from hard disk The corresponding animation file of game action is simultaneously played out.
9. device according to claim 8, the loading unit, including:
Subelement is read, for reading animated card adapter AnimationClipAdapter files from hard disk;
Subelement is searched, and the game action played correspondence is needed for searching from the AnimationClipAdapter files Animated card AnimationClip files;
Subelement is updated, for the Override Controller being updated according to the AnimationClip files for finding;
Loading subelement, plays out for loading the Override Controller after updating.
10. device according to claim 9, also includes:
Second dispensing unit, for being broadcast after the OverrideController after the loading subelement loading updates Before putting, the game engine is reconfigured according to the Override Controller after renewal.
The method for loading animation in a kind of 11. game, including:
Set up the mapping relations between animation file and game action mark;
In running game, according to the invoked order of game action, progressively load game action and identify corresponding animation file To internal memory and play out.
12. methods according to claim 11, are applied in game engine Unity, and methods described also includes:Configuration rewrites Controller is sky.
13. methods according to claim 12, progressively load the corresponding animation file of game action mark and go forward side by side to internal memory Row broadcasting includes:
Whether there is the corresponding animation file of the game action in judging internal memory;
If there is no the corresponding animation file of the game action in internal memory, by being assigned to again Rewrite controlling device, will Animation file in corresponding hard disk is loaded onto internal memory and plays out.
CN201610882725.7A 2016-10-10 2016-10-10 Method and device for loading animation in game Active CN106528201B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610882725.7A CN106528201B (en) 2016-10-10 2016-10-10 Method and device for loading animation in game

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610882725.7A CN106528201B (en) 2016-10-10 2016-10-10 Method and device for loading animation in game

Publications (2)

Publication Number Publication Date
CN106528201A true CN106528201A (en) 2017-03-22
CN106528201B CN106528201B (en) 2019-12-13

Family

ID=58331768

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610882725.7A Active CN106528201B (en) 2016-10-10 2016-10-10 Method and device for loading animation in game

Country Status (1)

Country Link
CN (1) CN106528201B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108010112A (en) * 2017-11-28 2018-05-08 腾讯数码(天津)有限公司 Animation processing method, device and storage medium
CN108038160A (en) * 2017-12-06 2018-05-15 央视动画有限公司 Dynamic animation store method, dynamic animation call method and device
CN108416830A (en) * 2018-02-26 2018-08-17 网易(杭州)网络有限公司 Animation display control method, device, equipment and storage medium
CN111135580A (en) * 2019-12-26 2020-05-12 珠海金山网络游戏科技有限公司 Game role standby animation generation method and device
CN111443913A (en) * 2020-03-27 2020-07-24 网易(杭州)网络有限公司 Interactive animation configuration method and device, storage medium and electronic equipment
CN111481928A (en) * 2020-04-13 2020-08-04 网易(杭州)网络有限公司 Animation loading method and device, server and storage medium
CN111880877A (en) * 2020-07-24 2020-11-03 上海米哈游天命科技有限公司 Animation switching method, device, equipment and storage medium
CN113473171A (en) * 2021-08-09 2021-10-01 上海哔哩哔哩科技有限公司 Resource processing method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101477592A (en) * 2008-12-16 2009-07-08 腾讯科技(深圳)有限公司 Method and apparatus for displaying 3D animation
CN101833459A (en) * 2010-04-14 2010-09-15 四川真视信息技术有限公司 Dynamic 2D bone personage realizing system based on webpage
JP2011186834A (en) * 2010-03-09 2011-09-22 Copcom Co Ltd Game program, recording medium, and computer device
US20120226895A1 (en) * 2011-03-01 2012-09-06 Microsoft Corporation Protecting operating system configuration values
CN104461662A (en) * 2014-12-25 2015-03-25 上海恺英网络科技有限公司 Unity3d bone animation plugin SmoothMoves loading optimizing method
CN104517306A (en) * 2013-09-27 2015-04-15 北大方正集团有限公司 Method and device for playing animation

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101477592A (en) * 2008-12-16 2009-07-08 腾讯科技(深圳)有限公司 Method and apparatus for displaying 3D animation
JP2011186834A (en) * 2010-03-09 2011-09-22 Copcom Co Ltd Game program, recording medium, and computer device
CN101833459A (en) * 2010-04-14 2010-09-15 四川真视信息技术有限公司 Dynamic 2D bone personage realizing system based on webpage
US20120226895A1 (en) * 2011-03-01 2012-09-06 Microsoft Corporation Protecting operating system configuration values
CN104517306A (en) * 2013-09-27 2015-04-15 北大方正集团有限公司 Method and device for playing animation
CN104461662A (en) * 2014-12-25 2015-03-25 上海恺英网络科技有限公司 Unity3d bone animation plugin SmoothMoves loading optimizing method

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108010112A (en) * 2017-11-28 2018-05-08 腾讯数码(天津)有限公司 Animation processing method, device and storage medium
CN108010112B (en) * 2017-11-28 2023-08-22 腾讯数码(天津)有限公司 Animation processing method, device and storage medium
CN108038160A (en) * 2017-12-06 2018-05-15 央视动画有限公司 Dynamic animation store method, dynamic animation call method and device
CN108416830A (en) * 2018-02-26 2018-08-17 网易(杭州)网络有限公司 Animation display control method, device, equipment and storage medium
CN111135580A (en) * 2019-12-26 2020-05-12 珠海金山网络游戏科技有限公司 Game role standby animation generation method and device
CN111135580B (en) * 2019-12-26 2024-03-19 珠海金山数字网络科技有限公司 Game character standby animation generation method and device
CN111443913B (en) * 2020-03-27 2023-05-12 网易(杭州)网络有限公司 Interactive animation configuration method and device, storage medium and electronic equipment
CN111443913A (en) * 2020-03-27 2020-07-24 网易(杭州)网络有限公司 Interactive animation configuration method and device, storage medium and electronic equipment
CN111481928B (en) * 2020-04-13 2023-04-07 网易(杭州)网络有限公司 Animation loading method and device, server and storage medium
CN111481928A (en) * 2020-04-13 2020-08-04 网易(杭州)网络有限公司 Animation loading method and device, server and storage medium
CN111880877A (en) * 2020-07-24 2020-11-03 上海米哈游天命科技有限公司 Animation switching method, device, equipment and storage medium
CN111880877B (en) * 2020-07-24 2023-10-31 上海米哈游天命科技有限公司 Animation switching method, device, equipment and storage medium
CN113473171A (en) * 2021-08-09 2021-10-01 上海哔哩哔哩科技有限公司 Resource processing method and device

Also Published As

Publication number Publication date
CN106528201B (en) 2019-12-13

Similar Documents

Publication Publication Date Title
CN106528201A (en) Method and device for cartoon loading in game
CN111078318B (en) Processing method, device and system of configuration file and storage medium
CN105378662B (en) Generate the method and associated computer system of the bundle for application
CN109358936A (en) Information processing method, device, storage medium, electronic equipment and system
CN111061484A (en) Code compiling method, device, server, user terminal and readable medium
CN105760199B (en) A kind of application resource loading method and its equipment
CN106933610B (en) Application program installation package generation method and device and electronic equipment
CN110780789B (en) Game application starting method and device, storage medium and electronic device
CN102567094B (en) Identify the resource index of multiple resource instances
US20110078678A1 (en) Methods and apparatus for producing cross-platform software applications
KR20140032768A (en) Method for executing application and terminal thereof
CN112988400B (en) Video memory optimization method and device, electronic equipment and readable storage medium
CN107273457A (en) A kind of searching method and device, computer installation and computer-readable recording medium
EP4110484A1 (en) Management of provisioning of video game during game preview
CN109002320A (en) For the update method of software development kit, system, electronic equipment and storage medium
CN110231941A (en) Suitable for run mobile device native applications program without the application-level running environment installed completely
CN109254793A (en) Engine partition method, relevant device and computer readable storage medium
CN105068819A (en) Application calling method and device and terminal
CN105531668A (en) Migration of executing processes
CN107798561A (en) Audio broadcasting, sharing method and device, storage medium and electronic equipment
CN109947450A (en) System file upgrade method, device, mobile terminal and readable storage medium storing program for executing
US8307361B2 (en) Platform dependent replacement of digital content asset components
CN112639759A (en) Context digital media processing system and method
JP2009211187A (en) Information processor
CN105808300A (en) Terminal power-on method and apparatus

Legal Events

Date Code Title Description
C06 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