__author__ = 'Florian Tautz'


class Camera:
    def __init__(self, view_size):
        self._width = view_size[0]
        self._height = view_size[1]
        self._pos_x = self._width / 2
        self._pos_y = self._height / 2

    def center_on(self, x, y):
        self._pos_x = x + self._width / 2
        self._pos_y = y + self._height / 2

    def move(self, x, y):
        self._pos_x += x
        self._pos_y -= y

    def get_view_rect(self):
        return (self._pos_x, self._pos_y,
                self._width, self._height)
@@ -278,12 +278,8 @@
 _x =
- x +
  sel
@@ -282,32 +282,36 @@
  self._width / 2
+ - x
 %0A        self._p
@@ -320,12 +320,8 @@
 _y =
- y +
  sel
@@ -325,32 +325,36 @@
 self._height / 2
+ - y
 %0A%0A    def move(s

fix camera centering