iOS Game Frame Sprite Kit Basic Tutorial--swift Edition book

Source: Internet
Author: User

iOS Game Frame Sprite Kit Basic Tutorial--swift Edition book

Probation: Http://pan.baidu.com/s/1qWBdV0C

Introduction: This tutorial is the only swift version of the Spritekit tutorial in the country. This tutorial, based on the Xcode 6.1+ios 8.1 development environment, uses the swift language to explain in detail the various knowledge of the development of the Sprite kit game to help readers develop skills in IOS games as quickly as possible.

Directory

Directory

1th. Writing the first sprite kit program 1

1.1 Sprite Kit Introduction 1

1.1.1 What is a sprite Kit 1

1.1.2 Sprite Kit Pros and cons 1

1.2 Registration of Apple account 2

1.2.1 Apple account category 2

1.2.2 Sign up for a free Apple account 2

1.2.3 Registered non-free Apple account 5

1.3 Xcode Download and installation 7

Download and install Xcode 8 on the 1.3.1 APP store

1.3.2 Other websites download Xcode 11

1.4 Bind Apple Account 11

1.5 Updating components and documentation 13

1.6 Writing the first program 13

1.6.1 Creating a Project 14

1.6.2 Xcode Interface Introduction 16

1.6.3 running the program 17

1.6.4 Simulator Introduction 19

1.6.5 Scene editor 27

1.6.6 Writing code 29

1.7 Using the Help document 30

1.8 Commissioning 32

1.9 Real-machine Test 34

1.9.1 Application and download certificate 34

1.9.2 implementing a real- machine Test 43

2nd. Scenario 44

2.1 Adding a scene 44

2.2 Showing the new scene 47

2.3 Setting up scene 48

2.3.1 Setting the background color of the scene 48

2.3.2 Setting the zoom mode for a scene 50

2.3.3 Setting Up Test Information 51

2.4 Switching scenes 55

2.4.1 Simple scene switch 56

2.4.2 scenes with transition Animations 56

2.5 scrolling scene 59

2.5.1 let the scene scroll 60

2.5.2 Endless scrolling scene 64

3rd Chapter Wizard 67

3.1 Node Introduction 67

3.2 Adding images to the project 67

3.3 Displaying sprites 69

3.3.1 using the scene editor to display Sprites 69

3.3.2 using code to display a texture- free Sprite 72

3.3.3 using code to display texture Sprites 73

3.4 Setting the Sprite 74

3.4.1 Setting the Sprite's position 74

3.4.2 Setting the anchor Point 75

3.4.3 Coloring to sprites 76

3.4.4 adjusting the sprite size 77

3.4.5 Scaling Sprite 79

3.4.6 Rotation Wizard 81

3.4.7 Setting the Sprite's transparency 82

3.4.8 Hidden elf 83

3.5 Delete Wizard 85

3.5.1 Delete the specified sprite 85

3.5.2 Delete all sprites 86

3.6 Make the genie feel more realistic 87

3.7 Moving Sprites 91

3.8 Textures 94

3.8.1 creation of Textures 94

3.8.2 display of Textures 94

4th Chapter Action 96

4.1 Move action 96

4.1.1 Moves 97 in a point way

4.1.2 Move 99 in an offset way

4.2 Sequence Action 101

4.3 Repeat action 103

4.3.1 Infinite repetition 103

4.3.2 Repeat 105 with a number of repetitions

4.4 Delay Action 106

4.5 Scaling Action 108

4.5.1 Scaling 109 with zoom multiplier

4.5.2 Scaling 111 with incremental values

4.6 Rotation Action 113

4.7 Adjusting the size of the action 114

4.7.1 size 115 with target value

4.7.2 adjusting the size 117 incrementally

4.8 Combo Action 118

4.9 Changing the transparency of the action 119

4.9.1 does not need to specify an alpha value of 120

4.9.2 specifying an Alpha value of 121

4.10 Changing the color of the action 124

4.10.1 changing the mixing factor 124

4.10.2 changing color and mixing factor 125

4.11 Changing the action of a texture in animated form 126

4.12 Path Action 128

4.13 Reverse Motion 131

4.14 Speed Action 132

4.15 Show or hide an action 133

4.16 Block action 135

4.17 Customizing the action 136

4.18 Action Properties 137

4.18.1 Speed 138

4.18.2 Time 139

4.18.3 curve mode 139

4.19 Deleting an action 141

Chapter 5th user interaction 143

5.1 Touch 143

5.1.1 Tap Touch 143

5.1.2 Mobile Touch 146

5.1.3 End Touch and Cancel touch 151

5.2 Gestures 153

5.2.1 Light fear 154

5.2.2 Pinch 155

5.2.3 Rotation 157

5.2.4 Move 158

5.2.5 Slide 159

5.2.6 Long Press 163

5.3 Gravity sensor 166

5.3.1 Scene layout 169

5.3.2 Determine if gravity sensing is available 170

5.3.3 using gravity sensing to move a spaceship 171

6th 174 characters in the game

6.1 Display label 174

6.1.1 using the scene editor to display a label 174

6.1.2 using code to implement tags 177

6.2 Setting the label 178

6.2.1 Setting the text size 178

6.2.2 Setting the color of text 179

6.2.3 Setting the text of the label display 180

6.2.4 Setting the font for text 181

6.3 To load a custom font for a label 184

6.4 Label to its way 188

6.4.1 Horizontal alignment 188

6.4.2 Vertical alignment 190

6.5 Adding an action to a label 192


iOS Game Frame Sprite Kit Basic Tutorial--swift Edition book

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.