Pygame Flashcards

1
Q

parameters

A

(red, green, blue)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

WHITE

A

(255, 255, 255)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

BLACK

A

(0, 0, 0)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

RED

A

(255, 0, 0)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

GREEN

A

(0, 255, 0)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

BLUE

A

(0, 0, 255)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Always capitalize colors T/F

A

T

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Import Py game

A

import pygame

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

iniitialize pygame

A

Pygame.int()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Setup screen

A

surface = Pygame.display..set.mode((width, height), 0, 32)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

make game loop

A

while loop

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Width for drawings

A

optional but there is in elipse and rect where width isnt optional but linewidth is

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

default width for all

A

circle 1 others 0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

top left x and y t/f

A

t

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

free

A

yay

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Polygon

A

pygame.draw.polygon(Surface, color, (cords),width)

17
Q

line

A

pygame.draw.line(surface, color, (startpoint), (endpoint), width)

18
Q

circle

A

pygame.draw.circle(surface, color, (centerpoint), radius, width)

19
Q

elipse

A

pygame.draw.ellipse(surface, color, (x, y, width, height), line width)

20
Q

rect

A

pygame.draw.rect(surface, color, (x, y, width, height), line width)

21
Q

set up font

A

basic(Font = pygame.SysFont(font, size)

22
Q

set up text

A

text = basic Font.render(¨measure¨, true, textcolor, background color)

23
Q

set location

A

textRect = text.get.rect()
textRect.centerx = number
textRect.centery = number

24
Q

write onto screen

A

surface.blit(text, textRect)