A command line utility written in Rust to help manage DragonRuby projects. This is related to the DragonRuby Game Toolkit (DRGTK).
$ drew --help
Usage: drem [COMMAND]
Commands:
new Create a new game
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
It will create a local copy of DRGTK and initialize a new game under it in a way that will make it easy to push to GitHub or elsewhere.
$ drew new --help
Create a new game
Usage: drem new --name <name> --drgtk <drgtk>
Options:
-n, --name <name> Name of the new game
-g, --drgtk <drgtk> Path to DRGTK zip to use
-h, --help Print help
$ drem new -n eggs -d ~/Downloads/dragonruby-game-toolkit-macos.zip
This will do the following:
- Check if the referenced DRGTK zip file is a legitimate DRGTK.
- Unzip the DRGTK zip file to a folder called
dragonruby-eggs-drgtk
in the current directory. - Add a
.gitkeep
file underdragonruby-eggs-drgtk/mygame/data
,dragonruby-eggs-drgtk/mygame/fonts
, anddragonruby-eggs-drgtk/mygame/sounds
. This ensures that these folders are tracked by Git as they are empty by default. - Add a
.gitignore
file underdragonruby-eggs-drgtk/mygame
that ignores.DS_Store
files. - Initializes a git repository under
dragonruby-eggs-drgtk/mygame
.
After that, the developer can start working on their game and push dragonruby-eggs-drgtk/mygame
to GitHub or elsewhere.
- Add support for Windows and Linux
- Add support for cloning an existing game from GitHub or elsewhere
- Figure out a mechanism to remember the DRGTK version used for a game
- The developer has already downloaded a version of DRGTK somewhere on their system.
drem
only works on macOS for now but should be easy to port to Windows and Linux.
Contributions are welcome. Please open an issue first to discuss what you would like to change if it's a bug, or a discussion if it's a feature request.