What command is used to add the PyGame library to a program?
PyGame кітапханасын бағдарламаға қосу үшін қандай команда қолданылады?
import pygame
What happens when you use pygame.display.set_caption("My first game")?
It sets the title of the game window to “My first game”.
How many points are used in this shape?
pygame.draw.polygon(screen, (0, 0, 255), [(200, 400), (400, 100), (600, 400)], 7)
3 points
What does pygame.display.set_mode(800,700) do?
Create a game window of this size
What does window.fill((255, 255, 255)) do?
It fills the entire screen with white color.
What shape will be drawn on the screen?
pygame.draw.polygon(screen, (0, 0, 255), [(200, 400), (400, 100), (600, 400)])
A triangle
What are (255, 0, 0), (0, 255, 0), (0, 0, 255)?
color
In the following code, what do the values (150, 150) represent?
pygame.draw.circle(screen, (0, 0, 0), (150, 150), 40)
They represent the center position of the circle on the screen (x = 150, y = 150)
What will appear on the screen when the following code is executed?
pygame.draw.rect(screen, (0, 0, 0), (50, 50, 100, 60))
A black rectangle is drawn on the screen at position (50, 50) with width 100 and height 60.