Book Image

Python Game Programming By Example

Book Image

Python Game Programming By Example

Overview of this book

Table of Contents (14 chapters)
Python Game Programming By Example
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Summary


In this chapter, you learned about the benefits of a component-based design and how it allows you to build small pieces that can be added, removed, and combined with several game objects.

Note that the most important exercise of this chapter is not how to implement a platformer game, but how it is possible to set up a component-based framework and provide the basic building blocks of a game.

With these foundations, you can add some basic functionality, such as moving the enemies and the platforms, displaying more information about the ammo, or keeping track of a score based on the number of lives lost and enemies destroyed.

As usual, the final version of this chapter's game is nothing but the starting point of a more complex application!

In the next chapter, we will interact with a real-word checkers game via a webcam. This application will be developed with OpenCV, a cross-platform computer vision library.