command
Version:
v0.0.0-...-d04ef0b
Opens a new window with list of versions in this module.
Published: Sep 3, 2016
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Entity Demo
What does it do?
It demonstrates how one can create an Entity
.
What are important aspects of the code?
These lines are key in this demo:
guy := Guy{BasicEntity: ecs.NewBasic()}
, to define the basics (ecs.NewBasic()
generates a new UID for the entity);
guy.RenderComponent = engo.NewRenderComponent(texture, engo.Point{8, 8}, "guy")
, to add something renderable;
guy.SpaceComponent = common.SpaceComponent{...}
, to define the location of the guy;
- The lines which add the
guy
to the appropriate systems.
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.