官术网_书友最值得收藏!

Chapter 1. The Swift Programming Language

At the core of game development is your game's code. It is the brain of your project and outside of the art, sound, and various asset developments. It is where you will spend most of your time creating and testing your game. Up until Apple's Worldwide Developers Conference WWDC14 in June of 2014, the code of choice for iOS game and app development was Objective-C. At WWDC14, a new and faster programming language, Swift, was announced and is now the recommended language for all current and future iOS games and general app creation.

As of the time of writing, you can still use Objective-C to design your games, but programmers, both, new and seasoned, will see why writing in Swift is not only easier for expressing your game's logic, but even more preformat. Keeping your game running at that critical 60 fps is dependent on fast code and logic. Engineers at Apple developed the Swift programming language from the ground up with performance and readability in mind, so this language can execute certain code iterations faster than Objective-C while also keeping code ambiguity to a minimum. Swift also uses many of the methodologies and syntaxes found in more modern languages, such as Scala, JavaScript, Ruby, and Python.

So, let's dive into the Swift language.

Note

It is recommended that some basic knowledge of object-oriented programming (OOP) be known previously, but we will try to keep the build-up and explanation of code simple and easy to follow as we move on to the more advanced topics related to game development.

主站蜘蛛池模板: 中江县| 河池市| 清徐县| 肇东市| 察哈| 香格里拉县| 乌审旗| 临漳县| 邯郸市| 甘谷县| 西充县| 灵川县| 罗源县| 哈密市| 大田县| 勐海县| 和林格尔县| 咸宁市| 玛纳斯县| 肥城市| 皮山县| 昭苏县| 平和县| 阿尔山市| 宝清县| 克东县| 滦平县| 利津县| 鄱阳县| 濮阳市| 汝阳县| 新泰市| 望江县| 涞水县| 佛学| 玉树县| 蒲江县| 枣庄市| 托克逊县| 钦州市| 怀安县|