Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does it support isometric tilemap? #86

Open
kuyum opened this issue Mar 2, 2021 · 9 comments
Open

Does it support isometric tilemap? #86

kuyum opened this issue Mar 2, 2021 · 9 comments

Comments

@kuyum
Copy link

kuyum commented Mar 2, 2021

Thanks for the great work. I am trying dev an isometric game. Does it support isometric tilemap?

@RafaelBarbosatec
Copy link
Owner

Hi @kuyum! Thank's for contact !
We do not have support for an isometric tilemap yet.
It would be a very interesting feature. Even the new versions of Tiled have a very nice support for isometric maps.
If you want to help us implement this it would be very interesting.

@GyHUN95
Copy link

GyHUN95 commented Oct 7, 2022

@RafaelBarbosatec
Copy link
Owner

Yes, it's already possible render isometric maps. But to give you a good experience with this kind of game. I will need adds the third dimension: x,y,z. And for this I have to create many modifications to give support for all behaviors and components offered by Bonfire.

@4mitabh
Copy link
Contributor

4mitabh commented Nov 8, 2022

I dont think, we'll need to change any of the data structures, or need a Z dimension.

The common way to implement isometric maps in games uses only x,y coordinates, and most of the game engine remains exactly the same. The cartesian to isometric transformation are required only at two places:

  1. When rending tiles on the screen.
  2. When reading user input. The up/down/left/right need to be interpreted according to the tilted map displayed on the screen.

Here are two introductory videos on YouTube that talk about this.

https://www.youtube.com/watch?v=04oQ2jOUjkU

https://www.youtube.com/watch?v=KvSjJ-kdGio

@RafaelBarbosatec
Copy link
Owner

Hi @4mitabh !

To render it's OK. But to component’s movements if there are height of different tiles. How a can handle with this without z dimension? Thinking better, i guess it’s possible. I don’t know. I'll study and search more about this.
Thanks so much for share this videos!
I think that I'll start the support of this without thinking in z dimension.

@4mitabh
Copy link
Contributor

4mitabh commented Nov 11, 2022

I see what you meant.

Yeah, we'll have to take care of z-order of all the rendered objects. In case of isometric objects, the trick is to simply adjust the z-order of the rendered objects according to the y coordinates.

We already do this correctly in the current maps. The knight can go around the barrel, both behind and in front of it.
So, it should just work in the isometric maps too.

@invennicoofficial
Copy link

Any plan on this?

@RafaelBarbosatec
Copy link
Owner

I'm focused in release the bonfire 3.0 and the new Bonfire documentation. After this I will work in the isometric games.

@gochev
Copy link

gochev commented Jan 21, 2024

I would love to make an isometric game with bonfire, bonfire is super awesome for beginners.

Btw instead of Z usually most games are made just using x and y even StarCraft :) and for the Z there is just a top, ground and underground

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants