Popups are a great way to display information, menus, or other UI elements
in your game. They can be used to pause the game, show a message, or prompt
the player for input.
Creating a Popup
To create a popup, you need to create a class that extends the Popup class. Using gsap lets
us customize the animateIn and animateOut methods to create custom animations for the popup.
Launching a Popup
To launch a popup, call dill pixel’s showPopup method and pass the popup class
name, any data you want to pass to the popup, along with some additoinal options:
callback: a function that is called when the popup is closed
backdrop: whether to show a backdrop behind the popup