Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

DragonRuby Game Toolkit

An intuitive 2D game engine. Fast, cross-platform, tiny, hot loaded. · By DragonRuby

How do you set it up

A topic by applebeesTacos created Apr 10, 2021 Views: 1,143 Replies: 6
Viewing posts 1 to 2
(-1)

i looked at tutoriels but i can figure out how to set it up. help

Developer(+1)(-2)

Unzip, then run the DragonRuby exe. That’s it ^_^

I'm very much confused. Isn't there some software that I can use that will simplify inputting codes and sifting through files?

I opened docs.html but... idk... I'm lost. I'm from the BYOND community where we had the DreamMaker to display game files and such. It's just I have always had some sort of tool to be able to sort through files, icons, maps, etc, and I can't seem to find any software similar in the DragonRuby folder from the zipped file.

yea but like how do you start coding in it, do you use vs code?

(+1)

Here is what I got from the dragonruby discord server:

so the simplest way, end to end:

Keep a copy of the DragonRuby zip
To set up a project, unzip a copy of it and name it something helpful
Inside this new folder will be a dragonruby.exe, and within \mygame\app\ will be a main.rb edit main.rb and run dragonruby.exe

So basically, you can open the main.rb file with VS Code for example and run dragonruby.exe to execute your file automatically.

You have to unzip the DragonRuby installation Zip file into a new place for each project you want to have.

Anyway, this is the easy method. For custom files and setups, I don't know how to do it.

(1 edit) (+1)

What platform are you using? Windows, Mac, Linux?

For Linux, one way to do it is to unzip DragonRuby into a directory and then add that to your path.

mkdir ~/bin

unzip dragonruby-gtk-linux-amd64.zip

mv dragonruby-linux-amd64 ~/bin/dragonruby

Then add these lines to your shell config, like in .bashrc or whatever file you use for your shell.

# set PATH to include DragonRuby

if [ -d "$HOME/bin/dragonruby" ] ; then

 export PATH="$HOME/bin/dragonruby:$PATH"

fi

Run this command to update your current shell environment (if using bash):

source ~/.bashrc

Now you can create a new game by just creating a directory structure similar to this:

mkdir -p testy/app

vim testy/run.sh

Add these lines to run.sh

#!/usr/bin/env bash

dragonruby ./

Make run.sh executable:

chmod u+x run.sh

Now create main.rb in the app directory:

vim testy/app/main.rb

Put something like this just to test:

# test game while learning DragonRuby

def tick args

  args.outputs.labels  << [640, 500, 'This is really cool!', 5, 1]

  args.outputs.sprites << [576, 280, 128, 101, 'dragonruby.png']

end

Once you have that done you can run run.sh:

./run.sh

and it will load the game you have in main.rb.

Update main.rb and the game will update in real time!

Hope this helps and have a good one!

I use Windows