Endless Worlds with Swift and Sprite Kit – Index






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: CartoonSmart

😍 0   👍 0   😐 0




Get access...

Subscribe for Access...

Lifetime Membership...

Just Get this Course...

See options...

Subscribe Monthly or Yearly.
Subscribers get access to every course.

This option gives you member access to CartoonSmart for life. Tutorials, kits, game art, & more. It's all yours! This course author will get a bonus if you select this option.

Get lifetime access to this course.
90% of the sale price goes to the author! Did you know all members are also content creators? Find out more.



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












Free account...

Looks like you aren't logged in. You can sign up for a FREE user account below. No payment info required...












Download the new CartoonSmart TV App - Tons of FREE and Premium Lessons

It's Free Right? Sure, I'll Get It!