import pyglet
from bubblestash.camera import Camera


class GameWindow(pyglet.window.Window):

    def __init__(self, camera=None, key_mapping=None, *args, **kwargs):
        self.key_mapping = key_mapping
        self.event_handlers = {}
        super().__init__(*args, **kwargs)
        self.camera = camera or Camera(0, 0, self.width, self.height)

    def on_resize(self, width, height):
        self.camera.update(width=self.width, height=self.height)

5472d7579e10194377f6dbc58701abc14312a9a8
<mask token>


class GameWindow(pyglet.window.Window):
    <mask token>
    <mask token>

<mask token>


class GameWindow(pyglet.window.Window):

    def __init__(self, camera=None, key_mapping=None, *args, **kwargs):
        self.key_mapping = key_mapping
        self.event_handlers = {}
        super().__init__(*args, **kwargs)
        self.camera = camera or Camera(0, 0, self.width, self.height)
    <mask token>

<mask token>


class GameWindow(pyglet.window.Window):

    def __init__(self, camera=None, key_mapping=None, *args, **kwargs):
        self.key_mapping = key_mapping
        self.event_handlers = {}
        super().__init__(*args, **kwargs)
        self.camera = camera or Camera(0, 0, self.width, self.height)

    def on_resize(self, width, height):
        self.camera.update(width=self.width, height=self.height)

import pyglet
from bubblestash.camera import Camera


class GameWindow(pyglet.window.Window):

    def __init__(self, camera=None, key_mapping=None, *args, **kwargs):
        self.key_mapping = key_mapping
        self.event_handlers = {}
        super().__init__(*args, **kwargs)
        self.camera = camera or Camera(0, 0, self.width, self.height)

    def on_resize(self, width, height):
        self.camera.update(width=self.width, height=self.height)
