CN109966740A - A kind of Scene realization method, device and equipment - Google Patents

A kind of Scene realization method, device and equipment Download PDF

Info

Publication number
CN109966740A
CN109966740A CN201910204659.1A CN201910204659A CN109966740A CN 109966740 A CN109966740 A CN 109966740A CN 201910204659 A CN201910204659 A CN 201910204659A CN 109966740 A CN109966740 A CN 109966740A
Authority
CN
China
Prior art keywords
scene
entity
scenario entities
scenario
entities
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910204659.1A
Other languages
Chinese (zh)
Other versions
CN109966740B (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.)
Tencent Technology Shanghai Co Ltd
Original Assignee
Tencent Technology Shanghai 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 Tencent Technology Shanghai Co Ltd filed Critical Tencent Technology Shanghai Co Ltd
Priority to CN201910204659.1A priority Critical patent/CN109966740B/en
Publication of CN109966740A publication Critical patent/CN109966740A/en
Application granted granted Critical
Publication of CN109966740B publication Critical patent/CN109966740B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/55Controlling game characters or game objects based on the game progress
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/60Generating 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
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/80Special adaptations for executing a specific game genre or game mode
    • A63F13/822Strategy games; Role-playing games
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention provides a kind of Scene realization method, device and equipments, comprising: receives scene request to create, the scene creation request includes the parameter of the first quantity scenario entities;The corresponding entity attribute data of parameter and entity logical component of the first quantity scenario entities are obtained from default entity data bak;The first quantity scenario entities are generated according to the entity attribute data and entity logical component;Target scene is created based on the first quantity scenario entities.By the entity attributes data and logic module separation storage in target scene, the entity of polymorphicization is formed by the polymerization of attribute data and logic module, reaches multiplexing and polymorphic purpose, and efficiently avoid the expansion of class number and base class code.

Description

A kind of Scene realization method, device and equipment
Technical field
The present invention relates to Scene realization technical fields, and in particular to a kind of Scene realization method, device and equipment.
Background technique
The mode of succession is mostly used during Scene realization in the prior art to realize code reuse and polymorphic.In scene Object designs level does not carry out the separation of data and logic, and polymorphic scene can not be neatly constructed by way of combination Object.Though part logic usage behavior mode realizes the combination ability of part, entirety is still based on inheriting.This mode It will cause the expansion of base class code and object class number, while bringing the complexity of multiple inheritance.
Summary of the invention
The invention proposes a kind of Scene realization method, device and equipment, the complexity being able to solve during business development The problems such as degree, reusability, robustness.The present invention is specifically to be realized with following technical solution:
On the one hand, the present invention provides a kind of Scene realization methods, comprising:
Scene request to create is received, the scene creation request includes the parameter of the first quantity scenario entities;
The corresponding entity attribute data of parameter of the first quantity scenario entities are obtained from default entity data bak With entity logical component;
The first quantity scenario entities are generated according to the entity attribute data and entity logical component;
Target scene is created based on the first quantity scenario entities.
On the other hand, the present invention provides a kind of Scene realization devices, comprising:
Request to create receiving module, for receiving scene request to create, the scene creation request includes the first quantity The parameter of scenario entities;
Module is obtained, the parameter for obtaining the first quantity scenario entities from default entity data bak is corresponding Entity attribute data and entity logical component;
Generation module, for generating the first quantity scene according to the entity attribute data and entity logical component Entity;
Creation module, for creating target scene based on the first quantity scenario entities.
Further, the first quantity scenario entities include one or more scenario entities, the generation module, tool Body is used to be generated according to the entity attribute data and entity logical component of scenario entities each in the multiple scenario entities corresponding Scenario entities.
Further, described device further include:
Request receiving module is modified, for receiving scenario entities modification request;
Modified module, for being requested according to scenario entities modification in scenario entities corresponding to the target scene Entity logical component modify, obtain updated entity logical component;
Scenario entities update module, for according to the updated entity logical component and corresponding entity attribute data Generate updated scenario entities;
Target scene update module, for updating the target scene based on the updated scenario entities.
Further, described device further include:
Message transmission centre establishes module, for establishing the message transmission centre of scene, will pass through the message transmission Center carries out the message between scenario entities, between scenario entities logic module and between scenario entities and external system and passes It is defeated.
Further, described device further include:
Scene running assembly set obtains module, for obtaining scene running assembly set, the scene running assembly collection Closing includes the corresponding component of several scenes operation regulation;
First determining module, for the scene operating requirements according to corresponding to scene types of operations from the scene running group The determining scene running assembly to match with the scene operating requirements in part set;
Mapping relations establish module, for establishing the scene running assembly to match and the scene types of operations Mapping relations.
Further, the scene creation request further includes scene operating requirements parameter;
Correspondingly, described device further include:
Scene types of operations determining module, for determining that corresponding scene operates class according to the scene operating requirements parameter Type;
Second determining module, for based on corresponding to mapping relations determination and corresponding scene types of operations Scene running assembly;
Scene running assembly obtains module, obtains the corresponding scene running for operating entrance by standard scene Component;
Target scene operate Fusion Module, for based on the corresponding scene running assembly to the target scene Running fusion obtains the target running scene of the target scene.
On the other hand, the present invention provides a kind of Scene realization equipment, the equipment includes processor and memory, described At least one instruction, at least a Duan Chengxu, code set or instruction set are stored in memory, described at least one instructs, is described An at least Duan Chengxu, the code set or instruction set are loaded as the processor and are executed to realize as described in the first aspect Scene realization method.
The present invention provides a kind of Scene realization method, device and equipments, by the entity attributes data in target scene Separate storage with logic module, form the entity of polymorphicization by the polymerization of attribute data and logic module, reach multiplexing and Polymorphic purpose, and efficiently avoid the expansion of class number and base class code.
Detailed description of the invention
It in order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology and advantage, below will be to implementation Example or attached drawing needed to be used in the description of the prior art are briefly described, it should be apparent that, the accompanying drawings in the following description is only It is only some embodiments of the present invention, for those of ordinary skill in the art, without creative efforts, It can also be obtained according to these attached drawings other attached drawings.
Fig. 1 is a kind of flow diagram of Scene realization method provided in an embodiment of the present invention;
Fig. 2 is a kind of configuration diagram of traditional Scene realization method provided in an embodiment of the present invention;
Fig. 3 is a kind of flow diagram of method for establishing entity data bak provided in an embodiment of the present invention;
Fig. 4 is a kind of flow diagram of method for realizing scene in a dynamic fashion provided in an embodiment of the present invention;
Fig. 5 is a kind of flow diagram of scene running assembly method for building up provided in an embodiment of the present invention;
Fig. 6 is the schematic diagram that a kind of pair of playing method provided in an embodiment of the present invention carries out abstract classification;
Fig. 7 is that a kind of process of method that scene running assembly is obtained by standard entrance provided in an embodiment of the present invention is shown It is intended to;
Fig. 8 is a kind of entrance flow diagram of each playing method provided in an embodiment of the present invention;
Fig. 9 is a kind of schematic diagram of the framework class of Scene realization method provided in an embodiment of the present invention;
Figure 10 is a kind of configuration diagram of Scene realization method provided in an embodiment of the present invention;
Figure 11 is a kind of flow diagram that locomotive function is realized by single machine Entity provided in an embodiment of the present invention;
Figure 12 is that a kind of process by Entity realization locomotive function under multi-player mode provided in an embodiment of the present invention is shown It is intended to;
Figure 13 is that business development process when a kind of scene of game provided in an embodiment of the present invention is realized is intended to;
Figure 14 is a kind of structural schematic diagram of Scene realization device provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art without making creative work it is obtained it is all its His embodiment, shall fall within the protection scope of the present invention.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover Cover it is non-exclusive include, for example, containing the process, method of a series of steps or units, system, product or server need not limit In step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, produce The other step or units of product or equipment inherently.
Introduced below the present invention is based on the methods of the Scene realization of above system, and present description provides such as embodiments or stream Method operating procedure described in journey figure, but based on routine or may include more or less operation without creative labor Step.The step of enumerating in embodiment sequence is only one of numerous step execution sequences mode, does not represent and uniquely holds Row sequence.It, can be according to embodiment or method shown in the drawings sequence when system or server product in practice executes It executes or executes (such as environment of parallel processor or multiple threads) parallel.
Fig. 1 is a kind of flow diagram of Scene realization method provided in an embodiment of the present invention, as shown in Figure 1, the side Method specifically includes:
S101: receiving scene request to create, and the scene creation request includes the parameter of the first quantity scenario entities.
Scene in this specification can be a virtual scene, can specifically refer to a virtual world in game, It can see other players and non-player role (NPC, the game role not manipulated by player) in this virtual world, and It can be interacted with them.
Entity (Entity) in this specification can refer to that one has the unit in independent life period in gaming world.Such as It says, a NPC, monster etc..Entity can be an abstract concept, and the Entity without behavior (Behavior) is The set of one heap data, itself is without any logic.Behavior executes code, for realizing the code of different Action logics, than Say mobile Behavior such as realizing movement logic, synchronous Behavior is for realizing Network Synchronization logic etc..
In the design of scene object class, as shown in Fig. 2, the prior art using traditional succession Actor (Actor with Entity entity is similar, only another saying) system, though part logic usage behavior mode realizes the combination energy of part Power, but integrally or based on inheriting.This mode will cause the expansion of base class code and object class number, while bring more The complexity inherited again.The scheme of this specification is separated data and logic, fills in number using attribute (Attribute) According to component package logic, by the combination of logic module, polymerization forms the Entity entity of polymorphicization.
The first quantity scenario entities include one or more scenario entities.
S103: the corresponding entity attribute of parameter of the first quantity scenario entities is obtained from default entity data bak Data and entity logical component.
Such as Fig. 3, the default entity data bak is established mode, is specifically included:
S301: the second quantity scenario entities sample is obtained.
Wherein, scenario entities sample can be used a large amount of scenario entities sample in existing scene of game, can also To be a large amount of scenario entities sample not used in scene of game that developer designs.
S303: the attribute data and logic of each scenario entities sample in the second quantity scenario entities sample are obtained Component.
The attribute data of one Entity is the variables collection of an Entity, for expressing the state of current Entity, And contextual information etc..
The logic module of one entity is that the behavior of the entity is executed to code wrap at component, for realizing different rows For the code of logic.
In this specification, each scene sample entity attributes data and logic module are subjected to separation storage.
S305: all properties data of the second quantity scenario entities sample and all logic modules are stored in respectively The default entity data bak.
In this specification, all properties data of scenario entities sample and the separation of all logic modules are stored in default entity Database calls entity attribute data or logic module therein convenient for developer at any time.
S105: the first quantity scenario entities are generated according to the entity attribute data and entity logical component.
It is described according to the entity attribute data and reality when the first quantity scenario entities are multiple scenario entities Body logic module generates the first quantity scenario entities, specifically includes:
Phase is generated according to the entity attribute data of scenario entities each in the multiple scenario entities and entity logical component The scenario entities answered, to obtain the first quantity scenario entities.
Data and logic are separated in the design of scene object class, fill in data, component package using attribute Logic, by the combination of logic module, polymerization forms the Entity entity of polymorphicization.Relatively traditional succession Actor system, this Kind EAB (Entity+Attribute+Behavior) framework efficiently avoids while reaching multiplexing and polymorphic purpose The expansion of class number and base class code.
S107: target scene is created based on the first quantity scenario entities.
Specifically, the scene needed using the one or more scenario entities creation generated.
It should be noted that the scenario entities in this specification can be static by combining form and dynamically define it Characteristic, an Entity may include multiple and different Behavior.The process of this description can be static state, i.e., in code It is described when writing, is also possible to dynamically, i.e., just be described when code is run.Following steps 401-407 describes dynamic The scenario entities of state.
Method in this specification, after target scene creates successfully, if after the entity in target scene is run, exploitation The performance that personnel run entity is dissatisfied, can also modify to target scene, to reach the design requirement of developer.
Such as Fig. 4, S401: receiving scenario entities modification request.
Wherein, scenario entities modification request can specifically be related to the logic module or logic module of scenario entities to category The modification of the relevant parameter of property data call.
S403: the entity in scenario entities corresponding to the target scene is patrolled according to scenario entities modification request It collects component to modify, obtains updated entity logical component.
By in this manual entity attribute data and entity logical component be separation storage, therefore, can be to reality Body logic module is individually modified, and updated entity logical component can be obtained in the code without changing complicated.
S405: updated scene is generated according to the updated entity logical component and corresponding entity attribute data Entity.
S407: the target scene is updated based on the updated scenario entities.
By the characteristic of static Entitys different with the formal definition that dynamic two ways is combined, playing method may be implemented Diversified demand.
There is no message communication mechanism between existing multiple entities, causes mutually to quote between object.Various scenario objects Weave in is quoted, code is caused to couple.Therefore, this specification proposition is solved the above problems using message transmission centre.
The Scene realization method of this specification further include: the message transmission centre of scene is established, will pass through the message Transmission center carries out between scenario entities, between scenario entities logic module and the message between scenario entities and external system Transmission.
Message is linked up: calling other behaviors or the logic interfacing of other Entity by message mechanism.Compared to direct It is called by object interface, it is a kind of mode for releasing the code coupling at message transmission both ends.
Message transmission centre: the channel communicated with each other between multiple Entity.Entity passes through in message is transmitted The heart registers Entity and the type of message of its care to receive the message informing from this Entity.Avoid Entity it Between the reference that sticks one's chin out mutually, cause Entity life cycle to exist and rely on.
It is linked up between external system and Entity and Entity internal component by message, is led between two Entity It crosses message transmission centre and carries out the forwarding of message, to can also be with outside while reaching logical cohesion and externally hide The purpose of system communication.
Playing method logic is realized by single-piece in the prior art.Although playing method division module, without unified general character out, formed Abstract type, and playing method enters entrance disunity, code redundancy.Therefore, it proposes to realize scene by component in this specification The playing method of running.
Such as Fig. 5, before the reception scene request to create, the method also includes:
S501: scene running assembly set is obtained, the scene running assembly set includes several scenes operation regulation pair The component answered.
Wherein, the several scenes operation regulation includes one, more people, has scene, without operation regulations such as scenes.Sports ground Scape operation regulation it also will be understood that at game different types of playing method.Playing method is the alias of the various game modes in game, It possesses game rule, and number limitation carries out process, these elements of victory or defeat judgement etc..The playing method such as legion fights, small town are played Method, more people's copy playing methods etc..
S503: it is determined from the scene running assembly set according to scene operating requirements corresponding to scene types of operations The scene running assembly to match with the scene operating requirements.
Corresponding scene types of operations is determined based on the scene operating requirements of developer, for example, when needing to establish one Game, it is determined that corresponding scene types of operations is single types of operations.Then, from the scene running assembly set of step 501 The scene of the middle corresponding single running of selection, and determine the scene running assembly for being suitble to single running scene.
S505: the mapping relations of the scene running assembly and the scene types of operations that match described in foundation.
The mapping relations of the scene running assembly and the scene types of operations that match described in foundation, are for the ease of opening The scene running assembly to match with the types of operations of target scene is called when hair personnel create target scene on demand.
By realizing different playing method components, it is articulated in different abstract playing methods, thus realizing the more of playing method logic While sample coupling will not be generated with original skeleton code.There is the playing method component of public property can also reach for part simultaneously To the purpose of multiplexing, development efficiency is improved.
The scheme of this specification sums up playing method general character, forms abstract type, improves reusability, robustness, and reduce The development difficulty of playing method, is service logic itself is absorbed in business development.
Specifically, as shown in fig. 6, original playing method is abstracted into four kinds of playing method types: single scene, more people's scenes, nothing Scene is single to fight and fights without the more people of scene, in this way, scene of game developer only needs to be absorbed in one of game itself Service logic developed.
As shown in fig. 7, the scene creation request further includes scene operating requirements parameter;
Correspondingly, the Scene realization method of this specification further include:
S701: corresponding scene types of operations is determined according to the scene operating requirements parameter.
The scene operating requirements parameter be developer according to the creation demand of target scene the parameter of determination.
Abstract type belonging to the playing method, playing method component definition and various parameters switch are passed to when entering playing method.
S703: based on the mapping relations in the step 505 it is determining with corresponding to corresponding scene types of operations Scene running assembly.
Playing method component: an independent complete logic unit.Similar with behavior, difference is the general needle of playing method component For the logic of entire playing method, rather than the logic of a game entity.Such as gesture control component, scene event component etc., And some specific playing method logics, such as legion's contest playing method component, small town playing method component etc..
S705: entrance is operated by standard scene and obtains the corresponding scene running assembly.
The standard scene running entrance is the unified entrance being arranged for different playing method types, can be obtained by the entrance It is available to suitable for one to the scene running assembly with the playing method type matching, such as the scene of single operating requirements The running assembly of scene.
In Frame Design, the entrance of all different playing method types is unified, when business development can pass through different parameters Into the playing method (one, more people, have scene, without scene) of different types;Externally conceal different type playing method enters stream Journey details.
S707: the running of the target scene is merged based on the corresponding scene running assembly, obtains the mesh The target for marking scene operates scene.
As shown in figure 8, being the entrance process for four kinds of playing methods that this specification enumerates.
Single scene: standard scene entrance HandleEnterSceneGame → exit a playing method system → initialization After scene → creation scene components → scene load → loaded, playing method component loaded is notified, start execution scene and patrol Volume.
More people's scenes: standard scene entrance HandleEnterSceneGame → connection server and completion Login Register Process → initiating to enter scene request to server → after receiving back packet, exits a playing method system → initialization scene → wound After building scene components → scene load → loaded, playing method component loaded is notified, start to execute scene logic → notice Server loaded starts synchronization scenarios data.
More people fight without scene: standard scene entrance HandleEnterSceneGame → connection server and completion are stepped on For record register flow path → initiating to enter scene request to server → after receiving back packet, notice combat system starts initialization → fight After system readjustment initialization, exiting a playing method system → notice initialization terminates.
One fights without scene: standard scene entrance HandleEnterSceneGame → notice combat system starts initially After change → combat system readjustment initialization, exiting a playing method system → notice initialization terminates.
Scene realization method in this specification has taken out multiple types, has made new playing method due to summarizing playing method general character Business development have a template, solve the problems such as complexity during business development, reusability, robustness.It is unified The entrance of all different playing method types, when business development can be entered by different parameters different types playing method (one, More people have scene, no scene), the entrance process details for being concerned about different type playing method is not needed, is that business development is absorbed in itself The realization of logic.
The common characteristic of corresponding each playing method, and the logic of different playing methods, mount realization in the way of playing method component, Logical code and skeleton code can be allowed to decouple, while can also achieve the purpose that multiplexing, improve the efficiency of exploitation.
It, can be better by plug-in type since data and logic are separated in terms of scene object designs Combination realize the diversification of object.System is inherited compared to traditional Actor, EAB can pass through static and two kinds of sides of dynamic Formula defines the characteristic of different Entity, keeps solution more flexible.Message link up mechanism, can release call reference can See, thus while reaching logical cohesion and externally hide, it can also be with the purpose of external system communication.
To sum up, the Scene realization method in this specification, skeleton code and logic business code are kept completely separate, frame generation Code can be used directly in later project.
Such as Fig. 9, the frame based on EAB system class in this specification is described.Pass through between the lower portion and outside The access of SceneAttributeService class progress attribute data.
SceneService class, scene playing method service.Encapsulate 4 kinds of abstract playing methods (single scene, more people's scenes, one The fight of no scene, the fight of Duo Renwu scene) entrance process.It include C/S protocol interaction, the creation of playing method component, money into process The infrastructure services such as source load.It is responsible for the creation and destruction of Entity.
Entity class, as the container of attribute (Attribute) and behavior (Behavior), inside Entity Behavior is linked up by message, and the attribute set of shared Entity.
Behavior class realizes logic behavior by different subclasses.Inside Entity difference Behavior pass through message into Row is linked up.
EntityMsgCenter class, for being linked up between different Entity by message.
SceneAttributeService class is used for external system access scenario internal system variable, avoids scene system Coupling is generated with external system.Built-in variable registers access attribute by SceneAttributeService, and external system passes through Querying attributes obtain internal data.
As shown in Figure 10, under EAB frame, data and code are separated.Attribute set (Attribute) represents number According to behavior (Behavior), which represents, executes code.One Entity is formed by an attribute set and any number of behavior combinations. It inside Entity, is linked up between multiple behaviors by message, and the attribute set of shared Entity.
Behavior in Entity is exemplified below to cooperate by message:
It is that locomotive function is realized by single machine Entity such as Figure 11.Local control assembly is sent to fortune for message is moved Dynamic component, displacement message is sent to display component again by moving parts, then is being locally displayed by display component to Entity behavior Control result.In the process, the data in meeting reading attributes set as needed.
It is that locomotive function is realized by Entity under multi-player mode such as Figure 12.Local control assembly will move message hair Moving parts and mobile Synchronization Component are given, displacement message is sent to display component again by moving parts, then is existed by display component The control result to Entity behavior is locally displayed, when mobile Synchronization Component receives synchronous movement message, passes through server Send movement message to the control assembly of remote end entity, movement message is sent to distal movement group again by the control assembly of distal end Part, then distal displayed component is sent to by message is displaced by distal movement component.In the process, it can read as needed corresponding Attribute set in data.
Business development process when specific scene of game is realized is described below:
1. select playing method type, including single scene, more people's scenes, without scene fight (one) and without scene fight it is (more People);
2. mounting playing method component, playing method business logic components are developed, mounting needs playing method common component to be used;
3. it develops business playing method scenario objects (Entity), including,
Which business scenario object is defined using blueprint (blueprint) to be made of behavior (behavior);
If desired, developing the new behavior (behavior) of this business needs;
Incoming blueprint (blueprint) generates scenario objects example by factory.
The Scene realization method that this specification provides, hides the details on bottom and process to business development, allows exploit person Member is absorbed in the exploitation of service logic itself.
The embodiment of the invention also provides a kind of Scene realization devices, and as shown in figure 14, described device includes:
Request to create receiving module 1401, for receiving scene request to create, the scene creation request includes the first number Measure the parameter of a scenario entities;
Module 1403 is obtained, for obtaining the parameter pair of the first quantity scenario entities from default entity data bak The entity attribute data and entity logical component answered;
Generation module 1405, for generating first quantity according to the entity attribute data and entity logical component Scenario entities;
Creation module 1407, for creating target scene based on the first quantity scenario entities.
Further, described device further include:
Sample acquisition module 1409, for obtaining the second quantity scenario entities sample;
Sample attribute data and logic module obtain module 1411, for obtaining the second quantity scenario entities sample In each scenario entities sample attribute data and logic module;
Memory module 1413, for by all properties data and all logics of the second quantity scenario entities sample Component is stored in the default entity data bak respectively.
Further, the first quantity scenario entities include one or more scenario entities, the generation module, tool Body is used to be generated according to the entity attribute data and entity logical component of scenario entities each in the multiple scenario entities corresponding Scenario entities.
Further, described device further include:
Request receiving module 1415 is modified, for receiving scenario entities modification request;
Modified module 1417, for real to scene corresponding to the target scene according to scenario entities modification request Entity logical component in body is modified, and updated entity logical component is obtained;
Scenario entities update module 1419, for according to the updated entity logical component and corresponding entity attribute Data generate updated scenario entities;
Target scene update module 1421, for updating the target scene based on the updated scenario entities.
Further, described device further include:
Message transmission centre establishes module 1423, for establishing the message transmission centre of scene, will pass through the message Transmission center carries out between scenario entities, between scenario entities logic module and the message between scenario entities and external system Transmission.
Further, described device further include:
Scene running assembly set obtains module 1425, for obtaining scene running assembly set, the scene running group Part set includes the corresponding component of several scenes operation regulation;
First determining module 1427 is transported for the scene operating requirements according to corresponding to scene types of operations from the scene Make the determining scene running assembly to match with the scene operating requirements in assembly set;
Mapping relations establish module 1429, operate class for establishing the scene running assembly to match and the scene The mapping relations of type.
Further, the scene creation request further includes scene operating requirements parameter;
Correspondingly, described device further include:
Scene types of operations determining module 1431, for determining that corresponding scene is transported according to the scene operating requirements parameter Make type;
Second determining module 1433, for determining right with corresponding scene types of operations institute based on the mapping relations The scene running assembly answered;
Scene running assembly obtains module 1435, obtains the corresponding scene for operating entrance by standard scene Running assembly;
Target scene operate Fusion Module 1437, for based on the corresponding scene running assembly to the target field The running of scape is merged, and the target running scene of the target scene is obtained.
Apparatus and method embodiment in the Installation practice is based on same inventive concept.
The embodiment of the invention also provides a kind of scene clustering equipment, the equipment includes processor and memory, described At least one instruction, at least a Duan Chengxu, code set or instruction set are stored in memory, described at least one instructs, is described An at least Duan Chengxu, the code set or instruction set are loaded by the processor and are executed to realize scene clustering side as the aforementioned Method.
The method, apparatus of scene clustering that is there is provided by aforementioned present invention, the embodiment of equipment as it can be seen that the solution of the present invention, Scene request to create is received, the scene creation request includes the parameter of the first quantity scenario entities;From default solid data The corresponding entity attribute data of parameter and entity logical component of the first quantity scenario entities are obtained in library;According to described Entity attribute data and entity logical component generate the first quantity scenario entities;It is real based on the first quantity scene Body creates target scene.By the entity attributes data and logic module separation storage in target scene, by attribute data and The polymerization of logic module forms the entity of polymorphicization, reach multiplexing and polymorphic purpose, and efficiently avoid class number and The expansion of base class code.
It should be understood that embodiments of the present invention sequencing is for illustration only, do not represent the advantages or disadvantages of the embodiments. And above-mentioned this specification specific embodiment is described.Other embodiments are within the scope of the appended claims.One In a little situations, the movement recorded in detail in the claims or step can be executed according to the sequence being different from embodiment and Still desired result may be implemented.In addition, process depicted in the drawing not necessarily requires the particular order shown or company Continuous sequence is just able to achieve desired result.In some embodiments, multitasking and parallel processing it is also possible or It may be advantageous.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device, For apparatus embodiments, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to method The part of embodiment illustrates.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, storage medium mentioned above can be read-only memory, Disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (10)

1. a kind of method of Scene realization, which is characterized in that the described method includes:
Scene request to create is received, the scene creation request includes the parameter of the first quantity scenario entities;
The corresponding entity attribute data of parameter and reality of the first quantity scenario entities are obtained from default entity data bak Body logic module;
The first quantity scenario entities are generated according to the entity attribute data and entity logical component;
Target scene is created based on the first quantity scenario entities.
2. the method according to claim 1, wherein the default entity data bak is established in the following manner:
Obtain the second quantity scenario entities sample;
Obtain the attribute data and logic module of each scenario entities sample in the second quantity scenario entities sample;
The all properties data of the second quantity scenario entities sample and all logic modules are stored in respectively described default Entity data bak.
3. the method according to claim 1, wherein the first quantity scenario entities include one or more Scenario entities;
It is described to be patrolled according to the entity attribute data and entity when the first quantity scenario entities are multiple scenario entities It collects component and generates the first quantity scenario entities, specifically include:
It is generated according to the entity attribute data of scenario entities each in the multiple scenario entities and entity logical component corresponding Scenario entities.
4. method according to claim 1-3, which is characterized in that the method also includes:
Receive scenario entities modification request;
According to the scenario entities modification request to the entity logical component in scenario entities corresponding to the target scene into Row modification, obtains updated entity logical component;
Updated scenario entities are generated according to the updated entity logical component and corresponding entity attribute data;
The target scene is updated based on the updated scenario entities.
5. method according to claim 1-3, which is characterized in that the method also includes:
The message transmission centre of scene being established, being carried out between scenario entities with will pass through the message transmission centre, scenario entities Message transmission between logic module and between scenario entities and external system.
6. method according to claim 1-3, which is characterized in that before the reception scene request to create, The method also includes:
Scene running assembly set is obtained, the scene running assembly set includes the corresponding component of several scenes operation regulation;
It is determined and the field from the scene running assembly set according to scene operating requirements corresponding to scene types of operations The scene running assembly that scape operating requirements match;
The mapping relations of the scene running assembly and the scene types of operations that match described in foundation.
7. according to the method described in claim 6, it is characterized in that, scene creation request further includes scene operating requirements ginseng Number;
Correspondingly, the method also includes:
Corresponding scene types of operations is determined according to the scene operating requirements parameter;
Based on mapping relations determination and scene running assembly corresponding to corresponding scene types of operations;
Entrance, which is operated, by standard scene obtains the corresponding scene running assembly;
The running of the target scene is merged based on the corresponding scene running assembly, obtains the mesh of the target scene Mark running scene.
8. a kind of device of Scene realization, which is characterized in that described device includes:
Request to create receiving module, for receiving scene request to create, the scene creation request includes the first quantity scene The parameter of entity;
Module is obtained, for obtaining the corresponding entity of parameter of the first quantity scenario entities from default entity data bak Attribute data and entity logical component;
Generation module, it is real for generating the first quantity scene according to the entity attribute data and entity logical component Body;
Creation module, for creating target scene based on the first quantity scenario entities.
9. according to the method described in claim 8, it is characterized in that, described device further include:
Sample acquisition module, for obtaining the second quantity scenario entities sample;
Sample attribute data and logic module obtain module, for obtaining each field in the second quantity scenario entities sample The attribute data and logic module of scape entity sample;
Memory module, for distinguishing all properties data of the second quantity scenario entities sample and all logic modules It is stored in the default entity data bak.
10. a kind of Scene realization equipment, which is characterized in that the equipment includes processor and memory, is deposited in the memory Contain at least one instruction, at least a Duan Chengxu, code set or instruction set, at least one instruction, an at least Duan Cheng Sequence, the code set or instruction set are loaded by the processor and are executed to realize such as any claim in claim 1 to 7 The Scene realization method.
CN201910204659.1A 2019-03-18 2019-03-18 Scene implementation method, device and equipment Active CN109966740B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910204659.1A CN109966740B (en) 2019-03-18 2019-03-18 Scene implementation method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910204659.1A CN109966740B (en) 2019-03-18 2019-03-18 Scene implementation method, device and equipment

Publications (2)

Publication Number Publication Date
CN109966740A true CN109966740A (en) 2019-07-05
CN109966740B CN109966740B (en) 2022-05-20

Family

ID=67079352

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910204659.1A Active CN109966740B (en) 2019-03-18 2019-03-18 Scene implementation method, device and equipment

Country Status (1)

Country Link
CN (1) CN109966740B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111552458A (en) * 2020-03-30 2020-08-18 北京赤金智娱科技有限公司 Game system architecture construction method, realization method, device and system
CN113656007A (en) * 2021-08-23 2021-11-16 斑马网络技术有限公司 Scene construction method, device, equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1945588A (en) * 2006-10-27 2007-04-11 北京金山软件有限公司 Network game system and method for establishing game elements
CN102810061A (en) * 2012-05-18 2012-12-05 北京像素软件科技股份有限公司 Method for editing non-player-controlled character
US20130120422A1 (en) * 2011-11-15 2013-05-16 Pixar Animation Studios File format for representing a scene
CN104991763A (en) * 2015-06-04 2015-10-21 珠海金山网络游戏科技有限公司 Universal game interface behavior control system
US20160104321A1 (en) * 2014-10-08 2016-04-14 Microsoft Corporation Transfer of attributes between generations of characters
CN106293753A (en) * 2016-08-16 2017-01-04 网易(杭州)网络有限公司 The development approach of editing machine and device, edit methods and editing machine
US20170056769A1 (en) * 2015-08-24 2017-03-02 Jingcai Online Technology (Dalian) Co., Ltd. Method and device for generating and uploading game data
CN107302707A (en) * 2017-05-18 2017-10-27 腾讯科技(深圳)有限公司 Player method, the apparatus and system of scene animation

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1945588A (en) * 2006-10-27 2007-04-11 北京金山软件有限公司 Network game system and method for establishing game elements
US20130120422A1 (en) * 2011-11-15 2013-05-16 Pixar Animation Studios File format for representing a scene
CN102810061A (en) * 2012-05-18 2012-12-05 北京像素软件科技股份有限公司 Method for editing non-player-controlled character
US20160104321A1 (en) * 2014-10-08 2016-04-14 Microsoft Corporation Transfer of attributes between generations of characters
CN104991763A (en) * 2015-06-04 2015-10-21 珠海金山网络游戏科技有限公司 Universal game interface behavior control system
US20170056769A1 (en) * 2015-08-24 2017-03-02 Jingcai Online Technology (Dalian) Co., Ltd. Method and device for generating and uploading game data
CN106293753A (en) * 2016-08-16 2017-01-04 网易(杭州)网络有限公司 The development approach of editing machine and device, edit methods and editing machine
CN107302707A (en) * 2017-05-18 2017-10-27 腾讯科技(深圳)有限公司 Player method, the apparatus and system of scene animation

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111552458A (en) * 2020-03-30 2020-08-18 北京赤金智娱科技有限公司 Game system architecture construction method, realization method, device and system
CN111552458B (en) * 2020-03-30 2023-11-17 北京完美赤金科技有限公司 Construction method, implementation method, device and system of game system architecture
CN113656007A (en) * 2021-08-23 2021-11-16 斑马网络技术有限公司 Scene construction method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN109966740B (en) 2022-05-20

Similar Documents

Publication Publication Date Title
US9818255B2 (en) Video game incentivizing outside assistance
CN108549560B (en) Interface state switching method and device, storage medium and electronic device
CN101335916A (en) General mobile phone role playing network game engine
US20230280873A1 (en) Interface display method and apparatus, device, and storage medium
CN109966740A (en) A kind of Scene realization method, device and equipment
CN110109746A (en) A kind of task processing method, device, equipment and medium
SA114360073B1 (en) Determining artificial intelligence behavior
CN102779028A (en) Implementation method and device for special effect synthesizing engine of client side
CN106373014A (en) Method and apparatus for assessing health degree of application
CN109731334A (en) Switching method and apparatus, storage medium, the electronic device of state
CN111641842A (en) Method and device for realizing collective activity in live broadcast room, storage medium and electronic equipment
US20170148258A1 (en) Game system, and control method and storage medium used in same
CN110339571A (en) Event generation method and device, storage medium and electronic device
Mottola et al. Pervasive games in a mote-enabled virtual world using tuple space middleware
WO2013100363A1 (en) Method and sever for providing simulation game
KR101153316B1 (en) Hierarchical Intelligent Virtual Agent Framework based on plug-in
CN112131112B (en) Operation information acquisition method and device, storage medium and electronic equipment
CN107145444B (en) Game performance testing method, testing device, readable medium and electronic equipment
CN111841019A (en) Game application security verification method, device, equipment and storage medium
CN109240674A (en) A kind of game developing system
CN116798291A (en) Training system, method and device using XR content
CN110354496A (en) The processing method and processing device of e-sports race, storage medium, electronic equipment
Zhu Model-driven game development addressing architectural diversity and game engine-integration
Xu et al. MiaoSuan Wargame: A Multi-Mode Integrated Platform for Imperfect Information Game
BinSubaih et al. Game portability using a service-oriented approach

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
GR01 Patent grant
GR01 Patent grant