from dataclasses import dataclass
import pygame


@dataclass
class Camera:
    x: int
    y: int
    locked: bool

    def update(self, pressed):
        if pygame.K_UP in pressed:
            self.y -= 1
        if pygame.K_DOWN in pressed:
            self.y += 1
        if pygame.K_LEFT in pressed:
            self.x -= 1
        if pygame.K_RIGHT in pressed:
            self.x += 1


camera = Camera(0, 0, False)

890c74993ffd580ca80cb2e89ccd95574a28e2f0
<mask token>


@dataclass
class Camera:
    x: int
    y: int
    locked: bool
    <mask token>


<mask token>

<mask token>


@dataclass
class Camera:
    x: int
    y: int
    locked: bool

    def update(self, pressed):
        if pygame.K_UP in pressed:
            self.y -= 1
        if pygame.K_DOWN in pressed:
            self.y += 1
        if pygame.K_LEFT in pressed:
            self.x -= 1
        if pygame.K_RIGHT in pressed:
            self.x += 1


<mask token>

<mask token>


@dataclass
class Camera:
    x: int
    y: int
    locked: bool

    def update(self, pressed):
        if pygame.K_UP in pressed:
            self.y -= 1
        if pygame.K_DOWN in pressed:
            self.y += 1
        if pygame.K_LEFT in pressed:
            self.x -= 1
        if pygame.K_RIGHT in pressed:
            self.x += 1


camera = Camera(0, 0, False)

from dataclasses import dataclass
import pygame


@dataclass
class Camera:
    x: int
    y: int
    locked: bool

    def update(self, pressed):
        if pygame.K_UP in pressed:
            self.y -= 1
        if pygame.K_DOWN in pressed:
            self.y += 1
        if pygame.K_LEFT in pressed:
            self.x -= 1
        if pygame.K_RIGHT in pressed:
            self.x += 1


camera = Camera(0, 0, False)
