Chapter 20Image-ine the Possibilities
Now that you have a basic Pygame application set up, it’s time to actually make it look like a game. In this chapter, we’ll place images on the game surface and learn how to work with files and folders, too.
Files and Folders
Our Crazy Driver game right now is made of a single file named Main.py
, which contains Python code. But that’s about to change. Real games are made up of lots of files, and not all of them are code. You’ll have image files at a minimum, and possibly video, music, and other files, too. And you’d not want all of those files in the same folder. That would get unruly and unmanageable. ...
Get Captain Code: Unleash Your Coding Superpower with Python now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.