In this video, Jesse Freeman teaches you how to lay out text in your game. You’ll learn the basics of building a simple UI to display the time, score and other elements your endless runner game will need to show the player their progress in the game. Learning how to polish a Unity 5 game is an import skills for building a 2D game.
- [Voiceover] Now we're ready to add…a high score to our game.…In order to do that, we're gonna need to import a font.…Let's create a new folder to hold our fonts,…and we'll drag the fonts included with the project folder…into the font folder of our project.…Now, here you'll see we've created our font.…It has a render mode and characters…and it even gives us the font name.…Let's create a simple text component…and see how the font looks in our game.…
We'll go to the GameObject menu,…and go to UI, Text.…Here you'll see we now have a new text component.…You'll also notice that the text component…has been created inside of a new canvas element.…If we zoom out, you'll see that this is…the bounding box of the canvas.…Unity also creates an event system game object…that'll handle input with our new UI components…that's part of Unity 5.…
We're gonna ignore this for now.…The one thing that we're gonna want to do…is set up the canvas so that it aligns correctly…with our own camera in the game.…With the canvas selected, let's go and take a look…
Start watching to learn how to convert artwork into sprites, create repeating background textures with Unity's TexturePacker, and build reusable game objects such as players, obstacles, and enemies. Jesse also covers the basics of object pooling, working with custom UI components, and multiplatform publishing.
- Importing artwork
- Editing sprites
- Creating repeating background textures
- Building reusable obstacles
- Recycling game objects
- Building an object pool
- Creating the player
- Starting and ending the game
- Displaying and saving the score
- Adding menus and text
- Publishing a Unity game in different formats
Skill Level Beginner
1. Working with Sprites
2. Creating Repeating Textures
3. Creating Obstacles
4. Object Pooling
5. Creating the Player
6. Setting Up the Game
7. Polishing the Game
8. Creating More Obstacles
Publish to different formats5m 42s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.