RafaelBarbosatec / bonfire

(RPG maker) Create RPG-style or similar games more simply with Flame.
https://bonfire-engine.github.io
MIT License
1.18k stars 177 forks source link

fix: tolerate explicit asset paths #492

Closed definitelyokay closed 4 months ago

definitelyokay commented 4 months ago

Description

This makes the tiled asset loader more forgiving if you explicitly specify the assets/images/ prefix, which is likely to happen if you're using something like flutter_gen to eliminate string typos.

Checklist

Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

Breaking Change

Does your PR require Flame users to manually update their apps to accommodate your change?

RafaelBarbosatec commented 4 months ago

Hi @definitelyokay ! Thanks for try contributing. Something wrong? I am available to help or answer any questions.

definitelyokay commented 4 months ago

@RafaelBarbosatec I closed because I wasn't sure how useful this is. This is a pretty easy thing to work-around. Feel free to merge if you think it's useful!

RafaelBarbosatec commented 4 months ago

Any contribution is welcome 🤗 Thank you so much!