Magzter Gold (Sitewide CA)
The Python Book (Digital)

The Python Book (Digital)

1 Issue, The Python Book 4th Edition

Also available on
Zinio Unlimited logo
1-month free trial

Get unlimited access to this article, this issue, + back issues & 5,000+ other magazines.

Renews at just $8.99/month after trial.

Cancel anytime.
Learn more

Part two: Add animation and sound to Pivaders

After writing a Space Invaders clone in just 300 lines of Python, now we expand it to include animation and sound
Part two: Add animation and sound to Pivaders
Resources Raspbian: www.raspberrypi.org/downloads Python: www.python.org/doc Pygame: www.pygame.org/docs Art assets: opengameart.org We had great fun creating our basic Space Invaders clone, Pivaders, for the previous tutorial. One of the key challenges with the project was keeping it to a manageable size – just 300 lines of Python. Without the use of Pygame’s strong set of features, that goal would likely have been overshot at least twofold. Pygame’s ability to group, manage and detect collisions thanks to the Sprite class really made a great difference to our project, not just in terms of length but in simplicity. If you missed the first part of the project, you can find the v0.1 code listing on GitHub via git.io/cBVTBg, while you can find version v0.2, including all the images, music and sound effects we…
You're reading a preview of
The Python Book (Digital) - 1 Issue, The Python Book 4th Edition

DiscountMags is a licensed distributor (not a publisher) of the above content and Publication through Zinio LLC. Accordingly, we have no editorial control over the Publications. Any opinions, advice, statements, services, offers or other information or content expressed or made available by third parties, including those made in Publications offered on our website, are those of the respective author(s) or publisher(s) and not of DiscountMags. DiscountMags does not guarantee the accuracy, completeness, truthfulness, or usefulness of all or any portion of any publication or any services or offers made by third parties, nor will we be liable for any loss or damage caused by your reliance on information contained in any Publication, or your use of services offered, or your acceptance of any offers made through the Service or the Publications. For content removal requests, please contact Zinio.

© 1999 – 2025 DiscountMags.com All rights reserved.