Player vs Player tvOS Games
4.8 (9 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
79 students enrolled
Wishlisted Wishlist

Please confirm that you want to add Player vs Player tvOS Games to your Wishlist.

Add to Wishlist

Player vs Player tvOS Games

Learn to program one or two player games with external game controllers on the new Apple TV
4.8 (9 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
79 students enrolled
Created by Justin Dike
Last updated 1/2017
English
Current price: $10 Original price: $40 Discount: 75% off
5 hours left at this price!
30-Day Money-Back Guarantee
Includes:
  • 5.5 hours on-demand video
  • 5 Articles
  • 10 Supplemental Resources
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
What Will I Learn?
  • 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
View Curriculum
Requirements
  • Some basic knowledge of Xcode and Swift / Sprite Kit is preferred
Description

***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.


Who is the target audience?
  • Intermediate Swift and Sprite Kit students
  • Anyone who wants to start making money in the new Apple TV store!
Students Who Viewed This Course Also Viewed
Curriculum For This Course
28 Lectures
05:26:30
+
Swift Programming for External Controllers on tvOS
8 Lectures 01:22:00


Connecting Standard and Micro Gamepad (the remote) Controllers
19:57

Project files for Swift 3 / Swift 2.2
00:03

Moving Player 1 with the Extended or Micro Gamepad
16:07

Rotating with the Extended and MicroGamePad
15:26

Wrapping up One-Player Controls with Firing
07:48

Project Files 2
00:13
+
Player vs Player with Multiple Controllers
11 Lectures 02:12:17
Handling Multiple Controllers with tvOS
18:57

Project (Before Second Player Added)
00:03

Setting up the Second Player (and Creating a Custom Tank Class)
19:51

Setting up the Second Player (continued)
08:13

Firing from the Second Player
10:45

Adding a One-Player Mode with CPU Controlled Second Player
19:50

Going Back and Forth Between 1-Player and 2-Player Modes
12:52

Going Back and Forth Between 1-Player and 2-Player Modes (continued)
09:11

Pause Screens with Options to Resume or go to the Main Menu
13:56

Adding a Main Menu
18:35

Project Files
00:03
+
Player vs Player Gameplay
9 Lectures 01:52:12
Detecting Physics Collisions
16:51

Creating a Bullet Class
18:00

Animated Explosions and Tank with Tank Bumping
14:26

Tank with Bullet Collisions and Losing Lives
18:13

Loading New Levels and Adding a Lives Label
13:35

Making the Camera Track a Central Point Between Players
12:37

Adding Walls to Ricochet or Remove Bullets
16:42

Project Files
00:03

Conclusion
01:45
About the Instructor
Justin Dike
4.4 Average rating
616 Reviews
41,788 Students
24 Courses
CartoonSmart / Owner / Leader Developer and Instructor

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 iOS Programming with Xcode and Cocos2d available in the iBookstore. Justin has also developed many iOS games, including a side scrolling game engine.