Learn iOS SpriteKit with Examples, Code Snippets and Video Tutorials

Tile a background image with Sprite Kit.

Tile a background image with Sprite Kit.
February 7, 2014 Justin

This caused me some initial issues (mostly to do with a critical warning about the context equaling 0,0) but I finally got a nice tiled background in Sprite Kit. Here’s the code, and just note, that for some odd reason I had issues using the size of the device for the CGSize values in the first line below (maybe big round numbers are preferred, who knows)….

Anyone enrolled in the sequel to my Role Playing Games with Sprite Kit video tutorials will see this code in use (and modified to be used with a Property List).

Justin Dike is the owner and lead developer at CartoonSmart.com. He's taught hundreds of hours of game development video tutorials, covering everything from coding to art. These days he's working mostly on Swift and Sprite Kit tutorials, which often lead into highly polished iOS / tvOS Starter Kits, which require no programming at all, but are capable of making nearly any type game! Yeah, you read that write. You can also find Justin at the official CartoonSmart Podcast

0 Comments

Leave a reply

Check out our premium Swift and Sprite Kit Tutorial content!

Visit CartoonSmart.com