amethyst_cli

Crates.ioamethyst_cli
lib.rsamethyst_cli
version0.1.5
sourcesrc
created_at2016-01-07 08:11:43.330751
updated_at2016-01-27 21:57:36.874435
descriptionDeprecated, merged into amethyst_tools
homepage
repositoryhttps://github.com/ebkalderon/amethyst_cli
max_upload_size
id3842
size47,834
Eyal Kalderon (ebkalderon)

documentation

README

Amethyst-CLI

Build Status Crates.io GPL3 License

Command-line interface for creating and deploying Amethyst game projects. This project is a work in progress and very incomplete; pardon the dust!

Usage

The CLI interface is intentionally very similar to Cargo, so it is easily intelligible to Rustaceans. Unfortunately, it is very limited at the moment in terms of features. Below are the subcommands hacked together implemented so far.

new

Generates an empty game project, a fresh white canvas for your next masterpiece. The default directory structure is laid out like this:

project/
├── Cargo.toml
├── resources
│   ├── config.yml
│   ├── entities/
│   ├── input.yml
│   └── prefabs/
└── src
    └── main.rs

build

Compiles the current project. It's currently just a frontend for cargo build, but more features are in the works, like Lua or mruby script precompilation and offline GPU shader compilation for APIs that support it. And no, you're not dreaming. The --release flag doesn't work yet.

clean

Removes the target directory. Again, just like in Cargo. One day, this will have switches whether or not to clear out said precompiled scripts or cached shader program bytecode.

run

Runs the main binary of the project. A frontend to cargo run. Proposed extra features include real-time profiling and debugging, and manual skipping of levels when playtesting. Oh, and --release doesn't work here yet either.

What's missing?

deploy

Performs a clean rebuild of the game and engine, runs any unit and integration tests if there are any, zips up the resources directory, and places it and the game binary in a directory called deployed.

module

Grabs forthcoming Amethyst engine modules (e.g. rendering, scripting, physics, etc.) from either crates.io or GitHub, configures your Cargo.toml and modifies the resources directory accordingly. Once a new module is installed and configured, just drop your assets into the appropriate folders and you can start writing your game logic.

Contributing

Amethyst is an open-source project that values community contribution. Pull requests are welcome!

We assume you have granted non-exclusive right to your source code under the GNU General Public License 3.0 and you have processed your code with rustfmt prior to submission. If you want to be known as an author, please add your name to the AUTHORS.md file in the pull request.

Commit count: 320

cargo fmt