Add the Continue Game Feature (Player Reward)
In Creating an Ad Unit for Rewarded Ads, you set up a rewarded ad unit that serves video ads to Gloop Drop. The idea is that when players watch one of these ads, they’ll earn a reward: the ability to continue their game. At the moment, though, this Continue Game feature doesn’t yet exist, so you’ll need to build it, starting with a few tweaks to the UI.
Adding a Start Button
Open the Assets.xcassets asset catalog and create a new sprite atlas named game_ui. Copy the three image files—start@1x.png, start@2x.png, and start@3x.png—from the resources/game_ui folder into the newly created sprite atlas. (Don’t forget to delete the default Sprite image set.)
With the new sprite atlas in place, you’re ...
Get Apple Game Frameworks and Technologies now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.