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§

Enums§

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.)
  • Add to universe demo-content blocks: all of DemoBlocks and LandscapeBlocks.
  • Construct blocks for LandscapeBlocks with some detail and add block definitions to the universe.
  • 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”.