env = Env(info.current_w, info.current_h) width = info.current_w height = info.current_h display = (width, height) screen = pygame.display.set_mode(display, pygame.FULLSCREEN) up = 0 fps = 10 run = True counter = 0 max_ctr = 29 screen = pygame.display.set_mode(env.getResolution(), pygame.FULLSCREEN) # screen = pygame.display.set_mode([700, 500]) clr_back = env.getColor('black') clr_yellow = env.getColor('yellow') clr_default = env.getColor('white') screen.fill(clr_back) pygame.display.update() position = env.getRectPos() updatable = position + env.getRectSize() avail_state = ['prev_stop', 'left', 'right', 'forward'] image_state = random.choice(avail_state) clock = pygame.time.Clock()