thedarkmagi / dragonruby-game-toolkit-contrib

Parts of DragonRuby GameToolkit source released under MIT license.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to Use

This repository requires DragonRuby Game Toolkit. You can purchase a license from http://dragonruby.org.

If your income is below $1000 per month, are a "student", or are a "big time Raspberry PI enthusiast", contact Amir at ar@amirrajan.net with a short explanation of your current situation, and he'll set you up with a free license, no questions asked.

  1. Download DragonRuby Game Toolkit.
  2. Unzip.
  3. Navigate to your game folder using terminal (the default game folder is ./mygame/app).
  4. git clone https://github.com/DragonRuby/dragonruby-game-toolkit-contrib or download and unzip into the ./mygame/app directory.

IMPORTANT: do not try to symlink the git repo into the ./mygame/app directory (or anything else fancy), the DragonRuby Runtime requires everything to reside in the game directory and will not allow access outside of it.

IMPORTANT: make sure Git is configured to not change line endings (especially if you're cloning on Windows):

git config --system core.autocrlf false
git config --global core.autocrlf false
  1. Your directory structures should look like the following:
DragonRuby
|
+- mygame/
   |
   +- app/
      |
      +- main.rb
      +- repl.rb
      +- documentation/
      |
      +- dragonruby-game-toolkit-contrib/ (this repository)
         |
         +- dragon/
         |  |
         |  +- docs.rb
         |  +- [other source files]
  1. Open main.rb and add a require statement for the source file you want to edit. For example, if you want to edit docs.rb, your mygame/main.rb would look like this:
require 'app/dragonruby-game-toolkit-contrib/dragon/docs.rb'

def tick args
end

Here is the final result

Instructions on how to fork and contribute

TODO

About

Parts of DragonRuby GameToolkit source released under MIT license.

License:MIT License


Languages

Language:Ruby 91.4%Language:JavaScript 7.7%Language:HTML 0.8%Language:CSS 0.0%