After scratching my head for a while looking for a reason why cocos2d-x’s latest version deprecates
NotificationCenter (formerly known as
CCNotificationCenter), I found this thread in the issues section.
NotificationCenter was deprecated in favor of the new
EventDispatcher class, which handles every single event you can think of, from keyboard strokes, touches, actions, … you name it.
So, the new way to do notification thingies is:
Of course, this is a bit ridiculous to type all over the place, so we