Spielend programmieren lernen

Programmierkurse für Kinder, Jugendliche und Erwachsene

User Tools

Site Tools


en:blog:2011:0108_rotating-toward-a-moving-target

rotating toward a (moving) target

  • date 2011-01-08 15:50
  • author Horst JENS
  • tags ThePythonGameBook, python
  • slug 20110108_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.

<iframe width=“480” height=“360” src=“https://www.youtube.com/embed/nfaOmkhK-V0” frameborder=“0” allowfullscreen></iframe>

[caption id=“attachment_330” align=“aligncenter” width=“636” caption=“Target demo. See the full article on http://ThePythonGameBook.com”]image0[/caption]

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

/var/www/horst/spielend-programmieren.at/data/pages/en/blog/2011/0108_rotating-toward-a-moving-target.txt · Last modified: 2017/10/12 09:43 (external edit)