CODING ACADEMY Angry Birds
Remaking Angry Birds in Python
PYTHON
The not-angry-at-all Calvin Robinson talks us through creating an opensource replica of the mobile game Angry Birds, entirely coded in Python.
OUR EXPERT
Calvin Robinson is a former assistant principal and computer science teacher with and a degree in computer games design and programming.
QUICK TIP
Try creating more content for the level. Adjust the x-and y-coordinates in the following code, where x=1000 and y=130 and each box is 100x100 in size: box = make_sprite(43, “images/ boxCrate_ double. png”,(1000, 130),self.space)
Angry Birds is a cult classic. Released for iPhone and iPad devices in 2009 and later for Android and other SmartPhone devices, Angry Birds has sold over 12 million copies worldwide.
Like all good ideas, the gameplay mechanics behind Angry Birds are incredibly simple. The player controls a catapult that flings birds across the screen at a pile of blocks protecting enemy pigs. If a pig falls to the ground, or collides directly with a bird, they die. The aim of the game is to kill all the pigs before running out of birds. The player has a limited reference guide to adjust the direction of their throw – a parabola of sorts. Gravity and prediction play a large part in the success rate of this game. It’s incredibly addictive and therefore become massively popular.