In this chapter, you’ll learn some SpriteKit best practices; specifically, you’ll see how you can create your own subclasses of SKSpriteNode so that you can better reuse your nodes. You’ll then move on to changing your game to load all the sprites into a single texture atlas that you can reference when creating all future sprites. After that, you’ll move on to externalizing some of your game data so that designers and testers can change the game play. Finally, you’ll close out ...
© James Goodwill and Wesley Matlock 2017
James Goodwill and Wesley Matlock, Beginning Swift Games Development for iOS, 10.1007/978-1-4842-2310-9_9
9. SpriteKit Best Practices
James Goodwill1 and Wesley Matlock2
(1)Highlands Ranch, Colorado, USA
(2)Kansas City, Missouri, USA
Get Beginning Swift Games Development for iOS: Develop 2D and 3D games Using Apple's SceneKit and SpriteKit 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.