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

Isometric support #4

Open
bitcraft opened this issue Jun 25, 2014 · 3 comments
Open

Isometric support #4

bitcraft opened this issue Jun 25, 2014 · 3 comments

Comments

@bitcraft
Copy link
Owner

I'm going to add experimental isometric support in a new branch. I'll be commiting the changes later this week. Please watch the readme in the branch, and add any issues that you find.

pyscroll uses many hacks to get good framerates for orthogonal maps and they don't directly translate well to isometric rendering, so there will be many features missing until i find new creative ways to render quickly.

Keep an eye out on the readme, I will keep notes there that relate to it.

Thanks!

@TurBoss
Copy link

TurBoss commented Nov 8, 2015

Hi, any news on this?
thx

@bitcraft
Copy link
Owner Author

bitcraft commented Nov 8, 2015

I haven't thought about it in a long time. Have you tried using the Isometric branch? It worked, as I remember, but its been over a year.

@bitcraft
Copy link
Owner Author

Isometric rendering has been added to the main branch. Instead of using the BufferedRenderer, use the Isometric one (IsometricBufferedRenderer):

import pyscroll
from pytmx.util_pygame import load_pygame

# Load TMX data
tmx_data = load_pygame("desert.tmx")

# Make data source for the map
map_data = pyscroll.TiledMapData(tmx_data)

# Make the scrolling layer
screen_size = (400, 400)
map_layer = pyscroll.IsometricBufferedRenderer(map_data, screen_size)

# make the PyGame SpriteGroup with a scrolling map
group = pyscroll.PyscrollGroup(map_layer=map_layer)

In my testing, there are obvious tile sorting issues, and unfortunately, I don't have much time to devote to this particular feature, but pull requests are welcome.

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

No branches or pull requests

2 participants