CN102789391B - A kind of computer game logic generation method - Google Patents

A kind of computer game logic generation method Download PDF

Info

Publication number
CN102789391B
CN102789391B CN201210152336.0A CN201210152336A CN102789391B CN 102789391 B CN102789391 B CN 102789391B CN 201210152336 A CN201210152336 A CN 201210152336A CN 102789391 B CN102789391 B CN 102789391B
Authority
CN
China
Prior art keywords
language
game
subset
descriptive language
descriptive
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.)
Active
Application number
CN201210152336.0A
Other languages
Chinese (zh)
Other versions
CN102789391A (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.)
Beijing Pixel Software Technology Co Ltd
Original Assignee
Beijing Pixel Software Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Pixel Software Technology Co Ltd filed Critical Beijing Pixel Software Technology Co Ltd
Priority to CN201210152336.0A priority Critical patent/CN102789391B/en
Publication of CN102789391A publication Critical patent/CN102789391A/en
Application granted granted Critical
Publication of CN102789391B publication Critical patent/CN102789391B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Devices For Executing Special Programs (AREA)
  • Stored Programmes (AREA)

Abstract

Embodiment of the present invention proposes a kind of computer game logic generation method.Comprise: class C language subset is set, and describe such C language subset with descriptive language; Generate the resolver for resolving such C language subset described by described descriptive language; Generation Edit device, such C language subset that resolver resolves described in this editor application is described by described descriptive language, and the descriptive language file comprising game logic is generated by visual pattern.Embodiment of the present invention is visual by one and the development approach of " class method " being easy to get started improves development of games efficiency, makes creative personnel not needing in too much professional knowledge situation, by a small amount of study, just realizes the intention of oneself fast.

Description

A kind of computer game logic generation method
Technical field
Embodiment of the present invention relates to computer program development technical field, more specifically, relates to a kind of computer game logic generation method.
Background technology
Computer game (Personal computer games, Computer games or PC games) refers to the Games Software run on robot calculator.This software is a kind of computer software with amusement function.The development of computer game industry and computer hardware, computer software, internet contacts very close.Computer game is that participant in game provides a Virtual space, allows people break away from real world to a certain extent, plays the part of the role do not played the part of in real world in another world.The development of computer multimedia technology, makes game give people and much experiences and enjoy.At present, global computer game industry has defined the great market that is greater than 1,000 hundred million dollars, and game industry has the prospect of rich profit and radiance, and Computers in China game industry has just just been in the starting stage, although backwardness relatively, very large potentiality are also had to develop.
Online game refers to take internet as transmission medium, with gaming operators server and subscriber computer for processing terminal, with game client software be information interaction window be intended to realize amusement, leisure, exchange and obtain the individuality MMOG with sustainability just invented.Online game difference and single-play game, refer to that player must be connected by internet and carry out multiplayer.Refer generally under virtual environment, operate to reach the game products set of amusement and interactional purpose to character and scene according to certain rule by computer network by several player.
In game development industry, program capability to practitioner and the understandability to program have very high requirement, but in game circle, the programing power of project staff is very limited now, and along with the development of this industry, practitioner's demand but constantly increases, but cannot be met because of a large amount of amateur pouring in of the talent the requirement of the programming ability of practitioner, the contradiction of this high request to programing power and creative personnel program development inferior capabilities will be more and more large, cause current computer program development efficiency not high.
Summary of the invention
Embodiment of the present invention proposes a kind of computer game logic generation method, to improve development of games efficiency.
The concrete scheme of embodiment of the present invention is as follows:
A kind of computer game logic generation method, the method comprises:
Class C language subset is set, and describes such C language subset with descriptive language;
Generate the resolver for resolving such C language subset described by described descriptive language;
Generation Edit device, such C language subset that resolver resolves described in this editor application is described by described descriptive language, and the descriptive language file comprising game logic is generated by visual pattern.
Described descriptive language describes such C language subset and comprises:
With extend markup language (XML) or Java descriptive language Object Notation (JSON), such C language subset is described.
Described class C language subset comprises logic skip instruction, logical operation statement and/or loop statement.
Described editing machine generates by visual pattern the descriptive language file comprising game logic and comprises:
This editing machine, according to the minimum executable game functional unit developed with programming language, generates the descriptive language file comprising game logic by visual pattern.
The minimum executable game functional unit that described programming language is developed is: the minimum executable game functional unit developed by C language.
Described minimum executable game functional unit comprises game events.
Described game events comprises non-player role action event or gives player's stage property event.
Described editing machine generates by visual pattern the descriptive language file comprising game logic and comprises:
This editing machine, according to the minimum executable game functional unit developed with programming language and by user-defined minimum executable game functional unit, generates the descriptive language file comprising game logic by visual pattern.
Described minimum executable game functional unit comprises game events.
The method comprises further:
Under described descriptive language file is kept at the server directory of game, this descriptive language file is loaded when server is opened, and when event corresponding in playing is triggered, the analysis program at server place is resolved and is performed described descriptive language file, thus completes the game logic be included in described descriptive language file.
As can be seen from technique scheme, in embodiments of the present invention, first class C language subset is set, and describes such C language subset with descriptive language; Then the resolver for resolving such C language subset described by descriptive language is generated; Last regeneration editing machine, such C language subset that this editor application resolver resolves is described by descriptive language, and the descriptive language file comprising game logic is generated by visual pattern.As can be seen here, after application embodiment of the present invention, by descriptive language design games development language, and generated the descriptive language file comprising game logic with visual pattern by editing machine, thus it is visual by one and the development approach of " class method " being easy to get started improves development of games efficiency, making creative personnel not needing in too much professional knowledge situation, by a small amount of study, just can realize the intention of oneself fast.
Accompanying drawing explanation
Fig. 1 generates method flow diagram according to the computer game logic of embodiment of the present invention;
Fig. 2 is by editing machine editorial logic event schematic diagram according to the project staff of embodiment of the present invention;
Fig. 3 is the schematic diagram that in the event according to embodiment of the present invention, parameter is modified in interface.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, the present invention is described in further detail.
In game development industry, the programming to practitioner and the understandability to program there is very high requirement.But, in present game circle, the programing power of project staff is very limited, and along with the development of this industry, practitioner's demand but constantly increases, but cannot be met because of a large amount of amateur pouring in of the talent the requirement of the programming ability of practitioner, the contradiction of this high request to programing power and creative personnel program development inferior capabilities will be more and more large.
In order to make creative personnel possess certain code capacity, most of company can give training office worker is pre-job.In university, the time of a study programming language probably needs a term, similar 3 to 4 months, and the training of most of company, generally can not more than 30 days.The problem improving development of games efficiency by training is that cost is very high, and has a strong impact on the time on duty of personnel, simultaneously according to the difference of training achievement, also may produce the staff of a large amount of scarce capacity and the progress of hazard program and quality.
Another method is: creative personnel only provides intention, and concrete realization is transferred to special coder to develop.This is a kind of way of insurance, but bad influence is still a lot, and usually just can manifest for many years later, useless " idea " that cannot realize in a large number that such as creative personnel is not understood bottom and caused, coder's ability cannot effectively improve in trifling work, and the communication cost between different department is also very huge.
In embodiments of the present invention, visual by one and the development approach of " class method " that is that be easy to get started solves the problems referred to above.The foundation of this method, can make the Creative Services personnel of game industry easily realize the intention of oneself, and not need too high technical threshold, thus reaches the object improving development of games efficiency and reduce training cost.
In embodiments of the present invention, first design the program language that a kind of applicable planning uses, this language is simple, easy-to-use, good left-hand seat; Then declarative language is utilized to formulate the standard of a set of this language of description.Use the reason of declarative language to be that it can make the standard of program language very fast high and easily, and do not need as traditional method for making, need to write complicated grammatical analysis criterion.Then, coding, this program is used for mathematics expression language (such as: xml), namely writes the analysis program run according to the standard formulated.Finally, play games editing machine to generate game file according to this metric system, the making criterion of editing machine is easy-to-use, good understanding.
Fig. 1 generates method flow diagram according to the computer game logic of embodiment of the present invention.
As shown in Figure 1, the method comprises:
Step 101: class C language subset is set, and with descriptive language, such C language subset is described.
Here, first class C language subset is set.The language of set class C language subset should meet following principle:
1, class C language subset aims to provide to the making ability of project staff's higher level lanquage, reduces learning cost simultaneously, and because the singularity of development of games, does not provide too much abstract method.
2, class C language subset is with " event " for fundamental element, and event is can the least unit of act of execution.Each event can have rreturn value, is used for determining whether to run succeeded.
3, class C language subset can provide a large amount of stock events, provides the method for customized event simultaneously.
4, class C language subset supports logic skip instruction, supports logical operation, supports circulation etc. basic language characteristic.
And, in class C language subset, for If statement, there is following characteristic: if statement judges whether the expression formula of statement inside is true, is the event sets very then performing rear portion.If statement will support that short circuit judges.The similar C language of fundamental characteristics, but internal expression is for simple consideration, only supports the logical operation between the event of class C language subset and event.
Then, with descriptive language, such C language subset is described.Wherein, can describe such C language subset with multiple lines of description language such as extend markup language (XML) or Java descriptive language Object Notation (JSON), the embody rule scope of the present invention to descriptive language there is no any restriction.
Step 102: generate the resolver for resolving such C language subset described by described descriptive language.
, then write out analysis program (being specially resolver) here, this resolver is for resolving such C language subset described by described descriptive language.Namely in this step, the analysis program run according to the standard formulated is write.Particularly, the multiple common programming languages such as C language can be adopted to write this resolver.
Step 103: Generation Edit device, such C language subset that resolver resolves described in this editor application is described by described descriptive language, and the descriptive language file comprising game logic is generated by visual pattern.
Here, editing machine according to the minimum executable game functional unit developed with programming language, can generate the descriptive language file comprising game logic by visual pattern.
Wherein be specifically as follows with the minimum executable game functional unit that programming language is developed: the minimum executable game functional unit developed by C language, and minimum executable game functional unit comprises game events, concrete game events can comprise non-player role action event or give player's stage property event, etc.
Thus project staff can pass through editing machine editorial logic event.Such as: Fig. 2 is by editing machine editorial logic event schematic diagram according to the project staff of embodiment of the present invention.
In fig. 2, " if " and the Chinese key word such as " execution " in fact similar with " key word " in C/C++ language, project staff can double-click these Chinese key words and to revise or newly-built key word coordinates with other statements.These Chinese key words, in the process being generated as code, can be replaced by corresponding character string.
By the correspondence of this key word, the difficulty of project staff's programming can be reduced, improve programming efficiency.
This programming language key word that can be corresponding can have a lot, as shown in table 1:
Editing machine key word Corresponding key word
If if
Repeat for
And and
Or or
Table 1
And, <1499> and < event in fig. 2: 2390> is event, be minimum in this cover system can performance element, can be understood as is a function.
Part event normally our underlying transaction the most conventional of summing up in daily exploitation, as added a non-player role action (NPC) to player's stage property etc., these are appreciated that it is the built-in function of system,
Another part event also oneself can be write in editing machine by planning, and can be understood as is user-defined function.
Fig. 3 is the schematic diagram that in the event according to embodiment of the present invention, parameter is modified in interface.As shown in Figure 3, some parameters of each event can be modified in interface.
After completing the writing of logic and event, click and preserve, program can generate corresponding xml file, automatically as example below.
This xml file can not allow project staff see, but is automatically generated by editing machine and preserve.
And under these xml files are kept at the server directory of game, can be loaded when server is opened, when event corresponding in game is triggered, the analysis program of server end will be resolved and be performed this xml file, thus completes the various logic in game.
In sum, in embodiments of the present invention, first class C language subset is set, and describes such C language subset with descriptive language; Then the resolver for resolving such C language subset described by described descriptive language is generated; Last regeneration editing machine, such C language subset that resolver resolves described in this editor application is described by described descriptive language, and the descriptive language file comprising game logic is generated by visual pattern.As can be seen here, after application embodiment of the present invention, by descriptive language design games development language, and generated the descriptive language file comprising game logic with visual pattern by editing machine, thus it is visual by one and the development approach of " class method " being easy to get started improves development of games efficiency, making creative personnel not needing in too much professional knowledge situation, by a small amount of study, just realizing the intention of oneself fast.
In embodiments of the present invention, by suitable training (about a day), game plan personnel just can complete the making of most of high-rise game logic, alleviate the workload of shell script person and logical program person nearly 80% simultaneously.Additionally by routine use, the program capability of project staff is also constantly improved, and well improves the code Design ability of productive capacity and personnel, improves the efficiency of development of games.
The above, be only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (6)

1. a computer game logic generation method, it is characterized in that, the method comprises:
Class C language subset is set, and describes such C language subset with descriptive language;
Generate the resolver for resolving such C language subset described by described descriptive language;
Generation Edit device, such C language subset that resolver resolves described in this editor application is described by described descriptive language, and the descriptive language file comprising game logic is generated by visual pattern;
Described editing machine generates by visual pattern the descriptive language file comprising game logic and comprises:
This editing machine, according to the minimum executable game functional unit developed with programming language, generates the descriptive language file comprising game logic by visual pattern; Or
Described editing machine generates by visual pattern the descriptive language file comprising game logic and comprises:
This editing machine, according to the minimum executable game functional unit developed with programming language and by user-defined minimum executable game functional unit, generates the descriptive language file comprising game logic by visual pattern;
The method comprises further:
Under described descriptive language file is kept at the server directory of game, this descriptive language file is loaded when server is opened, and when event corresponding in playing is triggered, the analysis program at server place is resolved and is performed described descriptive language file, thus completes the game logic be included in described descriptive language file.
2. computer game logic generation method according to claim 1, is characterized in that, described descriptive language describes such C language subset and comprises:
With extend markup language (XML) or Java descriptive language Object Notation (JSON), such C language subset is described.
3. computer game logic generation method according to claim 1, is characterized in that, described class C language subset comprises logic skip instruction, logical operation statement and/or loop statement.
4. computer game logic generation method according to claim 1, is characterized in that, the minimum executable game functional unit that described programming language is developed is: the minimum executable game functional unit developed by C language.
5. computer game logic generation method according to claim 1, is characterized in that, described minimum executable game functional unit comprises game events.
6. computer game logic generation method according to claim 5, is characterized in that, described game events comprises non-player role action event or gives player's stage property event.
CN201210152336.0A 2012-05-16 2012-05-16 A kind of computer game logic generation method Active CN102789391B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210152336.0A CN102789391B (en) 2012-05-16 2012-05-16 A kind of computer game logic generation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210152336.0A CN102789391B (en) 2012-05-16 2012-05-16 A kind of computer game logic generation method

Publications (2)

Publication Number Publication Date
CN102789391A CN102789391A (en) 2012-11-21
CN102789391B true CN102789391B (en) 2015-10-21

Family

ID=47154799

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210152336.0A Active CN102789391B (en) 2012-05-16 2012-05-16 A kind of computer game logic generation method

Country Status (1)

Country Link
CN (1) CN102789391B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103929443A (en) * 2013-01-10 2014-07-16 深圳市微讯移通信息技术有限公司 Built-in type game server system and application method for same
CN109800339A (en) * 2018-12-13 2019-05-24 平安普惠企业管理有限公司 Regular expression generation method, device, computer equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102135888A (en) * 2011-03-26 2011-07-27 陈永胜 Programming platform system for programming by using descriptive language
CN102262534A (en) * 2011-07-12 2011-11-30 红石娱动网络科技(北京)有限公司 System and method for developing computer online games based on Internet browser/server (B/S) structure

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102135888A (en) * 2011-03-26 2011-07-27 陈永胜 Programming platform system for programming by using descriptive language
CN102262534A (en) * 2011-07-12 2011-11-30 红石娱动网络科技(北京)有限公司 System and method for developing computer online games based on Internet browser/server (B/S) structure

Also Published As

Publication number Publication date
CN102789391A (en) 2012-11-21

Similar Documents

Publication Publication Date Title
Liu et al. Tapex: Table pre-training via learning a neural sql executor
JP5648889B2 (en) Method for providing virtual space environment, computer system and computer-readable storage medium
CN107291867A (en) Dialog process method, device, equipment and computer-readable recording medium based on artificial intelligence
Eckstein et al. How immigrants impact their homelands
Clausen Economic globalization and regional disparities in the Philippines
CN105739983A (en) Script program edition device and realization method thereof
CN107463301A (en) Conversational system construction method, device, equipment and computer-readable recording medium based on artificial intelligence
WO2019190846A1 (en) System and method for cryptocurrency generation and distribution
Kshetri et al. Big data and cloud computing for development: Lessons from key industries and economies in the global south
CN106215420A (en) For the method and apparatus creating scene of game
CN110348991A (en) Assess the method, apparatus and electronic equipment of user&#39;s accrediting amount upper limit
CN102789391B (en) A kind of computer game logic generation method
CN111930366A (en) Rule engine implementation method and system based on JIT real-time compilation
Atkinson et al. On the execution of deep models
Kerr The UK and Irish game industries
Hoock et al. Bandit-based genetic programming
Piette et al. An empirical evaluation of two general game systems: Ludii and rbg
Agarwal et al. Understanding Game Modding through Phases of Mod Development.
Soon et al. The rise of e-science in Asia. Dreams and realities for social science research: Case studies of Singapore and South Korea
CN106383865A (en) Artificial intelligence-based recommended data acquisition method and apparatus
CN109954275B (en) Three-dimensional maze random generation system
CN111026371A (en) Game development method and device, electronic equipment and storage medium
KR20080067892A (en) Apparatus and method of modeling for game
Vayanou et al. The Π ΣΕΤΟ Project: Storytelling Games for Groups of Visitors in Fine Art Exhibitions
Chang et al. The rise of the information technology industry in China: a formidable challenge to Taiwan's economy

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant