万本电子书0元读

万本电子书0元读

顶部广告

Learning Unity iOS Game Development电子书

售       价:¥

2人正在读 | 0人评论 9.8

作       者:Kyle Langley

出  版  社:Packt Publishing

出版时间:2015-09-29

字       数:390.8万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Build exciting games with Unity on iOS and publish them on the App Store About This Book Take advantage of Unity 5's new tools to create a fully interactive mobile game Learn how to connect your iTunes developer account and use Unity 5 to communicate with it Use your Macintosh computer to publish your game to the App Store Who This Book Is For This book is for iOS developers who want to learn how to build games with Unity for the iOS platform. Some prior experience in game development would be useful. What You Will Learn Create your own iTunes Connect Developer account and create an app within it Set up iTunes Game Center features in iTunes Connect so you can use them within Unity 5 Construct a game using C# that allows users to interactively control the game character Use Unity 5's editor window to create a custom editor tool specific for the game made in the book Store and keep track of data so the player is able to collect in-game pick-ups that can be used to purchase in-game goods Use all game features so the player is able to fully navigate menus between the front menu and in the game state Make, test, and finally release builds so you can play on your device and then submit the game to Apple for review In Detail Over recent years, the market for mobile game development using Unity has grown multi-fold with an overwhelming 600 million gamers playing games developed using Unity engine. The newly launched Unity 5 offers a wide range of dedicated and powerful tools for iOS developers who intend to follow the basics and gradually elevate their skills to revolutionize the way they design and publish games for the App Store. From beginners, to those who are experienced making video games, this book goes through the steps of using Unity 5 to make a game from the ground up and setting the game up with iTunes Game Center features. The book begins with an introduction to setting up an iTunes Connect developer account, this will allow you to use Unity to its full potential with iOS. You will create a new app in iTunes Connect with the settings for Apple approval. You will learn, in detail, how to use Unity 5 and the programming language C# to make a fully interactive game that keeps track of player progress, Game Center Leaderboards, and Achievements, as well as displaying iAds and offering In-App purchases. Moving on, you’ll discover how to create development and release builds, enabling you to test the game on your device before finally submitting the game for Apple’s approval. By the end of the book, you will have a complete understanding of how iTunes and Unity can be used in combination to build and publish a fully interactive and reliable game to the App Store. Style and approach This is a step-by-step guide that covers the fundamentals of gaming and reveals the secrets of building and monetizing games for the iOS platform.
目录展开

Learning Unity iOS Game Development

Table of Contents

Learning Unity iOS Game Development

Credits

About the Author

About the Reviewers

www.PacktPub.com

Support files, eBooks, discount offers, and more

Why subscribe?

Free access for Packt account holders

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Downloading the example code

Downloading the color images of this book

Errata

Piracy

Questions

1. Requirements and Preparation Work

Requirements

Downloading and installing Unity 5

Installing the iOS SDK plugin

Creating and logging in to the iTunes Connect profile

Creating the Bundle ID and Game App

Setting up App pricing and territories

Creating an in-app purchase

Game Center, leaderboards, and achievements

The Main App settings

Enabling iAds

Setting up iOS Native in Unity

Certificates and provisions on Mac

Why iTunes Connect is important

Summary

2. Player Input for Mobile Devices

Creating the C# input class

Including system

What is Touch?

Our own Touch

Global variables

Creating the Input GameObject

Calculating the TouchInput function

The Start function

Starting to work with Update

The in-editor input logic

Testing in editor

Input for the Touch device

Wrapping up

Summary

3. Player Character, Obstacles, and Pickups

What is a character?

What is a pickup?

What is an obstacle?

Creating the character

Creating the character controller

Creating the Character GameObject

Adding Rigidbody 2D

Adding Box Collider 2D

Writing the character code and connecting the PlayerInput class to it

Character attributes

PlayerInput

The KillCharacter function

Creating the coin pickup

Creating the obstacle

Summary

4. Editor Tool, Prefabs, and Game Level

Making the sprite tile editor tool

The SpriteTiler C# class

Global variables

The MenuItem creation

The OnGUI function

The GUILayout and OnGUI setup

The OnGUI create tiled button

The CreateSpriteTiledGameObject function

Testing the SpriteTiler file

Sprite Tiler wrap-up

The prefab creation

Coin prefabs

Level piece prefabs

Further setup of the level pieces

The level piece code

The level piece manager code

Setting up the LevelPieceManager GameObject

Adding coins and obstacles to LevelPieces

Managing coins and obstacles with the LevelPiece code

Resetting coins

Resetting the coin in LevelPiece

Summary

5. Scene Background, the Game User Interface, and the Save Profile

Creating the scene background

Adding movement to SceneBackgroundElement

Creating the game user interface

The GameInfo class

Importing UI images

Creating the UI Canvas

The coin background

The distance background

The pause button

Updating code to show coins and distance

Updating the coin class

The restart button

The fade object

The restart functionality

The Awake function

The Update function

The RestartGame function

The RestartLevelAndCharacter function

FadeToBlack and FadeToNormal functions

The HideRestartButton function

The ResetLevelPieces function in LevelPieceManager

Updating Character To Reset

Connecting RestartGame to the RestartButton click

PlayerPrefs game save object

Summary

6. Main Menu, iAds, Leaderboards, Store Purchases, and Achievements

Building the main menu UI

Adding button images

PlayButton

LeaderboardButton

AchievementButton

RemoveAdsButton

RestorePurchaseButton

The Purchase Remove iAds panel

RemoveAdsBackgroundScreen

RemoveAdsScreen

RemoveAdsTextOption

ForCoin

ForCoinText

ForCash

ForCoinText

CloseRemoveAds

The Purchase Succeeded panel

PurchaseSucceededBackgroundScreen

PurchaseSucceededScreen

PurchaseSucceededText

PurchaseSucceededAccept

PurchaseSucceededAcceptText

PurchaseSucceededClose

The Purchase Failed panel

Connecting the MainMenuUI reference to GameInfo

The menu code

The GameInfo menu code

The LevelPieceManager menu code

The character menu code

Completing changes in Unity

Adding the BackToMenu button in GameUI

Code for leaderboard and achievement buttons

Code for achievements

Game center events

SubmitAchievementProgress

SubmitAchievementAsWhole

SubmitLeaderboardScore

The character achievement code

Displaying iAds

Purchasing remove iAds

New RemoveiAds Purchase for coins

The In App Purchase code

The Purchase RemoveIAds functions

Purchasing buttons

Restoring purchases

Summary

7. Game Builds and Submission to Apple

Setting up Unity for iOS builds

Creating a test build

Making a release build

Submitting the game to Apple

Congratulations!

What next?

Testing

I want to learn more about programming

I want to create a 3D game

3D programs

Creating textures

Furthermore

Using the Internet

Summary

Index

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部