import pygame

class Finish:
  def __init__(self, screen, colors, x, y, width, height):
    # Passed attributes
    self.screen = screen
    self.colors = colors
    # Class attributes
    self.rect = pygame.Rect(x * 40, y * 40, width * 40, height * 40)
    
  def draw(self, camera):
    rect_to_display = pygame.Rect(
    	self.rect.x - camera.screen.x, 
    	self.rect.y - camera.screen.y, 
    	self.rect.width, 
    	self.rect.height
    )
    pygame.draw.rect(self.screen, self.colors["black"], rect_to_display)
import pygame

class Finish:
  def __init__(self, screen, colors, x, y, width, height):
    # Passed attributes
    self.screen = screen
    self.colors = colors
    # Class attributes
    self.rect = pygame.Rect(x * 40, y * 40, width * 40, height * 40)
    
  def draw(self, camera):
    rect_to_display = pygame.Rect(
    	self.rect.x - camera.screen.x, 
    	self.rect.y - camera.screen.y, 
    	self.rect.width, 
    	self.rect.height
    )
    pygame.draw.rect(self.screen, self.colors["black"], rect_to_display)
# Passed attributes # Class attributes