if fullscreen == 0: fullscreen = pygame.FULLSCREEN else: fullscreen = 0 screen = pygame.display.set_mode((width,height),fullscreen) pygame.display.flip() if event.type == pygame.KEYUP: if (event.key == pygame.K_RALT or event.key == pygame.K_LALT): altFlag = False if event.type == pygame.KEYDOWN: if event.key == pygame.K_RETURN and not altFlag: start = True cutScreen = True level = 1 if event.type == pygame.MOUSEBUTTONDOWN: if mouseoption.collidePoint(event.pos): mousecontrols= True mouseoption.setImage("Images/backgrounds/mousebuttonclicked.png") keyboardoption.setImage("Images/backgrounds/arrowkeysbutton.png") if keyboardoption.collidePoint(event.pos): mousecontrols= False mouseoption.setImage("Images/backgrounds/mousebutton.png") keyboardoption.setImage("Images/backgrounds/arrowkeysbuttonclicked.png") if startbutton.collidePoint(event.pos): start = True cutScreen = True level = 1 screen.blit(bgImage, bgRect) screen.blit(startbutton.image, startbutton.rect)