fishfolk / jumpy

Tactical 2D shooter in fishy pixels style. Made with Rust-lang 🦀 and Bevy 🪶
https://fishfolk.org/games/jumpy/
Other
1.66k stars 122 forks source link

Support setting a custom path for assets #865

Closed orhun closed 11 months ago

orhun commented 11 months ago

Description

When I run jumpy, it looks for the assets in the current directory which prevents me from putting into another location (such as /opt which is needed for the Arch Linux package)

Can we potentially support an environment variable (JUMPY_ASSETS) for pointing out to an assets directory?

zicklag commented 11 months ago

Ah, yeah, I forgot about that! The feature was lost when we rewrote the asset server. It won't be hard to get that working.

zicklag commented 11 months ago

There we go! Merged a PR that adds support for the JUMPY_ASSETS and JUMPY_ASSET_PACKS environment variables.

We're not using asset packs in jumpy yet, and maybe we should just use the directories crate to find some user directory suitable for asset packs, but I added the var for asset packs for now, just in case.

zicklag commented 11 months ago

@orhun Are you ready for me to make an 0.8.2 release or should we wait to see if there are any other blockers first?

orhun commented 11 months ago

Just 🐑 it! Should be fine now.

zicklag commented 11 months ago

Voilà! v0.8.2.