Chapter 11. Playing with Pygame

This chapter is for developers who want to create games with NumPy and Pygame quickly and easily. Basic game development experience would help but isn't necessary.

In this chapter we will cover the following topics:

  • Pygame basics
  • Matplotlib integration
  • Surface pixel arrays
  • Artificial intelligence
  • Animation
  • OpenGL

Pygame

Pygame is a Python framework originally written by Pete Shinners, which, as its name suggests, can be used to create video games. Pygame is free, open source since 2004 and licensed under the General Public License, which means that you are allowed to basically make any type of game. Pygame is built on top of the Simple DirectMedia Layer (SDL). SDL is a C framework that gives access to graphics, sound, keyboard, and other input devices on various operating systems including Linux, Mac OS X, and Windows.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset