The play system and method for a kind of utilization label event triggering special efficacy and audio
Technical field
Of the invention its is related to a kind of play system and side for triggering special efficacy and audio using label event in games system
Method, belongs to Games Software development field.
Background technology
Audio refers to as the effect manufactured by sound, and special efficacy can be the adjoint various special vision tables of game action
Existing effect, in game in can strengthen the dazzling sense of role action technical ability, atmosphere etc. can also be built.When player releases one
During motor skill, the trick from selling to receiving, this action process needs the incidentally a series of special efficacy sold and attacked, audio etc..
Traditionally by the way of motor skill token record, i.e., to the information record of motor skill in table, for example certain technical ability length is 1
Second, the operation of recording event in table:Sold at 100 milliseconds;It is striking point at 500 milliseconds(Point of impact when movement range is maximum)
And need to have detected whether hit;Receive for 800 milliseconds and recruit.Therefore, typically in the event and logical relation of description game action technical ability
Motor skill table in also to record substantial amounts of game action information, special efficacy audio information, time and routing information.Therefore use
There is following defect in the mode of this token record:
1st, structure is dumb, and adjustment difficulty is big.A broadcasting special efficacy, striking point for example, the measuring point for starting design is sold
Play special efficacy, and need below this trick get two injury when, it is necessary in table increase a point, such as striking point 2;If
Planning is want to set the shout event of game role again in sometime putting for the action, needs to be further added by newline in table or new again
Row.
2nd, when modification is acted, easily forget and update corresponding case point and time.For example, attack script it is lasting when
Between be 1000 milliseconds, its striking point is located at 500 milliseconds, when the duration of action is changed to 800 milliseconds by art designer,
, it is necessary to which accordingly renewal table, the artificial control of this need of work, are easily omitted when striking point is located at 400 milliseconds.
3rd, when some game action uses multiple technical ability, and when modification is acted again, the maintenance of the case point in table
Also easily there is omission problem.In attack, technical ability 1 and technical ability 2 are used, when modification occurs for attack, it is necessary to phase
Answer the time point of ground modification technical ability 1 and technical ability 2.It is typically by artistic design in the case of by the way of this token record
Personnel's service action resource, and project staff is responsible for the maintenance of table, i.e. art designer submit after special efficacy and audio resource by
Project staff updates, and then project staff finishes watching and again recorded the time of case point in table after game action.However, the fine arts are set
The time location that meter personnel just clearly offer some ideas a little with striking point when making, if can there is more preferable instrument or method to be more
Game programmer provide game action special efficacy and audio management and broadcasting, then be greatly enhanced development of games efficiency.
4th, because the special efficacy and audio resource information and game action information that are recorded in motor skill table are belonging respectively to two
The different development of games flow of set, therefore, it is necessary to toggle special efficacy audio resource and trip when motor skill table is filled in
The interface of play planning data, is easily caused motor skill table and fills out mistake.
The content of the invention
In order to solve the above-mentioned technical problem, the present invention provides the broadcasting system of a kind of utilization label event triggering special efficacy and audio
System and method, improve the special efficacy of game action and the design efficiency of audio so that by game action skill during development of games
The configuration of energy table is separated with the configuration of special efficacy and audio, so as to simplify the work of game programmer.
Technical scheme includes a kind of utilization label event and triggers special efficacy and the play system of audio, the system bag
Include:Label editor, generates, changes and stores the label of special efficacy and audio, so for the reproduction time according to game action
Output profiles afterwards;Special efficacy audio index, for the spy needed for the identification information and game action of tissue game action
The identification information and path of effect and audio, and for providing the special efficacy audio allocation list of default or open editor;Scheduling
Device, the scheduler is connected with label editor and special efficacy audio index respectively, for dynamic by the configuration file and game
The identification information of work obtains the corresponding action data in game action technical ability table to distribute the calling interface of special efficacy and audio,
Wherein described game action technical ability table includes the logical identifier of multiple game actions;The broadcasting actuator being connected with scheduler,
For calling game engine to read the configuration file, then triggered according to the reproduction time of game action and game action event
The broadcasting of special efficacy and audio, wherein the game engine includes the system engine and third party's script engine games system in itself.
As a further improvement on the present invention, the label editor includes:Actuation time describing module, for providing life
Into, modification and recording game action duration information and time information interface and/or interface;Label editing module, for root
According to information at the time of game action is newly-built, modification and store corresponding with game action event label;Label function expansion module,
For configuring play parameter in the label of game action event and encapsulating calling interface;Configuration file modular converter, is used for
According to information, play parameter and calling interface generation configuration file at the time of label, read for game engine.
As a further improvement on the present invention, the special efficacy audio index includes:Special efficacy audio indexes editor module, uses
In providing the user the interface for changing the special efficacy audio allocation list and/or interface, so as to be matched somebody with somebody by changing special efficacy audio path
Identification information and its corresponding special efficacy and the audio path in table are put, to adjust the special efficacy and audio needed for game action event.
As a further improvement on the present invention, the scheduler includes:Logic interactive module, for by game action technical ability
Game action event in the logical identifier and the configuration file that are obtained in table is matched, and moves the broadcasting of special efficacy and audio
Make to associate with the Action logic of complicated game action event.
As a further improvement on the present invention, the broadcasting actuator includes:Command reception module, for receiving game system
The play instruction and event triggering command of the game action of system output;Data inquiry module, for reading label editor output
Configuration file to recognize the label of game action event, via the scheduler, obtain the game action thing with the identification
The special efficacy of the label association of part and identification information and the path of audio;Audio performing module, for calling game engine, according to institute
Calling interface that scheduler distributed is stated to trigger the broadcasting of special efficacy and audio.
On the other hand technical scheme provides the broadcasting side that a kind of utilization label event triggers special efficacy and audio
Method, the method comprising the steps of:A, the label for according to the reproduction time of game action generating, changing and storing special efficacy and audio,
Then output profiles;The identification letter of special efficacy and audio needed for B, the identification information of tissue game action and game action
Breath and path, and for providing the special efficacy audio allocation list of default or open editor;C, by the configuration file and
The identification information of game action is to obtain the corresponding action data in game action technical ability table to distribute the tune of special efficacy and audio
With interface, wherein described game action technical ability table includes the logical identifier of multiple game actions;D, game engine is called to read
The configuration file, then triggers the broadcasting of special efficacy and audio according to the reproduction time of game action and game action event, its
Described in game engine include the system engine and third party's script engine games system in itself.
Further, the step A comprises the following steps:There is provided generation, modification and recording game action duration information and
The interface of time information and/or interface;According to information at the time of game action it is newly-built, modification and storage with game action event pair
The label answered;Play parameter is configured in the label of game action event and calling interface is encapsulated;Believe at the time of according to label
Breath, play parameter and calling interface generation configuration file, read for game engine.
Further, the step B includes:The interface for changing the special efficacy audio allocation list and/or interface are provided the user,
So as to by changing identification information and its corresponding special efficacy and audio path in special efficacy audio path configuration table, to adjust game
Special efficacy and audio needed for action event.
Further, the step C includes:In the logical identifier and the configuration file that will be obtained in game action technical ability table
Game action event matched, close the Action logic of special efficacy and the playback action of audio and complicated game action event
Connection.
Further, institute step D comprises the following steps:Receive the play instruction and event of the game action of games system output
Triggering command;Configuration file is read to recognize the label of game action event, the game action thing with the identification is then obtained
The special efficacy of the label association of part and identification information and the path of audio;Game engine is called, is touched according to the calling interface of distribution
Send out the broadcasting of special efficacy and audio.
Beneficial effects of the present invention are:The special efficacy and audio design of game action are simplified in development of games, allows more
Game programmer such as art designer can also make special efficacy and while audio resource, by game action
Label and time are defined with game events, you can realize basic special efficacy and audio configuration;By the configuration of game action technical ability table
Configuration with special efficacy and audio is separated, therefore only needs to change special efficacy audio allocation list, the action various without modification content
Technical ability table, you can update the configuration and broadcasting of special efficacy and audio, improve development of games efficiency;Visualization interface is provided to edit
Label and modification special efficacy audio allocation list, become apparent from modification process, reduce the probability artificially malfunctioned;Game action event
Label can be not only used for solve special efficacy, the playback problem of audio, can be also used for encapsulation or integrating game action logic, be
Games system has supplied satellite interface, is more applicable for increasingly complicated game action technical ability design.
Brief description of the drawings
Fig. 1 show utilization label event triggering special efficacy according to a first embodiment of the present invention and the play system of audio
Structured flowchart;
The utilization label event that Fig. 2 is shown according to a first embodiment of the present invention triggers the player method of special efficacy and audio
Flow chart of steps;
Fig. 3 show the label editor interface of game action event according to a second embodiment of the present invention;
Fig. 4 show special efficacy audio allocation list according to a second embodiment of the present invention;
Fig. 5 show broadcasting execution flow chart according to a third embodiment of the present invention.
Embodiment
In order that the object, technical solutions and advantages of the present invention are clearer, below in conjunction with the accompanying drawings with specific embodiment pair
The present invention is described in detail.The game state control system of the present invention is applied to single-play game, mobile phone games, web game etc.
The exploitation of game, is particularly suitable for use in and the game Action logic of complexity is realized in control role plays the part of class game.
In the first embodiment, shown in reference picture 1 utilization label event triggering special efficacy and the knot of the play system of audio
Structure block diagram, the system includes:Label editor, special efficacy audio index, scheduler and broadcasting actuator.Wherein, label editing
Device is used to carry out " labelling " to game action event, is establishing label and adds parameter, then arranges label and label
Corresponding play parameter output profiles, label editor further comprise actuation time describing module, label editing module,
Label function expansion module and configuration file modular converter.Special efficacy audio index is used to provide special efficacy audio allocation list, makes table
Middle storage game action and the index information of time, special efficacy resource indexing information and path, and enter edlin, special efficacy for user
Audio index further comprises that special efficacy audio indexes editor module.Scheduler can be used as label editor and special efficacy audio rope
The data interaction platform of lead device, while distributing the calling interface of special efficacy and audio, scheduler further comprises logic interactive module.
Play actuator and scheduler to coordinate, be responsible for the broadcasting of special efficacy and audio, play actuator further comprise command reception module,
Data inquiry module and audio performing module.The system is referred to utilization label event triggering special efficacy and sound shown in Fig. 2
The player method flow chart of steps of effect is implemented, and is further explained below.
In step, label editor generates, changes and stored special efficacy and audio according to the reproduction time of game action
Label, then output profiles.Wherein, actuation time describing module provide generation, modification and recording game action when
The interface and/or interface of long message and time information;Label editing module according to information at the time of game action it is newly-built, modification and
Storage label corresponding with game action event;Label function expansion module configures broadcasting ginseng in the label of game action event
Count and encapsulate calling interface;Configuration file modular converter is generated according to information, play parameter and calling interface at the time of label
Configuration file, reads for game engine.
In stepb, the special efficacy needed for the identification information and game action of special efficacy audio index tissue game action
Identification information and path with audio, and for providing the special efficacy audio allocation list of default or open editor.Wherein, it is special
Effect audio index editor module provides the user the interface for changing the special efficacy audio allocation list and/or interface, so that by repairing
Change identification information and its corresponding special efficacy and the audio path in special efficacy audio path configuration table, to adjust game action event institute
The special efficacy and audio needed.
In step C, scheduler obtains game action skill by the identification information of the configuration file and game action
Corresponding action data that can be in table is to distribute the calling interface of special efficacy and audio.Wherein, game action technical ability table can be included
Multiple game actions and the index of event mark, logical identifier and execution path information.Wherein, logic interactive module will play dynamic
The game action event made in the logical identifier and the configuration file that are obtained in technical ability table is matched, and makes special efficacy and audio
Playback action is associated with the Action logic of complicated game action event.
In step D, playing actuator calls game engine to read the configuration file, then broadcasting according to game action
Put the broadcasting of time and game action event triggering special efficacy and audio.Wherein described game engine include games system in itself be
System engine and third party's script engine, the script of third party's script engine analytic language such as can use Lua, Python
Engine.This third party's script can be a kind of compact regime type script, can be embedded in or be incorporated into games, from
And provide flexible extension and customization function for it.In actuator is played, command reception module receives games system output
The play instruction and event triggering command of game action;Data inquiry module reads the configuration file of label editor output to know
The label of other game action event, via the scheduler, obtains what is associated with the label of the game action event of the identification
The identification information and path of special efficacy and audio;Audio performing module calls game engine, the tune distributed according to the scheduler
The broadcasting of special efficacy and audio is triggered with interface.
Below by more specifically embodiment to the utilization label event triggering special efficacy according to the present invention and the broadcasting of audio
The technical scheme of system and method is described.
The system according to the present invention can provide patterned game action label editor, as shown in Figure 3.Label editing
Device can generate a time scale strip, the length of scale strip to predetermined game action, such as the attack of game role fight
Spend to should game action duration.User can in scale strip, specific at the time of on be directly added into label, and
Suitable bookmark name is set, for example, has named label " start ", " fx ", " hit " and " end " in figure 3, their generations respectively
The beginning of table game action technical ability, offer some ideas, hit and terminate.
Then input equipment is passed through(Such as keyboard, mouse)The parameter value of label is set, such as sets the label corresponding
The information such as broadcasting time, cycle labeling, the probability of occurrence of action event.Preferably, action event can also be encapsulated in the label
Logical relation, for example, create the first label and the second label corresponds to the first event and second event respectively, user will set the
Two events can be triggered after the completion of the first event, because this affair logic is configured in motor skill table
As long as, therefore such logical identifier is chosen in logic choice box of the user in the first and second labels, with regard to completing to get over
The logical wrapper of part and label.In addition, the system also provides action for label plays triggering interface, for example, playing the attack
During action, according to the current play time of the animation of attack, the event either with or without triggering is checked, passes through label if played
And trigger event, then call the application programming interface of the triggering of the action, such as OnAnimationEvent (string
AnimName, string eventName), to realize corresponding function.Preferably, game developer exists
The logic that encapsulation game needs in OnAnimationEvent, neatly realizes changeable game design demand.
User is set after the completion of label, and label editor can generate and preserve corresponding configuration file.For example, correspondence is attacked
Hitting the generated configuration file format of action can be:
<Animation Name="attack" FrameRatio="30" PlayLoop="0">
<KeyFrame Time="0" Name="start" />
<KeyFrame Time="204" Name="fx" />
<KeyFrame Time="370" Name="hit" />
<KeyFrame Time="767" Name="end" />
</Animation>
Where it can be seen that configuration file contains the broadcast information of action:Denomination of dive index, frame per second 30, do not play
Circulation etc..It further comprises the label information for corresponding to each moment.
In the present embodiment, the system also provides the index based on special efficacy audio allocation list.Reference picture 4, specifically,
Special efficacy audio allocation list includes the types index ID, action event index name and special efficacy and audio of game action index letter
Breath and path.Wherein, the types index ID of special efficacy audio allocation list is matched with the action ID of motor skill table, event name identification
(In table, from the 1st row XC arrange cell to the right)Bookmark name with label editor is corresponding, so that system can be in table
In index out corresponding audio and special efficacy resource is played out.Preferably, user can also be neatly by changing the Biao Laibiao
Existing game action event and its execution logic.In the circulation special efficacy situation for implementing motor skill, such as needed when technical ability starts
Need to terminate the special efficacy at the end of playing special efficacy and technical ability, " loop " event tag can be created(I.e. circulation is marked
Label), modification or renewal that accordingly also progress is associated with the label editing in special efficacy audio allocation list.When handle this
During the special efficacy of " loop ", resource path can be obtained in special efficacy audio allocation list, while interoperation technical ability table is implemented together
The circle logic of " loop " event.When motor skill is completed, special efficacy is performed using the guide of special efficacy audio allocation list
Close.
Fig. 5 show broadcasting execution flow chart according to a third embodiment of the present invention.Before game replaying action, user
Need in label editor, " labelling " is implemented to default game action, is, be phase on the actuation time point of setting
The action event establishing label answered and add play parameter and logic is played in encapsulation.Then it is configuration text to preserve label data
Part, for that in subsequent step suitable engine can be called to read label data from configuration file.If in subsequent step
In use third party's engine, such as Lua script engines then need in output profiles and sealed again when reading configuration file
One layer of parsing module is filled, the configuration file of output is met the parsing form of third party's engine.
Referring still to Fig. 5, in the present embodiment, interacted according to the play system of the present invention with game theme program.
When games game replaying is acted, play system carries out timing to the reproduction time of game action and passes through configuration file
Identification events label.If the time point of reproduction time arrival event label, and corresponding action event meets default patrol
Summary is asked, then triggers play system and call game engine, while from the special efficacy label corresponding with the acquisition of audio allocation list and moving
Make the special efficacy and audio resource of event, then trigger corresponding application programming interface(API)Special efficacy and audio are played, preferably
Ground can also handle the various logic of game action event.
It is described above, simply presently preferred embodiments of the present invention, the invention is not limited in above-mentioned embodiment, as long as
It reaches the technique effect of the present invention with identical means, should all belong to protection scope of the present invention.In the protection model of the present invention
Its technical scheme and/or embodiment can have a variety of modifications and variations in enclosing.