Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@ Now, we have to draw the menu. To do this, just call the draw function on the me
```
running = True
while running:
for event in pg.event.get():
if event.type == pg.QUIT:
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False

screen.fill((0, 0, 0))
menu.draw(screen) #draws the menu to the screen
pg.display.flip()
pygame.display.flip()

pg.quit() #quits pygame after closing the run loop
pygame.quit() #quits pygame after closing the run loop
```
**IMPORTANT:** Adding the menu to a group and drawing it that way will not draw the menu elements.
**IMPORTANT:** Adding the menu to a group and drawing it that way will not draw the menu elements.