Add that plane, clamp FOV 1..179

This commit is contained in:
2018-03-20 11:40:07 -05:00
parent e26796f42c
commit a3c92f9de3
3 changed files with 30 additions and 0 deletions

View File

@@ -186,8 +186,10 @@ class IMICFPS
$debug = !$debug
when Gosu::MsWheelUp
@initial_fov += 1
@initial_fov = @initial_fov.clamp(1, 179)
when Gosu::MsWheelDown
@initial_fov -= 1
@initial_fov = @initial_fov.clamp(1, 179)
end
end