stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Game Recreation Lesson 1 Flashcards | StudBud
Explore
/
Game Recreation Lesson 1
Game Recreation Lesson 1
10 terms
·
StudBud Administration
·
20 plays
Imported from external platform
Flashcards
10 cards
F
Practice quiz
P
Host live
L
Questions
10
Answers
1
What is Pygame used for?
Social media
Game development
Web browsing
Video editing
2
Which key constant represents the down arrow key in Pygame?
pygame.KEY_ARROW_DOWN
K_ARROW_DOWN
pygame.KEY_DOWN
pygame.K_DOWN
3
What function is used to update the display in pygame?
pygame.refresh_display()
pygame.update_display()
pygame.display.update()
pygame.render_display()
4
How can you check if the down arrow key is pressed
keys[pygame.KEY_DOWN]
keys[ARROW_DOWN]
keys[pygame.K_DOWN]
keys[DOWN_ARROW]
5
pygame.K_PRESS is used to represent the down arrow key in pygame
True
False
6
What does the pygame.event.get() function do?
handle music playback
draw shapes on the screen
Load game images
retrieve user input events
7
How do you quit Pygame?
pygame.quit()
pygame.end()
end_game()
quit_pygame()
8
How do you create a game window in Pygame?
pygame.window.create()
pygame.set_window()
pygame.create_window()
pygame.display.set_mode()
9
Which function is used to initialize Pygame?
init_pygame()
start_pygame()
pygame.init()
pygame.start()
10
What is the purpose of the game loop?
To display game over messages
To initialise the game
To draw complex graphics
To handle user input