Atnaujinkite slapukų nuostatas

El. knyga: Beginning Swift Games Development for iOS: Develop 2D and 3D games Using Apple's SceneKit and SpriteKit

  • Formatas: EPUB+DRM
  • Išleidimo metai: 24-May-2017
  • Leidėjas: APress
  • Kalba: eng
  • ISBN-13: 9781484223109
  • Formatas: EPUB+DRM
  • Išleidimo metai: 24-May-2017
  • Leidėjas: APress
  • Kalba: eng
  • ISBN-13: 9781484223109

DRM apribojimai

  • Kopijuoti:

    neleidžiama

  • Spausdinti:

    neleidžiama

  • El. knygos naudojimas:

    Skaitmeninių teisių valdymas (DRM)
    Leidykla pateikė šią knygą šifruota forma, o tai reiškia, kad norint ją atrakinti ir perskaityti reikia įdiegti nemokamą programinę įrangą. Norint skaityti šią el. knygą, turite susikurti Adobe ID . Daugiau informacijos  čia. El. knygą galima atsisiųsti į 6 įrenginius (vienas vartotojas su tuo pačiu Adobe ID).

    Reikalinga programinė įranga
    Norint skaityti šią el. knygą mobiliajame įrenginyje (telefone ar planšetiniame kompiuteryje), turite įdiegti šią nemokamą programėlę: PocketBook Reader (iOS / Android)

    Norint skaityti šią el. knygą asmeniniame arba „Mac“ kompiuteryje, Jums reikalinga  Adobe Digital Editions “ (tai nemokama programa, specialiai sukurta el. knygoms. Tai nėra tas pats, kas „Adobe Reader“, kurią tikriausiai jau turite savo kompiuteryje.)

    Negalite skaityti šios el. knygos naudodami „Amazon Kindle“.

Game apps are one of the most popular categories in the Apple iTunes App Store. In response, James Goodwill, Wesley Matlock and Apress introduce you to the update of this best selling book, Beginning Swift Games Development for iOS, Second Edition. In this book, you'll learn the fundamental elements of the new Swift 3 programming language as applied to game development for new iOS 10.

In part 1, you'll start with a basic 2D game idea and build the game throughout the book introducing each SpriteKit topic as we add new functionality to the game. By the end of the book, you'll have experience with all the important SpriteKit topics and have a fully functional game as a result. In part 2 of this book, you'll learn 3D game development using Apple's SceneKit framework and the Swift programming language. And, you'll follow the same pattern we used for part 1.

After reading and using this book, you'll have the skills and the code to build your first 2D and then 3D game app that you can run on any iOS enabled device and perhaps sell in the Apple iTunes App Store.


What you’ll learn

  • What is in the new Swift 3 programming language
  • How to apply it to iOS 10 and 9 game development
  • How to use SpriteKit with Swift
  • How to use SceneKit with Swift
  • How to build your first 2D game app using SpriteKit and Swift
  • How to build 3D game from 2D using SceneKit and Swift


Who this book is for

This book is for iOS app developers new to Swift or for those thinking of doing iOS game app development for the very first time.

About the Authors xiii
About the Technical Reviewer xv
Acknowledgments xvii
Introduction xix
PART I Introduction to Spritekit
1(128)
Chapter 1 Setting Up Your Game Scene and Adding Your First Sprites
3(16)
What You Need to Know and Have
3(1)
Introducing SuperSpaceMan
3(1)
Creating a Swift SpriteKit Project
4(3)
Starting from Scratch
7(7)
The GameViewController Class
11(2)
The GameScene Class
13(1)
Adding a Background and Player Sprite
14(4)
Summary
18(1)
Chapter 2 SpriteKit Scenes and SKNode Positioning
19(14)
What Is an SKScene?
19(1)
The SKScene Rendering Loop
20(2)
Building the Scene's Node Tree
22(5)
Rendering the Node Tree
24(2)
Searching the Node Tree
26(1)
Looking at SKSpriteNode Coordinates and Anchor Points
27(5)
Coordinates
28(2)
Anchor Points
30(2)
Summary
32(1)
Chapter 3 Adding Physics and Collision Detection to Your Game
33(12)
What Is an SKPhysicsBody?
33(1)
Adding Physics to Your Game World
34(1)
Applying Forces to SKPhysicsBody
35(2)
Adding Collision Detection to Your SKNode
37(7)
Adding a Node to Collide Into
38(1)
Adding Collision Detection
38(1)
Adding Bit Masks to Your SKPhysicsBody
39(2)
Removing the Orb When You Receive a Contact Message
41(3)
Summary
44(1)
Chapter 4 Adding Scene Scrolling and Game Control
45(10)
Reorganizing the GameScene
45(2)
Adding More Orbs to the Scene
47(3)
Scrolling the Scene
50(2)
Controlling Player Movement with the Accelerometer
52(2)
Summary
54(1)
Chapter 5 Adding Actions and Animations
55(16)
Refactoring the Orb Node Layout One Last Time
55(3)
Sprite Kit Actions
58(7)
Using Actions to Move Nodes in the Scene
59(4)
Using SKActions to Animate Sprites
63(2)
Adding Some Additional Bling to the GameScene
65(4)
Summary
69(2)
Chapter 6 Adding Particle Effects to Your Game with Emitter Nodes
71(16)
Using Particle Emitter Templates
73(1)
Creating a Particle Emitter
73(3)
Particle Emitter Properties
76(6)
The Particle Life-Cycle Properties
78(1)
The Lifetime Start and Range Properties
79(1)
The Particle Movement Properties
79(3)
Adding an Exhaust Trail to the Player
82(4)
Summary
86(1)
Chapter 7 Adding Points and Sound
87(16)
Introducing SKLabelNodes
87(8)
Changing the Horizontal Alignment of the Label Node
89(2)
Changing the Vertical Alignment of the Label Node
91(4)
Adding Scoring to the Game
95(2)
Adding an Impulse Counter to the Game
97(3)
Adding Simple Sounds to the Game
100(1)
Summary
101(2)
Chapter 8 Transitioning Between Scenes
103(12)
Pausing Scenes During a Transition
104(1)
Detecting When a New Scene Is Presented
104(1)
Adding a New Scene to SuperSpaceMan
105(1)
Ending the Game
106(1)
Winning the Game
107(1)
Losing the Game
108(1)
Adding the Transition
109(4)
Summary
113(2)
Chapter 9 SpriteKit Best Practices
115(14)
Creating Your Own Nodes with Subclassing
115(5)
Reusing Textures
120(3)
Externalizing Your Game Data
123(2)
Keeping Your Node Tree Pruned
125(2)
Summary
127(2)
PART II Introduction to Scenekit
129(74)
Chapter 10 Creating Your First SceneKit Project
131(12)
SceneKit Primer
131(3)
SceneKit Animation
132(1)
What You Need to Know
133(1)
Creating the SceneKit Project
134(2)
Wiring Up and Building a Scene
136(6)
Swiftystein3D
136(2)
Project Resources
138(1)
Building the Scene
138(4)
Summary
142(1)
Chapter 11 Scenes and Nodes
143(14)
Scene Graph
143(2)
SceneKit's Built-in Model Classes
145(1)
SCNGeometry Objects
145(1)
Adding Collectable Nodes
146(9)
Summary
155(2)
Chapter 12 Lighting, Camera, and Material Effects in SceneKit
157(10)
SceneKit Camera Usage
157(2)
Lighting Up the Scene
159(2)
Materials
161(3)
Applying Materials to Your Obstacles
164(2)
Summary
166(1)
Chapter 13 Render Loop, Physics, and Moving Around
167(8)
What Is the Render Loop?
167(1)
GameView: Moving the Hero
168(3)
Writing the Callback Delegate Function
169(1)
Moving the Camera
170(1)
Introducing CoreMotion Framework
171(2)
Summary
173(2)
Chapter 14 Collision Detection
175(8)
Collision Detection
175(7)
Summary
182(1)
Chapter 15 SceneKit Interaction with SpriteKit
183(8)
SpriteKit Integration
183(2)
Hooking Up the Controller to the Overlay
185(2)
"Game Over" Screen
187(2)
Summary
189(2)
Chapter 16 SceneKit Editor
191(12)
The SceneKit Scene
191(3)
Creating the Scene
194(8)
Adding the Floor
194(1)
Adding the Hero
195(2)
Adding in the Camera
197(3)
Adding in Nodes
200(2)
Summary
202(1)
Index 203
James Goodwill is an 8-time published author of leading technologies such as Java Servlets, JavaServer Pages (JSPs), Tomcat and Struts. He is a senior enterprise iOS and Java consultant in the Denver metro area and frequent speaker and article writer. Wesley Matlock is an experienced iOS app game coder and trainer.