mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
Base content package + ContentLoader
This commit is contained in:
parent
6708e1ef86
commit
c8a283c645
33 changed files with 318 additions and 112 deletions
|
|
@ -106,7 +106,7 @@ WorldGenerator::WorldGenerator(const Content* content)
|
|||
idLeaves(content->require("base:leaves")->rt.id),
|
||||
idGrass(content->require("base:grass")->rt.id),
|
||||
idFlower(content->require("base:flower")->rt.id),
|
||||
idBedrock(content->require("base:bedrock")->rt.id) {;
|
||||
idBazalt(content->require("base:bazalt")->rt.id) {;
|
||||
}
|
||||
|
||||
int generate_tree(fnl_state *noise,
|
||||
|
|
@ -213,7 +213,7 @@ void WorldGenerator::generate(voxel* voxels, int cx, int cz, int seed){
|
|||
id = idSand;
|
||||
}
|
||||
if (real_y <= 2)
|
||||
id = idBedrock;
|
||||
id = idBazalt;
|
||||
|
||||
randomgrass.setSeed(real_x,real_z);
|
||||
if ((id == 0) && (height > SEA_LEVEL+0.5) && ((int)(height + 1) == real_y) && ((unsigned short)randomgrass.rand() > 56000)){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue