O'Reilly logo

Mission Python by Sean McManus

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

12DANGER! DANGER! ADDING HAZARDS

image

When the space station systems fail, all kinds of threats emerge. In this chapter, you’ll see the air start to leak from the station and will discover moving hazards in some of the rooms, including rogue robots, balls of energy, and toxic puddles.

I’ve put the dangers last so you can test the game up to this point without worrying about your time or energy running out. In this chapter, we’ll start the air leak and draw a timer bar to let you know how much air you have left. We’ll also add hazards that can harm you and drain your energy. Finally, we’ll clean up the game and get it ready to play!

ADDING THE AIR COUNTDOWN ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required