I'm currently coding a game for university and I need a sidepanel for that. So I wanted to draw a rectangle on the side. Below you can see my code. We should just use PyGame for everything.
def drawRect():
rect2 = pygame.Rect(SCREEN_WIDTH - PANEL_SIZE, SCREEN_HEIGHT, PANEL_SIZE, SCREEN_HEIGHT)
pygame.draw.rect(screen, BLACK, rect2)
The rectangle doesnt pop up on my screen and I just cant figure out why.