Space now resets the map camera
This commit is contained in:
parent
267ffc105c
commit
c1e76d09a9
1 changed files with 4 additions and 0 deletions
|
@ -193,6 +193,10 @@ pub fn update_map_camera(
|
||||||
if keyboard_input.pressed(settings.key_left) {
|
if keyboard_input.pressed(settings.key_left) {
|
||||||
offset_z += 1.0;
|
offset_z += 1.0;
|
||||||
}
|
}
|
||||||
|
if keyboard_input.pressed(settings.key_stop) {
|
||||||
|
mapcam.offset_x = 0.0;
|
||||||
|
mapcam.offset_z = 0.0;
|
||||||
|
}
|
||||||
|
|
||||||
// Update zoom level
|
// Update zoom level
|
||||||
if !mapcam.initialized {
|
if !mapcam.initialized {
|
||||||
|
|
Loading…
Add table
Reference in a new issue