Creating draggable menu windows
Cocos2d is commonly thought of as a game development library and it has been treated as such in much of this book. However, Cocos2d is a robust solution for any 2D application.
That said, draggable windows are a common element in many applications. In this example, we will create movable, collapsable menu windows.