Synopses & Reviews
If C and C++ are the languages of choice for game programmers, why should you consider using Python? Game Programming with Python explores this question in depth and teaches you why and how Python can reduce your development time, improve your technical designs, and make the entire development process more efficient. Game Programming with Python is about building games using Python. It deals with general concepts of game development and specifics that apply when using Python for game development. Some of the general topics include simulations, game architectures, graphics, networking, and user interfaces. The Python-specific topics covered include Python development strategies, using Python for data-driven systems, performance tuning, modules and packages, and interfaces between Python and other programming languages. Additionally, a series of increasingly complex examples are developed throughout the book using Python. Python is already being used by professional game developers in a number of popular commercial games, including the award winning Star Trek Bridge Commander (Totally Games), Freedom Force (Irrational Games), and Earth and Beyond (Electronic Arts). Games such as these use Python in three major ways: as a full-fledged programming language to develop real software systems; as a scripting language to control and interface between systems written in other languages; and as a data language to describe game rules and game objects. Throughout the book, each of these major uses of Python is discussed along with the differences between them. Written for Python programmers interested in learning game development, as well as game developers interested in using Python, the book assumes you have some programming background and a basic grasp of software engineering principles. Some knowledge of the game development process is also assumed, although a concise overview is provided.
"Game Programming with Python" teaches programmers how to use Python to produce quality games. It details the general background issues on Python and provides some general game programming guidelines for those new to games.
About the Author
Sean Riley (Austin, TX) has worked as a programmer in the computer industry for eleven years and as a programmer and designer in the game industry for over five years. He has been using Python for over three years and has been involved in open source Python development and two large-scale commercial game development projects using Python. He contributed to Massively Multiplayer Game Development and currently works as a senior software engineer in the core technology group of Ncsoft ¿ the largest publisher of online games in the world, in Austin, Texas.
Table of Contents
1 Overview SECTION I Introduction 5 2 Game Architecture 3 Python Game Architectures SECTION II Game Infrastructure 25 4 Python Game Framework 5 Simulation Concepts 6 Data-Driven Simulations 7 Collision Detection SECTION III Game Technologies 97 8 Graphics 9 Audio 10 Input 11 Unit Testing SECTION IV Game Programming 161 12 Game Simulations 13 Game Levels 14 User Interfaces 15 Artificial Intelligence 16 Procedurally Generated Game Content SECTION V Multiplayer Games 295 17 Network Concepts 18 Network Layers 19 Clients and Servers 20 Multiplayer Game Example SECTION VI Advanced Topics 389 21 Using the Python C API 22 Extending Python 23 Embedding Python