O'Reilly logo

Build iOS Games with Sprite Kit by Josh Smith, Jonathan Penn

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Covering the Table with a Textured Overlay

Yeah, skeuomorphism is passé for normal user interfaces. But for games, bring it on! We want to overlay a texture around the edges of the table to give a sense of depth and complete the illusion for the player.

Because SKSpriteNode objects can easily contain sprites with transparent areas, using one as an overlay is a snap. The graphics processor in modern iOS devices has more than enough horsepower to composite the overlay on top of the action going on underneath. This is the final effect that we’ll get:

images/Polish/table-overlay.png
Figure 38. How the table overlay will look

We’ll start by loading up the project at step 08-Polish/step07 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required