CN107754314A - A kind of data-driven design method of games system - Google Patents

A kind of data-driven design method of games system Download PDF

Info

Publication number
CN107754314A
CN107754314A CN201711045949.3A CN201711045949A CN107754314A CN 107754314 A CN107754314 A CN 107754314A CN 201711045949 A CN201711045949 A CN 201711045949A CN 107754314 A CN107754314 A CN 107754314A
Authority
CN
China
Prior art keywords
data
text
games
script
game
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
Application number
CN201711045949.3A
Other languages
Chinese (zh)
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.)
Western Hills Residence Guangzhou Shi You Network Technology Co Ltd
Zhuhai Kingsoft Online Game Technology Co Ltd
Original Assignee
Western Hills Residence Guangzhou Shi You Network Technology Co Ltd
Zhuhai Kingsoft Online Game 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 Western Hills Residence Guangzhou Shi You Network Technology Co Ltd, Zhuhai Kingsoft Online Game Technology Co Ltd filed Critical Western Hills Residence Guangzhou Shi You Network Technology Co Ltd
Priority to CN201711045949.3A priority Critical patent/CN107754314A/en
Publication of CN107754314A publication Critical patent/CN107754314A/en
Pending legal-status Critical Current

Links

Abstract

Technical scheme includes a kind of data-driven design method of games system, and this method includes:Establishment file resolution system is used to parse the text in games, and wherein text is used to store the constant data that functional unit is abstracted in games;Create script to be defined the logical code in games, the script includes the variable data of logical code;Using it is multiple can be by the data block composition function component and/or game data of global reference;Editing machine corresponding to establishment is used to carry out self-defined editor to above-mentioned text, script and data block.Beneficial effects of the present invention are:Greatly shorten the games system construction cycle;Strengthen code maintainability and reusability;Strengthen the experience and performance of game;The personnel of various positions are facilitated to share out the work and help one another, Optimizing Flow.

Description

A kind of data-driven design method of games system
Technical field
The present invention relates to a kind of data-driven design method of games system, belong to computer realm.
Background technology
In general is played, and flogic system is typically to be realized by the way of hard coded.
I.e. every kind of game logic all realizes that program opens some of which parameter and come to planning with one section of code or a class The adjustment of some numerical value is carried out, reaches certain convertibility, but programmed logic therein can not be changed.
But the characteristics of game item logic, is mutability, similitude and repeatability.Need a large amount of substantially similar but have The function that body logic is not quite similar again, and the demand planned, among continuous change with adjustment, this is soft by this amusement of playing Part focuses on what the characteristics of user's physical examination determined.
Therefore the traditional logic implementation method shortcoming of this hard coded has:
(1) planning can not be directly changed design realization, the excessive cycle for waiting program to realize, and carry the week of demand change Phase is similarly long, and tests and also bother very much, and very uncontrollable to logic realization effect, Games Software needs program oneself anti- The whole iteration of polyphony can be only achieved good Consumer's Experience, if the work incentive of the excessive cycle meeting serious contusion planning of iteration With the efficiency of exploitation;
(2) program realizes that the workload of logic is very big, and a large amount of similar programs functions are wanted overlapping development and adjusted repeatedly, past It can give up to fall and largely plan beneficial design because workload is too big toward in real work, so allow game overall in turn Quality be affected;
(3) project does not have the reusable logic function of small grain size, and whole development cost is too big, often under the pressure of project process Pressure can only make a relatively rough game logic system, have a strong impact on game experiencing.
The content of the invention
Technical solution of the present invention is directed to the defects of prior art, it is proposed that a kind of data-driven design side of games system Method, the games system construction cycle is greatly shortened to reach, strengthens code maintainability and reusability, strengthen game experience and Performance, the purpose for facilitating the personnel of various positions well to share out the work and help one another.
Technical scheme includes a kind of data-driven design method of games system, it is characterised in that this method Including:Establishment file resolution system is used to parse the text in games, and wherein text is used to store The constant data of functional unit is abstracted in games;Create script to be defined the logical code in games, institute Stating script includes the variable data of logical code;Using it is multiple can be by the data block composition function component of global reference and/or trip Play data;Editing machine corresponding to establishment is used to carry out self-defined editor to above-mentioned text, script and data block.
According to the data-driven design method of described games system, this method also includes:The establishment file parsing system Unite for the text in games carry out parsing include offer text editing machine edlin is entered to game data, The basic constant data of game data is added in corresponding text and establishes the connection with game data, when text text When basic constant data in part changes in threshold range, then dynamic adjusts game data state.
According to the data-driven design method of described games system, this method also includes:The dynamic adjustment game number Code corresponding to game data need not be recompilated according to during state.
According to the data-driven design method of described games system, the abstract functional unit includes:To number of playing According to abstract processing is carried out, multiple functional units corresponding to game data and behavior component are abstracted, make being abstracted Functional unit and behavior component as general function and behavior.
According to the data-driven design method of described games system, the establishment script also includes:During establishment script Variable can be retained in script by branch instruction, be compared with mathematical operator, can also be directly invoked and independently be deposited It is being used for the evaluation function of comparison variable, and the combination of two methods in code.
According to the data-driven design method of described games system, this method also includes:The use is multiple can be complete The data block that office quotes is used to realize functional unit and/or game data one or more functions, and wherein functional unit represents trip The functional assembly for program of playing, wherein game data represent the data set of the virtual things in games.
According to the data-driven design method of described games system, this method also includes:Text corresponding to the establishment Editing machine is used to carry out self-defined editor to text, script and data block, and it includes creating text editor for text This document enters edlin, creates script-editor for entering edlin to script, creating functional unit editing machine for function Component, which enters edlin and creates game data editing machine, to be used to edit game data.
Beneficial effects of the present invention are:Greatly shorten the games system construction cycle;Strengthen code maintainability with it is reusable Property;Strengthen the experience and performance of game;The personnel of various positions are facilitated to share out the work and help one another, Optimizing Flow.
Brief description of the drawings
Fig. 1 show the overview flow chart according to embodiment of the present invention;
Fig. 2 show the data inheritance figure according to 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 data-driven design method of the games system of the present invention is applied to opening for game data driving Hair.
Fig. 1 show the overview flow chart according to embodiment of the present invention.Shown in its (1) specific as follows-(4):
(1) basic methods
Create a system that can parse text on demand.This is for effective application of data-driven design to pass It is important.Each game is required for a kind of clearly mode to read the data on ordinary meaning, and game is finally with binary system text Part is read, but during exploitation can be most important to read with text.If text is only used as edit-modify Without what practical significance, its real meaning is --- without changing line code, whole group, including tester With game programmer with regard to various new tries can be carried out, and change different things to be tested.So, implement very simple Single text on demand resolution system just into an essential instrument.
Should not hard coded constant, constant is put into text, when being so changed just do not have to recompilate code .For example, the basic function as video camera behavior should just be completely exposed.If properly handled, game designer, making Person can be at most using notepad once with regard to that can change video camera behavior.Game designer and producer would generally be controlled by program Member.By exposure algorithm constant, those XProgrammers' cans it is expected really with various values to be debugged with reaching them Behavior is cut, and without bothering any one programmer.
Assume that anything may all change.If game calls screen to split, not realized with hard coded.Trip Play, which is write as, can support any number of vision area, and each vision area has the video camera logic of its own.As long as being designed using correct, This can't increase any workload.By text mystery act on, can arbitrarily define game using single screen, double screen or Four split screens.The initial value of all video cameras should be also defined in file, such as position, direction, the visual field and inclination angle.So game is set Meter teacher can be changed in text to all elements.
If core design decision-making is very flexible, game can gradually develops, and finally plays its maximum potentiality.It is true On, game is abstracted, its core is abstracted, this process can inherently produce greatly side to design Help.Each component can be designed to its general function, and without being designed for a single target to it.It is imitated Fruit is, the flexibility of design, which forces, to be recognized what and be only what should really be established, and cited more than in design documentation Has limited behavior.
For example, if game is only with the weapon of 4 types, can write one includes the complete of these type weapons Beautiful system.But, if by the function modeling of every kind of weapon, its behavior is defined using data, it is possible to allow countless The weapon that kind has its concrete property generates, and required is only to carry out a little changing in text, with to new idea and trip Change during play operation is tested.It is this it is intelligent allow to play gradually develop and eventually become a preferably game.
In fact, game needs are debugged, outstanding game can gradually develop, and be differed greatly with anticipation at first. The change that playing have the ability to rule, role, race, weapon, the outpost of the tax office, control program and object is handled.No This flexibility, the cost of change is very big, and each change has been required for programmer's participation --- and this is entirely resource wave Take.If being difficult to change, game is difficult to have big change from original version, and it cannot progressively develop to excavate it Potentiality.
(2) script method
Script is a kind of method that behavior is defined outside code.Script is for the step order in definition game or needs to touch The game events of hair are highly useful.For example, the cut scene in game should be write as script.Simple causal logic should also be write Into script, the completion status or environmental triggers of such as one search.These are all the fabulous examples of application data driving.
, it is necessary to consider branch instruction when designing script.There are two kinds of methods in branch:One kind is that variable is retained in In script, it is compared with mathematical operator;Another kind is to directly invoke to be independently present in code to be used for comparison variable Evaluation function.Should both uses combination, but to keep the succinct of script.Game design teacher to processing evaluation function than Statement variable, update them and be compared easily much.This is also easier to for debugging.
The use of script edit data-driven behavior is the natural consequence using data-driven method.But need to remember data The core concept of driving:Logical sum data are separated, complicated logic is run in code, and data are then retained in outside.
(3) duplicate data is avoided
If needing to use identical behavior (such as a public function) in two different places, this behavior can only deposit It is a place.This method can also be applied to data, can point to global data block using quoting.Even, by making Data block is pointed to reference and changes some of which value, it is possible to achieve the similar concept inherited.
(4) in big game, text eventually becomes bad control and processing.Solution method is to use a work Have to write this text.This instrument is called game editing machine, level editor or script-editor.Write using instrument Can't change data driving thought, it only can make it that data-driven is more healthy and stronger, more efficient.Compare the saved time, this Additional means exploitation the consumed time is worth.
Fig. 2 show the data inheritance figure according to embodiment of the present invention.
Using the global definition of spirit, and with a quick smart global definition, this quick spirit is by basic Spirit is inherited.Then in the definition of each Dungeon, conventional smart and quick smart example, which creates, to be just easy to.
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.

Claims (7)

1. the data-driven design method of a kind of games system, it is characterised in that this method includes:
Establishment file resolution system is used to parse the text in games, and wherein text is used to store and swum The constant data of functional unit is abstracted in program of playing;
Create script to be defined the logical code in games, the script includes the variable data of logical code;
Using it is multiple can be by the data block composition function component and/or game data of global reference;
Editing machine corresponding to establishment is used to carry out self-defined editor to above-mentioned text, script and data block.
2. the data-driven design method of games system according to claim 1, it is characterised in that this method also includes:
The establishment file resolution system is used to the text in games parse to include providing text volume Volume device enters edlin to game data, by the basic constant data of game data be added in corresponding text and establish with The connection of game data, when the basic constant data in text changes in threshold range, then dynamic adjustment trip Play data mode.
3. the data-driven design method of games system according to claim 2, it is characterised in that this method also includes:
Code corresponding to game data need not be recompilated during the dynamic adjustment game data state.
4. the data-driven design method of games system according to claim 1, it is characterised in that the abstract function Component includes:
Abstract processing is carried out to game data, multiple functional units corresponding to game data and behavior component are abstracted Change, make being abstracted functional unit and behavior component as general function and behavior.
5. the data-driven design method of games system according to claim 1, it is characterised in that the establishment script is also Including:
Variable can be retained in script by branch instruction when creating script, be compared with mathematical operator, may be used also The evaluation function for being used for comparison variable in code is independently present in directly invoke, and the combination of two methods.
6. the data-driven design method of games system according to claim 1, it is characterised in that this method also includes:
It is described to be used to realize functional unit and/or game data one or more work(by the data block of global reference using multiple Can, wherein functional unit represents the functional assembly of games, and wherein game data represents the virtual things in games Data set.
7. the data-driven design method of games system according to claim 1, it is characterised in that this method also includes:
Text editor corresponding to the establishment is used to carry out self-defined editor to text, script and data block, and it includes Text editor is created to be used to enter text edlin, create script-editor for entering script edlin, creating work( Energy Component Editor is used to enter functional unit edlin and create game data editing machine to be used to edit game data.
CN201711045949.3A 2017-10-31 2017-10-31 A kind of data-driven design method of games system Pending CN107754314A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711045949.3A CN107754314A (en) 2017-10-31 2017-10-31 A kind of data-driven design method of games system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711045949.3A CN107754314A (en) 2017-10-31 2017-10-31 A kind of data-driven design method of games system

Publications (1)

Publication Number Publication Date
CN107754314A true CN107754314A (en) 2018-03-06

Family

ID=61271769

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711045949.3A Pending CN107754314A (en) 2017-10-31 2017-10-31 A kind of data-driven design method of games system

Country Status (1)

Country Link
CN (1) CN107754314A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109276886A (en) * 2018-08-16 2019-01-29 深圳木狼科技有限公司 A kind of document creation method, system and terminal device
CN109821241A (en) * 2019-01-11 2019-05-31 广州要玩娱乐网络技术股份有限公司 Method of construction, device, storage medium and the terminal of multiple Virtual Buildings
CN110721474A (en) * 2019-10-22 2020-01-24 网易(杭州)网络有限公司 Method and device for editing game skills
CN112337098A (en) * 2020-10-20 2021-02-09 珠海金山网络游戏科技有限公司 Strategy game implementation method, device and medium based on reinforcement learning

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101634940A (en) * 2008-07-25 2010-01-27 苏州市蜗牛电子有限公司 Method for developing computer games through scripts
CN105536250A (en) * 2015-12-16 2016-05-04 珠海金山网络游戏科技有限公司 Extensible game level gear processing method and device
US20160239184A1 (en) * 2011-11-08 2016-08-18 Zynga, Inc. Data-driven state machine for user interactive displays

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101634940A (en) * 2008-07-25 2010-01-27 苏州市蜗牛电子有限公司 Method for developing computer games through scripts
US20160239184A1 (en) * 2011-11-08 2016-08-18 Zynga, Inc. Data-driven state machine for user interactive displays
CN105536250A (en) * 2015-12-16 2016-05-04 珠海金山网络游戏科技有限公司 Extensible game level gear processing method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
双心: "用数据驱动思想来设计游戏-读《游戏编程精粹1》", 《HTTPS://WWW.CNBLOGS.COM/TADI314/ARCHIVE/2010/03/11/1683795.HTML》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109276886A (en) * 2018-08-16 2019-01-29 深圳木狼科技有限公司 A kind of document creation method, system and terminal device
CN109821241A (en) * 2019-01-11 2019-05-31 广州要玩娱乐网络技术股份有限公司 Method of construction, device, storage medium and the terminal of multiple Virtual Buildings
CN110721474A (en) * 2019-10-22 2020-01-24 网易(杭州)网络有限公司 Method and device for editing game skills
CN110721474B (en) * 2019-10-22 2023-04-18 网易(杭州)网络有限公司 Method and device for editing game skills
CN112337098A (en) * 2020-10-20 2021-02-09 珠海金山网络游戏科技有限公司 Strategy game implementation method, device and medium based on reinforcement learning

Similar Documents

Publication Publication Date Title
Lanham Learn ARCore-Fundamentals of Google ARCore: Learn to build augmented reality apps for Android, Unity, and the web with Google ARCore 1.0
CN107754314A (en) A kind of data-driven design method of games system
Zarrad Game engine solutions
CN105631925A (en) Three-dimensional scene generation method based on OSG three-dimensional rendering engine preprocessing and device thereof
Balogh et al. CodeMetropolis: Eclipse over the city of source code
Valcasara Unreal engine game development blueprints
Marques et al. The RPG DSL: a case study of language engineering using MDD for generating RPG games for mobile phones
CN107229459A (en) Method, mobile device and system for creating new mobile application program by combining program package
Yu et al. Intelligent software agent design tool using goal net methodology
Phelps et al. Fun and Games: Multi-Language Development: Game development can teach us much about the common practice of combining multiple languages in a single project.
JP2007236750A (en) Game development system and game development method
Swiechowski et al. Grail: A Framework for Adaptive and Believable AI in Video Games
Pellens et al. A development environment using behavior patterns to facilitate building 3d/vr applications
Palumbo The Flutter framework: Analysis in a mobile enterprise environment
Damm et al. Solving digital logic assignments with automatic verification in scorm modules
CN114518875A (en) Graphical programming system and programming method thereof
Gundlach et al. Mastering CryENGINE
Mohd et al. Analyzing strengths and weaknesses of Modern Game Engines
Coates et al. Generative modelling
Llobera et al. A tool to design interactive characters based on embodied cognition
Rininsland et al. D3. js: cutting-edge data visualization
Ritscher HLSL and Pixel Shaders for XAML Developers
Utility VUW
Le Design patterns: Implementation in video game programming
GAME INSTITUTE OF ENGINEERING PULCHOWK CAMPUS

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: 20180306

RJ01 Rejection of invention patent application after publication