Player vs Player tvOS Games

Master programming one or two player games using Swift and Sprite Kit on Apple TV. Learn to connect and control external game controllers effectively.

  • Overview
  • Curriculum
  • Instructor
  • Review

Brief Summary

This course will teach you how to create fun games for one or two players using Swift and Sprite Kit on the Apple TV. You'll learn all about managing game controllers, player actions, and exciting gameplay features. It's a cool way to dive into game development!

Key Points

  • Learn to program one or two player games on Apple TV
  • Connect and configure external game controllers
  • Implement player indexes and character control
  • Manage game flow: pause menu, single-player mode
  • Understand gameplay mechanics: collision detection, health systems

Learning Outcomes

  • Gain hands-on experience with game controller integration
  • Develop skills in Sprite Kit programming
  • Create engaging gameplay mechanics for two-player games
  • Implement user-friendly features like pause and menu options
  • Explore both single and multi-player game development

About This Course

Learn to program one or two player games with external game controllers on the new Apple TV

***SOURCE PROJECT FILES UPDATED FOR SWIFT 3 (see change notes below)

In the first section of videos, you'll learn how to find connected controllers, define which buttons do what, set player indexes (i.e. Player 1, Player 2, etc) and work with a basic character.

In section 2, you'll learn the Swift  / Sprite Kit code to work with multiple Extended / Standard Gamepad controllers (as well as the Micro Gamepad controller), to go head to head versus players in the same room. After we look at the finer points of connecting and disconnecting controllers and getting each in the right player slot, we'll discuss how to control who is who in any type game, and even go into a one-player mode where the CPU takes control of the second player. This way your two-player game can also be enjoyed by single players. We'll also discuss adding a Pause menu to your game, where players can go back to a Main menu or keep on playing.

Now that we've covered all our bases in terms of controlling each player and dealing with controllers disconnecting and reconnecting, section 3 allows us to have some fun. This session we'll loosen things up a bit and just talk game play. Topics include collision detection, decrementing health, losing lives / restarting rounds, and other topics worthy of a good two-player game!

***CHANGE NOTES FROM SWIFT 2 to 3

We've included updated source files for Swift 3. If you choose to follow along, line-by-line with the video code, you should have no problems, as Xcode 8 will auto-suggest the correct code for Swift 3.


  • Program a One or Two Player Game with Swift and Sprite Kit

  • Work with External Game Controllers and the new Apple TV (or iOS apps)

  • Learn the fundamentals of creating a tvOS app

Instructor

Profile photo of Justin Dike
Justin Dike

Justin Dike is the founder of CartoonSmart one of the internet's first video training websites. He is a long-time illustrator and animator, focusing mostly on Adobe Flash, and experienced programmer with Swift, Sprite Kit, Actionscript 3, Objective C and Cocos2d. For CartoonSmart he has recorded hundreds of hours of video tutorials and recently published his first full length book titled...

Review
4.9 course rating
4K ratings
Leave A Reply

Your email address will not be published. Required fields are marked *

Ratings

Courses You May Like

Lorem ipsum dolor sit amet elit
Show More Courses