Set 100 years in the future, battle inter-dimensional hell spawn across the solar system and defend Humanity from complete annihilation.
Hi, my name is Pete Smith and I’ve taken over the development of 2112TD. Over the coming months I will be blogging about the creation of the game in Unity. Today I’ll be telling you a bit about how the levels use both 2D and 3D components of the game engine. 2112TD has hundreds of megabytes of beautifully rendered worlds and creatures. The player views the action from an elevated but fixed perspective:
The scenes have a real feeling of depth, however in reality everything is built from 2D images.
How could I compose this world in Unity: 2D or not 2D?
I decided to go the 3D route, for two main reasons:
To make this work I created an invisible base at a 33 degree angle, corresponding to the perspective of the artwork. Then I placed towers, enemies and the enemies’ paths on this base. The local y axis of this plane (green arrow in screenshot below) could then be used as my world up axis, around which I could calculate rotations:
This obviously looks rather strange. However using an orthographic camera, enabled by turning on Unity’s “2D” mode, things fit into place perfectly from the player’s perspective:
All collisions and triggers can then take place in 3D space. For example, an enemy coming into the range of a tower is detected via the overlap of two spherical colliders. This is demonstrated in the following video:
I hope you found this interesting. Next time I’ll be talking about how the tower animations are put together.
2112TD is a sci-fi tower defence game for Android and iOS combining both classic tower defence and real time strategy features.
Set 100 years in the future, battle inter-dimensional hell spawn across the solar system and defend Earth's colonies from complete annihilation.
A Colossal Flesh Storm is coming, Check out the new 2112TD Trailer At long last, Refinery Productions is proud to announce the launch of their teaser...
Here's what the 2112TD Team has been working on over the past few months.
An overview of the newly designed machine gun turret family.
Heads up, here is the first of our new 3D showcase videos. Watch the Command Centre mow down those nasty Horroctopuses!
No articles were found matching the criteria specified. We suggest you try the article list with no filter applied, to browse all available. Post article and help us achieve our mission of showcasing the best content from all developers. Join now to share your own content, we welcome creators and consumers alike and look forward to your comments.