A step-by-step teach you to develop Tetris with Swift: no.0

Source: Internet
Author: User
Tags spritekit

Spent a week, in accordance with the swift development Course, a variety of consulting materials, all kinds of Google, finally the Tetris game finished, but also want to write a series of teaching blog, because although watching the tutorial is not long, but for me from the Zero learning swift, the middle still encountered a lot of difficulties, Many bugs do not know how to come out, are through a very tangled process only one by one to overcome, so, this Chinese version of the series of teaching, but also is a want to learn swift and can not find the children's shoes easy to do.

First a final version, the basic effect is this, added animation effects and sound effects and so on, in fact, there are many things to do, as long as this series of blog to go on, I believe we eventually create a unique style with their own Tetris!


Here we have to remind you:

1. Please upgrade your Mac OS system to 10.10, then please upgrade Xcode to 6.1

Why should be here to remind everyone is because in the middle of my time, out of a bug how can not find the reason, and then Google a bit to know that the original 6.0 and 6.1 in an array of a property to make a different definition, I will be specific, so, if not upgraded, It's best to upgrade the Xcode version first

2. The Code section 90% of this tutorial series is a picture, which means you can't copy it, you can only enter it manually

Why do you do this? If you're a swift 0-based kid's shoe, then you can honestly enter every line of code and feel the swift language jumping on your finger.

If you feel that you can not do so, I also provide the source code, want to download the students can click here to download

3. This series of tutorials incorporates the animated development framework that comes with the latest SDK in iOS SpriteKit

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


If you feel that there is no problem with the above 3 points, we are ready to begin.

At the end of the statement:

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 Plus I learn the process of looking through the data process. My level is limited, if the English ability of students have been directly to read the original textbook. But there are two mistakes in the textbook, which I will correct in my textbook.


A step-by-step teach you to develop Tetris with Swift: no.0

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.