diff --git a/content/map/1x0.png b/content/map/1x0.png index 5e9ed80..7ed2923 100644 Binary files a/content/map/1x0.png and b/content/map/1x0.png differ diff --git a/src/game.cpp b/src/game.cpp index 0399df0..aed9679 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -33,6 +33,7 @@ void Game::startup() // load first room load_room(Point(0, 0)); camera = Vec2(room.x * width, room.y * height); + fullscreen = false; } void Game::load_room(Point cell, bool is_reload) @@ -169,6 +170,18 @@ void Game::update() load_room(room); } + // Reload First Room + if (Input::pressed(Key::F9)) + { + m_transition = false; + world.clear(); + load_room(Point(0, 0)); + } + + // Toggle Fullscreen + if (Input::pressed(Key::F4)) + App::fullscreen(fullscreen = !fullscreen); + // Normal Update if (!m_transition) { diff --git a/src/game.h b/src/game.h index a5c444b..fd8f89d 100644 --- a/src/game.h +++ b/src/game.h @@ -25,6 +25,7 @@ namespace TL Batch batch; Point room; Vec2 camera; + bool fullscreen = false; void load_room(Point cell, bool is_reload = false); void startup();