Wednesday Discount - Lifetime Access for $20!!!! - Click Here!

Endless Worlds with Swift and Sprite Kit – Index

    Login               Join          





Endless Worlds with Swift and Sprite Kit

In this iOS video tutorial series we will explore (quite literally) endless worlds. That is to say, we will create levels procedurally that can challenge players with limitless gameplay.

Created by: Justin

😍 1   👍 2   😐 1




Get full access...


Lifetime Access!

Get access to everything forever. Yes, everything. Yes, forever. Our best deal for sure! Need a coupon? Skip googling for one...

Activate a 24hr promo for first time visitors


Subscribe Yearly

Yearly subscribers get access to everything! Auto-cancels after two billings, at which point you qualify for a free Lifetime Membership!
Compare All Options


Purchase just this!

Get lifetime access to this course / product. 90% of the sale price goes to the author!



Want to feel warm and fuzzy??

If found us through one of our creator's links they'll get 50% of the sale!! That's how much we love our contributers!



Section 1

The Endlessly Moving World Node.

In this first project we will populate a perpetually moving "world" node with randomly generated physics objects. We also look at converting CGPoint locations in Swift from the worldNode coordinates to scene coordinates, enumerating through every child in the scene, adding and clearing out nodes as needed, and much more!



Very Minor Changes for Swift 2

Login to Mark Progress

Course Assets (Starting Template and Finished Project 1)

Login to Mark Progress

Introduction to Project 1

Login to Mark Progress

Quick Overview of the Starting Template

Login to Mark Progress

Create a Perpetually Moving World Node

Login to Mark Progress

Clearing Unseen Nodes and Adding the Player

Login to Mark Progress

Touching Objects to Move them and adding the Contact Listener

Login to Mark Progress


Section 2

Endless Level Units

In this series of videos we will modify the project from the first section and create "level units", for example, sections or modules of a level that each can contain their own objects and get created or removed as needed. The finished example project creates a kind of elevator style game where the character hops from platform to platform as long as possible. We will also look at the code to randomly move each platform (or any object) up and down and switch direction if it exceeds the visible screen area, as well as some ever-useful code to always center a world node on the player.



Course Assets (Finished Project 2)

Login to Mark Progress

Introduction to Project 2

Login to Mark Progress

Creating the Level Unit Class

Login to Mark Progress

Moving the World and Platforms within the Level Unit

Login to Mark Progress

Centering the World on the Character

Login to Mark Progress


Section 3

Crossy Frogger Project

In these video tutorials we will create an endless game similar to Frogger or Crossy Road. Level units will again be created on the fly, with the distinction now of being either a "road" type or "water" type, each one having their own type obstacles. Physics-wise we will have four Body types: road, water, roadObject (cars) and waterObject (lilypads), and leave the door open to many more possibly!



Course Assets (Starting and Finished Project 3)

Login to Mark Progress

Crossy Frog Introduction

Login to Mark Progress

Tweaks from the Last Project and Creating Multiple Level Types

Login to Mark Progress

Different Objects for Different Level Types

Login to Mark Progress

Changing Object Speeds and Repositioning Offscreen Objects

Login to Mark Progress

Hopping on Water Objects

Login to Mark Progress

Resetting Levels

Login to Mark Progress


Section 4

Endless RPG Style Level

In these vides we will convert the previous project to an endless top-down viewed RPG style world. The player can wander endlessly through randomly generated worlds, possibly to avoid objects or collect them. We will setup an array to track "level unit" locations that have already been added, then as the character wanders around, create new level units as needed. We will also include the option to remove level units the character has left (which could replace those units when the character walked back to them)



Course Assets (Starting and Finished Project 4)

Login to Mark Progress

Endless RPG Introduction

Login to Mark Progress

Adjusting the PlayerClass and Movements

Login to Mark Progress

Adding Endless LevelUnits Going North

Login to Mark Progress

Adding All LevelUnits and Clearing Unseen Units

Login to Mark Progress

Adding Grass and Water Objects within Each Level Unit

Login to Mark Progress


Section 5

An Endless Runner - The Grand Enchilada

This series of video tutorials teaches how to create a Banana Kong style game, where the character can run, slide, jump or glide to get past all the elements in the game. This super fast running app uses Swift and Sprite Kit and is completely optimized to handle generating and removing levels on-the-fly.



Course Assets (Starting and Finished Project 5)

Login to Mark Progress

The Endless Runner Tutorial – Introduction

Login to Mark Progress

The Endless Runner Initial Setup

Login to Mark Progress

The Endless Runner Player Setup and Adding Jump Controls

Login to Mark Progress

The Endless Runner – Adding Gliding and Sliding Controls

Login to Mark Progress

The Endless Runner – Looping Background and Resetting the World

Login to Mark Progress

The Endless Runner – Adjusting the Level Unit Class

Login to Mark Progress

The Endless Runner – Adjusting the Object Class

Login to Mark Progress

The Endless Runner – Contact Testing and Wrap Up

Login to Mark Progress





Category: Game Development  -   Primary Software: Xcode  -  
Tags:   Xcode - sprite kit - swift - game development











Get a Free account...

Sign up for a FREE user account below. No payment info required.
We'll even send a Limited Time Discount Code for half off our Lifetime Membership!















Know what an affiliate program is? You make money just by sharing links to our site! Win. Win.

Earn when you refer any buyer here! 30 day tracking. Commissions are 33%-50% and recur on subscription products!