Difference between revisions of "My first..."

From Divinity Engine Wiki
Jump to: navigation, search
Line 1: Line 1:
How to 1,2,3,...-step guides to create encapsulated game things from scratch.
 
F.e. A character -> root + visual + visual set + name + ...
 
 
 
== Base elements ==
 
== Base elements ==
 
Every object in the divinity engine needs one or more base elements. See these elements as building blocks for the final object.<br />
 
Every object in the divinity engine needs one or more base elements. See these elements as building blocks for the final object.<br />

Revision as of 21:18, 10 September 2017

Base elements

Every object in the divinity engine needs one or more base elements. See these elements as building blocks for the final object.
There are generally two big building blocks: resources and root templates.
Resources are base elements that represent a specific type of data, such as a texture, or a model.
Root templates are built up of resources. They represent a base template of a certain object you can place, such as a character or a chair.


Take for example a chair. A chair needs:

  • A visual model resource
  • Texture resource
  • A physics model resource
  • A root template grouping all the resources into the specific chair you want.
More info on how resources work can be found here: Resources explanation
More info on how templates work can be found here: Templates explanation

Resource

Root template

Full objects

Item

Character

Terrain