command
Version:
v0.0.0-...-544bd7e
Opens a new window with list of versions in this module.
Published: Feb 26, 2016
License: BSD-2-Clause
Opens a new window with license information.
Imports: 3
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 := ecs.NewEntity([]string{"RenderSystem", "ScaleSystem"})
, to define the Entity
;
render := engi.NewRenderComponent(texture, engi.Point{8, 8}, "guy")
, to add something renderable to the Entity
;
guy.AddComponent(render)
, to combine the renderable component and the Entity
;
game.AddEntity(guy)
, to actually add the Entity
to the game.
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.