Programmierkurse für Kinder, Jugendliche und Erwachsene

User Tools

Site Tools


Translations of this page:

contact, imprint
Informationspflicht gemäß Wirtschaftskammer Wien
spielend-programmieren Start Seite

License: CC-By-SA:
Creative Commons Attribution Share Alike Lizenz


rotating toward a (moving) target

Good news, everyone: Another new page in ThePythonGameBook wiki !


This time, the tankdemo is slightly altered to demonstrate how to rotate toward a target. Please notice that the video as well as the graphic display a older version of the sourcecode (in the video, the display for turret angle and tank angle is swapped). To get the latest, most bug-free version you need python and pygame installed on your computer, download the code from ThePythonGameBook and run it yourself.


My video-editing skills using PITIVI under Ubuntu 10.10 are getting better. This time, the video has an audio track also :-)


en/blog/2011/0108_rotating-toward-a-moving-target.txt · Last modified: 2017/10/25 12:53 by horst