万本电子书0元读

万本电子书0元读

顶部广告

iOS Game Development By Example电子书

售       价:¥

2人正在读 | 0人评论 9.8

作       者:Samanyu Chopra

出  版  社:Packt Publishing

出版时间:2015-08-27

字       数:115.8万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
This book is targeted at novice, intermediate, and proficient game developers coming from a different development platform and wanting to migrate to game development with the Sprite Kit engine. The reader does not need any knowledge of Sprite Kit and building games on the iOS platform.
目录展开

iOS Game Development By Example

Table of Contents

iOS Game Development By Example

Credits

About the Author

About the Reviewers

www.PacktPub.com

Support files, eBooks, discount offers, and more

Why subscribe?

Free access for Packt account holders

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Downloading the color images of this book

Downloading the example code

Errata

Piracy

Questions

1. An Introduction to Sprite Kit

What's new in iOS 8?

Getting to know Swift

Getting to know Sprite Kit

Advantages of Sprite Kit

Elements of Sprite Kit

Scenes

Nodes

Actions

Features of Sprite Kit

Particle editor

Texture atlas generator

Shaders

Lighting and shadows

Physics

The game loop

Setting up a project

The Hello World project

Result

Summary

2. Scenes in Sprite Kit

Device orientation in Sprite Kit

Orientation in our project

Revisiting project elements

AppDelegate.swift

GameScene.sks

GameScene.swift

GameViewController.swift

Main.storyboard

LaunchScreen.xib

Adjusting the project

What is a scene?

Coordinate system

Creating a scene

Creating a node tree

Drawing order for a node tree

Adding the first scene in our game

Adding another scene to our game

A transition from one scene to another

Setting animation play during transition

Creating transition objects

Adding transition in our game

Summary

3. Sprites

SKSpriteNode

Initializing a sprite

The properties of SKSpriteNode

Physical

Texture

centerRect

Color

Shader

Adding a sprite without using textures

Changing the color property

Changing colorBlendFactor in MenuScene

Changing the position of a sprite

Resizing a sprite

Working with texture objects

What is a texture atlas?

Preloading textures into memory

Summary

4. Nodes in Sprite Kit

All you need to know about nodes

Using the SKNode object in the game

Recognizing a node

Initializing a node

Building a node tree

Actions on a node tree

The coordinate system of a node

Other functions and properties

Creating subclasses for our Platformer game

NodeMenuScene

CropScene

ShapeScene

ParticleScene

LightScene

VideoNodeScene

Summary

5. Physics in Sprite Kit

Simulating physics in Sprite Kit

SKPhysicsBody

The initialization of volume-based physics bodies

The initialization of edge-based physics bodies

The behavior controller properties of a physics body

The physical properties of a physics body

Collision control properties and functions

Forces and impulses

The velocity of a physics body

Using GameScene.swift to add physics bodies

Summary

6. Animating Sprites, Controls, and SceneKit

Animating nodes

SKAction

Adding a single action to a node

Adding multiple actions to a node

Creating actions

Moving nodes using actions

Rotating nodes using actions

Changing the animation speed of a node

Changing the scale position of a node

Showing or hiding a node

Changing the transparency of a node

Changing the content of a sprite node

Some other important actions

Adding controls in Sprite Kit

Node tapping and clicking

Gesture recognitions (swiping in any direction, pinching, or rotating)

Moving sprites with an accelerometer

An introduction to SceneKit

Adding animations and controls in our Platformer game

Adding actions

Transiting from GameScene to MenuScene

Adding controls in our game

Summary

7. Particle Effects and Shaders

Particle effects

The SKEmitter node

Creating the particle effect

Properties for determining a particle's lifetime

Adding the particle effect in our Platformer game

Adding the code to facilitate the particle effect

Shaders

A fact about using custom shaders

The creation and initialization of new shader objects

Uniform data in shaders

Implementing shaders in the Platformer game

Summary

8. Handling Multiple Scenes and Levels

Optimizing game levels

A strategy for multiple levels

Core Data

Adding levels in our Platformer game

Adding the Level label

Adding levels

Adding the pause functionality

Adding the NODE MENU button

Summary

9. Performance Enhancement and Extras

Performance enhancement

Systemizing a game's content in the scene

Performance enhancement by preloading textures

Improving the drawing performance

Improving performance with SKActions and constraints

Improving the physics performance

Improving shape's performance

Improving effect's performance

Improving lighting performance

Measuring performance with instruments

A scoring system in a game

Adding a scoring system in our Platformer game

Creating the Score label

Incrementing the score when required

Saving the high score

Creating the scene to save the high score

Adding a textbox to save player name

Saving the player name with high score

Creating the high score board

Adding sound into a game

Adding sounds into a Sprite Kit game

Adding sound into our Platformer game

Animation frames using SKTexture

Adding the Run action texture to the player in the Platformer game

Summary

10. Revisiting Our Game and More on iOS 9

A recap on the development process of our Platformer game

Working further on the Platformer game

An introduction to Game Center

The advantages of Game Center in a game

Integrating Game Center in a game

Working with Xcode

Working with iTunes Connect

What's new in iOS 9

Summary

Index

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部