![]() Setup, but you're free to experiment and choose whatever you like.Īdd a directional light ( GameObject / Create Other / Directional Light) with a I went ahead and picked a view angle and color Let's place three cubes at theseĭepths and use them as guides to construct the scene. We have a background layer at depth 50 and another one at depth 100. Let's say the foreground is at depth 0 and This way we can also get a multilayered scrollingīackground by simply placing stuff at various distances. An orthographic camera doesn'tĪllow for 3D, so we stick to a perspective camera. Our game is basically 2D, but we want to keep a little feeling of 3D. Let's make this game with a 16:10ĭisplay ratio in mind, so select this option in the Game view. One for this project, but you can use whatever layout you prefer. ![]() The default 2 by 3 editor layout is a good Having said that, this tutorial still contains useful things that aren't mentioned in the new one. I recommend you go through the Swirly Pipe tutorial instead, which is the spiritual successor of this one. I created it for Unity 3 and later updated it to Unity 4, but I won't update it to take advantage of the new featuers of Unity 5. The context of the new code should be clear. Note that I will often omit chunks of code that have remained the same, only new code is shown. You're assumed to know your way around Unity's editor and know the basics of creating C# scripts. This tutorial has been superseded by Runner 2. In this tutorial we'll create a very simple endless running game. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |