Please enable JavaScript.
Coggle requires JavaScript to display documents.
useful pygame modules - Coggle Diagram
useful pygame modules
mouse
.set_visible()
.get_visible()
.set_cursor()
.set_system_cursor()
.get_pressed()
.get_pos()
.set_pos()
display
.set_mode((width,height))
.update()
.set_caption("text")
.get_caption()
.init()
.flip()
draw
.rect()
.polygon()
.circle()
.arc()
.line()
.ellipse()
time
.Clock
.tick(max framerate)
.get_time()
.delay(milliseconds)
.wait(milliseconds)
less accurate than delay but uses less processing power
.get_ticks()
gives the time in millisecs since pygame.init() called
.set_timer()
Surface
.blit()
.covert_alpha()
.fill()
event
.get()
.type
KEYDOWN
KEYUP
QUIT
key
.get_pressed()
key codes:
K_0
K_1
K_a
K_BACKSPACE
K_TAB
K_RSHIFT
K_CAPSLOCK
image
.load()
.init()