Swift 3 Game Development - Second Edition

Stephen Haney

買這商品的人也買了...

商品描述

Key Features

  • Create and design games for iPhone and iPad using SpriteKit and Swift 3.0
  • Learn the core fundamentals of SpriteKit game development and mix and match techniques to customize your game
  • This step-by-step practical guide will teach you to build games from scratch using little-known tips and strategies for maximum fun

Book Description

Swift is the perfect choice for game development. Developers are intrigued by Swift 3.0 and want to make use of new features to develop their best games yet. Packed with best practices and easy-to-use examples, this book leads you step by step through the development of your first Swift game.

This book starts by introducing SpriteKit and Swift's new features that can be used for game development. After setting up your first Swift project, you will build your first custom class, learn how to draw and animate your game, and add physics simulations.

Then, you will add the player character, NPCs, and powerups. To make your game more fun and engaging, you will learn how to set up scenes and backgrounds, build fun menus, and integrate with Apple Game Center to add leaderboards and achievements. You will then make your game stand out by adding animations when game objects collide, and incorporate proven techniques such as the advanced particle system and graphics. Finally, you will explore the various options available to start down the path towards monetization and publish your finished games to the App Store.

By the end of this book, you will be able to create your own iOS games using Swift and SpriteKit.

What you will learn

  • Deliver powerful graphics, physics, and sound in your game by using SpriteKit
  • Set up the scene using the new capabilities of the scene editor and custom classes
  • Maximize gameplay with little-known tips and strategies for fun and repeatable action
  • Make use of animations, graphics, and particles to polish your game
  • Understand the current mobile monetization landscape to choose the best option for your own situation
  • Integrate your game with Game Center so that your players can share their high scores and achievements
  • Publish your game to the App Store and enjoy people playing your games

About the Author

Stephen Haney has written two books on iOS game development. He began his programming journey at the age of 8 years on a dusty, ancient laptop using BASIC. He has been fascinated with building software and games ever since. Now well versed in multiple languages, he enjoys programming as a creative outlet the most. He believes that indie game development is an art form-- an amazing combination of visual, auditory, and psychological challenges--rewarding to both the player and the creator.

He enjoyed writing this book and sincerely hopes that it directly furthers your career or hobby.

Table of Contents

  1. Designing Games with Swift
  2. Sprites, Camera, Action!
  3. Mix in the Physics
  4. Adding Controls
  5. Spawning Enemies, Coins, and Power-ups
  6. Generating a Never-Ending World
  7. Implementing Collision Events
  8. Polishing to a Shine - HUD, Parallax Backgrounds, Particles, and More
  9. Adding Menus and Sounds
  10. Standing Out in the Crowd with Advanced Features
  11. Choosing a Monetization Strategy
  12. Integrating with Game Center
  13. Ship It! Preparing for the App Store and Publication

商品描述(中文翻譯)

主要特點


  • 使用SpriteKit和Swift 3.0為iPhone和iPad創建和設計遊戲

  • 學習SpriteKit遊戲開發的核心基礎知識,並混合和匹配技巧來自定義你的遊戲

  • 這本逐步實踐指南將教你從頭開始構建遊戲,並使用鮮為人知的技巧和策略來獲得最大的樂趣

書籍描述

Swift是遊戲開發的完美選擇。開發人員對Swift 3.0感到興奮,並希望利用新功能來開發他們迄今為止最好的遊戲。這本書充滿了最佳實踐和易於使用的示例,將逐步引導您開發第一個Swift遊戲。

本書首先介紹了SpriteKit和Swift的新功能,這些功能可用於遊戲開發。在設置第一個Swift項目之後,您將構建第一個自定義類,學習如何繪製和動畫遊戲,並添加物理模擬。

然後,您將添加玩家角色、NPC和能力提升。為了使遊戲更有趣和吸引人,您將學習如何設置場景和背景,構建有趣的菜單,並與Apple Game Center集成,以添加排行榜和成就。然後,您將通過在遊戲物體碰撞時添加動畫,使您的遊戲脫穎而出,並融入先進的粒子系統和圖形等成熟技術。最後,您將探索各種選項,開始走向商業化的道路,並將完成的遊戲發布到App Store。

通過閱讀本書,您將能夠使用Swift和SpriteKit創建自己的iOS遊戲。

你將學到什麼


  • 使用SpriteKit提供強大的圖形、物理和聲音效果

  • 使用場景編輯器和自定義類的新功能設置場景

  • 使用鮮為人知的技巧和策略來最大化遊戲的樂趣和可重複性

  • 利用動畫、圖形和粒子來提升遊戲品質

  • 了解當前的移動端商業化情景,選擇最適合自己情況的選項

  • 將遊戲與Game Center集成,讓玩家分享他們的高分和成就

  • 將遊戲發布到App Store,享受人們玩你的遊戲

關於作者

Stephen Haney已經撰寫了兩本關於iOS遊戲開發的書籍。他在8歲時開始了他的編程之旅,當時他使用BASIC在一台古老的筆記本電腦上進行編程。從那時起,他對構建軟件和遊戲一直充滿著熱情。現在他精通多種語言,最喜歡將編程作為一種創造性的出口。他認為獨立遊戲開發是一種藝術形式,結合了視覺、聽覺和心理上的挑戰,對玩家和創作者都具有回報。

他喜歡寫這本書,並真誠地希望它能直接促進您的職業或愛好。

目錄


  1. 使用Swift設計遊戲

  2. 精靈、攝像機、行動!

  3. 混合物理效果

  4. 添加控制

  5. 生成敵人、硬幣和能力提升

  6. 生成無盡的世界

  7. 實現碰撞事件

  8. 打磨遊戲 - HUD、視差背景、粒子等

  9. 添加菜單和音效

  10. 通過高級功能脫穎而出

  11. 選擇商業化策略

  12. 與Game Center集成

  13. 發布到App Store和出版