Spielend programmieren lernen

Programmierkurse für Kinder, Jugendliche und Erwachsene

User Tools

Site Tools


en:blog:2011:0106_shooting-bullets-from-the-end-of-a-cannon-barrel

Shooting bullets from the end of a cannon barrel

  • date 2011-01-06 14:27
  • author Horst JENS
  • tags ThePythonGameBook
  • googleadsense True
  • slug 20110106_shooting-bullets-from-the-end-of-a-cannon-barrel

Finally i found time and energy to write a new wiki page for ThePythonGameBook: http://thepythongamebook.com/en:part2:pygame:step020 : “How to shooting bullets from the end of a cannon barrel” Special thanks to Jonathan Persson for writing me an email about this problem. His email motivated me to wake up from winter sleep. Still a lot of existing wiki pages need improvement.

The code example is not a complete game but a working demo of a tank who can rotate, move, rotate it's turrent and fire tracer rounds and bullets. The rounds are always created at the correct position (muzzle) , including the rotation of tank and turret.

Also i finally got The Ubuntu Video editor up and running, allowing me to show a video of how the tankdemo looks like:

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

Click on the images or follow the link above to read ThePythonGameBook / see and download the sourcecode.

[caption id=“attachment_325” align=“aligncenter” width=“640” caption=“tankdemo02”]image0[/caption]

[caption id=“attachment_327” align=“aligncenter” width=“640” caption=“classchart20 of tankdemo02.py Sourcecode at http://thepythongamebook.com/en:part2:pygame:step020”]image1[/caption]

/var/www/horst/spielend-programmieren.at/data/pages/en/blog/2011/0106_shooting-bullets-from-the-end-of-a-cannon-barrel.txt · Last modified: 2017/10/12 09:43 (external edit)