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

Wrong tile quad split #2

Open
RubhanChakkaravarthy opened this issue Sep 29, 2020 · 0 comments
Open

Wrong tile quad split #2

RubhanChakkaravarthy opened this issue Sep 29, 2020 · 0 comments

Comments

@RubhanChakkaravarthy
Copy link

The GenerateTileSets function in src/Util.lua wrongly splits the quads.

Screenshot from 2020-09-29 21-35-32

This is the picture of all quads in gFrames['tilesets'][1].

It can be easily fixed by changing line number 54 and 55 in src/Util.lua
from this
for y = sizeY * (tilesetY - 1) + 1, sizeY * (tilesetY - 1) + 1 + sizeY do
for x = sizeX * (tilesetX - 1) + 1, sizeX * (tilesetX - 1) + 1 + sizeX do

to this
for y = sizeY * (tilesetY - 1) + 1, sizeY * (tilesetY - 1) + sizeY do
for x = sizeX * (tilesetX - 1) + 1, sizeX * (tilesetX - 1) + sizeX do

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

1 participant