Exemplo n.º 1
0
func New() (world *World) {
	world = new(World)
	world.Manifold = space.NewManifold()
	world.terrain = make(map[space.Location]Terrain)
	world.Spatial = space.NewIndex()
	world.actors = []entity.Entity{}
	world.nextActors = []entity.Entity{}
	return
}
Exemplo n.º 2
0
func New() (result *Anim) {
	result = new(Anim)
	result.index = space.NewIndex()
	return
}