
Learn tvOS for game development by adapting familiar SpriteKit and Swift code, create wrappers for menus and standings, and get your game ready for store launch on day one.
Create a five-button, multi-directional SpriteKit tvOS menu using a selection dictionary and swipe controls to navigate home, features, standings, store, and play.
Define a shared tvOS color palette and save the current color with user defaults to persist across app launches, enabling dynamic background and text color changes for all scenes.
Learn to pass around an array of used cards across tvOS game components to prevent repeats, implement random card selection, and update the next card label.
Set up a camera and attach labels to follow the player as the character moves, creating a Mario-like scrolling feel with a custom font on-screen label aligned to the camera.
Learn to implement a tvOS score label by duplicating the lives label, enumerating scene children, updating the score with a function, and saving it with a score key.
***** ALL SOURCE PROJECTS HAVE BEEN UPDATED FOR SWIFT 3
How to Create a tvOS Template for any SpriteKit Game
In the first section we will create a tvOS template for navigating between scenes (Home, Features, Team Standings), and discuss ways to pass data around classes, save data using NSUserDefaults, swipe between menu options and much more. By the end of this course you will have a template you can begin any of your future tvOS apps with.
How to Create a Side Scroller Game for tvOS or iOS - Session 1
In this series you will learn how to create a retro 2d-style side scroller game from scratch for the new tvOS or for iOS. The project will be initially developed using the tvOS template, then you'll see how to take most of the same code and use it for an iOS app. We'll cover all the essentials to making a side scroller: building a physics-based environment (with platforms, vines, pipes, collectibles), programming a an easy character to move using swipes, adding the HUD (for things like Score or a Lives label), sound and much, much more. Toward the end of this session we'll also discuss how to add a tvOS target to an existing iOS project and share code / assets between the two targets.
How to Create a Side Scroller Game for tvOS or iOS - Session 2
The epic saga continues in this second session all about how to make a 2D side scroller for tvOS or iOS. We'll look at turning our GameScene into more of a "game engine" by incorporating a property list to change variables on a per-level basis. We'll also talk about scoring, moving platforms (that carry the player), "dead zones" to kill the player, restarting from continue points, inventory, and much more!