![]() Still, feel free to browse through the code, in particular the GameController, CarController, and AnalogControl classes, which will give you a general idea of how things work.Some colleagues and I are kicking around the idea of creating a development environment to do for ordinary desktop apps what Unity has done for gaming. This tutorial won’t go into too much detail about how the controls work, how the game knows you’ve completed a circuit, or how the car turns, since that’s been covered by the two aforementioned tutorials and it’s not directly relevant to your goal of turning this into a multiplayer game. The Unity 2D intro tutorials on this site by Christopher LaPollo.The Circuit Racer SpriteKit game, as presented in the book Games for iOS by Tutorials.The Circuit Racer game in this tutorial is a mashup of two different tutorials: In addition to the on-screen gamepad support, the game also supports tilt controls - something you probably wouldn’t have noticed when you were playing the game within Unity. If that happens to you, either upgrade your version of Unity to the latest version, or simply open Xcode, open your project manually, and then continue running your project from there. Note: If you’re running an older version of Unity and a newer version of Xcode, Unity might have trouble opening up Xcode after it exports the file to an iOS project. If this happens, just click the Run button to remind Xcode why it opened in the first place. Xcode will take a few moments to process the file, and it will then run the game on your actual device! However, sometimes Xcode forgets to run the project for you. Once Unity has finished exporting the project, it will open up the newly created project in Xcode. Unity will ask you to save the generated Xcode project give it a fun and original name such as CircuitRaceriOS. Head back to the Build Settings dialog box, which should still be open, and select Build and Run. If you haven’t run an Xcode project on a device before, then read up on what’s required in this tutorial first. Now connect your physical device to your Mac. In the Other Settings area, look for the Bundle Identifier and change it from to something that’s unique to you and appropriate for your provisioning profile, like com.CircuitRacerUnity: The iOS platform should already be selected as your target platform, but if it isn’t, click the Switch Platform button with iOS selected.Ĭlick Player Settings and the PlayerSettings should appear in your Inspector panel. Go to File\Build Settings, then select iOS. You’ll first need to change the Bundle Identifier of your project to something a little less generic. Readers on, the Android tutorial site run by Ray’s evil twin, probably have a different experience in mind:Ī rare photo of Ray and Roy together, before what has only been referred to as “the incident”. Since you’re reading this on, I’ll assume you’ll want to run this on your favorite iOS device. It’s time to try this on an actual device. Oh, by the way - watch out for those crates. Hit the Play button to try out the game within Unity select the single player experience, and watch as your car performs death-defying feats as it circles around the track before time runs out! From the Assets panel, select MenuStuff and then double-click MainMenu to open up the main menu. Select Open Other… from the dialog box that appears, and then select the Circuit Racer folder you just unzipped: Download the starter project for Circuit Racer, The Unity Version here, then unzip the file to extract the project. It’s time to get familiar with the game you’re going to turn into a multiplayer showcase of awesomeness. If you are just starting out with Unity, it would be well worth your time to work through Christopher LaPollo’s excellent Unity 2D tutorial series on this site before you tackle an advanced-level Unity tutorial like this one. Ideally, you should have one iOS device and one Android device, but in a pinch, two of the same devices will work fine. ![]() Note: For those of you considering trying this tutorial using just the simulators, you will find yourself tearing out your hair.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |