Apr-08-2020, 11:34 AM
My rectangle won't appear... I am using pygame. I just want a still rectangle.
import pygame pygame.init() #Display# display = pygame.display.set_mode((800, 500)) pygame.display.set_caption("Magic Tales") #Variables# Spd = 20 x1 = 360 y1 = 250 x2 = 440 y2 = 250 fight = True while fight: pygame.time.delay(20) for event in pygame.event.get(): if event.type == pygame.QUIT: fight = False pygame.draw.rect(display, (20, 20, 20), (400, 248, 80, 20)) display.fill((0, 60, 80)) pygame.display.update() pygame.quit()