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
Building foundation offset #57
Comments
As I understand, mouse cursor should be a center for a ground and a building sprite? |
Mouse cursor placement is easy to fix, the main problem currently is the wrong center of the building texture hotspot, which does not equal the terrain tile grid placement. The calculation algorithm mentioned is likely to be wrong. |
You are right, algorithm needs to be fixed. However, I'm figured out how to place the ground properly. |
I have a question. Is |
currently, |
i think the game assets have the offset, we don't have to calc it |
All graphical game assets have a hotspot, which is the center of the sprite. |
but are we using the hotspot whe placing the graphic atm? |
lol@house |
i improved the alignment with most buildings here #143 however, castles, houses and some other buildings are still misaligned. i think we might have to deal with this at texture-hotspot-delta-zombine level instead of at tile level |
The hotspot of buildings sprites may be offset. The placement algorithm probably needs to be fixed, the calculation is done in the terrain_object class. This algorithm needs to be improved, the hotspot is not correctly aligned with the terrain grid.
Error example:
The text was updated successfully, but these errors were encountered: