Add files via upload

This commit is contained in:
Onran 2024-02-23 17:12:00 +09:00 • committed by GitHub
parent a5087cf221
commit 8130b0626f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 95 additions and 39 deletions

View file

@ -1,5 +1,4 @@
#include "DefaultWorldGenerator.h"
#include "WorldGenerator.h"
#include "voxel.h"
#include "Chunk.h"
#include "Block.h"
@ -120,7 +119,7 @@ int generate_tree(fnl_state *noise,
return 0;
}
void WorldGenerator::generate(voxel* voxels, int cx, int cz, int seed){
void DefaultWorldGenerator::generate(voxel* voxels, int cx, int cz, int seed){
const int treesTile = 12;
fnl_state noise = fnlCreateState();
noise.noise_type = FNL_NOISE_OPENSIMPLEX2;