Adam's Lair Forum

game development and casual madness
It is currently 2017/04/26, 21:23

All times are UTC + 1 hour [ DST ]

Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: How to do isometric?
PostPosted: 2017/04/02, 01:30 
One-Hit Wonder
One-Hit Wonder

Joined: 2017/04/02, 01:27
Posts: 1
Role: Hobbyist
So everything is 2D tiles but how can I change that to be isometric?

IDK if things like physics will work either?

I am looking at: ... -Renderers

Seems to be missing a few pieces. How do I tell the engine to use this renderer?

 Post subject: Re: How to do isometric?
PostPosted: 2017/04/02, 19:12 
Site Admin
Site Admin
User avatar

Joined: 2013/05/11, 22:30
Posts: 1949
Location: Germany
Role: Professional
Hey and welcome!

The Tilemaps plugin for Duality does not support any other tilemap type than rectangular 2D tiles out of the box, but there are some programming interfaces available to extend its default behavior to a degree.

I've never done any isometric tilemaps myself so far, but I think that for isometric tilemaps, the main thing that is missing would be an isometric renderer for the already existing tilemap data and hopefully you can re-use the existing data structures and editor support already in place. You can provide a custom tilemap renderer by implementing the ICmpTilemapRenderer interface in a custom component, which would take the rectangular data and displays it isometrically. This will require some knowledge about how tilemaps and renderers work in Duality, so I'd recommend to get familiar with the environment first - maybe implement an unrelated custom renderer according to the wiki article you linked to get used to working with them first.

When you proceed to write your own tilemap renderer, take a look at the default ones source code to get a better idea on how it works and what the interface API does in detail.

As long as you stay on a 2D plane, physics should still work for isometric tiles, though you won't be able to use the default TilemapCollider for auto-generated collision shapes and will have to provide a custom implementation of that as well. However, since all that changes here are the shapes, you'll likely be able to reuse most of the existing components source code in your own version. If you don't need auto-generated shapes, you should be able to use the out-of-the-box RigidBodies without problems.

Blog | GitHub | Twitter (@Adams_Lair)

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group