ensure cam zoom is wld scale dependent
parent
c3fb674449
commit
b4bc76719f
|
@ -67,7 +67,7 @@ uint8_t platform_is_running() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void platform_input() {
|
void platform_input() {
|
||||||
float mouse_z = GetMouseWheelMove();
|
float mouse_z = (GetMouseWheelMove()*20.0f)/GFX_WORLD_SCALE;
|
||||||
|
|
||||||
if (mouse_z != 0.0f) {
|
if (mouse_z != 0.0f) {
|
||||||
render_camera.zoom = zpl_clamp(render_camera.zoom+mouse_z*0.04f, 0.2f/GFX_WORLD_SCALE, 320.0f/GFX_WORLD_SCALE);
|
render_camera.zoom = zpl_clamp(render_camera.zoom+mouse_z*0.04f, 0.2f/GFX_WORLD_SCALE, 320.0f/GFX_WORLD_SCALE);
|
||||||
|
|
Loading…
Reference in New Issue