0.0
No release in over a year
With the tool, you can create new projects, install modules into a game project and open documentation using a command. There are many more functions and they are started with the 'dre' command.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 2.1.0
 Project Readme

DragonRuby-Egg (CLI)

DragonRuby-Egg is a tool for managing DragonRuby and its modules. With this tool, you can easily create new projects and install modules for your existing projects. Additionally, it offers various commands for working with DragonRuby and its documentation.

Installation

To install DragonRuby-Egg, use the following command:

gem install dragonruby-egg

Usage

Creating a new project

With DragonRuby-Egg, you can easily create new projects. Simply run the following command:

dre new [PROJECT_NAME] [PROJECT_PATH]

For example, to create a project named "sandbox" on your desktop, use the following command:

dre new sandbox ~/Desktop

Installing modules

DragonRuby-Egg also allows for easy installation of modules into your projects. To install a module, use the following command:

dre install [MODULE_NAME] [PROJECT_PATH]

For example, to install the "dr-core-rb" module into the "sandbox" project on your desktop, use the following command:

dre install dr-core-rb ~/Desktop/sandbox

When installing a module, DragonRuby-Egg will prompt for confirmation to ensure that you are certain you want to install the module.

Other commands

DragonRuby-Egg also offers several additional commands for working with DragonRuby and its documentation. You can view a list of commands by running:

dre --help

Example module implementation

When creating a new project with DragonRuby-Egg, you can incorporate modules that extend the functionality of DragonRuby. These modules can be installed using the "dre install" command and loaded using the "require" command in a Ruby script.

Suppose you want to install a module named "my-module" that provides new functions for manipulating game elements. After installing this module, you can use its functions like this:

require 'modules/my-module/lib/my-module-1.0.0/my_module.rb'

my_module_function()

The above code will load the file "my_module.rb" from the directory "modules/my-module/lib/my-module-1.0.0" and allow you to use the functions of this module. To install the module, you can use the command "dre install my-module".

Upon completing the installation, DragonRuby-Egg will output a message confirming the module installation, such as: "The 'my-module' module has been installed in this './modules/my-module' folder."

I hope this information helps you better understand how to use DragonRuby-Egg for installing and using modules in DragonRuby projects.

Note

DragonRuby-Egg was created for use on the Linux operating system. If you are using a different operating system, the application may not function properly.

Modules

Here you can find all available modules: https://dragonruby-egg-ui-rjs.vercel.app/

Info

If you want to add your own module to the page, read the README.

Tutorials

Contributors