![]() ![]() You’ll also need to set up a physics body for the crocodile sprite, to detect and handle contacts with other bodies. You’ll need to retain a reference to the crocodile for your game logic. The crocodile is represented by an SKSpriteNode. Adding the Crocodile to the Sceneīe forewarned that this crocodile is quite snappy, please keep your fingers at a safe distance at all times! :] You’ll be using values from Constants.swift throughout the tutorial, so take some time to get acquainted with that file before diving in. Feel free to explore the other folders, shown below: In this tutorial, you’ll work in Classes, which contains the primary code files. You’ll find the project files in several folders. Open the project in Xcode for a quick look at how it’s structured. To get started, download the project files by clicking the Download Materials button at the top or bottom of the tutorial. In Snip The Vine, you’ll feed cute little animals pineapples to a crocodile. If you’re new to SpriteKit, check out our SpriteKit Tutorial for Beginners. Note: This tutorial assumes you have some experience with SpriteKit. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |