Crates.io | smaug-bin |
lib.rs | smaug-bin |
version | 0.5.0 |
source | src |
created_at | 2022-01-23 08:33:58.832603 |
updated_at | 2022-01-25 07:42:18.952841 |
description | A tool to manage DragonRuby Game Toolkit projects. |
homepage | https://smaug.dev |
repository | https://github.com/ereborstudios/smaug |
max_upload_size | |
id | 519544 |
size | 102,739 |
Smaug is a tool to manage your DragonRuby Game Toolkit projects.
You can download the latest version from the release page.
Smaug is on the AUR.
Install with homebrew.
brew tap ereborstudios/tap
brew install smaug
Install with scoop.
scoop bucket add ereborstudios https://github.com/ereborstudios/scoop-bucket.git
scoop install smaug
We do not maintain packages for any other operating systems. You can use Cargo as a package manager.
cargo install smaug-bin
smaug 0.4.0
Matt Pruitt <matt@guitsaru.com>
Create games and share packages with the DragonRuby community
USAGE:
smaug.exe [FLAGS] <SUBCOMMAND>
FLAGS:
-h, --help Prints help information
--json Returns JSON
-q, --quiet Silence all output
-v, --verbose Displays more information
-V, --version Prints version information
SUBCOMMANDS:
add Add a dependency to Smaug.toml
bind Create bindings for c extensions (Pro only)
build Builds your DragonRuby project.
config Displays your current project's Smaug configuration
docs Opens DragonRuby docs in your web browser
dragonruby Manages your local DragonRuby installation.
help Prints this message or the help of the given subcommand(s)
init Initializes an existing project as a Smaug project.
install Installs dependencies from Smaug.toml.
new Start a new DragonRuby project
package Manages your DragonRuby package.
publish Publish your DragonRuby project to Itch.io
run Runs your DragonRuby project.
smaug dragonruby install ~/Downloads/dragonruby-linux-amd64.zip
.smaug new my-game
then cd my-game
.Smaug.toml
.smaug run
.smaug build
.
my-game/builds
.smaug publish
.The following instructions assume your project lives at ~/projects/dragonruby-linux-amd64/mygame
.
mv ~/projects/dragonruby-linux-amd64/mygame ~/projects/mygame
.smaug dragonruby install ~/projects/dragonruby-linux-amd64
.smaug init ~/projects/mygame
.cd ~/projects/mygame
Smaug.toml
.smaug run
.smaug build
.
my-game/builds
.smaug publish
.Smaug.toml
:
[dependencies]
draco = "0.6.1"
smaug install
require "app/smaug.rb"
to the top of your main.rb
.# Smaug Registry
name = "version"
# Directory
name = "path/to/package"
# Zip File
name = "path/to/package.zip"
# Online Zip File
name = "https://example.com/package.zip"
# Git Repository
name = "https://github.com/example/package"
# Git Repository Tag
name = { repo = "https://github.com/example/package", tag = "v1.0" }
dragonruby package init
from your package's directory.Smaug.toml
file to configure the package.requires = [
"lib/library.rb",
"lib/library/other.rb"
]
You can install files into the game project from your package.
[package.installs]
# "location in package" = "location in game project"
"tiles/grass.png" = "app/sprites/grass.png"