rparrett/entytd

Panic in fullscreen mode on linux

Closed this issue · 2 comments

I did run into crashes trying to run this on my linux machine in fullscreen.. it was like... if it was fullscreened and I tried to move with wasd/arrow keys, it would crash

min > max, or either was NaN. min = 144.0, max = -144.0
Encountered a panic in system entytd::camera::update!
Encountered a panic in system bevy_app::main_schedule::Main::run_main!

I'm not able to reproduce this on macos.

Looks like this could happen if the screen is larger than the map area in at least one dimension.

This should be fixed by both

  • Adding an appropriate scale mode to the camera -- resolution shouldn't affect how much of the map is visible
  • Just fixing the panic