flame_ldtk 0.2.0
flame_ldtk: ^0.2.0 copied to clipboard
A Flutter package for integrating LDtk levels into Flame Engine games
0.2.0 #
- NEW: LdtkJsonLevelComponent - Unified API for both export formats
LdtkLevelComponentfor Super Simple Export (existing)LdtkJsonLevelComponentfor standard JSON format (new!)- Both components share the same API - just swap them based on your format
- JSON Parser Enhancement: Full support for custom fields extraction in both levels and entities
- Levels now properly extract
customDatafromfieldInstances - Entities now extract
fieldsfromfieldInstancesandcolorfrom__smartColor
- Levels now properly extract
- Parser Harmonization: Both JSON and Super Simple parsers now have consistent behavior
- Super Simple Parser: Already supported custom fields and colors
- JSON Parser: Now matches Super Simple Parser functionality
- Code Refactoring: Introduced
LdtkParserUtilsutility class- Shared utilities between both parsers (color parsing, image loading, field parsing)
- Centralized image cache for better memory management
- Reduced code duplication
- Cleaner, more maintainable codebase
- Performance: Both parsers now use optimized shared functions for common operations
- Breaking Change: None - all existing code continues to work
0.1.1 #
- Optimize code and add cache for assets
0.1.0 #
- Initial release
- LDtk Integration: Support for LDtk Super Simple Export format
- Level Loading: Load and render complete levels with composite images
- Entity Parsing: Extract entities with positions, sizes, custom fields, and colors
- IntGrid Support: CSV-based IntGrid layers for collision detection and game logic
- Flexible Architecture: Override hooks to customize entity rendering
- Generic Design: No built-in collision logic, adaptable to any game type
- Example App: Complete platformer example with physics and collision detection