We learned a lot in this chapter about creating 2D animations in Python using Pyglet. Specifically, we:
Learned some fundamental components of the Pyglet framework for creating animations. Modules such as
Window
,Image
,Animation
,Sprite
,AnimationFrame
,ImageGrid
, and so on were discussed.Wrote code to create an animation using a sequence of images or to play a pre-created animation.
Learned things such as modifying the position of the Pyglet sprite, adding keyboard and mouse controls and adding sound effects to the animation.
Worked on a cartoon animation project 'Drive on a Rainy Day'. Here we applied several of the techniques learned throughout the chapter.