Skip to content
This repository has been archived by the owner on Nov 28, 2024. It is now read-only.

Make packing assets simpler #51

Open
Bombfuse opened this issue Apr 3, 2021 · 1 comment
Open

Make packing assets simpler #51

Bombfuse opened this issue Apr 3, 2021 · 1 comment
Labels
ux An issue that improves the user experience when completed

Comments

@Bombfuse
Copy link
Owner

Bombfuse commented Apr 3, 2021

I have probably about 600 lines of code just packing game assets into the binary. This is extremely tedious and eats up more time than I'd care to admit. Make this easier.

Idea 1: Asset packing macro

#[pack_assets("./my_assets/folder")]

Packs all assets in the given folder into the binary using include_bytes!()

@Bombfuse Bombfuse changed the title Make packing bytes simpler Make packing assets simpler Apr 3, 2021
@Bombfuse Bombfuse added the ux An issue that improves the user experience when completed label Jul 10, 2021
@Bombfuse
Copy link
Owner Author

Bombfuse commented Aug 1, 2021

We can possibly use include_dir! to make this easier

https://docs.rs/include_dir/0.6.1/include_dir/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ux An issue that improves the user experience when completed
Projects
None yet
Development

No branches or pull requests

1 participant