Skip to content

NarukamiTO/resource-generator

Repository files navigation

Narukami Resource Generator

Resource generator for a certain browser tank game. It generates resource files for game from a human-editable source files.

Requirements

Usage

Input resources are read from the resources directory.

Generated files are written to the out directory. Remember to remove out/mtimes between generator updates, to make sure that all files are regenerated.

You can also download the latest release if you don't want to build it yourself.

git clone https://github.com/NarukamiTO/resources resources
cargo run --release

Podman (alternative)

I develop without Podman, so this isn't guaranteed to always work.

Build an OCI image first:

podman build -t narukami/resource-server:dev .

Now you can run the resource generator. The first time the container is run it will clone resources into /app/resources/, the next time it will do git pull --ff-only.

mkdir -p data/resources # Input directory
mkdir -p data/out # Output directory

podman run --rm \
  -v $(realpath data/resources):/app/resources \
  -v $(realpath data/out):/app/out \
  narukami/resource-server:dev

License

Licensed under GNU Affero General Public License, version 3.0 or later (LICENSE or https://www.gnu.org/licenses/agpl-3.0.html).

About

Resource generator for a certain browser tank game.

Resources

License

Stars

Watchers

Forks

Packages

No packages published