CN109298865A - Realize the method and device of game skill programmable - Google Patents
Realize the method and device of game skill programmable Download PDFInfo
- Publication number
- CN109298865A CN109298865A CN201811069633.2A CN201811069633A CN109298865A CN 109298865 A CN109298865 A CN 109298865A CN 201811069633 A CN201811069633 A CN 201811069633A CN 109298865 A CN109298865 A CN 109298865A
- Authority
- CN
- China
- Prior art keywords
- technical ability
- model
- script
- compiler
- language
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
- G06F8/44—Encoding
- G06F8/447—Target code generation
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/60—Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
- A63F2300/60—Methods for processing data by generating or executing the game program
- A63F2300/6009—Methods for processing data by generating or executing the game program for importing or creating game content, e.g. authoring tools during game development, adapting content to different platforms, use of a scripting language to create content
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Computer Security & Cryptography (AREA)
- Devices For Executing Special Programs (AREA)
Abstract
The embodiment of the present invention discloses a kind of method and device for realizing game skill programmable, can flexibly, the efficiently rich and varied technical ability logic of design and implementation.Method includes: the object code that the technical ability script write in advance is compiled into default computer language form using compiler, wherein, the technical ability script is write based on skill models, the skill models include that technical ability indicates that model and technical ability execute model, the technical ability indicates that model is skills definition, it is technical ability example that the technical ability, which executes model, the technical ability, which executes model, indicates model creation according to the technical ability, the technical ability script is write using preset SkillScript language, and the SkillScript language is designed based on the skill models;The object code, game resource and game logic code are packaged into games.
Description
Technical field
The present embodiments relate to development of games fields, and in particular to a kind of method for realizing game skill programmable and
Device.
Background technique
In development of games field, technical ability design is a most basic most crucial job.Electronic game is developed so far, simply
Fight design be difficult to meet the market demand, therefore the design of game skill also becomes more and more abundant and complicated.
In view of this, how flexibly, efficiently the rich and varied technical ability logic of design and implementation become skill urgently to be resolved
Art problem.
Summary of the invention
In view of the shortcomings of the prior art and defect, the embodiment of the present invention provide a kind of realization game skill programmable
Method and device.
On the one hand, the embodiment of the present invention proposes a kind of method for realizing game skill programmable, comprising:
The technical ability script write in advance is compiled into the object code of default computer language form using compiler,
In, the technical ability script is write based on skill models, and the skill models include that technical ability indicates that model and technical ability execute model, institute
Stating technical ability indicates that model is skills definition, and it is technical ability example that the technical ability, which executes model, and the technical ability executes model according to
Technical ability indicates model creation, and the technical ability script is write using preset SkillScript language, the SkillScript language
Speech is designed based on the skill models;
The object code, game resource and game logic code are packaged into games.
On the other hand, the embodiment of the present invention proposes a kind of device for realizing game skill programmable, comprising:
Compilation unit, for the technical ability script write in advance to be compiled into default computer language form using compiler
Object code, wherein the technical ability script is write based on skill models, and the skill models include that technical ability indicates model and skill
Model can be executed, the technical ability indicates that model is skills definition, and it is technical ability example that the technical ability, which executes model, and the technical ability executes
Model indicates model creation according to the technical ability, and the technical ability script is write using preset SkillScript language, described
SkillScript language is designed based on the skill models;
Packaged unit, for the object code, game resource and game logic code to be packaged into games.
The third aspect, the embodiment of the present invention provide a kind of electronic equipment, comprising: processor, memory, bus and are stored in
On memory and the computer program that can run on a processor;
Wherein, the processor, memory complete mutual communication by the bus;
The processor realizes the above method when executing the computer program.
Fourth aspect, the embodiment of the present invention provide a kind of non-transient computer readable storage medium, on the storage medium
It is stored with computer program, which realizes the above method when being executed by processor.
The method and device provided in an embodiment of the present invention for realizing game skill programmable, will be compiled in advance using compiler
The technical ability script finished writing is compiled into the object code of default computer language form;By the object code, game resource and trip
Play logical code is packaged into games, on the one hand, game programmer's (planning) uses SkillScript language in entire scheme
Speech can directly write technical ability logic, go coding to realize without developer (programmer);On the other hand, SkillScript language
Speech is designed based on skill models, and skill models are designed exclusively for design games technical ability, so that SkillScript language phase
Than being more bonded technical ability design in other Common scripting languages, SkillScript expresses the mode of logic compared to allocation list etc.
Conventional implementation is more clear, and is very suitable to carry out branch management using tools such as git/svn in development process, just
In merge and solve conflict;The third aspect, technical ability script can be converted to a plurality of types of object codes, so that a set of skill
Can logic, in the games that can be write eventually for a variety of computer languages;Fourth aspect, technical ability script are finally converted to
The code of all-purpose language type, can be by direct compilation or load and execution, so that the games execution efficiency ultimately generated is higher.
Realize through the above scheme flexibly, the efficiently rich and varied technical ability logic of design and implementation.
Detailed description of the invention
Fig. 1 is the flow diagram for one embodiment of method that the present invention realizes game skill programmable;
Fig. 2 is the structural schematic diagram for one embodiment of device that the present invention realizes game skill programmable;
Fig. 3 is the entity structure schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical solution in the embodiment of the present invention is explicitly described, it is clear that described embodiment is the present invention
A part of the embodiment, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not having
Every other embodiment obtained under the premise of creative work is made, the range of protection of the embodiment of the present invention is belonged to.
Referring to Fig. 1, the present embodiment discloses a kind of method for realizing game skill programmable, comprising:
S1, the target generation that the technical ability script write in advance is compiled into default computer language form using compiler
Code, wherein the technical ability script is write based on skill models, and the skill models include that technical ability indicates that model and technical ability execute mould
Type, the technical ability indicate that model is skills definition, and it is technical ability example that the technical ability, which executes model, the technical ability execute model according to
The technical ability indicates model creation, and the technical ability script is write using preset SkillScript language, described
SkillScript language is designed based on the skill models;
In the present embodiment, the default computer language form includes Lua, JavaScript, C/C++, Java etc. general
Computer language type.SkillScript language is based on skill models design and refers to that SkillScript supports skill in design mould
The structures such as the basic value and array of the types such as number, character string required for type, Boolean, null value and dictionary and structure
Branch statement, Do statement needed for changing programming, have and scheme clever completeness, can theoretically represent it is any can be by computer reality
Existing technical ability logic.
The conditional branching structural code example that SkillScript is supported is as follows:
The loop structure example code that SkillScript is supported is as follows:
The technical ability script write using SkillScript language can have following basic function and characteristic.
(1) global constant, function and technical ability can be defined;
(2) multiple variables, function and athletic movement can be defined in technical ability;
(3) modification device can be added on athletic movement, to supplement additional information to athletic movement;
(4) variable defined in technical ability and athletic movement can be modified with " extern " keyword, and expression can be by outer
Portion comes assignment (functioning as parameter);
(5) code annotation, annotation " // " beginning can be write in script;
(6) it in terms of Row control, supports the branch statement being made of " if/elseif/else ", supports " for/while/
The Do statement of repeat ... until " structure is supported in circulation " break/continue " to jump out or continue cycling through, is propped up
It holds " return " sentence directly to return from function, " exit " sentence is supported directly to terminate athletic movement.
S2, the object code, game resource and game logic code are packaged into games.
In the present embodiment, before being packaged generation games, need to realize technical ability in specific game logic code
Model, and a set of programming interface (API) for the game play is provided, in this way after being packaged generation games, pass through tune
The object code generated with API load (or compiling) with above-mentioned compiler, so that technical ability logic is finally carried out in gaming.
The method provided in an embodiment of the present invention for realizing game skill programmable, will be write in advance using compiler
Technical ability script is compiled into the object code of default computer language form;By the object code, game resource and game logic
Code is packaged into games, on the one hand, game programmer's (planning) uses SkillScript language can be in entire scheme
Technical ability logic directly is write, goes coding to realize without developer (programmer);On the other hand, SkillScript language is based on
Skill models design, skill models are designed exclusively for design games technical ability, so that SkillScript language is compared to it
Its Common scripting languages is more bonded technical ability design, and the mode that SkillScript expresses logic is real compared to the tradition such as allocation list
Existing mode is more clear, and is very suitable to carry out branch management using tools such as git/svn in development process, is convenient for
Merge and solve conflict;The third aspect, technical ability script can be converted to a plurality of types of object codes, so that a set of technical ability is patrolled
Volume, in the games that can be write eventually for a variety of computer languages;Fourth aspect, technical ability script are finally converted to general
The code of language form, can be by direct compilation or load and execution, so that the games execution efficiency ultimately generated is higher.Pass through
Above scheme realize flexibly, the efficiently rich and varied technical ability logic of design and implementation.
On the basis of preceding method embodiment, the technical ability script that will be write in advance using compiler is compiled into pre-
If the object code of computer language form, may include:
The technical ability script is parsed into an abstract syntax tree using the compiler, wherein the compiler uses
Third party library Python Lex-Yacc come realize script parse;
The abstract syntax tree is compiled into the object code using the compiler, wherein the compiler uses
Third party python template library Cheetah and object code template compile to realize.
On the basis of preceding method embodiment, the realization of python language is can be used in the compiler.
On the basis of preceding method embodiment, the technical ability indicates that model includes one group of variable, one group of function and one group
Athletic movement, the athletic movement include set segment, and each movement segment includes that an execution opportunity and correspondence will be held
Capable logic flow, the variable include global variable, technical ability member variable, movement performing environment variable and local variable.
In the present embodiment, athletic movement defines the certain logic needed to be implemented when technical ability actively or passively triggers.One
Athletic movement usually has one section of duration.For example, the attack of some technical ability may be such that
When technical ability starts, hero is moved in front of target, starts to execute attack;
At the 800th millisecond, target is hit, and calculates injury values according to formula, and cause once to injure to target;
At the 1200th millisecond, again target is caused once to injure, and there is 20% probability to add dizziness effect, then technical ability
Terminate.
In this example, entire athletic movement continue for 1200 milliseconds, share 3 movement segments, execute opportunity difference
For " when technical ability starts ", " at the 800th millisecond " and " at the 1200th millisecond ".Although the opportunity in this example was indicated with the time,
But the opportunity of execution is not limited only to be indicated with the time, can also be indicated with particular event, such as " when the light wave of transmitting hits the mark "
Etc..
Technical ability will execute, and obtain define one example of (technical ability expression model) creation according to it first, be similarly to towards right
As the relationship of class and object (example) in programming language.Technical ability is finally performed, and needs variable participation.In this model, root
It is divided according to its life cycle and visible range, following 4 class variable can be divided into:
(1) global variable: during whole field game (fight) executes, the variable that can be accessed in skilled module;
(2) it technical ability member variable: during technical ability example is existing, is only arrived by the way that the technical ability example is just accessible
Variable;
(3) act performing environment variable: some of a technical ability example act certain once be performed during, pass through execution
The accessible variable arrived of environment.It is only effective during primary execute, and the same athletic movement is performed a plurality of times, and has multiple hold
Row environment;
(4) local variable: the variable defined in a function or code block can only visit in the function or code block
It asks.They are only effective during the primary execution of function or code block.
Following script example is given below to be illustrated technical ability script.
Script example 1:
Exemplary definition overall situation function/the technical ability.It also illustrates how simultaneously using global variable/function.
Script example 2:
The athletic movement illustrated in the example implementation " technical ability expression model ".Wherein, the 9th line code, which has used, repairs
Frilled organ, the athletic movement for being entitled main are 1200 milliseconds provided with the duration.The example also illustrate how using technical ability at
Member variable (this.level), movement performing environment variable ($ damage, $ TARGET etc.), local variable (attactor,
Defender, dazeBuff etc.).
Script example 3:
The multiple athletic movements of the exemplary definition (positive action/passive movement), define and use member function.It is wherein entitled
The athletic movement of main is with " script example 2 ", and succinct for display, specific code is folded.The modification device table of 50th row
Show movement beforeDying by be triggered before the hero for possessing this technical ability is dead execution (and only triggering is primary).
Script example 4:
The example uses Do statement, damages to all heroes of enemy.
Referring to Fig. 2, the present embodiment discloses a kind of device for realizing game skill programmable, comprising:
Compilation unit 1, for the technical ability script write in advance to be compiled into default Computer Language using compiler
The object code of type, wherein the technical ability script is write based on skill models, the skill models include technical ability indicate model and
Technical ability executes model, and the technical ability indicates that model is skills definition, and it is technical ability example that the technical ability, which executes model, and the technical ability is held
Row model indicates model creation according to the technical ability, and the technical ability script is write using preset SkillScript language, described
SkillScript language is designed based on the skill models;
Packaged unit 2, for the object code, game resource and game logic code to be packaged into games.
Specifically, the technical ability script write in advance is compiled into default computer using compiler by the compilation unit 1
The object code of language form, wherein the technical ability script is write based on skill models, and the skill models include that technical ability indicates
Model and technical ability execute model, and the technical ability indicates that model is skills definition, and it is technical ability example that the technical ability, which executes model, described
Technical ability, which executes model, indicates model creation according to the technical ability, and the technical ability script is compiled using preset SkillScript language
It writes, the SkillScript language is designed based on the skill models;The packaged unit 2 provides the object code, game
Source and game logic code are packaged into games.
The device provided in an embodiment of the present invention for realizing game skill programmable utilizes compiler by means of compilation unit
The technical ability script write in advance is compiled into the object code of default computer language form;It will be described by means of packaged unit
Object code, game resource and game logic code are packaged into games, on the one hand, game programmer in entire scheme
(planning) can directly write technical ability logic using SkillScript language, go coding to realize without developer (programmer);
On the other hand, SkillScript language is designed based on skill models, and skill models are designed exclusively for design games technical ability, from
And SkillScript language is made more to be bonded technical ability design compared to other Common scripting languages, SkillScript expression is patrolled
The mode collected is more clear compared to conventional implementations such as allocation lists, and is very suitable in development process using git/
The tools such as svn carry out branch management, are convenient for merging and solving conflict;The third aspect, technical ability script can be converted to a variety of
The object code of type, so that a set of technical ability logic, in the games that can be write eventually for a variety of computer languages;4th
Aspect, technical ability script are finally converted to the code of all-purpose language type, can be by direct compilation or load and execution, so that most throughout one's life
At games execution efficiency it is higher.Realize through the above scheme flexibly, the efficiently rich and varied technical ability of design and implementation
Logic.
On the basis of aforementioned device embodiment, the compilation unit can be used for:
The technical ability script is parsed into an abstract syntax tree using the compiler, wherein the compiler uses
Third party library Python Lex-Yacc come realize script parse;
The abstract syntax tree is compiled into the object code using the compiler, wherein the compiler uses
Third party python template library Cheetah and object code template compile to realize.
On the basis of aforementioned device embodiment, the realization of python language is can be used in the compiler.
On the basis of aforementioned device embodiment, the technical ability indicates that model includes one group of variable, one group of function and one group
Athletic movement, the athletic movement include set segment, and each movement segment includes that an execution opportunity and correspondence will be held
Capable logic flow, the variable include global variable, technical ability member variable, movement performing environment variable and local variable.
Fig. 3 shows the entity structure schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention, as shown in figure 3, should
Electronic equipment may include: processor 11, memory 12, bus 13 and be stored on memory 12 and can transport on processor 11
Capable computer program;
Wherein, the processor 11, memory 12 complete mutual communication by the bus 13;
The processor 11 realizes method provided by above-mentioned each method embodiment when executing the computer program, such as
It include: the object code that the technical ability script write in advance is compiled into default computer language form using compiler, wherein
The technical ability script is write based on skill models, and the skill models include that technical ability indicates that model and technical ability execute model, described
Technical ability indicates that model is skills definition, and it is technical ability example that the technical ability, which executes model, and the technical ability executes model according to the skill
It can indicate model creation, the technical ability script is write using preset SkillScript language, the SkillScript language
It is designed based on the skill models;The object code, game resource and game logic code are packaged into games.
The embodiment of the present invention provides a kind of non-transient computer readable storage medium, is stored thereon with computer program, should
Method provided by above-mentioned each method embodiment is realized when computer program is executed by processor, for example, utilize compiler
The technical ability script write in advance is compiled into the object code of default computer language form, wherein the technical ability script base
It is write in skill models, the skill models include that technical ability indicates that model and technical ability execute model, and the technical ability indicates that model is
Skills definition, it is technical ability example that the technical ability, which executes model, and the technical ability, which executes model, indicates model creation according to the technical ability,
The technical ability script is write using preset SkillScript language, and the SkillScript language is based on the skill models
Design;The object code, game resource and game logic code are packaged into games.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more,
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces
The form of product.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.Term " on ", "lower" etc. refer to
The orientation or positional relationship shown is to be based on the orientation or positional relationship shown in the drawings, and is merely for convenience of the description present invention and simplifies
Description, rather than the device or element of indication or suggestion meaning must have a particular orientation, constructed and grasped with specific orientation
Make, therefore is not considered as limiting the invention.Unless otherwise clearly defined and limited, term " installation ", " connected ",
" connection " shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or be integrally connected;It can be
Mechanical connection, is also possible to be electrically connected;It can be directly connected, two can also be can be indirectly connected through an intermediary
Connection inside element.For the ordinary skill in the art, above-mentioned term can be understood at this as the case may be
Concrete meaning in invention.
In specification of the invention, numerous specific details are set forth.Although it is understood that the embodiment of the present invention can
To practice without these specific details.In some instances, well known method, structure and skill is not been shown in detail
Art, so as not to obscure the understanding of this specification.Similarly, it should be understood that disclose in order to simplify the present invention and helps to understand respectively
One or more of a inventive aspect, in the above description of the exemplary embodiment of the present invention, each spy of the invention
Sign is grouped together into a single embodiment, figure, or description thereof sometimes.However, should not be by the method solution of the disclosure
Release is in reflect an intention that i.e. the claimed invention requires more than feature expressly recited in each claim
More features.More precisely, as the following claims reflect, inventive aspect is less than single reality disclosed above
Apply all features of example.Therefore, it then follows thus claims of specific embodiment are expressly incorporated in the specific embodiment,
It is wherein each that the claims themselves are regarded as separate embodiments of the invention.It should be noted that in the absence of conflict, this
The feature in embodiment and embodiment in application can be combined with each other.The invention is not limited to any single aspect,
It is not limited to any single embodiment, is also not limited to any combination and/or displacement of these aspects and/or embodiment.And
And can be used alone each aspect and/or embodiment of the invention or with other one or more aspects and/or its implementation
Example is used in combination.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent
Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to
So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into
Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution
The range of scheme should all cover within the scope of the claims and the description of the invention.
Claims (10)
1. a kind of method for realizing game skill programmable characterized by comprising
The technical ability script write in advance is compiled into the object code of default computer language form using compiler, wherein
The technical ability script is write based on skill models, and the skill models include that technical ability indicates that model and technical ability execute model, described
Technical ability indicates that model is skills definition, and it is technical ability example that the technical ability, which executes model, and the technical ability executes model according to the skill
It can indicate model creation, the technical ability script is write using preset SkillScript language, the SkillScript language
It is designed based on the skill models;
The object code, game resource and game logic code are packaged into games.
2. the method according to claim 1, wherein the technical ability script that will be write in advance using compiler
It is compiled into the object code of default computer language form, comprising:
The technical ability script is parsed into an abstract syntax tree using the compiler, wherein the compiler uses third
Square library Python Lex-Yacc come realize script parse;
The abstract syntax tree is compiled into the object code using the compiler, wherein the compiler uses third
Square python template library Cheetah and object code template compile to realize.
3. the method according to claim 1, wherein the compiler is realized using python language.
4. the method according to claim 1, wherein the technical ability indicates that model includes one group of variable, one group of letter
Several and one group of athletic movement, the athletic movement include set segment, each movement segment include an execution opportunity with
The correspondence logic flow to be executed, the variable include global variable, technical ability member variable, movement performing environment variable and part
Variable.
5. a kind of device for realizing game skill programmable characterized by comprising
Compilation unit, for the technical ability script write in advance to be compiled into the mesh of default computer language form using compiler
Mark code, wherein the technical ability script is write based on skill models, and the skill models include that technical ability indicates that model and technical ability are held
Row model, the technical ability indicate that model is skills definition, and it is technical ability example that the technical ability, which executes model, and the technical ability executes model
Model creation is indicated according to the technical ability, and the technical ability script is write using preset SkillScript language, described
SkillScript language is designed based on the skill models;
Packaged unit, for the object code, game resource and game logic code to be packaged into games.
6. device according to claim 5, which is characterized in that the compilation unit is used for:
The technical ability script is parsed into an abstract syntax tree using the compiler, wherein the compiler uses third
Square library Python Lex-Yacc come realize script parse;
The abstract syntax tree is compiled into the object code using the compiler, wherein the compiler uses third
Square python template library Cheetah and object code template compile to realize.
7. device according to claim 5, which is characterized in that the compiler is realized using python language.
8. device according to claim 5, which is characterized in that the technical ability indicates that model includes one group of variable, one group of letter
Several and one group of athletic movement, the athletic movement include set segment, each movement segment include an execution opportunity with
The correspondence logic flow to be executed, the variable include global variable, technical ability member variable, movement performing environment variable and part
Variable.
9. a kind of electronic equipment characterized by comprising processor, memory, bus and storage on a memory and can located
The computer program run on reason device;
Wherein, the processor, memory complete mutual communication by the bus;
The processor realizes such as method of any of claims 1-4 when executing the computer program.
10. a kind of non-transient computer readable storage medium, which is characterized in that be stored with computer journey on the storage medium
Sequence realizes such as method of any of claims 1-4 when the computer program is executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811069633.2A CN109298865A (en) | 2018-09-13 | 2018-09-13 | Realize the method and device of game skill programmable |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811069633.2A CN109298865A (en) | 2018-09-13 | 2018-09-13 | Realize the method and device of game skill programmable |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109298865A true CN109298865A (en) | 2019-02-01 |
Family
ID=65166984
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811069633.2A Pending CN109298865A (en) | 2018-09-13 | 2018-09-13 | Realize the method and device of game skill programmable |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109298865A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111068326A (en) * | 2019-12-23 | 2020-04-28 | 上海米哈游天命科技有限公司 | Game skill configuration method, device, server and storage medium |
CN111111201A (en) * | 2019-12-25 | 2020-05-08 | 上海米哈游天命科技有限公司 | Skill creating method, skill creating device, skill creating server and skill creating medium based on game |
CN111158750A (en) * | 2019-12-26 | 2020-05-15 | 北京金山安全软件有限公司 | Unity-based game installation package packaging method and device |
CN111221519A (en) * | 2019-11-12 | 2020-06-02 | 广州银汉科技有限公司 | Python-based CLI automatic export method |
CN112473143A (en) * | 2020-11-12 | 2021-03-12 | 杭州电魂网络科技股份有限公司 | Method, system, electronic device and storage medium for configuring game skills |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101634940A (en) * | 2008-07-25 | 2010-01-27 | 苏州市蜗牛电子有限公司 | Method for developing computer games through scripts |
CN102063324A (en) * | 2010-12-31 | 2011-05-18 | 杭州依赛通信有限公司 | Method and system for implementing automatic programming |
CN104239667A (en) * | 2013-06-20 | 2014-12-24 | 恩希软件株式会社 | Method and system for determining user characteristics in online interaction process |
CN105468505A (en) * | 2014-08-12 | 2016-04-06 | 腾讯科技(深圳)有限公司 | Coverage test method and coverage test device |
CN105677334A (en) * | 2015-12-29 | 2016-06-15 | 珠海金山网络游戏科技有限公司 | General game state control system and method |
CN105786465A (en) * | 2014-12-23 | 2016-07-20 | 远光软件股份有限公司 | Scripting language execution method and device |
CN106502746A (en) * | 2016-11-02 | 2017-03-15 | 网易(杭州)网络有限公司 | The packaging method and device of application program |
CN106651747A (en) * | 2016-12-30 | 2017-05-10 | 腾讯科技(深圳)有限公司 | Method and apparatus of processing resources of simulation object in application |
-
2018
- 2018-09-13 CN CN201811069633.2A patent/CN109298865A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101634940A (en) * | 2008-07-25 | 2010-01-27 | 苏州市蜗牛电子有限公司 | Method for developing computer games through scripts |
CN102063324A (en) * | 2010-12-31 | 2011-05-18 | 杭州依赛通信有限公司 | Method and system for implementing automatic programming |
CN104239667A (en) * | 2013-06-20 | 2014-12-24 | 恩希软件株式会社 | Method and system for determining user characteristics in online interaction process |
CN105468505A (en) * | 2014-08-12 | 2016-04-06 | 腾讯科技(深圳)有限公司 | Coverage test method and coverage test device |
CN105786465A (en) * | 2014-12-23 | 2016-07-20 | 远光软件股份有限公司 | Scripting language execution method and device |
CN105677334A (en) * | 2015-12-29 | 2016-06-15 | 珠海金山网络游戏科技有限公司 | General game state control system and method |
CN106502746A (en) * | 2016-11-02 | 2017-03-15 | 网易(杭州)网络有限公司 | The packaging method and device of application program |
CN106651747A (en) * | 2016-12-30 | 2017-05-10 | 腾讯科技(深圳)有限公司 | Method and apparatus of processing resources of simulation object in application |
Non-Patent Citations (1)
Title |
---|
马威等: ""基于Cheetah技术的测试规程模板开发与应用"", 《指挥信息系统与技术》 * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111221519A (en) * | 2019-11-12 | 2020-06-02 | 广州银汉科技有限公司 | Python-based CLI automatic export method |
CN111068326A (en) * | 2019-12-23 | 2020-04-28 | 上海米哈游天命科技有限公司 | Game skill configuration method, device, server and storage medium |
CN111068326B (en) * | 2019-12-23 | 2023-06-23 | 上海米哈游天命科技有限公司 | Game skill configuration method, game skill configuration device, server and storage medium |
CN111111201A (en) * | 2019-12-25 | 2020-05-08 | 上海米哈游天命科技有限公司 | Skill creating method, skill creating device, skill creating server and skill creating medium based on game |
CN111111201B (en) * | 2019-12-25 | 2023-09-08 | 上海米哈游天命科技有限公司 | Skill creation method, device, server and medium based on game |
CN111158750A (en) * | 2019-12-26 | 2020-05-15 | 北京金山安全软件有限公司 | Unity-based game installation package packaging method and device |
CN111158750B (en) * | 2019-12-26 | 2023-09-26 | 北京金山安全软件有限公司 | Packing method and device of game installation package based on Unity |
CN112473143A (en) * | 2020-11-12 | 2021-03-12 | 杭州电魂网络科技股份有限公司 | Method, system, electronic device and storage medium for configuring game skills |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109298865A (en) | Realize the method and device of game skill programmable | |
Grosser et al. | Polyhedral AST generation is more than scanning polyhedra | |
Robison | Composable parallel patterns with intel cilk plus | |
CN100385399C (en) | An intermediate representation for multiple exception handling models | |
CN103917959A (en) | Method and system for workitem synchronization | |
Fürst et al. | Code generation for Event-B | |
US8966461B2 (en) | Vector width-aware synchronization-elision for vector processors | |
CN110673852B (en) | Method, system and equipment for realizing control flow flattening based on front end of compiler | |
CN109344612A (en) | The active defense method and system inversely attacked for program code static analysis | |
Laarman | Scalable multi-core model checking | |
CN110333867A (en) | A kind of Secure calculating data processing method, apparatus and system | |
CN112559045B (en) | RISCV-based random instruction generation platform and method | |
CN113515348A (en) | Simulator modeling method and device based on opportunity action flow | |
CN102508648A (en) | Graphics engine implementation method | |
WO2021047662A1 (en) | Method and apparatus for enabling autonomous acceleration of dataflow ai applications | |
Zhang et al. | Weaving semantic aspects in HiLA | |
Lima et al. | A formal semantics for sysml activity diagrams | |
CN101882190A (en) | Method for formally verifying bytecode intermediate representation program module by module | |
CN102902548B (en) | The generation method and device of assembly level internal memory reproducing standards built-in function | |
Pommereau et al. | Faster simulation of (Coloured) Petri nets using parallel computing | |
Cora et al. | HH-DSL: a domain specific language for selection hyper-heuristics | |
Morgenstern et al. | Program sketching via CTL* model checking | |
Dausend et al. | Introducing Aspect–Oriented Specification for Abstract State Machines | |
D'Andrea | Behavioural Analysis of Tracing JIT Compiler Embedded in the Methodical Accelerator Design Software | |
Ioannidis et al. | Structural temporal logic for mechanized program verification |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190201 |
|
RJ01 | Rejection of invention patent application after publication |