예제 #1
0
파일: world.go 프로젝트: rsaarelm/teratogen
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
}
예제 #2
0
파일: anim.go 프로젝트: rsaarelm/teratogen
func New() (result *Anim) {
	result = new(Anim)
	result.index = space.NewIndex()
	return
}