In this video, Jesse Freeman teaches you how to create a simple pixel perfect camera to display pixel art correctly. You'll design the camera around the native resolution of your game then calculate the scale at which to increase the camera's size based on the actual screen size. Working with the camera in Unity 5 in an import skill for building a 2D game.
- So in the previous video,…in order for us to see our artwork,…we had to change the main camera scale.…By default, it was set to 5.…Now, if we were to move something closer to the camera,…you'll see that it's incredibly large,…and again, remember,…this is because all of our artwork…is a one-for-one ratio…to units in Unity.…So each one of these units…is now a pixel.…Well, at different resolutions on different devices,…we're not going to be able to maintain…a consistent look and feel.…
So in order to fix that,…we're going to create a script…that will allow us…to automatically re-size the camera,…based on the height of the screen that it's being played on.…To do this, we're going to create a new folder,…to store our scripts.…Then, inside of this,…we're going to create a new C# Script,…and we're going to call it PixelPerfectCamera.…Now, let's open up this script inside of MonoDevelop.…Now, if you're new to writing scripts in Unity,…every time you create a new script…this is the basic layout.…
What you'll see is that we have classes…
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.