Crate all_is_cubes_content
source ·Expand description
Demo content for All is Cubes.
All is Cubes is a “voxel game” where each block is made out of smaller blocks
(one level of recursion). This particular crate is the procedural generation
tools and demo content that I’ve created to test and demonstrate the functionality.
It depends on the core library crate all_is_cubes
and its main purpose is to
provide UniverseTemplate
; other items should be assumed not particularly
stable.
Modules
Colors to use in the UI and default content.
Structs
Set of blocks used to draw 3D boxes of any size, allowing corners and edges to have
different blocks than faces and the interior.
Iterator over all values of
DemoBlocks
.Iterator over all values of
LandscapeBlocks
.An iterator over the variants of Self
Enums
Names for blocks assigned specific roles in generating outdoor landscapes.
Selection of initial content for constructing a new
Universe
.Functions
Draw the Space’s axes as lines of blocks centered on (0, 0, 0).
A set of inventory items to give character free movement and modification of
everything in the universe. (For the moment, actually just the current space.)
Generate a set of distinct
Primitive::Atom
blocks for use in tests.
They will have distinct colors and names, and all other attributes default.
They will be fully opaque.Generate a set of distinct
Primitive::Recur
blocks for use in tests.
They will have distinct appearances and names, and all other attributes default.
They will be fully opaque.Generate a landscape of grass-on-top-of-rock with some bumps to it.
Replaces all blocks in the specified region except for those intended to be “air”.