文档介绍:cyan yelloW
MAGENTA BLACK
panTONE 123 C
Books for professionals by professionals® The EXPERT’s VOIce® in Open Source
Companion
eBook Available
Beginning Game Development with Python and Pygame:
From Novice to Professional
Beginning
Dear Reader, Game
puter games is a bination of an art and a science, and
can make a rewarding career or hobby. Do you know you can write cutting-edge
games that run on Windows, Linux, and Mac OS X with open source technologies Beginning
and freely available tools?
In this book, I introduce you to Python—a powerful, dynamic language—
and explain how to use the Pygame library to quickly pelling
games. I also explain how to create three-dimensional graphics using OpenGL, Development
the technology behind mercial games, such as the Quake series.
My aim for Beginning Game Development with Python and Pygame is
to make game development accessible to as wide an audience as possible.
Previous programming experience is useful but not essential, because the Game
first two chapters introduce the Python programming language—or serve as a with
refresher course if you are already familiar with Python. Further chapters cover
how to use Pygame to set up a graphical display, draw to the screen, handle
Python
events, and read input devices. I also talk you through essential topics such as
creating game characters with artificial intelligence and playing sound (includ-
ing music). Development
Four chapters are devoted to the topic of three-dimensional graphics in
games, and show you how to manipulate objects in a virtual world and render
impressive visuals with lighting and special effects. The math involved in pro-
gramming a game with three-dimensional graphics can be intimidating, but I
explain it in visual terms rather than the more traditional pure mathematical with Python and Pygame
approach you find in textbooks. I also share with you a few of the tips and tricks
a