-
-
Notifications
You must be signed in to change notification settings - Fork 3
add asset source support #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.