flame-engine / tiled.dart

A Dart Tiled library. Parse your TMX files into useful representations. Compatible with Flame.
https://flame-engine.org/
MIT License
50 stars 30 forks source link

feat!: Dart SDK compatibility #77

Open benni-tec opened 9 months ago

benni-tec commented 9 months ago

Description

This PR makes this package compatible with the Dart SDK. In order to achieve this I changed 3 things:

The ColorData class is used excatly once for which I prepared a flame_tiled PR (however I need to wait until this is merged right) including conversion extensions.

No Rectangle attribute is ever read in flame_tiled, evenso flame already contains conversion extensions!

Checklist

Breaking Change

I think this should result in a minor version bump to 0.11.0 to indicate these breaking changes!

In order to achieve dart comaptibilty only two things changed:

Related Issues

kevmoo commented 4 months ago

Would this help here? https://flutter.dev/go/move-flutter-agnostic-types

If yes, help me understand how. If not, what's missing?

spydon commented 4 months ago

Would this help here? https://flutter.dev/go/move-flutter-agnostic-types

If yes, help me understand how. If not, what's missing?

Yes! That would be exactly what we need here, it migrates all the types that we need out of flutter.

Thanks!