rotating toward a (moving) target

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

http://thepythongamebook.com/en:part2:pygame:step021

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.

Target demo. See the full article on http://ThePythonGameBook.com

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

flattr:
Flattr this

Advertisements

About Horst JENS

teaching open source game programming to kids
This entry was posted in pygame. Bookmark the permalink.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s