/Swiftris

A Tetris game demo built with Swift, learned more from bloc.io's free tutorial: https://www.bloc.io/swiftris-build-your-first-ios-game-with-swift.

Primary LanguageSwift

Swiftris

A Tetris game demo built with Swift, learned more from bloc.io's free tutorial: https://www.bloc.io/swiftris-build-your-first-ios-game-with-swift.

用 Swift 2 + Xcode 7.3 实现的俄罗斯方块,是按照 bloc.io 上这篇免费教程一步步实现的。

代码里面有中文注释,而且我用 Autolayout 把它改成通用版本,修正了一些原文的小 bug(主要是 Swift 版本不同的问题)。

推荐看原始教程一步步如何构建这个游戏,还是能学到不少东西的。