How to implement 2D isometric view in Unity
▻https://hackernoon.com/how-to-implement-2d-isometric-view-in-unity-7717d4914eee?source=rss----3
Our Pushy & Pully game has some isometric view in place. If you still don’t know the game let me show you an screenshot:Main game area (not the final sprites)As you can see the view is something in between top down and with a certain angle. More like a front isometric camera. But Unity for 2D only has only a “normal” ortogonal camera. There’s no way (that I know) that you can indicate to the camera that what you want is an isometric. So we had to fix this in code.How drawing objects workFirst thing to understand is that we generate the level at runtime after reading the level definition from a file. So we have to draw every object and the order matters. As a general rule in 2D games the last object you draw will be visible on top of the previous ones.The Unity way: layersIn Unity you can (...)
#game-development #programming #gamedev #unity3d #indie-game