Step by step teach you how to use Swift to develop Tetris: No.0, swiftno.0

Source: Internet
Author: User
Tags spritekit

Step by step teach you how to use Swift to develop Tetris: No.0, swiftno.0

It took a week to complete the Russian square game by following the Swift development tutorials, various materials, various google games, and a series of teaching blogs. Although the tutorials were not long enough, however, I still encountered many difficulties in the process of learning Swift from scratch. I don't know how many bugs came out, but I had to overcome them one by one through a very tangled process. Therefore, this Chinese version of the series of teaching is also a convenient figure for children's shoes who want to learn swift but cannot start.

First, go to the final version. The basic effect is like this. There are still many things to do when you add animation effects and sound effects, as long as you follow the blogs in this series, I believe that everyone will eventually create a Russian square with their own unique style!


We have to remind you that:

1. Upgrade your Mac OS to 10.10 first, and then upgrade Xcode to 6.1 or above.

Why do we need to remind you that the cause of a bug is not found during the process, later, google knows that 6.0 and 6.1 have made different definitions on an attribute of the array. I will talk about it later, so if there is no upgrade, upgrade Xcode first.

2. In this series of tutorials, part 90% of the Code is images. That is to say, you can only manually enter

Why? If you are a swift 0-based shoes, you can still manually enter each line of code to feel the swift language jumping on your fingers.

If you think you don't need this, I also provide the source code. You can click here to download the source code.

3. This series of tutorials uses the SpriteKit, a self-contained animation development framework, in the latest iOS SDK.

If you want to learn cocos2D, unity, and other iOS animation development, search by yourself. Because SpriteKit is self-contained in iOS SDK and does not require any third-party framework support, it is suitable for beginners to learn.


If you think there is no problem at the above three points, let's get ready.

Finally, declare:

Most of the tutorials in this series are translated from: https://www.bloc.io/tutorials/swiftris-build-your-first-ios-game-with-swift! /Chapters/675 adds the process of searching and reading documents during my learning process. My skills are limited. If my English skills are acceptable, I will go through the original teaching materials directly. But there are two errors in the teaching material. I will correct them in my teaching material.


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.