Practical tutorial on Swift game development (university overlord internal materials) and swift Game Development

Source: Internet
Author: User
Tags install mac os x

Practical tutorial on Swift game development (university overlord internal materials) and swift Game Development

Practical tutorial on Swift game development (university overlord internal materials)



Trial read:Http://pan.baidu.com/s/1sj7DvQH

Introduction: This tutorial is the first Swift game development expert in China.

This tutorial details the development of five games: Memory pairing, Space Invaders, Simon memory, mini golf, and Galaxy wars. At the same time, the project also detailed the graphics rendering, game engine, audio engine, user interaction, sensors and other specialized technologies. Finally, the tutorial explains how to use the Sprit Kit, a dedicated Apple game framework. In order to help readers fully understand the actual development, the tutorial also describes the necessary knowledge of game development, such as account binding and game publishing.

Preface

In September 2014, Apple launched the next-generation development language Swift. This language is more efficient and widely used by Apple developers. In the domestic development field, a large number of developers have switched from Objective-C to Swift. This tutorial is the first official Swift game development document in China.

This tutorial details the development of five games: Memory pairing, Space Invaders, Simon memory, mini golf, and Galaxy wars. At the same time, the project also detailed the graphics rendering, game engine, audio engine, user interaction, sensors and other specialized technologies. Finally, the tutorial explains how to use the Sprit Kit, a dedicated Apple game framework. In order to help readers fully understand the actual development, the tutorial also describes the necessary knowledge of game development, such as account binding and game publishing.

1. Learn the required systems and software

  • Install Mac OS X 10.9.4

  • Install Xcode 6.0.1

2.Learning suggestions

Before learning, you can send a message to xxxxxxxxxxxx to obtain relevant materials and software. If you have any questions during the learning process, you can send them to this email address. We try our best to solve this problem.

Directory


Chapter 2 Development Environment configuration-Xcode installation and running 1
1.1 Apple account 1
1.1.1 Apple account Member Classification 1
1.1.2 register a free Apple account 1
1.1.3 register a non-free Apple account 4
1.2 download and install Xcode 6
1.2.1 download and install Xcode 6 in App Store
1.2.2 download and install Xcode 9 from other websites
1.3 bind an apple account 10
1.4 update components and documents 11
1.5 open Xcode 12 for the first time
1.6 Xcode UI Introduction 15
1.6.1 navigation Window 15
1.6.2 tool window 16
1.6.3 edit window 17
1.6.4 target window 18
Chapter 19 compile the First Swift program 19
2.1 run the program 19
2.2 simulator operation 20
2.2.1 differences between a simulator and a real machine 21
2.2.2 exit application 21
2.2.3 application icon setting 22
2.2.4 language setting 24
2.2.5 rotate 26
2.2.6 delete an Application 27
2.3 editing page 28
2.3.1 interface introduction 28
2.3.2 design interface 30
2.3.3 introduction to the view object library 33
2.4 write code 34
2.5 debugging 37
2.6 real machine testing 39
2.6.1 apply for and download a certificate 40
2.6.2 real machine testing 49
2.7 help document 49
Chapter 5 iPhone game development basics-memory pairing game 51
3.1 game Introduction 51
3.2 preparations before Game Development 52
3.2.1 create a project 52
3.2.2 add image 53
3.3 Main Menu module 54
3.4 pairing module 57
3.4.1 design interface 57
3.4.2 card flip 61
3.5 core functions-card pairing 68
3.5.1 flip two cards 68
3.5.2 judge card 69
3.5.3 successful pairing 69
3.5.4 complete all pairing 71
3.6 additional functions of the pairing module 73
3.6.1 Number of guesses 73
3.6.2 increase the difficulty of the game 74
3.7 Score list module 75
3.7.1 preparations 75
3.7.2 Interface Design 76
3.7.3 display the score 78
3.8 about game module 81
3.9 scenario switch 82
3.9.1 what is scenario switching 83
3.9.2 implement scenario switching 84
3.9.3 transition animation effect 86
3.9.4 switch all scenarios 87
Chapter 1 Space Invaders-Drawing Images 91
4.1 Introduction to games 91
4.2 Preparations before game development 92
4.3 Main Menu template 92
4.4 shooting game template 93
4.4.1 preparations 94
4.4.2 design interface 94
4.5 Add a ship 95
4.6 mobile ship 96
4.6.1 move 97 to the left
4.6.2 move 97 to the right
4.7 create enemy 99
4.7.1 create 99 for a single enemy
4.7.2 create multiple enemies 100
4.8 move enemy 101
4.9 million fired bullets 103
4.9.1 ship bullet 103
4.9.2 enemy bullet 105
4.10 scenario switching 107
Chapter 2 Space Invaders 2-Game Engine 5th
5.1 Introduction to Games 110
5.2 preparations before game development 111
5.3 Main Menu module 112
5.4 shooting game module 113
5.5 understand the state machine 114
5.6 use code to add a shooting game interface element 115
5.6.1 prompt page 115
5.6.2 craft 117
5.6.3 enemy 122
5.7 collision detection 127
5.7.1 enemy bullets hit spacecraft detection 127
5.7.2 detection 128 when a ship's bullet hits the enemy
5.8 scoring function 130
5.9 annihilate all enemies 130
5.10 Score list module 132
5.10.1 preparations 132
5.10.2 UI design 132
5.10.3 display the score by 134
5.11 scenario switching 138
Chapter 2 Simon memory game-audio engine 6th
6.1 Introduction to games 142
6.2 preparations before Game Development 143
6.3 Main Menu module 146
6.4 game module 147
6.4.1 preparation 148
6.4.2 UI design 148
6.5 add color reminder sequence 149
6.5.1 Add a prompt 150
6.5.2 Add a color prompt 152
6.6 gamers guess 153
6.7 Add background music 155
6.8 additional features of the game module 156
6.8.1 The number of off games is 156
6.8.2 increase the difficulty of the game by 157
6.9 game introduction module 159
6.10 scenario switching 160
Chapter 5 mini golf-user interaction 7th
7.1 Introduction to games 162
7.2 preparations before Game Development 163
7.3 Main Menu module 163
7.4 game module 164
7.4.1 preparations 165
7.4.2 UI design 165
7.4.3 add golf balls 166
7.4.4 mobile golf balls 167
7.5 less than 169 of user interactions
7.5.1 limit 169
7.5.2 speed limit: 170
7.5.3 limited to 171 Holes
7.6 pole Count display 174
7.7 game interface module 175
7.8 scenario switching 176
Chapter 4 galaxy wars-Sprite Kit game engine and sensor applications 8th
8.1 Introduction to games 181
8.2 create a Game project 182
8.2.1 introduction to Game template types 182
8.2.2 Create Project 183
8.2.3 add image and audio files 185
8.3 Main Menu module 185
8.4 shooting game module 187
8.5 add element 187 to the shooting game interface
8.5.1 preparations 187
8.5.2 what is Sprite Kit 188?
8.5.3 use SKSpriteNode to add background 188
8.5.4 use SKSpriteNode to add a ship 190
8.5.5 use SKSpriteNode to add enemy 191
8.6 million fired bullets 192
8.6.1 Add a bullet 192
8.6.2 trigger a bullet 192 through a touch
8.7 use a sensor to manipulate a spacecraft 194
8.7.1 introduction to sensors 194
8.7.2 determine whether the sensor is available 194
8.7.3 move 195
8.8 collision detection 197
8.9 score display 198
8.9.1 use SKLabelNode to add node 199 displaying scores
8.9.2 display the score by 199
8.10 Add sound 200
8.10.1 voice 200 on the shooting game interface
8.10.2 the bullet hits the enemy's voice in 201.
8.11 game introduction module 201
8.12 scenario switching 202
Chapter 1 Application release 9th
9.1 create an App ID 205
9.2 apply to publish a certificate 206
9.2.1 Certificate Application 206
9.2.1 configuration File for Certificate Application 209
9.3 prepare to submit the application 211
9.3.1 create an application and basic information 211
9.3.2 Project Settings 214
9.4 submit the application to the App Store 219
9.5 common reasons for failing review 226

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.