Beginning Game Development with Python and Pygame: From Novice to Professional (Beginning from Novice to Professional)
โ Scribed by Will McGugan
- Year
- 2007
- Tongue
- English
- Leaves
- 330
- Edition
- 1
- Category
- Library
No coin nor oath required. For personal study only.
โฆ Synopsis
According to market research firm NPD, the video game market continues to see explosive growth, with revenues increasing 18% to $13.5 billion in 2006. Given the recent releases of the latest Nintendo and Sony gaming consoles, coupled with ever more powerful personal computers, it stands to reason this industry will only continue to grow, and with it the number of organizations entering the market and individuals seeking to make a career in video game development. Beginning Game Development with Python and Pygame provides readers with an introductory resource for learning how to create compelling games using the open source Python programming language and Pygame games development library. Authored by industry veteran and Python expert Will McGugan, readers are treated to not only a comprehensive, practical introduction to games development using these popular technologies, but also capitalize upon numerous tips and tricks Will has accumulated over his career of both creating games for some of the world's largest gaming developers and his own products.
โฆ Table of Contents
Contents......Page 6
About the Author......Page 13
About the Technical Reviewer......Page 14
Acknowledgments......Page 15
Introduction......Page 16
Your First Look at Python......Page 19
Numbers......Page 20
Strings......Page 23
Lists and Tuples......Page 29
Loops......Page 34
Summary......Page 36
Creating Scripts......Page 37
Understanding Booleans......Page 38
Understanding Functions......Page 41
Defining Functions......Page 42
Introducing Object-Oriented Programming......Page 44
Using Classes......Page 45
Python in Practice......Page 49
Introducing import......Page 53
Useful Modules for Games......Page 54
Summary......Page 57
CHAPTER 3: Introducing Pygame......Page 59
Using Pygame......Page 60
Hello World Revisited......Page 62
Retrieving Events......Page 68
Handling Mouse Button Events......Page 71
Handling Keyboard Events......Page 72
Posting Events......Page 74
Full-Screen Displays......Page 75
Resizable Pygame Windows......Page 77
Additional Display Flags......Page 79
Using the Font Module......Page 80
When Pygame Goes Wrong......Page 81
Pygame in Action......Page 82
Summary......Page 83
Using Pixel Power......Page 85
Working with Color......Page 86
Representing Color in Pygame......Page 87
Scaling Colors......Page 89
Blending Colors......Page 91
Using Images......Page 93
Working with Surface Objects......Page 94
pygame.draw.rect......Page 101
pygame.draw.polygon......Page 102
pygame.draw.circle......Page 103
pygame.draw.ellipse......Page 104
pygame.draw.line......Page 105
pgame.draw.lines......Page 106
Summary......Page 107
Understanding Frame Rate......Page 109
Moving in a Straight Line......Page 110
It's About Time......Page 111
Diagonal Movement......Page 115
Exploring Vectors......Page 116
Storing Vectors......Page 117
Vector Magnitude......Page 118
Unit Vectors......Page 120
Vector Addition......Page 121
Vector Negation......Page 123
Vector Multiplication and Division......Page 124
Game Objects Vector Class......Page 125
Diagonal Movement......Page 126
Summary......Page 128
Controlling the Game......Page 129
Detecting Key Presses......Page 130
Directional Movement with Keys......Page 133
Rotational Movement with Keys......Page 136
Implementing Mouse Control......Page 138
Rotational Movement with the Mouse......Page 139
Implementing Joystick Control......Page 142
Joystick Basics......Page 143
Joystick Direction Controls......Page 146
Seeing Joysticks in Action......Page 151
Summary......Page 155
Creating Artificial Intelligence for Games......Page 156
Exploring AI......Page 157
Implementing State Machines......Page 158
Game Entities......Page 160
Building Worlds......Page 161
Ant Entity Class......Page 164
Building the Brains......Page 165
Summary......Page 180
Creating the Illusion of Depth......Page 182
Understanding 3D Space......Page 184
Using 3D Vectors......Page 186
Time-Based Movement in 3D......Page 187
Projecting 3D Points......Page 188
Perspective Projections......Page 189
A 3D World......Page 192
Summary......Page 196
What Is a Matrix?......Page 198
Using the Matrix Class......Page 200
Installing PyOpenGL......Page 213
OpenGL Primer......Page 214
Seeing OpenGL in Action......Page 220
Summary......Page 227
What Is Sound?......Page 228
Storing Sound......Page 229
Sound Formats......Page 230
Creating Sound Effects......Page 231
Playing Sounds with Pygame......Page 233
Sound Objects......Page 234
Sound Channels......Page 235
Hearing the Mixer in Action......Page 238
Obtaining Music......Page 243
Playing Music......Page 244
Hearing Music in Action......Page 245
Summary......Page 250
Uploading Textures with OpenGL......Page 251
Texture Coordinates......Page 254
Rendering Textures......Page 255
Seeing Textures in Action......Page 256
Mip Mapping......Page 260
Texture Parameters......Page 261
Storing Models......Page 264
OBJ Format for 3D Models......Page 265
Seeing Models in Action......Page 266
Summary......Page 276
Understanding Lighting......Page 278
Setting Light Parameters......Page 279
Tweaking Parameters......Page 281
Using Blending......Page 282
Seeing Blending in Action......Page 286
Fog Parameters......Page 290
Seeing Fog in Action......Page 291
Rendering the Backdrop......Page 292
Skyboxes......Page 293
Where to Go for Help......Page 297
Summary......Page 298
gameobjects.color.Color......Page 299
Methods......Page 300
Attributes......Page 301
Methods......Page 302
Class Methods......Page 303
Methods......Page 304
Attributes......Page 305
Class Methods......Page 306
Creating Windows Packages......Page 307
Building the Installer......Page 308
Creating Packages for the Mac......Page 310
A......Page 311
B......Page 312
C......Page 313
D......Page 314
E......Page 315
F......Page 316
G......Page 317
I......Page 318
L......Page 319
M......Page 321
O......Page 323
P......Page 324
S......Page 326
T......Page 328
V......Page 329
Z......Page 330
๐ SIMILAR VOLUMES
As the title says, it is a beginner's book to the topic, though I am unaware of any other books that deal with Pygame as much as this one, beginner or otherwise. The book deals more with the language and libraries themselves instead of "game development" per se. By that I mean there is no chapter on
<p><p>Like music and movies, video games are rapidly becoming an integral part of our lives. Over the years, you've yearned for every new gaming console, mastered each blockbuster within weeks after its release, and have even won a local gaming competition or two. But lately you've been spending a l
Like music and movies, video games are rapidly becoming an integral part of our lives. Over the years, you've yearned for every new gaming console, mastered each blockbuster within weeks after its release, and have even won a local gaming competition or two. But lately you've been spending a lot of
Like music and movies, video games are rapidly becoming an integral part of our lives. Over the years, you've yearned for every new gaming console, mastered each blockbuster within weeks after its release, and have even won a local gaming competition or two. But lately you've been spending a lot of