Skip to main content

Module genetics

Module genetics 

Source
Expand description

DNA/genetics system — heritable traits for procedural creatures.

Models a simplified genome with dominant/recessive alleles, crossover, mutation, and phenotype expression.

Structs§

Environment
Environmental pressures that affect fitness.
Gene
A single gene with two alleles.
Genome
A complete genome.
Population
A population of creatures.

Enums§

TraitType
Trait categories encoded in the genome.