Add Your First Collectible Item

Most games worth playing include some type of goal or reward system—without it, players would quickly get bored playing your game and move on to something else.

In Gloop Drop, the player’s goal is to collect sticky globs of gloop (drops) as they fall from the sky without letting them hit the platform. Each time the player catches a drop, the player earns points.

Your first step to implementing Gloop Drop’s goal and reward system is to add the image resources for the sticky globs of gloop.

Add the Gloop Drop Image Resources

Similar to what you did in Add the Images Resources for the Player, you’ll add a new sprite atlas to hold the three gloop drop images—one for each resolution (@1x, @2x, and @3x):

To begin, ...

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.