add asset source support#10
Conversation
|
Oh thats awesome! Could you provide one example that makes use of that please |
added. |
extrawurst
left a comment
There was a problem hiding this comment.
I dont think we need new assets for this example, we can just use the existing ones and actually lets animate like in the original example
I think so too ,but I must copy the existing assets into // call embedded macro in /examples/some_example.rs
embedded_asset!(app, "examples", "../assets/animation_sheet.libgdx.atlas");
embedded_asset!(app, "examples", "../assets/animation_sheet.png");
// generated asset path
asset_server.load("embedded://../assets/animation_sheet.libgdx.atlas")
// if you call embedded macro in /src/some_dir/some_file.rs, it will be even worse.
asset_server.load("embedded://workspace/../../assets/animation_sheet.libgdx.atlas")That’s also why I didn’t add the example — nobody would use I think the best is to just mention in the documentation that asset source works. Adding a confusing example would only make people more puzzled. |
sounds good to me. can you add that? |
sorry for the delay |
allow load assets with source, like embedded asset.