22 lines
408 B
C++
22 lines
408 B
C++
#ifndef LEVELGENERATOR
|
|
#define LEVELGENERATOR
|
|
#include "FastNoiseLite.h"
|
|
|
|
class LevelGenerator
|
|
{
|
|
public:
|
|
LevelGenerator();
|
|
void setSeed();
|
|
void generateBlock();
|
|
void terraformBlock();
|
|
void populate();
|
|
|
|
protected:
|
|
|
|
private:
|
|
FastNoiseLite perlin, os, cellular;
|
|
int seed = 138; // 1338, 1337. 138 are good ones
|
|
};
|
|
|
|
#endif
|