BosonX/src/generator/gen2.cpp

17 lines
292 B
C++
Raw Normal View History

2022-08-20 16:32:37 +02:00
#include "../generator.h"
#include "../level.h"
#include <stdlib.h>
2023-05-24 13:08:59 +02:00
gen2::gen2(): m_path_carver{0}
2022-08-20 16:32:37 +02:00
{
2023-05-24 13:08:59 +02:00
srand(123456);
}
2022-08-20 16:32:37 +02:00
2023-05-24 13:08:59 +02:00
void gen2::generate(struct level *level)
{
struct platform p;
if(m_path_carver.next(SECTION_LENGTH, &p)) {
level->platform_buffer.push_back(p);
}
2022-08-20 16:32:37 +02:00
}