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

loading sprite with different width and height is not implemented #2

Open
yoyoberenguer opened this issue Jul 18, 2021 · 0 comments
Open

Comments

@yoyoberenguer
Copy link
Owner

Loading a sprites with different width and height is not implemented

Code exposed :

  • def open_spritesheet(self) -> None
if self.gl.input_format_24bit.get() == 1:
    try:

        sprites = sprite_sheet_fs8(filename, chunk_=int(width), rows_=int(rows), columns_=int(columns))
    except Exception as error:
        messagebox.showerror(
            "Error", "Fail to open spritesheet %s\nError code : %s" % (filename, error))
        return
else:
    try:
        sprites = sprite_sheet_per_pixel(filename, chunk_=int(width), rows_=int(rows),
                                         columns_=int(columns))
    except Exception as error:
        messagebox.showerror(
            "Error", "Fail to open spritesheet %s\nError code : %s" % (filename, error))
        return
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