Skip to content

feat: Introduce flame_typled#3862

Open
luanpotter wants to merge 1 commit intomainfrom
luan.typled
Open

feat: Introduce flame_typled#3862
luanpotter wants to merge 1 commit intomainfrom
luan.typled

Conversation

@luanpotter
Copy link
Member

Description

Add a new bridge package for typled.

Basically handles:

  • converting from typled formats to Sprite or SpriteBatch
  • supports ghost line busting out of the box!

As seen on sokobros.

Checklist

  • I have followed the Contributor Guide when preparing my PR.
  • I have updated/added tests for ALL new/updated/fixed functionality.
  • I have updated/added relevant documentation in docs and added dartdoc comments with ///.
  • I have updated/added relevant examples in examples or docs.

Breaking Change?

  • Yes, this PR is a breaking change.
  • No, this PR is not a breaking change.

@luanpotter luanpotter marked this pull request as ready for review March 18, 2026 03:16
@luanpotter luanpotter requested a review from erickzanardo March 18, 2026 03:16
@@ -0,0 +1,29 @@
# flame_typled

flame_typled provides integration between [Typled](https://pub.dev/packages/typled) sprite atlases
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be good to start with a brief introduction of what typled is too

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@erickzanardo do you have a blurb? don't want to mis-represent based on my specific use case

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've never used typled so you probably know more than me 😄

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's why I tagged @erickzanardo :P


# flame_typled

Package to add Typled sprite atlas support Flame's sprites.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here it would also be good to have a description of what it is and when to use it

@@ -0,0 +1,45 @@
# Miscellaneous
*.class
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have a git ignore for the other examples? Or are we relying on the root one?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ohh good catch. this was auto generated. let me remove

///
/// When [disablePadding] is `true`, the original image is used as-is
/// without edge-repeated padding.
static Future<TypledSpriteAtlas> load(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have an extension on FlameGame too, like we have for the other sprite atlas classes?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good call!

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

Successfully merging this pull request may close these issues.

2 participants