Minor refactor
This commit is contained in:
parent
b03bcb5191
commit
9857d6e95a
4
.gitignore
vendored
4
.gitignore
vendored
@ -6,7 +6,7 @@ Debug/voxel_engine
|
|||||||
/build
|
/build
|
||||||
|
|
||||||
/world
|
/world
|
||||||
/worlds
|
/worlds/**/*
|
||||||
|
|
||||||
.vscode
|
.vscode
|
||||||
|
|
||||||
@ -15,4 +15,4 @@ Debug/voxel_engine
|
|||||||
.cproject
|
.cproject
|
||||||
.project
|
.project
|
||||||
.git
|
.git
|
||||||
/Default/
|
/Default/
|
||||||
|
|||||||
@ -58,15 +58,6 @@ Engine::Engine(const EngineSettings& settings_) {
|
|||||||
gui = new GUI();
|
gui = new GUI();
|
||||||
std::cout << "-- initializing finished" << std::endl;
|
std::cout << "-- initializing finished" << std::endl;
|
||||||
|
|
||||||
std::cout << "-- loading world" << std::endl;
|
|
||||||
|
|
||||||
//World* world = new World("world-1", enginefs::get_worlds_folder()/"world", 42, settings);
|
|
||||||
|
|
||||||
//vec3 playerPosition = vec3(0, 64, 0);
|
|
||||||
//Camera* camera = new Camera(playerPosition, radians(90.0f));
|
|
||||||
//Player* player = new Player(playerPosition, 4.0f, camera);
|
|
||||||
//setScreen(new LevelScreen(this, world->loadLevel(player, settings)));
|
|
||||||
|
|
||||||
setScreen(new MenuScreen(this));
|
setScreen(new MenuScreen(this));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -40,6 +40,7 @@ MenuScreen::MenuScreen(Engine* engine_) : Screen(engine_) {
|
|||||||
{
|
{
|
||||||
Button* button = new Button(L"Continue", vec4(12.0f, 10.0f, 12.0f, 10.0f));
|
Button* button = new Button(L"Continue", vec4(12.0f, 10.0f, 12.0f, 10.0f));
|
||||||
button->listenAction([this, panel](GUI*) {
|
button->listenAction([this, panel](GUI*) {
|
||||||
|
std::cout << "-- loading world" << std::endl;
|
||||||
EngineSettings& settings = engine->getSettings();
|
EngineSettings& settings = engine->getSettings();
|
||||||
World* world = new World("world", enginefs::get_worlds_folder()/"world", 42, settings);
|
World* world = new World("world", enginefs::get_worlds_folder()/"world", 42, settings);
|
||||||
vec3 playerPosition = vec3(0, 64, 0);
|
vec3 playerPosition = vec3(0, 64, 0);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user