lib/minigl/map.rb
# Moves the viewport by the given amount of pixels.
#
# Parameters:
# [x] The amount of pixels to move horizontally. Negative values will
#     cause the camera to move to the left.
# [y] The amount of pixels to move vertically. Negative values will cause
#     the camera to move up.
Moves the viewport by the given amount of pixels.
Parameters:
[x] The amount of pixels to move horizontally. Negative values will
cause the camera to move to the left.
[y] The amount of pixels to move vertically. Negative values will cause
the camera to move up.
Moves the viewport by the given amount of pixels . Parameters : [ x ] The amount of pixels to move horizontally . Negative values will cause the camera to move to the left . [ y ] The amount of pixels to move vertically . Negative values will cause the camera to move up .
def move_camera(x, y)
      @cam.x += x
      @cam.y += y
      set_bounds
    end
def move_camera ( x , y ) @cam . x += x @cam . y += y set_bounds end
Moves the viewport by the given amount of pixels.
Moves the viewport by the given amount of pixels .
x
<not_specific>
y
<not_specific>