Game Development Reference
In-Depth Information
Topics Covered In This Chapter:
Software Libraries
Installing Pygame
Graphical user interfaces (GUI)
Drawing primitives
Creating a GUI window with Pygame
Color in Pygame
Fonts in Pygame
Aliased and Anti-Aliased Graphics
Attributes
The
pygame.font.Font
Data Type
The
pygame.Surface
Data Type
The
pygame.Rect
Data Type
The
pygame.PixelArray
Data Type
Constructor Functions
The
type()
Function
Pygame's Drawing Functions
The
blit()
Method for
Surface
Objects
Events
The Game Loop
Animation
So far, all of our games have only used text. Text is displayed on the screen as output,
and the player types in text from the keyboard as input. This is simple, and an easy way to
learn programming. But in this chapter, we will make some more exciting games with
advanced graphics and sound using the Pygame library. Chapters 17, 18, and 19 will teach