hello-world

command
v0.0.0-...-f174bb4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2016 License: MIT Imports: 5 Imported by: 0

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

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL