Chapter 1. Hello, Pong!
Game development is a highly evolving software development process, and it has improved continuously since the appearance of the first video games in the 1950s. Nowadays, there are a wide variety of platforms and engines, and this process has been facilitated with the arrival of open source tools.
Python is a free high-level programming language with a design intended to write readable and concise programs. Thanks to its philosophy, we can create our own games from scratch with just a few lines of code. There are a plenty of game frameworks for Python, but for our first game, we will see how we can develop it without any third-party dependency.
In this chapter, we will cover the following topics:
- Installation of the required software
- An overview of Tkinter, a GUI library included in the Python standard library
- Applying object-oriented programming to encapsulate the logic of our game
- Basic collision and input detection
- Drawing game objects without external assets
- Developing a simplified version of Breakout, a pong-based game