CG数据库 >> 《Unity手机游戏开发保存数据与Highscores》Digital-Tutors Unity Mobile Game Development: Saving

本教程是由Digital-Tutors机构出品的Unity手机游戏开发保存数据与Highscores,时长:3小时34分,附工程源文件(12M),使用软件:Unity

3.4,作者:Chris

Glick,官方发布时间:2011年12月23日。

在本教学中,我们将学习如何在游戏的不同阶段保存数据,还有如何创建一个highscore

level用于iOS与Android部署。我们会学习到如何使用GUI类来绘制各种文件与图形。我们还将学习一些节省时间的放置GUI元素技术。我们会学习如何使用数组来保存数据的不同部分,还有如何使用for循环来显示列表。接着我们将学习将数据重构入highscore类。我们将学习到一些可以访问玩家参数的命令,还有排列与保存数据的逻辑。我们还会学习如何使用手机键盘,还有如何为手机平台存储数据。从基本的设置,包括了显示设置到更高级的结构,例如high

score,更重要的是我们要学会如何在关闭以后后保存数据。

Unity是一款跨平台的游戏开发工具,从一开始就被设计成易于使用的产品。作为一个完全集成的专业级应用,Unity还包含了价值数百万美元的功能强大的游戏引擎。

Digital-Tutors

Unity Mobile Game Development: Saving Data and Highscores

In this Unity

tutorial, we’ll learn how to save data between play sessions with PlayerPrefs

and create a highscore level for deployment to iOS or Android. Through these

lessons we’ll learn how we can use the GUI class to draw various text and images

on our screen. From there, we will examine time-saving techniques for placing

our GUI elements with the inspector accurately. We'll learn how we can use

arrays to store multiple pieces of data and how we can display lists using for

loops. Then we'll refactor our array into a highscore class. With our display

set up, we will learn the commands to access our player prefs and the logic we

need to sort and store our data. Finally we'll see how we can use mobile

keyboards and examine a faster method of saving data for mobile platforms. From

basic preferences like display settings to more complex structures like high

scores, it's important to understand how to save data after we close our game.

《Unity手机游戏开发保存数据与Highscores》Digital-Tutors Unity Mobile Game Development: Saving的图片1

发布日期: 2012-3-10