Space now resets the map camera

This commit is contained in:
yuni 2024-04-22 00:07:45 +02:00
parent 267ffc105c
commit c1e76d09a9

View file

@ -193,6 +193,10 @@ pub fn update_map_camera(
if keyboard_input.pressed(settings.key_left) {
offset_z += 1.0;
}
if keyboard_input.pressed(settings.key_stop) {
mapcam.offset_x = 0.0;
mapcam.offset_z = 0.0;
}
// Update zoom level
if !mapcam.initialized {