- [Instructor] Lighting can add atmosphere…and great effects to your games.…Let's say we have certain items in our game…that we don't want to see until we get close to them.…Lighting can work great for that.…So I'm going to start by creating a light…by just dragging one from the object library…and I'm going to have it be a child of the player.…So I'm going to drag it right underneath the player node…and make sure that I release my mouse button…when that blue line is indented a little bit.…Now we can control the settings for the light node…by selecting it…and we'll see the settings in the attributes inspector here.…

We can give it a name if we want to reference it with code…and we can adjust the color of the lighting…and other settings.…So when it comes to color, the color of the lighting…is going to be the color of the object that is lit.…So if you have a white light,…the object's going to look normal when it's lit up.…For now I'm not going to change that.…We'll look at that later.…What I want to draw your attention to…

Resume Transcript Auto-Scroll

Author

Released

12/19/2016

SpriteKit is an Apple-approved entry point for creating engaging 2D iOS games. It's an animation framework featuring scenes (which function like levels or screens), sprites (2D artwork), and a node tree designed to render out your game as efficiently as possible. Watch this course to learn how to use SpriteKit and Swift, Apple's open-source programming language, to build a complete, full-featured iOS game that you can further customize and make your own. Get a simple introduction to SpriteKit, including adding and modifying sprites, building relationships between parent and child sprites, and building the scenes where your content is housed. Instructor and iOS expert Todd Perkins also reviews physics, collisions, particle systems, and actions to make sprites reactive during gameplay. Plus, learn how to add sound effects, cameras, and lights to make your app ready for distribution, and optimize your game for speed and smoother playback.