import pygame
from interaction import interaction
from game import Game

BLACK = (0, 0, 0)
WHITE = (255, 255, 255)
BLUE = (0, 0, 200)
GREEN = (0, 200, 0)
RED = (200, 0, 0)
PURPLE = (255, 0, 255)
ORANGE = (255, 155, 0)
BRIGHT_GREEN = (0, 255, 0)
BRIGHT_BLUE = (0, 0, 255)
BRIGHT_RED = (255, 0, 0)
FLORAL_WHITE = (255,250,240)

pygame.init()

screen = pygame.display.set_mode((640, 500))
clock = pygame.time.Clock()
FPS = 20
total_frames = 0
rectangles = []

game = Game(screen)

while True:

	screen = pygame.display.get_surface()

	screen.fill(FLORAL_WHITE)
	
	game.process(screen)

	interaction(screen)

	pygame.display.set_caption("The Thing     FPS: %s" % int(clock.get_fps()))
	pygame.display.flip()
	clock.tick(FPS)
	total_frames += 1
