concept gun in category python

appears as: guns
Hello! Python

This is an excerpt from Manning's book Hello! Python.

Guns, guns, guns!

What’s a space game without aliens to shoot? Even space trading games have guns of some sort, so if you don’t have any, you’ll look a bit odd. They’re easy to add, given the work you’ve already done on angles and timers: set the bullet travelling at high speed at the same angle as the ship, and update it in a similar way. You’ll also want to keep track of whether the bullet has run into anything, and after a certain amount of time, remove it from the game.