Buch, Englisch, 250 Seiten, Book, Format (B × H): 191 mm x 235 mm
Python and Pygame Game Development
Buch, Englisch, 250 Seiten, Book, Format (B × H): 191 mm x 235 mm
ISBN: 978-1-4302-6331-9
Verlag: Apress
You like gaming, and you like your Raspberry Pi, so now what? Learn to program games on the Pi! With Learn Raspberry Pi Game Programming, you will learn how to make games using Python and Pygame, a set of Python game modules. And you'll learn how to do all of this on a $35 computer.
Even if you've never programmed before, or you have yet to turn on your Raspberry Pi, this book will get you set up both with your Pi and with IDLE, your Python development environment. Next you'll learn Python and Pygame programming basics, and you'll test your code with mini-projects.
Finally, you'll put all the pieces together while building a puzzle game that showcases all you've learned, plus you'll get a bonus lesson on the best practices of game programming and how to get users more involved.
If you have a Raspberry Pi and you want to really get some useful fun out of it and learn Python in the bargain, then Learn Raspberry Pi Game Programming is just the book for you.
Zielgruppe
Popular/general
Autoren/Hrsg.
Fachgebiete
Weitere Infos & Material
1. Getting Started with Python on the Pi
Gaming on the world's most inexpensive computer
Why Python?
Pygame: Your new best friend
Setting things up
IDLE: Not what it sounds like
Hello, Universe
2. Python Programming Essentials
Comments
Printing lines and the importance of indentation
Reserved keywords
Working with strings and numbers
Python arithmetic
Conditional statements
Control structures
Command line arguments
3. Deeper into Python
Functions
Modules
Classes and Objects
Importing
File I/O
Exceptions
Accessing databases
Putting it all together: mini-project
4. It's All in the Pygame
Init and Quit
Colors
Cursors
Vectors
Working with text
Fonts and Free Type
Vectors
Putting it all together: mini-project
5. Getting Your Game to Respond
Surface and SurfArray
Event handling
Keyboard events
Mouse events
User input
Overlay
Putting it all together: mini-project
6. A Game with a View
Configuring display surface
Drawing
PixelArray
Blit
Image manipulation
Putting it all together: mini-project
7. Let's Hear It
Mixers
Movie
Scrap
Transform
Putting it all together: mini-project
8. Sprites and Crashes and Time, Oh My
Sprites
Collision detection
Time
2D and 3D
Extending your own classes
Putting it all together: mini-project
9. Game On!
Introduction to the Game
Laying down the law: Game rules
Building the game: Using what you've learned
10. Game Over
Best practices of game programming
Getting users involved
Expanding your horizons: Other types of games
Be a better gamer
Next steps




