Added terrain generation using FastNoiseLite
This commit is contained in:
@@ -11,7 +11,6 @@ extern NodeManager nodeManager;
|
||||
extern BlockManager blockManager;
|
||||
|
||||
|
||||
|
||||
struct Position2D
|
||||
{
|
||||
int x;
|
||||
|
||||
2586
include/FastNoiseLite.h
Normal file
2586
include/FastNoiseLite.h
Normal file
File diff suppressed because it is too large
Load Diff
24
include/Utilities.h
Normal file
24
include/Utilities.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#ifndef UTILITIES
|
||||
#define UTILITIES
|
||||
|
||||
|
||||
class Utilities
|
||||
{
|
||||
public:
|
||||
Utilities()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
static float degToRad(int degrees)
|
||||
{
|
||||
return 3.14 / 180 * degrees; // Only the first three digits of pi
|
||||
}
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
private:
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user