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.
- Template
Parameters - Configuration for exactly what a
UniverseTemplateshould produce. - Universe
Template Iter - An iterator over the variants of UniverseTemplate
Enums§
- Demo
Blocks - Grass
Height - Landscape
Blocks - Names for blocks assigned specific roles in generating outdoor landscapes.
- Universe
Template - 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
universedemo-content blocks: all ofDemoBlocksandLandscapeBlocks. - install_
landscape_ blocks - Construct blocks for
LandscapeBlockswith some detail and add block definitions to the universe. - make_
some_ blocks - Generate a set of distinct
Primitive::Atomblocks 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::Recurblocks 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”.