Game Development Reference
In-Depth Information
Topics Covered In This Chapter:
— Image and Sound Files
— Drawing Sprites
— The pygame.image.load() Function
— The pygame.mixer.Sound Data Type
— The pygame.mixer.music Module
In the last two chapters, we've learned how to make GUI programs that have graphics
and can accept input from the keyboard and mouse. We've also learned how to draw shapes
in different colors on the screen. In this chapter, we will learn how to show pictures and
images (called sprites) and play sounds and music in our games.
A sprite is a name for a single two-dimensional image that is used as part of the
graphics on the screen. Here are some example sprites:
Search WWH ::




Custom Search