summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 9281b2c..152021e 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -65,6 +65,15 @@ int main(int argc, char** argv)
hoveredTile = ScreenToTile({ mx, my });
});
+ window.onKeyDown([&](int keycode) {
+ if (keycode == 's') {
+ level.save();
+ }
+ if (keycode == 'l') {
+ level.load();
+ }
+ });
+
while (!window.shouldClose()) {
window.update();
bitmap.clear(0xff224466);