In this tutorial your going to learn how to make a simple game called New Horizons where you dodge asteroids on the way to Pluto. The more asteroids you evade the more points you get. Note: I'm going to assume...
Functions with Swift Welcome back, let's pickup where we last left off with the basics of Swift. Open up a new playground file and lets get started. What is a Function? Functions are independent or self-contained chunks of code that...
Have you ever encountered a problem with your codes where you have a variable inside a function and can’t update a value of the variable inside a asynchronous code block? Well, I have, and the answer to it is a function with completion.
From the department of Domain-Driven Design code patterns, I today present to you: well-named value objects! You can go a lot farther than you have previously ...
In this tutorial we will build Make2048 -- a clone of the popular mobile game 2048. The gameplay itself is simple but coding the game comes with some puzzles and challenges. You will learn a lot in the next couple of hours! We will use Apple's new Swift programming language together with SpriteBuilder and Cocos2D.
Step 1. Getting Started with 2048!
Step 2. Set up in SpriteBuilder
Step 3. Setting up classes in Xcode
Step 4. Adding user interaction
Step 5. Starting the game logic
Step 6. Finishing the core gameplay
Step 7. Adding some polish!