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

Rendering is slightly off on the y-axis compared to the original game #28

Closed
rozniak opened this issue Feb 17, 2021 · 0 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@rozniak
Copy link
Owner

rozniak commented Feb 17, 2021

Quite a simple one - the scene is rendered slightly offset on the y-axis when compared to the original game. In the original, on the demo level, the floor is pretty much flush with the UI chrome aside from the isometric perspective of the sprite. In this ported version it's raised a bit.

I would suspect this is due to a discrepancy in how the coordinate system is handled - I think the original must use the bottom-left of sprites/the overall level as (0, 0), whereas of course in the ported version it's using the top-left for (0, 0). The offset is probably the height of the isometric portion of sprites (I think CellSize is the '2D' size of each object, not counting any isometric perspective on the objects when rendered in game).

@rozniak rozniak added the bug Something isn't working label Feb 17, 2021
@rozniak rozniak self-assigned this Feb 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant