To get the right feel for a platformer game, you need to be able to fine-tune the feel and response of the engine. There are two main reasons why you’ll be rolling your own, instead of using Sprite Kit’s built-in physics engine: Once you’ve had a chance to look through the project and fully understand what’s there, keep reading and we’ll discuss some philosophy about physics engines! The Tao of Physics EnginesĪ platform game revolves around its physics engine, and in this tutorial you’ll be creating your own physics engine from scratch. It’s waiting for you to make it fly away! (Sorry for all the jokes Norah!) Finally, you’ll see an empty class called Player, which will contain the Koala’s logic. The scene that appears on startup is called GameLevelScene, which is empty as a drum right now it’s waiting for you to come! In this tutorial, you’ll be adding some code to create a physics engine and gameplay into this class. Inside Resources\Audio, you’ll find some fun background music and sound effects. You’ll learn more about this later in this tutorial. Inside Resources\TMX Files\level1.tmx, you’ll find a level map I put together using Tiled, based on the SMB level 1-1 you know and love. Inside Resources\TMX Files\tileSet.png and Resources\sprites.atlas, you’ll find the Koalio free game art pack from Ray’s wife Vicki. Take a look through the project and you’ll see it contains the following: This starter project is pretty bare bones – the main point of giving it to you is so that you’d have all of the images/sounds you’ll need for the project pre-integrated. That’s right – just an empty screen for now! :] You’ll be filling this out in the rest of the tutorial. You should see the following appear on the screen: Once you’ve downloaded the file, unzip it, open the project in Xcode, and build and run. To get started, go ahead and download the starter project for this tutorial. If you are new to Sprite Kit, check out some of the other Sprite Kit tutorials on this site first.ĭo you have the necessary koala-fications? Then let’s get hopping! Getting Started This tutorial assumes you are already familiar with the basics of Sprite Kit development. That way you’ll be able to focus on learning how to implement the heart of a platformer game: the physics engine. In this tutorial, you’re going to recapture the magic and create your own platform jumper game – but since the hero will be a Koala instead of a plumber, we’ll call it “Super Koalio Brothers!” ]Īlso to keep things simple instead of adding enemies we’ll just have a simple challenge - avoid the spiky floors. Enjoy!įor many of us, Super Mario Brothers was the first game that made us drop our jaws in gaming excitement.Īlthough video games started with Atari in many ways, the intuitive and visceral controls of Super Mario Brothers and fun level design were such a dramatic improvement that it felt like something completely new – and we couldn’t put it down for hours! Update 2/1/14: I have updated this tutorial for Sprite Kit to celebrate the launch of the second edition of the Platformer Game Starter Kit, which is fully updated for Sprite Kit. Learn how to make a game like Super Mario!
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |