4CREATING THE SPACE STATION

image

In this chapter, you’ll build the map for your space station on Mars. Using the simple Explorer code that you’ll add in this chapter, you’ll be able to look at the walls of each room and start to find your bearings. We’ll use lists, loops, and the techniques you learned in Chapters 1, 2, and 3 to create the map data and display the room in 3D.

AUTOMATING THE MAP MAKING PROCESS

The problem with our current room_map data is that there’s a lot of it. The Escape game includes 50 locations. If you had to enter room_map data for every location, it would take ages and be hugely inefficient. As an example, if each room consisted ...

Get Mission 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.