Documentation
¶
Index ¶
- Constants
- type Block
- type Chunk
- func (c *Chunk) Map(f func(x, y, z int) Block)
- func (c *Chunk) Simplex2D(seed int64, freq, amp float64)
- func (c *Chunk) Simplex3D(seed int64, freq, amp float64)
- func (c *Chunk) SimplexOctave2D(seed int64, iter int, freq, amp, pers, lanc float64)
- func (c *Chunk) SimplexOctave3D(seed int64, iter int, freq, amp, pers, lanc float64)
Constants ¶
View Source
const ( Air Block = iota Grass Dirt Stone NumBlocks int = iota )
Block Enum
View Source
const ChunkSize = 16
ChunkSize - size of chunk on all sides
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chunk ¶
Chunk struct
func (*Chunk) SimplexOctave2D ¶
SimplexOctave2D - generates the chunk with 2d ocatve simplex noise
Click to show internal directories.
Click to hide internal directories.