Crate all_is_cubes_content

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§

palette
Colors to use in the UI and default content.

Structs§

BoxPart
Identifies one of the 64 parts of a BoxStyle.
BoxStyle
Set of blocks used to draw 3D boxes of any size, allowing corners and edges to have different blocks than faces and the interior.
TemplateParameters
Configuration for exactly what a UniverseTemplate should produce.
UniverseTemplateIter
An iterator over the variants of UniverseTemplate

Enums§

DemoBlocks
GrassHeight
LandscapeBlocks
Names for blocks assigned specific roles in generating outdoor landscapes.
UniverseTemplate
Selection of initial content for constructing a new Universe.

Functions§

axes
Draw the Space’s axes as lines of blocks centered on (0, 0, 0).
free_editing_starter_inventory
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.)
install_demo_blocks
Add to universe demo-content blocks: all of DemoBlocks and LandscapeBlocks.
install_landscape_blocks
Construct blocks for LandscapeBlocks with some detail and add block definitions to the universe.
make_some_blocks
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.
make_some_voxel_blocks
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.
wavy_landscape
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”.