NEW
Font size
WorksheetsPython Gaming L3
Total questions: 10
Worksheet time: 5mins
In the Race Car game, what does increasing the y position of the car typically do?
Moves the car to the left
Moves the car up
Moves the car down
Stops the car
In Space Invaders, what happens when bullet_state is set to "fire"?
A bullet is hidden
The enemy moves faster
A bullet is currently flying
The player moves
What is the best way to check collision between bullet and enemy?
Using == between positions
By checking their colors
Using distance formula
Using a for loop
In both games, which Pygame function is used to handle events like key presses?
pygame.keydown()
pygame.event.get()
pygame.screen.listen()
pygame.check_input()
In Race Car, which axis controls the car's left and right movement?
Z-axis
Y-axis
X-axis
W-axis
What happens if you forget to call pygame.display.update() in the main game loop?
Game crashes
Nothing appears on the screen
Only sound will play
Player moves twice as fast
What does this condition mean in Space Invaders? if enemy_y > 440: game_over = True
Enemy is attacking
Enemy escaped the screen
Enemy touched the player zone
Game is paused
In both games, which loop is essential to keep the game running?
for loop over enemies
while True: loop
if loop
repeat until loop
Which of the following is the correct state flow for a bullet in Space Invaders?
"fire" → "ready" → "fire"
"ready" → "fire" → "hit"
"ready" → "fire" → "ready"
"shoot" → "reload" → "ready"
Why do we use screen.blit(playerImg, (player_x, player_y))?
To load a sound
To move the enemy
To draw the player on the screen
To update the score
