Beruflich Dokumente
Kultur Dokumente
Interactive Tutorials
Available: <https://unity3d.com/pt/learn/tutorials/projects/2d-ufo-tutorial/introduction-2d-ufo-project
?playlist=25844>
Take your first steps in Unity... inside Unity! Our Interactive Tutorial system is a panel inside Unity that
teaches you and responds as you learn. These introductory lessons aim to get you familiar with the Unity
interfaces and concepts such as Game Objects and Components. You will fix parts of a top down 3D puzzle
game and help your character escape each level, learning Unity development as you go.
Página 1 de 5
00:47 - 00:49 01:39 - 01:41
We'll see how to detect contact between On the home screen you can create a
00:49 - 00:52 01:41 - 01:43
the UFO and the pickup game objects new project either by hitting the
00:52 - 00:54 01:43 - 01:45
and use these events to collect blue Create New Project button
00:54 - 00:56 01:45 - 01:47
the pickup game objects. in the centre of the window,
00:56 - 00:58 01:47 - 01:49
When we've done we'll have made a simple or by clicking the New button
00:58 - 01:00 01:49 - 01:51
UFO game where the player controls the at the top of the window.
01:00 - 01:03 01:53 - 01:55
UFO with the keyboard, picks up and counts The first thing that we need to do is
01:03 - 01:05 01:55 - 01:56
special collectable objects, to give our project a name,
01:05 - 01:07 01:56 - 01:58
displays the current count, I'm going to call the project UFO Game.
01:07 - 01:09 02:01 - 02:03
and ends the game when all of the The next thing we need to do is set the
01:09 - 01:11 02:03 - 02:05
game objects have been picked up. destination, or path, to our new project.
01:13 - 01:15 02:06 - 02:08
To complete this project we'll use custom I'm going to put this new project on my
01:15 - 01:17 desktop.
created 2D art assets 02:16 - 02:18
01:17 - 01:19 You'll see we have a choice
which can be downloaded from the 02:18 - 02:20
01:19 - 01:21 to set the project preferences
Unity Asset Store. 02:20 - 02:24
01:21 - 01:23 to either 3D or 2D mode.
Let's begin by creating a new project. 02:24 - 02:25
01:24 - 01:26 Since we're working in 2D
First open the Unity editor 02:25 - 02:27
01:26 - 01:28 I'm going to click 2D.
if you haven't done that already. 02:30 - 02:32
01:28 - 01:30 This will set the preferences for the Unity
You can create a new project by editor
01:30 - 01:33 02:32 - 02:35
choosing File - New Project. to useful defaults for creating 2D game.s
01:36 - 01:38 02:36 - 02:39
This will bring us to the home screen. For more information on working in 2D,
Página 2 de 5
02:39 - 02:41 to the Asset Store, including teaching
please see the information linked below. 03:34 - 03:36
02:43 - 02:47 projects like this one to help
Now click the Create Project button 03:36 - 03:38
02:47 - 02:49 you learn how to make games.
to create our new project. 03:39 - 03:41
02:49 - 02:51 By default the Asset Store is
Unity will create a new empty scene 03:41 - 03:43
02:51 - 02:53 opened as a docked tab.
for us to work in. 03:44 - 03:46
02:54 - 02:56 Let's undock the tab so that we can
The first thing we'll need to do is to download 03:46 - 03:48
02:56 - 02:58 expand the window.
and import our art assets 03:58 - 04:00
02:58 - 03:00 In the upper-right corner of
from the Unity Asset Store. 04:00 - 04:02
03:01 - 03:03 the expanded Asset Store window
To access the Asset Store choose 04:02 - 04:05
03:03 - 03:05 we'll see a listing of asset categories.
Window - Asset Store. 04:05 - 04:07
03:05 - 03:07 At the bottom we should find
Or use the keyboard shortcut 04:07 - 04:09
03:07 - 03:09 Unity Essentials.
command + 9 on mac, 04:09 - 04:11
03:09 - 03:12 Expand this category and we'll find
or control + 9 on windows. 04:11 - 04:15
03:13 - 03:15 a subcategory called Sample Projects.
The Asset Store is a service that 04:16 - 04:18
03:15 - 03:17 Within Sample Projects we'll find
Unity Technologies provides 04:18 - 04:21
03:17 - 03:19 an item called 2D UFO tutorial.
where creators can both buy and sell 04:22 - 04:25
03:19 - 03:21 Click on the item title to open it.
assets to make games. 04:26 - 04:28
03:21 - 03:25 Once the page loads we'll see a
These include art, music, scripts, effects, 04:28 - 04:31
03:25 - 03:28 download button in the upper-left corner.
all the way up to complete games and 04:31 - 04:33
projects. Click on the Download button to begin
03:30 - 03:32 04:33 - 04:35
Unity also publishes content downloading the assets.
03:32 - 03:34 04:35 - 04:37
Página 3 de 5
The Download button will be replaced 05:27 - 05:29
04:37 - 04:39 we need to save our scene.
by the percentage of the download 05:29 - 05:31
completed We can save our scene by choosing
04:39 - 04:41 05:31 - 05:33
once we click on it. File - Save Scene,
04:42 - 04:44 05:33 - 05:36
Once the download is complete we'll see or by using the keyboard shortcut
04:44 - 04:47 05:36 - 05:38
a dialogue labelled Importing Complete command + S on mac,
Project. 05:38 - 05:40
04:48 - 04:50 or control + S on windows.
This warns us that importing a 05:42 - 05:44
04:50 - 04:52 I'm going to save this scene
complete project will overwrite 05:44 - 05:46
04:52 - 04:54 in the Assets directory in the
our current project settings. 05:46 - 05:48
04:55 - 04:57 folder called Scenes.
In this case, because we've just created a 05:53 - 05:55
04:57 - 04:59 I'm going to call the scene Main.
new project this is fine. 06:00 - 06:02
05:00 - 05:02 We can now see in our Scenes folder
Click the Import button to continue. 06:02 - 06:04
05:03 - 05:05 the scene called Main.
Next we'll be given a choice 06:05 - 06:07
05:05 - 05:07 It's worth noting that the
of which assets we would like to 06:07 - 06:11
05:07 - 05:09 Completed, Prefabs, Scenes, Scripts
import in to our project. 06:11 - 06:13
05:09 - 05:12 and Sprites folders
The default is All, which is what we want, 06:13 - 06:17
05:12 - 05:14 were all created when we imported our asset
so go ahead and click Import. package.
05:16 - 05:18 06:19 - 06:21
Close the Asset Store window. The Completed folder contains
05:19 - 05:22 06:21 - 06:24
We now have our new project with our assets a completed version of the project,
imported. 06:24 - 06:27
05:22 - 05:24 which you can refer to if you get stuck.
And the default new empty scene open. 06:29 - 06:31
05:25 - 05:27 Great, that's the end of our first lesson.
Before creating anything in the new scene 06:32 - 06:35
Página 4 de 5
In our next lesson we're going to lay out our play field.
Página 5 de 5